ChangeLog revision 94536
12002-04-04 Alan Modra <amodra@bigpond.net.au> 2 3 * dep-in.sed: Cope with absolute paths. 4 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR. 5 Run "make dep-am". 6 * Makefile.in: Regenerate. 7 8 Merge from mainline. 9 2002-03-28 Alan Modra <amodra@bigpond.net.au> 10 * configure.host: Set up for generic hosts first, then tweak as 11 necessary in more specific targets. 12 (HOSTING_LIBS): Include libgcc_eh.a if found. 13 142002-03-28 Alan Modra <amodra@bigpond.net.au> 15 16 Merge from mainline. 17 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com> 18 * genscripts.sh (LIB_SEARCH_DIRS): Quote path. 19 20 2002-03-20 Alan Modra <amodra@bigpond.net.au> 21 * ldlang.c (ldlang_add_undef): If the output bfd has been opened, 22 add the symbol to the linker hash table immediately. 23 (lang_place_undefineds): Split symbol creation out.. 24 (insert_undefined): ..to here. 25 26 2002-03-18 Alan Modra <amodra@bigpond.net.au> 27 * ldmain.c (main): Move .text readonly flag fudges from here.. 28 * ldlang.c (lang_process): ..to here. 29 30 2002-03-14 Alan Modra <amodra@bigpond.net.au> 31 * ldlang.c (lang_check): Remove the word size check added in last 32 change. Treat emitrelocations case as for relocatable links. 33 34 2002-03-13 Alan Modra <amodra@bigpond.net.au> 35 * ldlang.c (lang_check): Do relocatable link checks first, so that 36 warn_mismatch can't override. Check compatible and word size too. 37 38 2002-03-04 H.J. Lu <hjl@gnu.org> 39 * scripttempl/elf.sc: Put .preinit_array, .init_array and 40 .fini_array in the data segment. 41 42 2002-03-04 Alan Modra <amodra@bigpond.net.au> 43 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit. 44 45 2002-03-01 David Mosberger <davidm@hpl.hp.com> 46 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array, 47 .init_array, and .fini_array. 48 492002-03-18 David O'Brien <obrien@FreeBSD.org> 50 51 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where 52 the contents of the buffer returned from basename function will are 53 getting overwritten while still being used. 54 55Mon Mar 18 18:07:20 CET 2002 Jan Hubicka <jh@suse.cz> 56 Andreas Jaeger <aj@suse.de> 57 Andreas Schwab <schwab@suse.de> 58 59 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native. 60 * elf_x86_64.sh (ARCH): Set to i386:x86-64 61 set libraries to default to lib64 paths. 62 632002-03-07 Daniel Jacobowitz <drow@mvista.com> 64 65 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo. 66 672002-03-07 Daniel Jacobowitz <drow@mvista.com> 68 69 * NEWS: Mark version 2.12. 70 712002-02-20 Andreas Schwab <schwab@suse.de> 72 73 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold 74 .IA64_unwind* in a relocatable link. 75 762002-02-19 David O'Brien <obrien@FreeBSD.org> 77 78 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd, 79 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd, 80 and eelf64alpha_fbsd. 81 * Makefile.in: Regenerate. 82 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd, 83 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd): 84 use a FreeBSD-specific emulation rather than the psABI one. 85 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value 86 for all FreeBSD ELF systems. 87 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI 88 emulation. 89 * emulparams/elf32ppc_fbsd.sh: Likewise. 90 * emulparams/elf64_ia64_fbsd.sh: Likewise. 91 * emulparams/elf64_sparc_fbsd.sh: Likewise. 92 * emulparams/elf64alpha_fbsd.sh: Likewise. 93 * emulparams/elf_i386_fbsd.sh: Likewise. 94 * emulparams/elf_x86_64_fbsd.sh: Likewise. 95 962002-02-15 Richard Henderson <rth@redhat.com> 97 98 * emulparams/elf64alpha.sh (NOP): Adjust for little-endian definition. 99 1002002-02-15 Hans-Peter Nilsson <hp@bitrange.com> 101 102 * NEWS: Mention support for MMIX. 103 1042002-02-14 Phil Edwards <pme@gcc.gnu.org> 105 106 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns. 107 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern; 108 the pattern in question is not a regexp. 109 * ldlang.c: Likewise. 110 * ldlang.h: Likewise. 111 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also. 112 1132002-02-10 Daniel Jacobowitz <drow@mvista.com> 114 115 * lexsup.c: Remove strtoul declaration. 116 1172002-02-11 Alan Modra <amodra@bigpond.net.au> 118 119 * ldlang.c (entry_section): New initialised variable. 120 (lang_finish): Use it. 121 * ldlang.h (entry_section): Declare. 122 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set 123 entry_section to ".opd". 124 1252002-02-10 Daniel Jacobowitz <drow@mvista.com> 126 127 * ldmain.c: Add prototype for main (). 128 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H. 129 * emultempl/lnk960.em (lnk960_choose_target): Function should 130 take two arguments. 131 1322002-02-09 Chris Demetriou <cgd@broadcom.com> 133 134 * ld.texinfo (Options): Add back in -nostdlib documentation, 135 which had been inadvertently removed. 136 1372002-02-09 Hans-Peter Nilsson <hp@bitrange.com> 138 139 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust 140 register section vma to a sane value after emitting error. Make 141 fatal conditions cause program exit when emitting message. 142 1432002-02-08 Ivan Guzvinec <ivang@opencores.org> 144 145 * configure.tgt: Add or32-*-rtems target. 146 1472002-02-08 Alexandre Oliva <aoliva@redhat.com> 148 149 Contribute sh64-elf. 150 2002-01-24 Alexandre Oliva <aoliva@redhat.com> 151 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined 152 in OTHER_RELOCATABLE_SECTIONS. 153 2002-01-18 Alexandre Oliva <aoliva@redhat.com> 154 * emulparams/shelf32.sh (STACK_ADDR): Define. 155 (OTHER_RELOCATABLE_SECTIONS): Renamed to... 156 (OTHER_SECTIONS): this. Removed stack settings. 157 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set. 158 (OTHER_SECTIONS): Reset after sourcing shelf32.sh. 159 2001-03-12 DJ Delorie <dj@redhat.com> 160 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable 161 relaxing if any shmedia or mixed sections are found. 162 2001-03-07 DJ Delorie <dj@redhat.com> 163 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to 164 einfo. Gracefully decline to output to non-elf formats. 165 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com> 166 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>: 167 Default to _end aligned to next multiple of 0x40000, plus 0x40000. 168 * emulparams/shelf32.sh: Ditto. 169 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com> 170 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak 171 comment. 172 2001-01-10 Ben Elliston <bje@redhat.com> 173 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid 174 non-portable shell constructs. From Hans-Peter Nilsson. 175 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com> 176 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty. 177 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust 178 dependencies to the shell script include chain. 179 * Makefile.in: Regenerate. 180 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com> 181 * emultempl/sh64elf.em: Update and tweak comments. 182 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and 183 make a .cranges section SEC_IN_MEMORY. 184 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com> 185 * emultempl/sh64elf.em 186 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when 187 .cranges section found to be necessary; continue and set stored 188 section contents flags for sections with non-mixed contents. 189 Use a struct sh64_section_data container and sh64_elf_section_data 190 to store contents-type flags. 191 Remove unused update of "isec". 192 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process 193 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to 194 access contents-type flags. Assert that the associated container 195 is initialized. Use that container, not elf_gp_size, to hold size 196 of linker-generated cranges contents. 197 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com> 198 * emultempl/sh64elf.em 199 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if 200 there's already a .cranges section. When section flag difference 201 is found, don't NULL-check cranges a second time. Tweak comments. 202 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after 203 merging, not max size, as size of ld-generated .cranges contents. 204 Don't set ELF section flags in output section. When checking for 205 needed .cranges descriptors, don't use a variable; compare 206 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak 207 comments. 208 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com> 209 * emultempl/sh64elf.em: New file. 210 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies. 211 * Makefile.in: Regenerate. 212 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set. 213 (OTHER_RELOCATING_SECTIONS): Ditto. 214 (EXTRA_EM_FILE): New, set to sh64elf if not set. 215 * emulparams/shlelf32.sh: Stub out all settings except 216 OUTPUT_FORMAT. Source shelf32.sh. 217 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and 218 OTHER_RELOCATING_SECTIONS. 219 (OTHER_RELOCATING_SECTIONS): Remove .cranges. 220 * emulparams/shlelf64.sh: Stub out all settings except 221 OUTPUT_FORMAT. Source shelf64.sh. 222 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com> 223 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include 224 .cranges section. 225 (DATA_START_SYMBOLS): Define, provide ___data. 226 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8 227 for consecutive .data section. 228 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss 229 section after .data section. 230 * emulparams/shlelf64.sh: Ditto. 231 * emulparams/shelf32.sh: Ditto. 232 (ALIGNMENT): Define to 8. 233 * emulparams/shelf32.sh: Ditto. 234 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com> 235 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get 236 built-in linker scripts. 237 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com> 238 * emulparams/shlelf64.sh: New. 239 * emulparams/shelf64.sh: New. 240 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to 241 targ_extra_emuls. 242 * Makefile.am: Add support for shlelf64 and shelf64. 243 * Makefile.in: Regenerate. 244 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com> 245 * configure.tgt (sh64-*-elf*): Add shelf as default. 246 Add shlelf to targ_extra_emuls. 247 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com> 248 * emulparams/shelf32.sh: New file. 249 * emulparams/shlelf32.sh: New file. 250 * Makefile.am: Add support for shlelf32 and shelf32. 251 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32. 252 * Makefile.in: Regenerate. 253 2542002-02-05 Hans-Peter Nilsson <hp@axis.com> 255 256 * ldlang.c (lang_reset_memory_regions): Rename from 257 reset_memory_regions. Change all callers. Make public. 258 * ldlang.h (lang_reset_memory_regions): Prototype. 259 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call 260 lang_reset_memory_regions before lang_size_sections. 261 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise. 262 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise. 263 2642002-02-04 Hans-Peter Nilsson <hp@bitrange.com> 265 266 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed 267 arithmetic when checking for too many global registers. 268 2692002-02-02 Jason Thorpe <thorpej@wasabisystems.com> 270 271 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o. 272 (ehppanbsd.c): New rule. 273 * Makefile.in: Regenerate. 274 * configure.tgt (hppa*-*-netbsd*): New target. 275 * emulparams/hppalinux.sh: Add comment to check other files 276 that source this file it is modified, and list which 277 files that do. 278 * emulparams/hppanbsd.sh: New file. 279 2802002-02-01 Geoffrey Keating <geoffk@redhat.com> 281 282 * scripttempl/xstormy16.sc: Don't allocate extra space for the 283 stack. 284 2852002-02-01 Hans-Peter Nilsson <hp@bitrange.com> 286 287 Support on-demand global register allocation from 288 R_MMIX_BASE_PLUS_OFFSET relocs. 289 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from 290 mmix_set_reg_section_vma. Call 291 _bfd_mmix_finalize_linker_allocated_gregs. 292 (mmix_before_allocation): New function. 293 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation. 294 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation. 295 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP. 296 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated 297 before .MMIX.reg_contents. 298 * emultempl/mmo.em (gldmmo_before_allocation): Define to default. 299 (mmo_after_open): New function. 300 (LDEMUL_AFTER_OPEN): Define to mmo_after_open. 301 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add 302 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents. 303 3042002-01-31 Ivan Guzvinec <ivang@opencores.org> 305 306 * emulparams/or32.sh: New file. 307 * emulparams/or32elf.sh: New file. 308 * scripttempl/or32.sc: New file. 309 * configure.tgt : Add support for or32. 310 * configure: Regenerate 311 * Makefile.am: Add support for or32. 312 * Makefile.in: Regenerate. 313 * NEWS: Mention support for or32. 314 * po/ld.pot: Regenerate. 315 3162002-01-29 Chris Demetriou <cgd@broadcom.com> 317 Mitch Lichtenberg <mpl@broadcom.com> 318 319 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself. 320 * emultempl/mipself.em: New file to handle MIPS ELF embedded 321 reloc creation (ld --embedded-relocs). 322 3232002-01-27 Daniel Jacobowitz <drow@mvista.com> 324 325 * configure: Regenerated. 326 3272002-01-26 Hans-Peter Nilsson <hp@bitrange.com> 328 329 * Makefile.am (install): Depend on install-info. 330 * Makefile.in: Regenerate. 331 3322002-01-26 Christian Rose <menthos@menthos.com> 333 334 * ldmain.c (main): Use full sentences to ease translation. 335 3362002-01-26 Nick Clifton <nickc@cambridge.redhat.com> 337 338 * po/fr.po: Updated version. 339 3402002-01-25 Nick Clifton <nickc@cambridge.redhat.com> 341 342 * po/es.po: Updated version. 343 3442002-01-25 Andreas Jaeger <aj@suse.de> 345 346 * ldlex.l (yy_input): Correct error check. 347 3482002-01-25 Alan Modra <amodra@bigpond.net.au> 349 350 * ldmisc.c (demangle): Put back dots when string not demangled. 351 3522002-01-22 Richard Henderson <rth@redhat.com> 353 354 * emulparams/elf64alpha.sh (NOP): Use unop. 355 3562002-01-21 Andreas Jaeger <aj@suse.de> 357 358 * ldlex.l: Use fread instead of read. 359 3602002-01-21 Jason Thorpe <thorpej@wasabisystems.com> 361 362 * configure.tgt (ia64-*-netbsd*): New target. 363 3642002-01-21 H.J. Lu <hjl@gnu.org> 365 366 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to 367 0. 368 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise. 369 3702002-01-18 Andreas Jaeger <aj@suse.de> 371 372 * ldver.c (ldversion): Update year. 373 3742002-01-17 Nick Clifton <nickc@cambridge.redhat.com> 375 376 * po/ld.pot: Regenerate. 377 3782002-01-16 Alan Modra <amodra@bigpond.net.au> 379 380 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em. 381 * Makefile.in: Regenerate. 382 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define. 383 * emultempl/ppc64elf.em: New file. 384 3852002-01-15 DJ Delorie <dj@redhat.com> 386 387 * scripttempl/pe.sc: Add support for constructor priorities. 388 3892002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl> 390 391 * emulparams/avr1200.sh (DATA_START): Define as 0x60. 392 * emulparams/avr23xx.sh: Likewise. 393 * emulparams/avr4433.sh: Likewise. 394 * emulparams/avr44x4.sh: Likewise. 395 * emulparams/avr85xx.sh: Likewise. 396 * emulparams/avrmega103.sh: Likewise. 397 * emulparams/avrmega161.sh: Likewise. 398 * emulparams/avrmega603.sh: Likewise. 399 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60. 400 4012002-01-08 Alexandre Oliva <aoliva@redhat.com> 402 403 * ldlang.c (walk_wild_section): Exclude object file if enclosing 404 archive is excluded. 405 4062002-01-07 Jason Thorpe <thorpej@wasabisystems.com> 407 408 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o. 409 (eshelf_nbsd.c): New rule. 410 (eshlelf_nbsd.c): New rule. 411 * Makefile.in: Regenerate. 412 * configure.tgt (sh*le-*-netbsdelf*): New target. 413 (sh*-*-netbsdelf*): New target. 414 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file. 415 * ld/emulparams/shelf_nbsd.sh: New emulation. 416 * ld/emulparams/shlelf_nbsd.sh: New emulation. 417 4182002-01-07 Nick Clifton <nickc@cambridge.redhat.com> 419 420 * po/es.po: New file: Spanish translation. 421 * configure.in (ALL_LINGUAS): Add es. 422 * configure: Regenerate. 423 4242002-01-06 John Marshall <jmarshall@acm.org> 425 426 * ld.texinfo: Note that --emit-relocs is currently only 427 implemented for ELF. 428 4292002-01-05 Alan Modra <amodra@bigpond.net.au> 430 431 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use 432 of bfd_section_list_remove and bfd_section_list_insert macros. 433 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise. 434 * emultempl/mmo.em (mmo_place_orphan): Likewise. 435 4362002-01-04 Jason Thorpe <thorpej@wasabisystems.com> 437 438 * configure.tgt (x86_64-*-netbsd*): New target. 439 4402001-12-21 Tom Rix <trix@redhat.com> 441 442 (gld*_create_output_section_statements): New function. 443 For -binitfini support. 444 * emultempl/aix.em (gld*_before_parse): Fix comment. 445 * emultempl/aix.em (gld*_parse_args): Fix comment. 446 4472001-12-20 Jason Thorpe <thorpej@wasabisystems.com> 448 449 * configure.tgt (mips*-dec-netbsd*): Delete alias for 450 mips*el-*-netbsd*. 451 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls. 452 453 * configure.tgt (arm-*-netbsdelf*): Add target. 454 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls. 455 * emulparams/armelf_nbsd.sh: Added. 456 * Makefile.am: Add rules for earmelf_nbsd. 457 * Makefile.in: Regenerate. 458 4592001-12-19 Andreas Jaeger <aj@suse.de>, 460 Susanne Oberhauser <froh@suse.de> 461 462 * configure.host: Add rules for x86_64-*linux-gnu. Change 463 s390x-linux entry to use gcc to report configuration, replace gcc 464 with $CC in s390-linux 465 4662001-12-19 Andreas Jaeger <aj@suse.de> 467 468 * ld.texinfo (VERSION): Fix markup. 469 4702001-12-18 matthew green <mrg@eterna.com.au> 471 472 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o. 473 (m68kelfnbsd.c): New rule. 474 * Makefile.in: Regenerate. 475 * configure.tgt (m68*-hp-netbsd*): Renamed to .. 476 (m68*-*-netbsd*4k*): .. this. 477 (m68*-*-netbsdelf*): New target. 478 (m68*-*-netbsd*): Also include ELF support. 479 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*. 480 * emulparams/m68kelfnbsd.sh: New emulation. 481 4822001-12-18 Jakub Jelinek <jakub@redhat.com> 483 484 * ldgram.y (vers_node): Support anonymous version tags. 485 * ldlang.c (lang_register_vers_node): Ensure anonymous version 486 tag is not defined together with non-anonymous versions. 487 * ld.texinfo: Document it. 488 4892001-12-18 Nick Clifton <nickc@cambridge.redhat.com> 490 491 * po/tr.po: New file: Turkish translation. 492 * configure.in (ALL_LINGUAS): Add tr. 493 * configure: Regenerate. 494 4952001-12-17 Jason Thorpe <thorpej@wasabisystems.com> 496 497 * Makefile.am: Add rules for eelf64alpha_nbsd. 498 * Makefile.in: Regenerate. 499 * configure.tgt (alpha*-*-netbsd*): Set 500 targ_emul to elf64alpha_nbsd. 501 * emulparams/elf64alpha_nbsd.sh: Added. 502 5032001-12-17 Alan Modra <amodra@bigpond.net.au> 504 505 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust 506 section_tail when fiddling with section list. 507 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't 508 broken into separate strings to make translation easier. 509 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when 510 fiddling with section list. 511 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise. 512 5132001-12-16 Hans-Peter Nilsson <hp@bitrange.com> 514 515 * scripttempl/mmo.sc: Add .debug_ranges to listed sections. 516 5172001-12-15 Alan Modra <amodra@bigpond.net.au> 518 519 * ldmain.c (main): Initialise link_info.eh_frame_hdr. 520 5212001-12-13 Jakub Jelinek <jakub@redhat.com> 522 523 * emultempl/elf32.em (finish): Supply output_bfd 524 to bfd_elf*_discard_info. 525 (OPTION_EH_FRAME_HDR): Define. 526 (longopts): Add --eh-frame-hdr. 527 (parse_args): Handle it. 528 (list_options): Add --eh-frame-hdr to help. 529 * emultempl/hppaelf.em (finish): Supply output_bfd 530 to bfd_elf*_discard_info. 531 * scripttempl/elf.sc (.eh_frame_hdr): Add. 532 5332001-12-13 Alan Modra <amodra@bigpond.net.au> 534 535 * lexsup.c (parse_args): Don't pass shortopts to second call to 536 getopt functions. Restore optind rather than decrementing before 537 second call. Remove errind as it now duplicates last_optind. 538 5392001-12-11 Christopher Faylor <cgf@redhat.com> 540 541 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo. 542 5432001-12-07 Geoffrey Keating <geoffk@redhat.com> 544 Richard Henderson <rth@redhat.com> 545 546 * Makefile.am: Add support for xstormy16. 547 * configure.tgt: Add support for xstormy16. 548 * Makefile.in: Regenerate. 549 * emulparams/elf32xstormy16.sh: New file. 550 * scripttempl/xstormy16.sc: New file. 551 5522001-10-01 Christopher Faylor <cgf@cygnus.com> 553 554 * Makefile.in (LIB_PATH): Make configurable. 555 (GENSCRIPTS): Set LIB_PATH in environment. 556 * configure.in: Substitute LIB_PATH. 557 * configure: Regenerate. 558 * configure.tgt (*cygwin): Set LIB_PATH for cross build. 559 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS. 560 5612001-12-07 Nick Clifton <nickc@cambridge.redhat.com> 562 563 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string 564 describing the -N option so that it is easier to translate into 565 foreign languages. 566 5672001-12-05 Nick Clifton <nickc@cambridge.redhat.com> 568 569 * emultempl/pe.em (..._list_options): Replace multiple fprintf 570 statements describing a single option with a single, newline 571 escaped fprintf. This allows better translation into other 572 languages. 573 574 * ldmain.c (add_archive_element): Combine multiple strings 575 into a single string to permit better translation into other 576 languages. 577 5782001-12-05 Tom Rix <trix@redhat.com> 579 580 * Makefile.am: Remove eaixppc64. 581 * Makefile.in: Regenerate. 582 5832001-12-04 Tom Rix <trix@redhat.com> 584 585 * emultempl/aix.em (choose_target): Change default target to 586 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler 587 warning. 588 (gld*_read_file): Fix typo. 589 (change_symbol_mode): Add prototype. 590 (is_syscall): Same. 591 592 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete. 593 * emulparams/aixrs6.sh : Same. 594 * emulparams/ppcmacos.sh : Same. 595 * emulparams/aixppc64.sh : Delete file. 596 * emultempl/aix.em : Formatting changes. 597 5982001-12-04 Hans-Peter Nilsson <hp@axis.com> 599 600 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes. 601 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting 602 __Sbss. 603 (OTHER_END_SYMBOLS): Fix formatting. 604 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes. 605 (OTHER_END_SYMBOLS): Fix formatting. 606 6072001-12-04 Alan Modra <amodra@bigpond.net.au> 608 609 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT. 610 6112001-12-02 Tom Rix <trix@redhat.com> 612 613 * configure.tgt : Remove eaixppc64 emulations. 614 * Makefile.in : Remove eaixppc64.c 615 * ldemul.c (ldemul_choose_target): New parameters argc, argv. 616 (ldemul_default_target): Same. 617 * emultempl/gld960.em (gld960_choose_target): Same. 618 * emultempl/gld960c.em (gld960_choose_target): Same. 619 * scripttempl/aix.sc: Remove OUTPUT_FORMAT. 620 * emultempl/aix.em (is_syscall): syscall_mask now a variable. 621 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable. 622 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation. 623 * emultempl/aix.em (choose_target): New function. Handle emulation of 624 -b32 and -b64. 625 6262001-11-27 H.J. Lu <hjl@gnu.org> 627 628 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes. 629 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise. 630 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise. 631 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise. 632 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise. 633 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise. 634 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise. 635 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise. 636 637 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA} 638 is not empty. 639 (SDATA): Likewise. 640 (REL_SDATA): Likewise. 641 (REL_SBSS): Likewise. 642 (REL_SDATA2): Likewise. 643 (REL_SBSS2): Likewise. 644 (SBSS2): Define if ${NO_SMALL_DATA} is not empty. 645 (SDATA2): Likewise. 646 6472001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr> 648 649 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and 650 destructor in rom. 651 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise. 652 6532001-11-22 H.J. Lu <hjl@gnu.org> 654 655 * Makefile.in: Regenerated with automake based on automake 656 1.4-8 in RedHat 7.1. 657 6582001-11-22 Alan Modra <amodra@bigpond.net.au> 659 660 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define. 661 (config.status): Delete rule. 662 Add extra dependencies to cover sourced emulparams files. 663 * Makefile.in: Regenerate. 664 665 * scripttempl/elf.sc: Order <section>, <section>.* and 666 corresponding linkonce sections as seen in input files. 667 Formatting fixes. Zero vma of all sections if not relocating. 668 (STACK): Define and insert if STACK_ADDR defined. 669 (OTHER_RELOCATING_SECTIONS): Delete. 670 (OTHER_END_SYMBOLS): Define. 671 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating. 672 (OTHER_READWRITE_SECTIONS): Likewise. 673 (OTHER_GOT_SECTIONS): Likewise. 674 (OTHER_SDATA_SECTIONS): Likewise. 675 (OTHER_BSS_SECTIONS): Likewise. 676 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise. 677 (OTHER_READWRITE_SECTIONS): Likewise. 678 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise. 679 (OTHER_READWRITE_SECTIONS): Likewise 680 681 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete. 682 (STACK_ADDR): Define. 683 * emulparams/armelf_oabi.sh: As for armelf.sh. 684 * emulparams/elf32mcore.sh: As for armelf.sh. 685 * emulparams/h8300elf.sh: As for armelf.sh. 686 * emulparams/mn10200.sh: As for armelf.sh. 687 * emulparams/shelf.sh: As for armelf.sh. 688 689 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete. 690 (OTHER_END_SYMBOLS): Define. 691 * emulparams/m32relf.sh: As for elf32fr30.sh. 692 * emulparams/h8300helf.sh: As for elf32fr30.sh. 693 * emulparams/h8300self.sh: As for elf32fr30.sh. 694 695 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol 696 defines with RELOCATING test. 697 (OTHER_SDATA_SECTIONS): Likewise. 698 (OTHER_RELOCATING_SECTIONS): Delete, replacing with.. 699 (OTHER_END_SYMBOLS): ..this. 700 * emulparams/crislinux.sh: As for criself.sh. 701 702 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma 703 if not relocating. 704 (OTHER_RELOCATING_SECTIONS): Delete, replacing with.. 705 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order 706 normal and linkonce sections as seen in input files. 707 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED. 708 (TEXT_DYNAMIC): Likewise. 709 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating. 710 (OTHER_SDATA_SECTIONS): Likewise. 711 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise. 712 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise. 713 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise. 714 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise. 715 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise. 716 (OTHER_PLT_RELOC_SECTIONS): Likewise. 717 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce 718 sections as seen in input files. 719 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh. 720 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma 721 if not relocating. 722 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise. 723 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh. 724 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete. 725 (OTHER_SECTIONS): Instead, use this.. 726 (OTHER_END_SYMBOLS): ..and this. 727 728 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates. 729 * emulparams/elf32bsmip.sh: Likewise. 730 * emulparams/elf32btsmip.sh: Likewise. 731 * emulparams/elf32ebmip.sh: Likewise. 732 * emulparams/elf32lmip.sh: Likewise. 733 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates. 734 * emulparams/elf32lsmip.sh: Likewise. 735 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates. 736 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates. 737 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates. 738 * emulparams/elf64btsmip.sh: Likewise. 739 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates. 740 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates. 741 * emulparams/elf32ppclinux.sh: Likewise. 742 * emulparams/elf32ppcsim.sh: Likewise. 743 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates. 744 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates. 745 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates. 746 * emulparams/h8300self.sh: Likewise. 747 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates. 748 * emulparams/sh.sh: Comment. 749 * emulparams/shl.sh: Source sh.sh, remove duplicates. 750 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates. 751 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates. 752 7532001-11-21 David Heine <dlheine@tensilica.com> 754 Alan Modra <amodra@bigpond.net.au> 755 756 * ldlang.c (map_input_to_output_sections): Replace "break" 757 accidentally removed with 2001-08-03 change. 758 (lang_gc_sections_1): Likewise. 759 7602001-11-21 Alan Modra <amodra@bigpond.net.au> 761 762 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop. 763 7642001-11-20 Angela Marie Thomas <angela@redhat.com> 765 766 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead 767 of false when calling lang_size_sections. 768 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise. 769 7702001-11-15 Alan Modra <amodra@bigpond.net.au> 771 772 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this 773 function when LDEMUL_FINISH isn't set to the same name. Don't 774 call ${LDEMUL_FINISH}. 775 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined. 776 * emultempl/armelf.em (arm_elf_finish): Call 777 gld${EMULATION_NAME}_finish. 778 * emultempl/hppaelf.em (hppaelf_finish): Rename to 779 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and 780 hppaelf_layout_sections_again if necessary. 781 (need_laying_out): New var. 782 (hppaelf_layaout_sections_again): Rename to 783 hppaelf_layout_sections_again. Clear need_laying_out. 784 (PARSE_AND_LIST_OPTIONS): Format text. 785 7862001-11-14 H.J. Lu <hjl@gnu.org> 787 788 * emultempl/armelf.em (arm_elf_finish): Renamed from 789 gld${EMULATION_NAME}_finish. 790 (LDEMUL_FINISH): Set to arm_elf_finish. 791 7922001-11-14 Daniel Jacobowitz <drow@mvista.com> 793 794 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New. 795 (struct ld_emulation_xfer_struct): Use it. 796 7972001-11-13 Ross Alexander <ross.alexander@uk.neceur.com> 798 799 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add 800 additional symbols referenced by newer crt0.o files from HP. 801 8022001-11-12 Anthony Green <green@redhat.com> 803 804 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol. 805 8062001-11-12 Alfred M. Szmidt <ams@kemisten.nu> 807 808 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}. 809 * Makefile.in: Regenerate. 810 8112001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr> 812 813 * ld.texinfo: Use @command for commands, @option for options. 814 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for 815 the page man title. 816 * Makefile.in: Rebuild. 817 8182001-11-04 Chris Demetriou <cgd@broadcom.com> 819 820 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*): 821 Add support for targets. 822 8232001-11-02 Nick Clifton <nickc@cambridge.redhat.com> 824 825 * configure.in (ALL_LINGUAS): Add "fr" and "sv" 826 * configure: Regernate. 827 * po/fr.po: New file. 828 * po/sv.po: New file. 829 8302001-11-01 NIIBE Yutaka <gniibe@m17n.org> 831 832 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls 833 as little endian default and to support big endian. 834 8352001-11-01 Chris Demetriou <cgd@broadcom.com> 836 837 * ld.texinfo (Options): Document new option, -nostdlib. 838 * lexsup.c (OPTION_NOSTDLIB): New definition. 839 (ld_options): Add entry for "nostdlib". 840 (parse_args): Handle OPTIONS_NOSTDLIB. 841 * ldfile.c (ldfile_add_library_path): Don't add directories 842 to the search path if they weren't specified on the command line 843 and -nostdlib was specified. 844 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs. 845 8462001-10-31 Nick Clifton <nickc@cambridge.redhat.com> 847 848 * lexsup.c (parse_args): Prevent infinite parsing loop when 849 "-rpath.a" is specified on the command line. 850 Replace calls to fprintf with calls to einfo. 851 8522001-10-31 John Marshall <jmarshall@acm.org> 853 854 * ld.texinfo: A historical requirement that MEMORY and SECTIONS 855 appear only once across all the linker scripts involved in a link 856 invocation no longer applies. Make the documentation reflect 857 that. 858 8592001-10-31 NIIBE Yutaka <gniibe@m17n.org> 860 861 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu 862 targets. 863 (sh-*-linux*): Added targ_extra_libpath. 864 8652001-10-31 David Heine <dlheine@tensilica.com> 866 867 * ldlang.c (lang_size_sections): Keep a valid output_offset field 868 for padding statements. 869 8702001-10-30 Hans-Peter Nilsson <hp@bitrange.com> 871 872 * configure.tgt (mmix-*-*): New target. 873 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o. 874 Add dependencies to match. 875 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em, 876 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, 877 scripttempl/mmo.sc: New files. 878 * gen-doc.texi: @set MMIX. 879 * ld.texinfo: Ditto. 880 [MMIX] Add MMIX node. 881 * Makefile.in: Regenerate. 882 8832001-10-29 Kazu Hirata <kazu@hxi.com> 884 885 * ldlang.c: Fix a comment typo. 886 8872001-10-23 Alan Modra <amodra@bigpond.net.au> 888 889 * configure.host: Move alpha*-*-linux-gnu* entry to generic 890 entries, and match *-*-linux*. 891 8922001-10-20 Alan Modra <amodra@bigpond.net.au> 893 894 * ldgram.y (mri_script_command): Surround processing of INCLUDE 895 with ldlex_script, ldlex_popstate. 896 (ifile_p1): Likewise. 897 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the 898 correct slot. 899 (lex_push_file): Save current lineno to lineno_stack. Set lineno 900 to 1. Don't BEGIN(SCRIPT). 901 (lex_redirect): Similarly. 902 * ldmain.c (main): Set yydebug non-zero if YYDEBUG. 903 9042001-10-20 Nick Clifton <nickc@cambridge.redhat.com> 905 906 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and 907 __EH_FRAME_END__ and accept eh frames into data section. 908 Add ctor and dtor sections. 909 9102001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz> 911 912 * pe-dll.c (autofilter_objectlist): Add gcrt0.o. 913 (auto-export): Fix indentation. 914 9152001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz> 916 917 * pe-dll.c (autofilter_objectlist): Add startup objects 918 for profiling. 919 (auto-export): Constify char * p. 920 Extract file basename and use strcmp rather than ststr 921 for object lookup. 922 9232001-10-18 Chris Demetriou <cgd@broadcom.com> 924 925 * ldmain.c (get_emulation): Improve comment about the handling 926 of -mipsN options. 927 9282001-10-17 Alan Modra <amodra@bigpond.net.au> 929 930 * po/POTFILES.in: Regenerate. 931 9322001-10-16 Vassili Karpov <malc@pulsesoft.com> 933 934 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from 935 -z nocopyreloc and -z nocombreloc usage strings. 936 9372001-10-12 Vassili Karpov <malc@pulsesoft.com> 938 939 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc 940 in usage. 941 9422001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com> 943 944 * scripttempl/armaout.sc: Place .bss section after end of aligned 945 data section to match behaviour of aout code in constructrion of 946 header. 947 9482001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz> 949 950 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add 951 startup files for mingw32 dlls to list. 952 9532001-10-10 Chris Demetriou <cgd@broadcom.com> 954 955 * emultempl/elf32.em: Fix shell 'if' usage for portability. 956 9572001-10-08 Aldy Hernandez <aldyh@redhat.com> 958 959 * configure.tgt (targ): Add arm9e-*-elf. 960 9612001-10-05 H.J. Lu <hjl@gnu.org> 962 963 * genscripts.sh: Fix a typo in the last change. 964 9652001-10-05 Jakub Jelinek <jakub@redhat.com> 966 967 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and 968 -z nocombreloc in usage. 969 9702001-10-03 Jim Blandy <jimb@redhat.com> 971 972 * genscripts.sh: Include a comment at the top of each generated 973 script, explaining its purpose. 974 9752001-10-03 Vassili Karpov <malc@pulsesoft.com> 976 977 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc. 978 * NEWS: Mention -z nocopyreloc. 979 * ld.texinfo (Options): Describe nocopyreloc. 980 9812001-10-03 Alan Modra <amodra@bigpond.net.au> 982 983 * configure: Regenerate. 984 9852001-10-02 Alan Modra <amodra@bigpond.net.au> 986 987 * ldver.h (ld_program_version): Remove declaration. 988 * lexsup.c (parse_args): Move printing of copyright message.. 989 * ldver.c (ldversion): .. to here. 990 Use BFD_VERSION_STRING in place of BFD_VERSION. 991 (ld_program_version): Remove. 992 * Makefile.am (Makefile): Depend on bfd/configure.in. 993 Run "make dep-am". 994 * Makefile.in: Regenerate. 995 9962001-09-30 Hans-Peter Nilsson <hp@bitrange.com> 997 998 * Makefile.am: Update dependencies with "make dep-am". 999 * Makefile.in: Regenerate. 1000 10012001-09-29 John Reiser <jreiser@BitWagon.com> 1002 1003 * ldlang.c (lang_common): Conditionally inhibit Common allocation. 1004 * lexsup.c: Add --no-define-common commandline option. 1005 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command. 1006 * ldlex.l: Likewise. 1007 * ld.h: Add command_line.inhibit_common_definition. 1008 * ldmain.c (main): Initialize. 1009 * ld.texinfo: Document. 1010 10112001-09-26 Alan Modra <amodra@bigpond.net.au> 1012 1013 * ldmisc.c (USE_STDARG): Remove. 1014 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE. 1015 (einfo): Likewise. 1016 (minfo): Likewise. 1017 (lfinfo): Likewise. 1018 1019 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi 1020 declarations. Update copyright. 1021 10222001-09-24 Charles Wilson <cwilson@ece.gatech.edu> 1023 1024 * pe-dll.c: Remove obsoleted declaration of 1025 pe_get_data_import_dll_name. 1026 (pe_create_import_fixup): Fix thinko. 1027 1028 * ld.texinfo(enable-auto-import): Clarify the explanation. 1029 10302001-09-24 Nick Clifton <nickc@cambridge.redhat.com> 1031 1032 * pe-dll.c (pe_create_import_fixup): Revert previous patch. 1033 * emultemp/pe.em (pe_data_import_dll): Move definition outside of 1034 DLL_SUPPORT controlled code. 1035 10362001-09-24 Charles Wilson <cwilson@ece.gatech.edu> 1037 1038 * emultempl/pe.em(pe_data_import_dll): Make static. 1039 (pe_get_data_import_dll_name): New accessor function. 1040 * pe-dll.c(pe_create_import_fixup): call 1041 pe_get_data_import_dll_name() from pe.em, instead of 1042 directly accessing pe_data_import_dll variable from pe.em. 1043 10442001-09-18 Bruno Haible <haible@clisp.cons.org> 1045 1046 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>. 1047 (def_file_add_directive): Use ISSPACE instead of isspace. 1048 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of 1049 isdigit/isxdigit/isalpha/isalnum. 1050 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>. 1051 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace. 1052 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>. 1053 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of 1054 isalnum. 1055 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>. 1056 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of 1057 isupper/tolower. 1058 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>. 1059 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit. 1060 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>. 1061 (ctor_prio): Use ISDIGIT instead of isdigit. 1062 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>. 1063 (ldfile_open_file_search): Use ISALPHA instead of isalpha. 1064 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of 1065 isupper/tolower. 1066 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>. 1067 (stricpy): Use TOLOWER instead of isupper/tolower. 1068 (lang_leave_overlay_section): Use ISALNUM instead of isalnum. 1069 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>. 1070 (lex_warn_invalid): Use ISPRINT instead of isprint. 1071 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>. 1072 (main): For gettext, also set the LC_CTYPE locate facet. 1073 (add_keepsyms_file): Use ISSPACE instead of isspace. 1074 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>. 1075 (is_num, parse_args): Use ISDIGIT instead of isdigit. 1076 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>. 1077 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum. 1078 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>. 1079 (gldppcmacos_read_file): Use ISSPACE instead of isspace. 1080 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>. 1081 (quoteput): Use ISSPACE instead of isspace. 1082 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM 1083 instead of isalnum. 1084 10852001-09-18 Alan Modra <amodra@bigpond.net.au> 1086 1087 * deffilep.y (def_stash_module): Constify "name" param. 1088 1089 * pe-dll.c: Replace CONST with const throughout. 1090 (quick_symbol): Constify "n1", "n2", "n3" params. 1091 (make_singleton_name_thunk): Constify "import" param. Make 1092 "buffer_len" a size_t. 1093 (make_import_fixup_entry): Constify "name", "fixup_name", 1094 "dll_symname" params. 1095 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread. 1096 (pe_get32): Likewise. 1097 (pe_implied_import_dll): Likewise. 1098 1099 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb". 1100 (sort_by_section_name): Likewise. 1101 1102 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included. 1103 (make_import_fixup): Cast printf arg, rel->address to long rather 1104 than int. 1105 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int. 1106 11072001-09-15 Alan Modra <amodra@bigpond.net.au> 1108 1109 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX 1110 defines BufferSize. Increase buffer size by one. 1111 11122001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de> 1113 1114 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak. 1115 11162001-09-14 Kevin Lo <kevlo@openbsd.org> 1117 1118 * configure.tgt: Add arm-openbsd target. 1119 11202001-09-12 H.J. Lu <hjl@gnu.org> 1121 1122 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and 1123 eelf64lppc.o to ... 1124 (ALL_64_EMULATIONS): Here. 1125 * Makefile.in: Regenerated. 1126 11272001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com> 1128 1129 * emultempl/pe.em(make_import_fixup): change signature to 1130 take asection as well as arelec; we need this for proper 1131 error reporting. Only call pe_create_import_fixup() if 1132 there is no attempt to add a constant addend to the reloc; 1133 otherwise, report error condition. 1134 * pe-dll.c(pe_walk_relocs_of_symbol): change signature, 1135 since final argument is a pointer to make_import_fixup(). 1136 Change call to cb() to match make_import_fixup() signature. 1137 (make_import_fixup_mark): make buffer_len unsigned. 1138 * pe-dll.h: change signature of pe_walk_relocs_of_symbol. 1139 11402001-09-12 Charles Wilson <cwilson@ece.gatech.edu> 1141 1142 * ld.texinfo: add verbose documentation for auto-import 1143 direct-addressing workaround, to compliment the terse 1144 error message. 1145 11462001-09-12 Andrew MacLeod <amacleod@redhat.com> 1147 1148 * scripttempl/v850.sc: Add gcc_except_table sections. 1149 11502001-09-11 Jeffrey A Law (law@cygnus.com) 1151 1152 * emulparams/h8300helf.sh: Move stack to a much higher memory address. 1153 * emulparams/h8300self.sh: Similarly. 1154 11552001-09-05 Danny Smith <dannysmith@users.souceforge.net> 1156 1157 * ld.texinfo (Options, --stack): Correct default value for stack 1158 reserve. 1159 11602001-09-05 Tom Rix <trix@redhat.com> 1161 1162 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols. 1163 11642001-09-03 Andreas Jaeger <aj@suse.de> 1165 1166 * emultempl/beos.em: Declare prototypes for comparions functions, 1167 adjust definitions. 1168 11692001-09-02 Andreas Jaeger <aj@suse.de> 1170 1171 * emultempl/aix.em: Add missing prototype. 1172 * emultempl/lnk960.em: Likewise. 1173 * emultempl/vanilla.em: Likewise. 1174 * emultempl/armcoff.em: Likewise. 1175 * emultempl/armelf_oabi.em: Likewise. 1176 * emultempl/beos.em: Likewise. 1177 * emultempl/gld960c.em: Likewise. 1178 * emultempl/gld960.em: Likewise. 1179 1180 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter 1181 for prototype declaration. 1182 11832001-08-31 Eric Christopher <echristo@redhat.com> 1184 Jason Eckhardt <jle@redhat.com> 1185 1186 * ldmain.c (get_emulation): Add support for -mips32 and -mips64. 1187 11882001-08-31 Andreas Jaeger <aj@suse.de> 1189 1190 * emultempl/pe.em: Add missing prototypes. 1191 (gld_${EMULATION_NAME}_after_open): Remove extra args to 1192 pe_find_data_imports. 1193 (pr_sym): Add unused attribute. 1194 11952001-08-29 Joel Sherrill <joel@OARcorp.com> 1196 1197 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change 1198 default from coff to elf. 1199 12002001-08-29 Jeff Law <law@redhat.com> 1201 1202 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update 1203 ARCH specification. 1204 * emulparams/h8300self.sh: Similarly. 1205 12062001-08-28 J"orn Rennecke <amylaar@redhat.com> 1207 1208 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and 1209 eh8300self.o . 1210 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets. 1211 * configure.tgt (h8300-*-elf*): New case. 1212 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files. 1213 * emulparams/h8300self.sh: New file. 1214 * Makefile.in: Regenerated. 1215 12162001-08-28 Nick Clifton <nickc@cambridge.redhat.com> 1217 1218 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision 1219 with macro name. 1220 12212001-08-27 Linus Nordberg <linus@swox.com> 1222 Alan Modra <amodra@bigpond.net.au> 1223 1224 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o. 1225 (eelf64ppc.c, eelf64lppc.c): Add make targets. 1226 Run "make dep-am" 1227 * Makefile.in: Regenerate. 1228 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj 1229 entries to correct alphabetical position. 1230 * emulparams/elf64ppc.sh: New. 1231 * emulparams/elf64lppc.sh: New. 1232 12332001-08-27 Nick Clifton <nickc@cambridge.redhat.com> 1234 1235 * ldmain.c (main): Declare BSIZE as static. 1236 12372001-08-23 Jakub Jelinek <jakub@redhat.com> 1238 1239 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections 1240 into .rel.dyn resp. .rela.dyn if combreloc. 1241 (get_script): If .x linker script is equal to .xn, only put it 1242 once into the binary. 1243 Add .xc and .xsc scripts. 1244 (parse_args): Handle -z combreloc and -z nocombreloc. 1245 * scripttempl/elf.sc (.rela.sbss): Fix a typo. 1246 For .xc and .xsc scripts put all .rel* or .rela* input sections 1247 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn. 1248 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME 1249 is elf. 1250 Strip trailing whitespace from script. 1251 Generate .xc and .xsc scripts if requested. 1252 * ldmain.c (main): Initialize link_info.combreloc and 1253 link_info.spare_dynamic_tags. 1254 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define. 1255 (ld_options): Add --spare-dynamic-tags option. 1256 (parse_args): Likewise. 1257 * ld.texinfo: Document -z combreloc and -z nocombreloc. 1258 * ldint.texinfo: Document .xc and .xsc linker scripts. 1259 * NEWS: Add notes about -z combreloc and SHF_MERGE. 1260 12612001-08-22 H.J. Lu <hjl@gnu.org> 1262 1263 * emulparams/elf32fr30.sh: Add a newline. 1264 12652001-08-21 Andreas Jaeger <aj@suse.de> 1266 1267 * deffilep.y: Add missing prototypes. 1268 * pe-dll.c: Likewise. 1269 12702001-08-20 Alan Modra <amodra@bigpond.net.au> 1271 1272 * ldlang.c (insert_pad): Fix typos in last patch. 1273 1274 * ldlang.c: When traversing lang_statement_union_type lists, 1275 consistently use "header.next" rather than "next". 1276 * mpw-eppcmac.c: Likewise. 1277 * emultempl/beos.em: Likewise. 1278 * emultempl/hppaelf.em: Likewise. 1279 * emultempl/pe.em: Likewise. 1280 * ldlang.h (union lang_statement_union): Remove "next" field. 1281 1282 * ldlang.c (insert_pad): Use offsetof macro. 1283 (lang_size_sections): Always neuter padding statements. 1284 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete. 1285 1286 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param 1287 passed to lang_size_sections. 1288 (pe_exe_fill_sections): Likewise. 1289 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em. 1290 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em. 1291 12922001-08-18 Alan Modra <amodra@bigpond.net.au> 1293 1294 * emultempl/aix.em: Formatting fixes. 1295 12962001-08-18 Alan Modra <amodra@bigpond.net.au> 1297 1298 * ldlang.c (insert_pad): Make use of an existing pad statement if 1299 available. Move code calculating alignment, adjusting section 1300 alignment power, and adjusting dot to .. 1301 (size_input_section): .. here. Remove unused relax param. 1302 (lang_size_sections): Change boolean `relax' param to boolean *. 1303 Adjust call to size_input_section. Make use of insert_pad to 1304 place pad after the assignment statement. If relaxing, zap 1305 padding statements. 1306 (reset_memory_regions): Reset output_bfd section sizes too. 1307 (relax_again): Move to.. 1308 (lang_process): ..here. Adjust call to lang_size_sections, and 1309 remove duplicated code. 1310 * ldlang.h (lang_size_sections): Change `relax' param to boolean *. 1311 13122001-08-17 Alan Modra <amodra@bigpond.net.au> 1313 1314 * ld.texinfo: Document that fill values now use the four least 1315 significant bytes. 1316 * emulparams/elf32fr30.sh (NOP): Update. 1317 * emulparams/elf32mcore.sh: Likewise. 1318 * emulparams/elf64_s390.sh: Likewise. 1319 * emulparams/elf_i386.sh: Likewise. 1320 * emulparams/elf_i386_be.sh: Likewise. 1321 * emulparams/elf_i386_chaos.sh: Likewise. 1322 * emulparams/elf_i386_ldso.sh: Likewise. 1323 * emulparams/elf_s390.sh: Likewise. 1324 * emulparams/elf_x86_64.sh: Likewise. 1325 * emulparams/i386moss.sh: Likewise. 1326 * emulparams/i386nw.sh: Likewise. 1327 * emulparams/m68kelf.sh: Likewise. 1328 * scripttempl/elf.sc: Update NOP comment. 1329 * scripttempl/elfi370.sc: Likewise. 1330 * scripttempl/elfm68hc11.sc: Likewise. 1331 * scripttempl/elfm68hc12.sc: Likewise. 1332 * scripttempl/nw.sc: Likewise. 1333 13342001-08-15 Tom Rix <trix@redhat.com> 1335 1336 * ldgram.y (saved_script_handle): Initialize to NULL. 1337 * ldmain.c (main): Change check on saved_script_handle. 1338 13392001-08-14 Alan Modra <amodra@bigpond.net.au> 1340 1341 * emultempl/elf32.em: Formatting fixes. 1342 (output_prev_sec_find): Test for bfd_ind_section too; do so by 1343 looking at sec->owner. 1344 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test. 1345 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove 1346 unused code, and reorganize orphan section placement code. 1347 1348 * ldlang.c (wild_doit): Rename to lang_add_section. 1349 * ldlang.h: Here too. 1350 * mpw-elfmips.c: And here. 1351 * emultempl/beos.em: And here. 1352 * emultempl/elf32.em: And here. 1353 * emultempl/hppaelf.em: And here. 1354 * emultempl/pe.em: And here. 1355 13562001-08-13 Richard Henderson <rth@redhat.com> 1357 1358 * emultempl/needrelax.em: New file. 1359 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it. 1360 * Makefile.am (eelf64_ia64.c): Depend on it. 1361 * Makefile.in: Rebuild. 1362 13632001-08-13 Alan Modra <amodra@bigpond.net.au> 1364 1365 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that 1366 output_section is set non-NULL. 1367 1368 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return 1369 `true' for SEC_EXCLUDE sections so that the generic code doesn't 1370 needlessly create an output_section_statement. Treat a correctly 1371 named output_section_statement with NULL bfd_section as compatible. 1372 13732001-08-13 Hans-Peter Nilsson <hp@bitrange.com> 1374 1375 * emultempl/generic.em: Support EXTRA_EM_FILE. 1376 (ld_${EMULATION_NAME}_emulation): Support emulation parameters 1377 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL, 1378 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION, 1379 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET, 1380 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH, 1381 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS, 1382 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN, 1383 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE, 1384 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE, 1385 LDEMUL_FIND_POTENTIAL_LIBRARIES. 1386 13872001-08-12 Richard Henderson <rth@redhat.com> 1388 1389 * scripttempl/elf.sc, scripttempl/elfd30v.sc, 1390 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc, 1391 scripttempl/v850.sc: Keep .jcr data. 1392 13932001-08-12 H.J. Lu <hjl@gnu.org> 1394 Andrew Haley <aph@cambridge.redhat.com> 1395 Nick Clifton <nickc@redhat.com> 1396 1397 * ldgram.y (had_script): Change name to saved_script_handle. 1398 Change type to file handle. 1399 * ld.h (had_script): Rename and retype. 1400 * ldfile.c (ldfile_open_command_file): Save the file handle 1401 used in saved_script_handle. 1402 * lexsup.c (parse_args): Do not allow -c option to alter 1403 saved_script_handle. 1404 * ldmain.c (main): Print out the linker script used if 1405 --verbose is given. Check saved_script_handle to obtain the 1406 external linker script used, or if NULL, dump the builtin 1407 script. 1408 * ld.texinfo: Document that --verbose now dumps the linker 1409 script used, regardless of whether it was an internal or an 1410 external script. 1411 14122001-08-10 Andreas Jaeger <aj@suse.de> 1413 1414 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes 1415 to build warnings. 1416 * configure: Regenerate. 1417 14182001-08-09 Alan Modra <amodra@bigpond.net.au> 1419 1420 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype. 1421 1422 * scripttempl/elf.sc: Move non-text .dynamic section before 1423 .plt/.got/.sdata* group. 1424 (OTHER_GOT_SECTIONS): Move to immediately after .got. 1425 (OTHER_SDATA_SECTIONS): Add. 1426 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than 1427 OTHER_GOT_SECTIONS. 1428 * emulparams/crislinux.sh: Likewise. 1429 * emulparams/elf32b4300.sh: Likewise. 1430 * emulparams/elf32bmip.sh: Likewise. 1431 * emulparams/elf32bmipn32.sh: Likewise. 1432 * emulparams/elf32bsmip.sh: Likewise. 1433 * emulparams/elf32btsmip.sh: Likewise. 1434 * emulparams/elf32ebmip.sh: Likewise. 1435 * emulparams/elf32elmip.sh: Likewise. 1436 * emulparams/elf32l4300.sh: Likewise. 1437 * emulparams/elf32lmip.sh: Likewise. 1438 * emulparams/elf32lsmip.sh: Likewise. 1439 * emulparams/elf32ltsmip.sh: Likewise. 1440 * emulparams/elf64bmip.sh: Likewise. 1441 * emulparams/elf64btsmip.sh: Likewise. 1442 * emulparams/elf64ltsmip.sh: Likewise. 1443 14442001-08-08 Alan Modra <amodra@bigpond.net.au> 1445 1446 * genscripts.sh: Source the emulparams script before each output 1447 script is generated so that variables like `RELOCATING' may affect 1448 variables defined in the emulparams script. 1449 14502001-08-04 Alan Modra <amodra@bigpond.net.au> 1451 1452 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this 1453 order. 1454 1455 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change, 1456 ie. iterate over wild_statement.section_list. 1457 (gld${EMULATION_NAME}_place_orphan): Likewise. 1458 14592001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr> 1460 1461 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle 1462 .fini[0-4] sections used by _exit 1463 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM. 1464 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*. 1465 * scripttempl/elfm68hc11.sc: Likewise. 1466 14672001-08-03 H.J. Lu <hjl@gnu.org> 1468 1469 * emultempl/beos.em (init): Add the missing initialization. 1470 14712001-08-03 Alan Modra <amodra@bigpond.net.au> 1472 1473 * ld.texinfo (Input Section Basics): Clarify ordering of output 1474 sections. 1475 * ldlang.c (callback_t): Add wildcard_list param. 1476 (walk_wild_section): Remove "section" param. Rewrite for 1477 lang_wild_statement_type change. Remove unique_section_p test. 1478 (walk_wild_file): Remove "section" param. 1479 (walk_wild): Remove "section" and "file" params. 1480 (lang_gc_wild): Likewise. 1481 (wild): Likewise. Modify for lang_wild_statement_type change. 1482 (wild_sort): Likewise. Add "sec" param. 1483 (gc_section_callback): Likewise. 1484 (output_section_callback): Likewise. Do unique_section_p test. 1485 (map_input_to_output_sections): Modify call to wild. 1486 (lang_gc_sections_1): Likewise. 1487 (print_wild_statement): Modify for lang_wild_statement_type 1488 change. 1489 (lang_add_wild): Replace filename, filenames_sorted param with 1490 filespec. Replace section_name, sections_sorted, 1491 exclude_filename_list with section_list. 1492 * ldlang.h (lang_add_wild): Here too. 1493 (lang_wild_statement_type): Replace section_name, sections_sorted, 1494 and exclude_filename_list with section_list. 1495 * ldgram.y (current_file): Delete. 1496 (%union): Add wildcard_list. 1497 (file_NAME_list): Set type to wildcard_list. Build a linked list 1498 rather than calling lang_add_wild for each entry. 1499 (input_section_spec_no_keep): Call lang_add_wild here instead. 1500 * ld.h (struct wildcard_list): Declare. 1501 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild. 1502 15032001-08-02 Charles Wilson <cwilson@ece.gatech.edu> 1504 1505 * ldmain.c (main): initialize link_info.pei386_auto_import 1506 * pe-dll.c: new tables for auto-export filtering 1507 (auto_export): change API, pass abfd for contextual filtering. 1508 Loop thru tables of excluded symbols instead of comparing 1509 "by hand". 1510 15112001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com> 1512 1513 * pe-dll.c: new variable pe_dll_enable_extra_debug. New 1514 static variable current_sec (static struct sec *). Add 1515 forward declaration for add_bfd_to_link. 1516 (process_def_file): Don't export undefined symbols. Do not 1517 export symbols starting with "_imp__". Call auto_export() 1518 with new API. 1519 (pe_walk_relocs_of_symbol): New function. 1520 (generate_reloc): add optional extra debugging 1521 (pe_dll_generate_def_file): eliminate extraneous initial blank 1522 line in output 1523 (make_one): enlarge symtab to make room for __nm__ symbols 1524 (DATA auto-import support). 1525 (make_singleton_name_thunk): New function. 1526 (make_import_fixup_mark): New function. 1527 (make_import_fixup_entry): New function. 1528 (pe_create_import_fixup): New function. 1529 (add_bfd_to_link): Specify that 'name' argument is a CONST 1530 char *. 1531 * pe-dll.h: declare new variable pe_dll_extra_pe_debug; 1532 declare new functions pe_walk_relocs_of_symbol and 1533 pe_create_import_fixup. 1534 * emultempl/pe.em: add new options --enable-auto-import, 1535 --disable-auto-import, and --enable-extra-pe-debug. 1536 (make_import_fixup): New function. 1537 (pe_find_data_imports): New function. 1538 (pr_sym): New function. 1539 (gld_${EMULATION_NAME}_after_open): Add optional extra pe 1540 debugging. Call pe_find_data_imports. Mark .idata as DATA, not 1541 CODE. 1542 15432001-08-02 Charles Wilson <cwilson@ece.gatech.edu> 1544 1545 * ld.texinfo: add additional documentation for 1546 --export-all-symbols. Document --out-implib, 1547 --enable-auto-image-base, --disable-auto-image-base, 1548 --dll-search-prefix, --enable-auto-import, and 1549 --disable-auto-import. 1550 * ldint.texinfo: Add detailed documentation on auto-import 1551 implementation. 1552 15532001-07-30 Nick Clifton <nickc@cambridge.redhat.com> 1554 1555 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS 1556 example. 1557 15582001-07-24 Alan Modra <amodra@bigpond.net.au> 1559 1560 * Makefile.am: Update dependencies with "make dep-am". 1561 * Makefile.in: Regenerate 1562 15632001-07-23 Alan Modra <amodra@bigpond.net.au> 1564 1565 * ldcref.c (check_section_sym_xref): New function. 1566 (check_nocrossrefs): Call it. 1567 (check_nocrossref): Interate over h->refs here instead of.. 1568 (check_refs): ..here. Pass in the symbol name, section, and bfd 1569 rather than hash_entry pointers. 1570 (struct check_refs_info): Keep symbol name rather than hash entry. 1571 Remove "same". 1572 (check_reloc_refs): Tweak for above changes in check_refs_info. 1573 Only report references to section syms when symname is NULL to 1574 prevent duplicate messages for the same reloc. 1575 15762001-07-19 Nick Clifton <nickc@cambridge.redhat.com> 1577 1578 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not 1579 available. Do not print NULL trees. 1580 (exp_print_token): Print unknown tokens with values > 126 as 1581 decimal values not ASCII characters. 1582 1583 * ldlang.c (lang_leave_overlay): If a region is specified assign 1584 it to all sections inside the overlay unless they have been 1585 assigned to the own, non-default, memory region. 1586 1587 * README: Add header for consistency with other README files. 1588 15892001-07-14 H.J. Lu <hjl@gnu.org> 1590 1591 * emultempl/elf32.em (output_prev_sec_find): Never return 1592 bfd_abs_section_ptr, bfd_com_section_ptr nor 1593 bfd_und_section_ptr. 1594 15952001-07-14 Nick Clifton <nickc@cambridge.redhat.com> 1596 1597 * Makefile.am (em32relf.c): Change dependency from generic.em to 1598 elf32.em. 1599 * Makefile.in: Regenerate. 1600 16012001-07-14 matthew green <mrg@eterna.com.au> 1602 1603 * configure.tgt (i386-*-netbsdelf*): New target. 1604 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386' 1605 16062001-07-13 Jakub Jelinek <jakub@redhat.com> 1607 1608 * emultempl/elf32.em (output_prev_sec_find): New. 1609 (place_orphan): Use it. 1610 16112001-07-11 H.J. Lu <hjl@gnu.org> 1612 1613 * ldmain.c (main): Fix typos in the last change. 1614 16152001-07-11 Jakub Jelinek <jakub@redhat.com> 1616 1617 * ldmain.c (main): Disallow -F and -f without -shared. 1618 16192001-07-11 Nick Clifton <nickc@cambridge.redhat.com> 1620 1621 * emultempl/pe.em (after_open): Check for the output_bfd not 1622 having any coff_data structure allocated to it. 1623 16242001-07-09 David O'Brien <obrien@FreeBSD.org> 1625 1626 * emultempl/elf32.em: Do not assuming that contents of the buffer 1627 returned from basename function will remain unchanged accross other 1628 function calls. 1629 16302001-07-03 H.J. Lu <hjl@gnu.org> 1631 1632 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on 1633 2001-07-03. It creates dynamic entries even for static binaries. 1634 16352001-07-03 Jakub Jelinek <jakub@redhat.com> 1636 1637 * scripttempl/elf.sc (DYNAMIC_PAD): New variable. 1638 (DYNAMIC): Use it to reserve few dynamic entries for 1639 post-linking tools. 1640 16412001-06-27 Alan Modra <amodra@bigpond.net.au> 1642 1643 * emulparams/hppa64linux.sh: New file. 1644 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh 1645 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o 1646 (ehppa64linux.c): Add rule to make it. 1647 Run "make dep-am". 1648 * Makefile.in: Regenerate. 1649 16502001-06-21 Hans-Peter Nilsson <hp@axis.com> 1651 1652 * ld.texinfo (Options, -r): Mention restrictions when using 1653 different object formats. 1654 16552001-06-19 Hans-Peter Nilsson <hp@axis.com> 1656 1657 * ldlang.c (lang_check): Emit fatal error if relocatable link 1658 between different object flavours with relocations in input. 1659 16602001-06-19 H.J. Lu <hjl@gnu.org> 1661 1662 * ld.texinfo (-E, --export-dynamic): Mention --version-script. 1663 (--version-script): Mention the language support. 1664 16652001-06-19 H.J. Lu <hjl@gnu.org> 1666 1667 * ldlang.c (lang_check): Revert the change mode on 2001-06-15. 1668 16692001-06-18 H.J. Lu <hjl@gnu.org> 1670 1671 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'. 1672 (diststuff): Add $(MANS). 1673 * Makefile.in: Regenerated. 1674 1675 * ld.1: Removed. 1676 16772001-06-18 Hans-Peter Nilsson <hp@axis.com> 1678 1679 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): 1680 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections. 1681 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto. 1682 * ld.h (args_type): Remove member export_dynamic. All users 1683 changed to use struct bfd_link_info member. 1684 1685 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on 1686 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em. 1687 * Makefile.in: Regenerate. 1688 16892001-06-18 H.J. Lu <hjl@gnu.org> 1690 1691 * ldlang.c (init_os): Add the newline to the einfo call. 1692 (lang_check): Likewise. 1693 (lang_do_version_exports_section): Likewise. 1694 16952001-06-15 H.J. Lu <hjl@gnu.org> 1696 1697 * lexsup.c (parse_args); Save optind to report unrecognized 1698 option. 1699 17002001-06-15 Hans-Peter Nilsson <hp@axis.com> 1701 1702 * ldlang.c (lang_check): Emit fatal error if relocatable link 1703 between different object flavours. 1704 1705 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>: 1706 Set new link_info member export_dynamic. 1707 * ldmain.c (main): Initialize new link_info member export_dynamic. 1708 17092001-06-12 Nick Clifton <nickc@cambridge.redhat.com> 1710 1711 * ldlang.c (walk_wild): Only call walk_wild_file if 1712 lookup_name returns something. 1713 (lookup_name): If load_symbols fails, return NULL. 1714 (load_symbols): Change to a boolean function. 1715 (open_input_bfds): If load_symbols fails then do not make the 1716 executable. 1717 17182001-06-08 Alan Modra <amodra@bigpond.net.au> 1719 1720 * ldlang.c (record_bfd_errors): Remove. 1721 1722 * emultempl/aix.em: Fix copyright dates. 1723 17242001-06-07 Andreas Jaeger <aj@suse.de> 1725 1726 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase. 1727 (TEXT_START_ADDR): Likewise. 1728 17292001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com> 1730 1731 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390. 1732 17332001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz> 1734 1735 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000. 1736 17372001-05-31 H.J. Lu <hjl@gnu.org> 1738 1739 * ldlang.c (open_input_bfds): Don't change the bfd error 1740 handler whilst loading symbols. 1741 17422001-05-28 Nick Clifton <nickc@cambridge.redhat.com> 1743 1744 * configure.tgt: Remove i370-mvs architecture, it is not currently 1745 supported. 1746 17472001-05-25 H.J. Lu <hjl@gnu.org> 1748 1749 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK 1750 like emulparams/aixppc.sh. 1751 17522001-05-25 H.J. Lu <hjl@gnu.org> 1753 1754 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move 1755 setting of output_filename after bfd_scan_arch. 1756 * emultempl/pe.em: Likewise. 1757 17582001-05-25 H.J. Lu <hjl@gnu.org> 1759 1760 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK 1761 like emulparams/aixppc.sh. 1762 1763 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed 1764 instead of ${srcdir}/emultempl/stringify.sed. 1765 17662001-05-25 Timothy Wall <twall@oculustech.com> 1767 1768 * emulparams/elf64_aix.sh: Change settings to match IBM linker 1769 output. 1770 17712001-05-25 Alan Modra <amodra@one.net.au> 1772 1773 * configure.host: Replace linuxoldld with linux*oldld. 1774 * configure.tgt: Likewise. 1775 17762001-05-24 H.J. Lu <hjl@gnu.org> 1777 1778 * emultempl/stringify.sed: Removed again. 1779 17802001-05-24 H.J. Lu <hjl@gnu.org> 1781 1782 * emultempl/aix.em (OUTPUT_ARCH): Defined. 1783 (gld${EMULATION_NAME}_before_parse): Initialize 1784 ldfile_output_architecture, ldfile_output_machine and 1785 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible. 1786 * emultempl/beos.em: Likewise. 1787 * emultempl/elf32.em: Likewise. 1788 * emultempl/linux.em: Likewise. 1789 * emultempl/mipsecoff.em: Likewise. 1790 * emultempl/pe.em: Likewise. 1791 * emultempl/sunos.em: Likewise. 1792 17932001-05-24 Tom Rix <trix@redhat.com> 1794 1795 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file) 1796 udate import file format. 1797 (change_symbol_mode) New, same 1798 (is_syscall) New, same 1799 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK 1800 * emulparams/aixppc64.sh : same 1801 * emulparams/aixrs6.sh : same 1802 * emulparams/ppcmacos.sh : same 1803 * emultempl/aix.em : use strtoull to parse options 1804 * Makefile.am : add eaixppc64 emulation for xcoff64 1805 * Makefile.in : same 1806 * configure.tgt : same 1807 1808 * scripttempl/aix.sc : default text section offset to 0x10000000 1809 default data section offset to 0x20000000 1810 add .sv3264 and .sv64 pseudo sections 1811 loader and debug sections use the currect section offset. 1812 1813 * emultempl/aix.em : Add xcoff64 support 1814 Add -binitfini support 1815 (gld${EMULATION_NAME}_before_parse) -binitfini 1816 (gld${EMULATION_NAME}_parse_args) same 1817 (gld${EMULATION_NAME}_before_allocation) format change for special 1818 sections 1819 1820 * emulparams/aixppc64.sh : New file for xcoff64 support 1821 18222001-05-23 Alexandre Oliva <aoliva@redhat.com> 1823 1824 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new 1825 variable to avoid non-portable shell construct. 1826 18272001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 1828 1829 * ldmain.c (get_emulation): Add -mips5 command line argument. 1830 18312001-05-22 Alexandre Oliva <aoliva@redhat.com> 1832 1833 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh. 1834 (ELF_INTERPRETER_NAME): Define it. 1835 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use 1836 it. 1837 * configure.tgt (targ_emul, targ_extra_emuls) 1838 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso 1839 as primary, elf_i386 as extra. 1840 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o. 1841 (eelf_i386_ldso.c): New rule. 1842 * Makefile.in: Rebuilt. 1843 18442001-05-22 Nick Clifton <nickc@redhat.com> 1845 1846 * lexsup.c (ld_options): Allow -I to be an alias for 1847 --dynamic-linker. This is for Solaris compatability. 1848 * ld.texinfo: Document that -I can be used. 1849 * ld.1: Regenerate. 1850 18512001-05-16 Alan Modra <amodra@one.net.au> 1852 1853 * ldlang.c (wild_doit): Use linker_has_input to reliably determine 1854 whether an input section is the first one assigned to an output 1855 section. 1856 Assorted formatting fixes. 1857 18582001-05-14 DJ Delorie <dj@delorie.com> 1859 1860 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files. 1861 * Makefile.in: Ditto. 1862 18632001-05-11 Jakub Jelinek <jakub@redhat.com> 1864 1865 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put 1866 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind* 1867 output sections. 1868 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise. 1869 18702001-05-11 Jakub Jelinek <jakub@redhat.com> 1871 1872 * ldlang.c (lang_process): Call bfd_merge_sections. 1873 18742001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 1875 1876 * ldgram.y: Fix typo. 1877 18782001-05-03 H.J. Lu <hjl@gnu.org> 1879 1880 * emultempl/elf32.em: Include "libiberty.h". 1881 (gld${EMULATION_NAME}_vercheck): Call basename () to get the 1882 basename of the bfd filename. 1883 (gld${EMULATION_NAME}_stat_needed): Likewise. 1884 (gld${EMULATION_NAME}_try_needed): Likewise. 1885 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise. 1886 18872001-05-02 H.J. Lu <hjl@gnu.org> 1888 1889 * emultempl/pe.em: Include <ctype.h>. 1890 18912001-05-02 Johan Rydberg <jrydberg@opencores.org> 1892 1893 * emulparams/elf32openrisc.sh: New file. 1894 1895 * Makefile.am: Add OpenRISC target. 1896 * Makefile.in: Regenerated. 1897 1898 * configure.tgt: Add openrisc-*-* mapping. 1899 19002001-05-02 Nick Clifton <nickc@redhat.com> 1901 1902 * emultempl/aix.em: Replace buystring with xstrdup. 1903 * emultempl/beos.em: Replace buystring with xstrdup. 1904 19052001-05-02 H.J. Lu <hjl@gnu.org> 1906 1907 * ldfile.c: Include "libiberty.h". 1908 * ldlex.l: Likewise. 1909 1910 * ldmisc.c (buystring): Removed. 1911 * ldmisc.h: Likewise. 1912 1913 * ldfile.c: Replace buystring with xstrdup. 1914 * ldlang.c: Likewise. 1915 * ldlex.l: Likewise. 1916 * ldmain.c: Likewise. 1917 * ldmisc.c: Likewise. 1918 * lexsup.c: Likewise. 1919 * mpw-eppcmac.c: Likewise. 1920 19212001-04-30 Andreas Jaeger <aj@suse.de> 1922 1923 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value. 1924 19252001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com> 1926 1927 * ldlang.c (load_symbols): Give emulation a chance 1928 to process unrecognized file before fatal error is 1929 reported, not after. 1930 19312001-04-27 Sean McNeil <sean@mcneil.com> 1932 1933 * configure.tgt: Add arm-vxworks target. 1934 * scripttempl/armcoff.sc: Support .text or .data as a section name 1935 prefix. 1936 Define _etext. 1937 19382001-04-13 J.T. Conklin <jtc@redback.com> 1939 1940 * ld.texinfo: Document --fatal-warnings. 1941 * ld.1: Regenerate. 1942 1943 * ldmisc.c (vfinfo): Set flag to inhibit making executable if 1944 warnings have been turned into errors. 1945 * lexsup.c (OPTION_WARN_FATAL): Define. 1946 (ld_options): Entry for --fatal-warnings. 1947 (parse_args): Handle OPTION_WARN_FATAL. 1948 * ld.h (ld_config_type): Add fatal_warnings field. 1949 19502001-04-13 Jakub Jelinek <jakub@redhat.com> 1951 1952 * ldmain.c (main): Default to discard_sec_merge. 1953 * lexsup.c (OPTION_DISCARD_NONE): Define. 1954 (ld_options): Add --discard-none. 1955 (parse_args): Handle OPTION_DISCARD_NONE. 1956 * ldlang.c (wild_doit): SEC_MERGE should be set in the output 1957 section only if SEC_MERGE and SEC_STRINGS flags and entsize of 1958 all its input sections match. 1959 19602001-04-05 Steven J. Hill <sjhill@cotw.com> 1961 1962 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o. 1963 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o. 1964 (eelf32ltsmip.c): New target. 1965 (eelf64btsmip.c): Likewise. 1966 (eelf64ltsmip.c): Likewise. 1967 * Makefile.in: Regenerated. 1968 1969 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS 1970 target. 1971 (mips*-*-linux-gnu*): Likewise. 1972 1973 * emulparams/elf32ltsmip.sh: New. Traditional little endian 1974 MIPS taget. 1975 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian 1976 target. 1977 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little 1978 endian target. 1979 19802001-04-05 Hans-Peter Nilsson <hp@axis.com> 1981 1982 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide 1983 correct value of __Stext here. 1984 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of 1985 .startup section. 1986 1987 * emulparams/crislinux.sh: Remove FIXME. 1988 19892001-04-02 Alan Modra <alan@linuxcare.com.au> 1990 1991 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k. 1992 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise. 1993 19942001-03-27 Hans-Peter Nilsson <hp@axis.com> 1995 1996 * configure.tgt (cris-*-*): Change default emulation to criself. 1997 (cris-*-*aout*): New rule. 1998 19992001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com> 2000 2001 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000. 2002 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto. 2003 20042001-03-26 Andreas Jaeger <aj@suse.de> 2005 2006 * ld.texinfo (Overview): Fix syntax in texi code. 2007 20082001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr> 2009 2010 * ld.texinfo: Put @c man indications to generate the ld man page. 2011 When generating man, define all the variables. Define SEEALSO 2012 and SYNOPSIS. Re-organize some lines to avoid the cross references. 2013 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables. 2014 (ld.1): Generate from ld.texinfo. 2015 * Makefile.in: Regenerate. 2016 20172001-03-23 Mark Elbrecht <snowball3@bigfoot.com> 2018 2019 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections' 2020 and '-fdata-sections'. Set the VMA of STABS sections to zero. 2021 20222001-03-17 Ulrich Drepper <drepper@redhat.com> 2023 2024 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME 2025 is an absolute path look only for this file and not along the path. 2026 20272001-03-17 Ulrich Drepper <drepper@redhat.com> 2028 2029 * emultempl/elf32.em (OPTION_GROUP): New macro. 2030 Add new option Bgroup to longopts. 2031 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs. 2032 (gld*_list_options): Add -Bgroup and -z defs. 2033 * ld.1: Document -Bgroup and -z defs. 2034 * ld.texinfo: Likewise. 2035 20362001-03-07 Michael Meissner <meissner@redhat.com> 2037 2038 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal 2039 with sections created by -fdata-sections. 2040 (.dynbss,.bss): Ditto. 2041 20422001-03-05 Alan Modra <alan@linuxcare.com.au> 2043 2044 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call 2045 after_allocation_default, not gld..._before_allocation. 2046 20472001-02-27 Alan Modra <alan@linuxcare.com.au> 2048 2049 * configure.in (BFD_VERSION): New. 2050 (AM_INIT_AUTOMAKE): Use $BFD_VERSION. 2051 * configure: Regenerate. 2052 * Makefile.am: Run "make dep-am" 2053 * Makefile.in: Regenerate. 2054 20552001-02-26 Timothy Wall <twall@cygnus.com> 2056 2057 * emulparams/elf64_aix.sh: Add additional read-only sections; 2058 uncomment lines which are now required. 2059 20602001-02-26 H.J. Lu <hjl@gnu.org> 2061 2062 * ldlang.c (open_input_bfds): Set the bfd error handler so 2063 that problems can be caught whilst loading symbols. 2064 (record_bfd_errors): New function: Report BFD errors and mark 2065 the executable output as being invalid. 2066 20672001-02-22 Timothy Wall <twall@cygnus.com> 2068 2069 * configure.host: Add configuration for ia64-*-aix*. 2070 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*. 2071 Add dependencies for eelf64_aix.c. 2072 * Makefile.in: Regenerate. 2073 * configure.tgt: Add ia64-*-aix* mapping. 2074 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5. 2075 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from 2076 AIX-specific test. 2077 20782001-02-20 H.J. Lu <hjl@gnu.org> 2079 2080 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to 2081 false if we found the file. 2082 20832001-02-18 David O'Brien <obrien@FreeBSD.org> 2084 2085 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64, 2086 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries. 2087 20882001-02-18 lars brinkhoff <lars@nocrew.org> 2089 2090 * Makefile.am: Add PDP-11 target. 2091 * configure.tgt: Likewise. 2092 * emulparams/pdp11.sh: New file. 2093 20942001-02-17 David O'Brien <obrien@FreeBSD.org> 2095 2096 * configure.host: Add a generic FreeBSD configuration entry such that 2097 all [modern] FreeBSD systems on all platforms will look the same. 2098 20992001-02-14 H.J. Lu <hjl@gnu.org> 2100 2101 * configure.tgt: Remove mention of earmelf_linux26. 2102 21032001-02-13 Richard Henderson <rth@redhat.com> 2104 2105 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove. 2106 21072001-02-13 H.J. Lu <hjl@gnu.org> 2108 2109 * ldexp.h (node_type): Add etree_provided. 2110 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node 2111 type to etree_provided if defined by PROVIDE. Allow updating 2112 for etree_provided. 2113 (exp_print_tree): Handle etree_provided. 2114 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle 2115 etree_provided. 2116 21172001-02-09 David Mosberger <davidm@hpl.hp.com> 2118 2119 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add 2120 .IA_64.unwind.* pattern to unwind table section and 2121 .IA_64.unwind_info* pattern to unwind info section. 2122 21232001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com> 2124 2125 * Makefile.am: Add linux target for S/390. 2126 * Makefile.in: Likewise. 2127 * configure.host: Likewise. 2128 * configure.tgt: Likewise. 2129 * emulparams/elf64_s390.sh: New file. 2130 * emulparams/elf_s390.sh: New file. 2131 21322001-02-09 Jakub Jelinek <jakub@redhat.com> 2133 2134 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into 2135 targ_extra_libpath. 2136 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath. 2137 21382001-02-06 Philip Blundell <philb@gnu.org> 2139 2140 * Makefile.am: Remove mention of earmelf_linux26. 2141 * Makefile.in: Regenerate. 2142 21432001-02-04 Philip Blundell <philb@gnu.org> 2144 2145 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000. 2146 * emulparams/armelf_linux26.sh: Delete. 2147 * configure.tgt: Remove mention of armelf_linux26 emulation. 2148 21492001-02-01 Nick Clifton <nickc@redhat.com> 2150 2151 * ld.1: Replace occurances of -oformat with --oformat. 2152 21532001-01-25 Jim Driftmyer <jdrift@stny.rr.com> 2154 2155 * ldlang.c (lang_leave_overlay): Don't set lma_region when 2156 load_base is specified. 2157 21582001-01-24 Hans-Peter Nilsson <hp@axis.com> 2159 2160 * emultempl/elf32.em: Correct spelling in comments and listed 2161 options. 2162 21632001-01-23 Alan Modra <alan@linuxcare.com.au> 2164 2165 * ldlang.c (lang_leave_overlay): Only set lma_region from the 2166 default for the first section of a group of overlay sections. 2167 21682001-01-22 Alan Modra <alan@linuxcare.com.au> 2169 2170 * Makefile.am (GENSCRIPTS): Pass exec_prefix. 2171 * Makefile.in: Regenerate. 2172 * genscripts.sh: Use exec_prefix parameter to specify tool lib. 2173 Check for null tool_dir. 2174 21752001-01-16 Jim Wilson <wilson@redhat.com> 2176 2177 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind 2178 and IA_64.unwind.info. 2179 21802001-01-16 H.J. Lu <hjl@gnu.org> 2181 2182 * ldlang.c (lang_check): Merge the private data only if the 2183 input file has contents. 2184 21852001-01-14 Alan Modra <alan@linuxcare.com.au> 2186 2187 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux. 2188 2189 * emultempl/hppaelf.em (hppaelf_after_parse): New function, 2190 enabling search for libmilli. On a relocatable link, make .text 2191 sections unique. 2192 (LDEMUL_AFTER_PARSE): Define. 2193 (hppaelf_finish): Correct spelling of relocatable in comments. 2194 2195 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't 2196 rummage through the script for sections on the unique list. 2197 Correct length of strncmp for ".note". 2198 (gld${EMULATION_NAME}_check_needed): Rearrange function. 2199 2200 * ldlang.c (unique_section_list): New var. 2201 (unique_section_p): New function. 2202 (walk_wild_section): Don't match sections on unique_section_list. 2203 (lang_add_unique): New function. 2204 Correct spelling of relocatable in comments. 2205 2206 * ldlang.h (struct unique_sections): Declare. 2207 (unique_section_list): Declare. 2208 (unique_section_p): Declare. 2209 (lang_add_unique): Declare. 2210 2211 * lexsup.c (ld_options): Allow --unique to take an optional arg. 2212 (parse_args [OPTION_UNIQUE]): Call lang_add_unique. 2213 2214 * ld.texinfo (--unique): Update. 2215 22162001-01-13 Nick Clifton <nickc@redhat.com> 2217 2218 * lexsup.c (parse_args): Remove spurious white space. 2219 22202001-01-12 Nick Clifton <nickc@redhat.com> 2221 2222 * lexsup.c (parse_args): Update copyright date. 2223 22242001-01-12 Philip Blundell <pb@futuretv.com> 2225 2226 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin. 2227 22282001-01-10 Kazu Hirata <kazu@hxi.com> 2229 2230 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo. 2231 * scripttempl/h8300h.sc: Fix formatting. 2232 * scripttempl/h8300s.sc: Likewise. 2233 * scripttempl/h8500.sc: Likewise. 2234 * scripttempl/h8500b.sc: Likewise. 2235 * scripttempl/h8500c.sc: Likewise. 2236 * scripttempl/h8500m.sc: Likewise. 2237 * scripttempl/h8500s.sc: Likewise. 2238 22392000-01-07 David O'Brien <obrien@BSDi.com> 2240 2241 * emultempl/elf32.em: Only perform Linux ld hints processing when 2242 targeting Linux. 2243 22442001-01-07 Philip Blundell <philb@gnu.org> 2245 2246 * ld.texinfo (Bug Reporting): Update email address for reports. 2247 22482000-12-31 Nick Clifton <nickc@redhat.com> 2249 2250 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long 2251 options by checking for a return value of '?' not -1. 2252 22532000-12-28 Nick Clifton <nickc@redhat.com> 2254 2255 * lexsup.c (struct ld_option): Add new enum value: 2256 EXACTLY_TWO_DASHES. 2257 (ld_options[]): Change -omagic, -output and -oformat options 2258 to be EXACTLY_TWO_DASHES. 2259 (OUTPUT_COUNT): Use ARRAY_SIZE. 2260 (parse_args): Change parameter 'argc' to unsigned. 2261 Place EXACTLY_TWO_DASHES options into new really_longopts 2262 array. 2263 If getopt_long_only fails, try calling getopt_long using the 2264 really_longopts array. 2265 (help): Print a double dash for both EXACTLY_TWO_DASHES and 2266 TWO_DASHES options. 2267 2268 * ldlex.h: Fix prototype of parse_args. 2269 2270 * ld.texinfo: Document that long options starting with 'o' 2271 must be preceeded by two dashes. Change example of a single 2272 dashed long option from -oformat to -trace-symbol. 2273 22742000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz> 2275 2276 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define. 2277 (longopts[]): New --no-default-excludes option. 2278 (gld_${EMULATION_NAME}_list_options): Document. 2279 (gld_${EMULATION_NAME}_parse_args): Handle. 2280 22812000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2282 2283 * ldlang.c (new_stat): Revert the last beautification with "innocent" 2284 whitespace, it breaks the K&R C preprocessor. 2285 22862000-12-11 DJ Delorie <dj@redhat.com> 2287 2288 * ld.texinfo: Add notes about --whole-archive and gcc. 2289 22902000-11-18 Fred Fish <fnf@be.com> 2291 2292 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define. 2293 (ld_options): Entry for --allow-shlib-undefined. 2294 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED. 2295 * ldmain.c (main): Initialize link_info.allow_shlib_undefined 2296 to false. 2297 * ld.texinfo: Document new command line switch. 2298 22992000-12-12 Geoffrey Keating <geoffk@redhat.com> 2300 2301 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): 2302 .fixup is actually read/write. 2303 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise. 2304 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise. 2305 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise. 2306 23072000-12-11 Jan Hubicka <jh@suse.cz> 2308 2309 * NEWS: Add note about x86_64 architecture. 2310 23112000-12-06 Mark Elbrecht <snowball3@bigfoot.com> 2312 2313 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end. 2314 Set DWARF2 sections to a VMA of zero. 2315 23162000-12-01 Joel Sherrill <joel@OARcorp.com> 2317 2318 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*): 2319 New targets. 2320 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. 2321 (sparc*-*-rtems*): Switched from a.out to ELF. 2322 23232000-11-30 Jan Hubicka <jh@suse.cz> 2324 2325 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o 2326 (eelf_x86_64.c): New. 2327 * Makefile.in: Regenerate. 2328 * configure.tgt: Add support for x86_64-*-linux-gnu*. 2329 * emulparams/elf_x86_64.sh: New. 2330 23312000-11-30 Hans-Peter Nilsson <hp@axis.com> 2332 2333 * emulparams/crislinux.sh (ENTRY): Change back to _start. 2334 (TEXT_START_SYMBOLS): Remove conditional setting of __start. 2335 2336 * scripttempl/crisaout.sc: Change all RELOCATING not related to 2337 merging non-a.out sections into CONSTRUCTING. 2338 23392000-11-28 Nick Clifton <nickc@redhat.com> 2340 2341 * ld.1 (COPYING): Mention that the GNU Free Documentation 2342 License is present in the sources, but not the output, and 2343 also available from the GNU website. 2344 (GNU Free Documentation License): Comment out this section. 2345 23462000-11-28 David O'Brien <obrien@dragon.nuxi.com> 2347 2348 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF 2349 does not use them. 2350 23512000-11-25 David O'Brien <obrien@FreeBSD.org> 2352 2353 * ld.1: Remove old date so it does not give the impression the manpage 2354 is way out of date. 2355 23562000-11-24 Nick Clifton <nickc@redhat.com> 2357 2358 * configure.tgt (xscale-coff): Add target. 2359 (xscale-elf): Add target. 2360 23612000-11-24 Fred Fish <fnf@be.com> 2362 2363 * ldmain.c (main): Remove redundant init of config.make_executable 2364 to true. 2365 23662000-11-15 Richard Henderson <rth@redhat.com> 2367 2368 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M. 2369 23702000-11-14 Kazu Hirata <kazu@hxi.com> 2371 2372 * scripttempl/h8300.sc: Fix formatting. 2373 * scripttempl/h8300h.sc: Likewise. 2374 * scripttempl/h8300s.sc: Likewise. 2375 23762000-11-14 Denis Chertykov <denisc@overta.ru> 2377 2378 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment. 2379 23802000-11-09 Philip Blundell <pb@futuretv.com> 2381 2382 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME 2383 around orphan sections whose names can be represented in C. 2384 23852000-11-07 Jim Wilson <wilson@redhat.com> 2386 2387 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local 2388 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata. 2389 23902000-11-06 Nick Clifton <nickc@redhat.com> 2391 2392 * ld.texinfo: Add GNU Free Documentation License. 2393 * ldint.texinfo: Add GNU Free Documentation License. 2394 * ld.1: Add GNU Free Documentation License. 2395 23962000-11-05 Alan Modra <alan@linuxcare.com.au> 2397 2398 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer, 2399 yy_is_interactive, yy_at_bol, and yy_fill_buffer. 2400 2401 * Makefile.am (DISTCLEANFILES): Add stringify.sed. 2402 Move 2000-11-02 Makefile.in changes to this file. 2403 * Makefile.in: Regenerate. 2404 24052000-11-03 Nick Clifton <nickc@redhat.com> 2406 2407 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose 2408 constructors and destructors. 2409 * scripttempl/h8300h.sc: Ditto. 2410 * scripttempl/h8300s.sc: Ditto. 2411 * scripttempl/h8500.sc: Ditto. 2412 * scripttempl/h8500b.sc: Ditto. 2413 * scripttempl/h8500c.sc: Ditto. 2414 * scripttempl/h8500m.sc: Ditto. 2415 * scripttempl/h8500s.sc: Ditto. 2416 * scripttempl/v850.sc: Ditto. 2417 * scripttempl/w65.sc: Ditto. 2418 * scripttempl/z8000.sc: Ditto. 2419 24202000-11-02 Per Lundberg <plundis@chaosdev.org> 2421 2422 * Makefile.in (e_i386_chaos.c): New rule. 2423 (ALL_EMULATIONS): Added e_i386_chaos.o. 2424 * emulparams/elf_i386_chaos.sh: New file. 2425 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos. 2426 24272000-10-20 Jakub Jelinek <jakub@redhat.com> 2428 2429 * emulparams/elf64_sparc.sh (TEXT_START_ADDR, 2430 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets. 2431 Fix sed invocation, so that it coped with '/' in Solaris 64bit 2432 library path suffix. 2433 Based on patch by Andrew Macleod <amacleod@cygnus.com>. 2434 24352000-10-18 Hans-Peter Nilsson <hp@axis.com> 2436 2437 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32), 2438 for consecutive sections. 2439 24402000-10-17 Chandrakala Chavva <cchavva@redhat.com> 2441 2442 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific 2443 options. 2444 * ld.texinfo: Added notes about this new option. 2445 24462000-10-16 Nick Clifton <nickc@redhat.com> 2447 2448 * emultempl/pe.em (_after_open): Add tests of return values from 2449 bfd functions. Emit appropriate error messages if necessary. 2450 24512000-10-13 Nick Clifton <nickc@redhat.com> 2452 2453 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms' 2454 local variables - they are not used, but leave in the call to 2455 bfd_canonicalize_symtab. 2456 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of 2457 pe_dll_search_prefix. 2458 24592000-10-12 Charles Wilson <cwilson@ece.gatech.edu> 2460 2461 * emultempl/pe.em (pe_dll_search_prefix): New variable, 2462 (longopts): New --dll-search-prefix option. 2463 (gld_${EMULATION_NAME}_list_options): Document. 2464 (gld_${EMULATION_NAME}_parse_args): Handle. 2465 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking 2466 dynamically, search for a dll named '<prefix><basename>.dll' 2467 in preference to 'lib<basename>.dll' if --dll-search-prefix 2468 is specified. 2469 24702000-10-12 Alan Modra <alan@linuxcare.com.au> 2471 2472 * ldlang.c (section_already_linked): Set kept_section instead of 2473 sec->comdat->sec. 2474 24752000-10-10 Kazu Hirata <kazu@hxi.com> 2476 2477 * deffile.h: Fix formatting. 2478 * lexsup.c: Likewise. 2479 * mri.c: Likewise. 2480 24812000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com> 2482 2483 * pe-dll.c (make_one): Do not generate code thunk for DATA 2484 exports. 2485 (process_def_file): deduce DATA flag for auto-export sumbols. 2486 24872000-10-09 Kazu Hirata <kazu@hxi.com> 2488 2489 * ld.h: Fix formatting. 2490 * ldcref.c: Likewise. 2491 * ldctor.h: Likewise. 2492 * ldemul.c: Likewise. 2493 * ldemul.h: Likewise. 2494 * ldexp.c: Likewise. 2495 * ldexp.h: Likewise. 2496 * ldfile.c: Likewise. 2497 * ldfile.h: Likewise. 2498 * ldlang.c: Likewise. 2499 * ldlang.h: Likewise. 2500 * ldmain.c: Likewise. 2501 * pe-dll.c: Likewise. 2502 2503 * pe-dll.c: Revert some formatting fixes. 2504 25052000-10-08 Kazu Hirata <kazu@hxi.com> 2506 2507 * pe-dll.c: Fix formatting. 2508 25092000-10-05 Kazu Hirata <kazu@hxi.com> 2510 2511 * ldlang.c: Fix formatting. 2512 25132000-10-03 DJ Delorie <dj@redhat.com> 2514 2515 * pe-dll.c (fill_edata): initialize entire block 2516 (make_one): fill in correct section. 2517 25182000-10-03 Kazu Hirata <kazu@hxi.com> 2519 2520 * ldexp.c: Fix formatting. 2521 25222000-10-02 DJ Delorie <dj@redhat.com> 2523 2524 * emultempl/pe.em (gld_*_after_open): detect case where there two 2525 import libraries for same dll; rename one to ensure proper link 2526 order. 2527 2528 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix 2529 typo 2530 (generate_edata): fix typo 2531 25322000-09-29 Hans-Peter Nilsson <hp@axis.com> 2533 2534 * scripttempl/crisaout.sc (ENTRY): Now __start. 2535 (.text): Add default setting for __start. 2536 Remove CONSTRUCTORS handling. 2537 (/DISCARD/): Add .gnu.warning.*. 2538 * emulparams/crislinux.sh (ENTRY): Now __start. 2539 (TEXT_START_SYMBOLS): New; provide __Stext and __start default. 2540 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris. 2541 (ENTRY): Now __start. 2542 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup. 2543 (EXECUTABLE_SYMBOLS): Add default setting for __start. 2544 25452000-09-29 Kazu Hirata <kazu@hxi.com> 2546 2547 * deffile.h: Fix formatting. 2548 * ld.h: Likewise. 2549 * ldcref.c: Likewise. 2550 * ldctor.c: Likewise. 2551 * ldctor.h: Likewise. 2552 * ldemul.c: Likewise. 2553 * ldemul.h: Likewise. 2554 * ldexp.c: Likewise. 2555 * ldexp.h: Likewise. 2556 * ldfile.c: Likewise. 2557 * ldfile.h: Likewise. 2558 * ldlang.c: Likewise. 2559 * ldlang.h: Likewise. 2560 * lexsup.c: Likewise. 2561 * mri.c: Likewise. 2562 * pe-dll.c: Likewise. 2563 25642000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com> 2565 2566 * pe-dll.c (process_def_file): Uninitialized data wasn't 2567 exported with --export-all-symbols switch. 2568 25692000-09-28 DJ Delorie <dj@redhat.com> 2570 2571 * pe-dll.c (fill_edata): rearrange the data so that ordinals and 2572 noname work properly. 2573 25742000-09-28 Alan Modra <alan@linuxcare.com.au> 2575 2576 * ld.texinfo (HPPA ELF32): New section. 2577 2578 * emultempl/hppaelf.em (group_size): New. 2579 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs. 2580 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE. 2581 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate 2582 options to prevent abbreviations matching. 2583 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat. 2584 (PARSE_AND_LIST_ARGS_CASES): Handle it. 2585 25862000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2587 2588 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature 2589 on the m68*-*-elf target. Make it support COFF input objects. 2590 25912000-09-21 Kazu Hirata <kazu@hxi.com> 2592 2593 * ldmain.c: Fix formatting. 2594 * ldmisc.c: Likewise. 2595 * ldver.c: Likewise. 2596 * ldwrite.c: Likewise. 2597 25982000-09-21 Alan Modra <alan@linuxcare.com.au> 2599 2600 * ldwrite.c (clone_section): Silence gcc warnings. 2601 26022000-09-20 Alan Modra <alan@linuxcare.com.au> 2603 2604 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle 2605 out of memory failure. 2606 2607 * ldwrite.c (ldwrite): Remove unnecessary einfo arg. 2608 (clone_section): Handle out of memory failures. Rename var to 2609 avoid c++ reserved word. 2610 26112000-09-18 Alan Modra <alan@linuxcare.com.au> 2612 2613 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename 2614 stub_name param to stub_sec_name. 2615 (hppaelf_finish): Modify call to elf32_hppa_size_stubs. 2616 26172000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2618 2619 * emultempl/m68kelf.em: New file. 2620 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it. 2621 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em. 2622 * Makefile.in: Regenerate. 2623 26242000-09-15 Alan Modra <alan@linuxcare.com.au> 2625 2626 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$ 2627 only as needed. 2628 26292000-09-13 Nick Clifton <nickc@redhat.com> 2630 2631 * ldmain.c (multiple_definition): Disable relaxation if 2632 multiple symbol definitions are encountered - otherwise the 2633 linker could abort with an assertion failure. 2634 26352000-09-10 Nick Clifton <nickc@redhat.com> 2636 2637 * mri.c: Fix formatting. 2638 26392000-09-07 H.J. Lu <hjl@gnu.org> 2640 2641 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM. 2642 * configure: Rebuild. 2643 26442000-09-07 H.J. Lu <hjl@gnu.org> 2645 2646 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h. 2647 * Makefile.in: Rebuild. 2648 26492000-09-07 Alan Modra <alan@linuxcare.com.au> 2650 2651 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix 2652 broken list handling. Create __start_SECNAME and __stop_SECNAME 2653 when no place-holder. Add some comments. Test both SEC_CODE and 2654 SEC_READONLY for hold_text to prevent .rodata orphan poisoning. 2655 Handle case where no output section statement created. 2656 26572000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com> 2658 2659 * configure.tgt (sh-*-linux*): Added. 2660 * Makefile.am: Added eshelf_linux and eshlelf_linux. 2661 * Makefile.in: Rebuilt. 2662 * emulparams/shelf_linux.sh: New file. 2663 * emulparams/shlelf_linux.sh: New file. 2664 26652000-09-06 Alan Modra <alan@linuxcare.com.au> 2666 2667 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't 2668 try shuffling sections when the orphan happens to be the place 2669 holder. Keep count of unique section names generated so we speed 2670 the search for a new name. 2671 26722000-09-06 Alexandre Oliva <aoliva@redhat.com> 2673 2674 * configure: Rebuilt with new libtool.m4. 2675 26762000-09-05 Nick Clifton <nickc@redhat.com> 2677 2678 * Makefile.in: Regenerate. 2679 * aclocal.m4: Regenerate. 2680 * configure: Regenerate. 2681 * config.in: Regenerate. 2682 * po/ld.pot: Regenerate. 2683 2684 * ldint.texinfo: Remove CVS revision marker - it foils local 2685 comparisons. 2686 2687 * emultempl/ticoff.em: Remove extraneous comma. 2688 26892000-09-05 Alan Modra <alan@linuxcare.com.au> 2690 2691 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC 2692 to stub section flags. 2693 (hppa_for_each_input_file_wrapper): New. 2694 (hppa_lang_for_each_input_file): New. 2695 (lang_for_each_input_file): Define to call above. 2696 (multi_subspace): New. 2697 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs. 2698 (PARSE_AND_LIST_PROLOGUE): Define. 2699 (PARSE_AND_LIST_LONGOPTS): Define. 2700 (PARSE_AND_LIST_OPTIONS): Define. 2701 (PARSE_AND_LIST_ARGS_CASES): Define. 2702 (hppaelf_finish): Call elf32_hppa_set_gp. 2703 (hppaelf_set_output_arch): Remove. 2704 (LDEMUL_SET_OUTPUT_ARCH): Remove. 2705 2706 * emulparams/hppalinux.sh (ELFSIZE): Define. 2707 (MACHINE): Define. 2708 (OTHER_READONLY_SECTIONS): Define. 2709 (DATA_PLT): Define. 2710 (GENERATE_SHLIB_SCRIPT): Define. 2711 2712 * ldlang.c: Add missing prototypes, and tidy others. Change CONST 2713 to const throughout. Change `void *' to `PTR' throughout. 2714 (lang_memory_default): Function is local to file, add `static'. 2715 2716 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em. 2717 (ehppalinux.c): Likewise. 2718 (earmelf.c): Likewise. 2719 (earmelf_linux.c): Likewise. 2720 (earmelf_linux26.c): Likewise. 2721 * Makefile.in: Regenerate. 2722 2723 * ld.h (ld_config_type): Add unique_orphan_sections. 2724 * lexsup.c (OPTION_UNIQUE): Define. 2725 (ld_options): Add "--unique". 2726 (parse_args): Handle it. 2727 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't 2728 search for an existing output section if unique_orphan_sections is 2729 set. Make use of bfd_get_unique_section_name rather than 2730 duplicating code here. 2731 * ld.texinfo: Describe --unique. 2732 2733 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add 2734 optional arg to split-by-file. 2735 (parse_args): Handle them. 2736 * ld.texinfo: Update description of these options. 2737 * ldwrite.c (clone_section): Pass in the section name. Replace 2738 local code with bfd_get_unique_section_name. 2739 (split_sections): Tidy code and comments. Use a list traversal 2740 more appropriate to the list construction. Handle cooked section 2741 sizes. Split when split_by_reloc reached rather than exceeded. 2742 Track section size and split when split_by_file reached. Fix 2743 link_order_tail (even though it's not used). 2744 (ldwrite): Modify condition for calling split_sections to suit 2745 changed split_by_reloc and split_by_file. 2746 * ldmain.c (main): Init config.split_by_reloc and 2747 config.split_by_file to -1. 2748 * ld.h (ld_config_type): Change split_by_reloc to unsigned. 2749 Change split_by_file to bfd_size_type. 2750 27512000-09-02 Nick Clifton <nickc@redhat.com> 2752 2753 * configure.in: Increase version number to 2.10.91. 2754 * NEWS: Mention new ability to support removal of duplicate DWARF2 2755 debug information. 2756 * configure: Regenerate. 2757 * aclocal.m4: Regenerate. 2758 * config.in: Regenerate. 2759 27602000-09-02 Daniel Berlin <dberlin@redhat.com> 2761 2762 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info 2763 sections. 2764 * scripttempl/elf32avr.sc: Ditto. 2765 * scripttempl/elfd10v.sc: Ditto. 2766 * scripttempl/elfd30v.sc: Ditto. 2767 * scripttempl/elfi370.sc: Ditto. 2768 * scripttempl/elfm68hc11.sc: Ditto. 2769 * scripttempl/elfm68hc12.sc: Ditto. 2770 * scripttempl/elfi386beos.sc: Ditto. 2771 * scripttempl/v850.sc: Ditto. 2772 27732000-08-31 Alexandre Oliva <aoliva@redhat.com> 2774 2775 * acinclude.m4: Include libtool and gettext macros from the 2776 top level. 2777 * aclocal.m4, configure: Rebuilt. 2778 27792000-08-25 Nick Clifton <nickc@redhat.com> 2780 2781 * ldlang.c (open_output): When choosing the target for a 2782 particular endianness, do nothing if the target is not 2783 supported. 2784 27852000-08-25 H.J. Lu <hjl@gnu.org> 2786 2787 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't 2788 check -rpath nor LD_RUN_PATH for cross link. 2789 * ld.texinfo: Document the change. 2790 27912000-08-24 Hans-Peter Nilsson <hp@axis.com> 2792 2793 * NEWS: Mention support for CRIS. 2794 27952000-08-23 H.J. Lu <hjl@gnu.org> 2796 2797 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get 2798 the current runpath list from bfd_elf_get_runpath_list () 2799 before search. 2800 28012000-08-22 H.J. Lu <hjl@gnu.org> 2802 2803 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search 2804 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after 2805 LD_LIBRARY_PATH for native linker. Display the needed DSO if 2806 trace_file_tries is non-zero. 2807 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found 2808 if trace_file_tries is non-zero. 2809 2810 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH. 2811 * NEWS: Mention it. 2812 28132000-08-14 Jason Eckhardt <jle@cygnus.com> 2814 2815 * NEWS: Mention i860 support. 2816 28172000-08-14 Andreas Schwab <schwab@suse.de> 2818 2819 * scripttempl/elf.sc: Fix last change to use correct comment 2820 syntax. 2821 28222000-08-10 Geoff Keating <geoffk@cygnus.com> 2823 2824 * scripttempl/elf.sc: Add a comment giving the correspondence 2825 between sections, per-datum sections, and linkonce sections. Make 2826 the comment true even for .bss, .sdata, .sdata2, .sbss, and 2827 .sbss2. 2828 28292000-08-10 Jason Eckhardt <jle@cygnus.com> 2830 2831 * emulparams/elf32_i860.sh: New file. 2832 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}. 2833 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o. 2834 (eelf32_i860.c): New rule. 2835 * Makefile.in: Regenerate. 2836 28372000-08-10 Nick Clifton <nickc@cygnus.com> 2838 2839 * emulparams/mipspe.sh (ENTRY): Add definition. 2840 28412000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au> 2842 2843 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath 2844 in error message. 2845 28462000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr> 2847 2848 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate 2849 the final size of .bss section. 2850 * scripttempl/elfm68hc12.sc: Likewise. 2851 28522000-08-04 Alan Modra <alan@linuxcare.com.au> 2853 2854 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to 2855 gld${EMULATION_NAME}_parse_args for consistency. Combine 2856 lastoptind and prevoptind vars, and keep track of last optind. 2857 (gld_${EMULATION_NAME}_list_options): Rename to 2858 gld${EMULATION_NAME}_list_options. 2859 28602000-08-03 Rodney Brown <RodneyBrown@pmsc.com> 2861 2862 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7 2863 (i586-sco-sysv5uw7.1.0). 2864 28652000-07-27 H.J. Lu <hjl@gnu.org> 2866 2867 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed. 2868 (PARSE_AND_LIST_PROLOGUE): New. 2869 (PARSE_AND_LIST_LONGOPTS): Likewise. 2870 (PARSE_AND_LIST_OPTIONS): Likewise. 2871 (PARSE_AND_LIST_ARGS_CASES): Likewise. 2872 (PARSE_AND_LIST_EPILOGUE): Likewise. 2873 28742000-07-28 Alan Modra <alan@linuxcare.com.au> 2875 2876 * emultempl/armelf.em: Elide functions common to elf32.em, 2877 ie. most of the file. 2878 (arm_elf_after_open): New. Do arm specific things then call 2879 gld${EMULATION_NAME}_after_open. 2880 (arm_elf_before_allocation): New. Call 2881 gld${EMULATION_NAME}_before_allocation then do arm specifics. 2882 (PARSE_AND_LIST_PROLOGUE): Define. 2883 (PARSE_AND_LIST_SHORTOPTS): Define. 2884 (PARSE_AND_LIST_LONGOPTS): Define. 2885 (PARSE_AND_LIST_OPTIONS): Define. 2886 (PARSE_AND_LIST_ARGS_CASES): Define. 2887 (LDEMUL_AFTER_OPEN): Define. 2888 (LDEMUL_BEFORE_ALLOCATION): Define. 2889 (LDEMUL_BEFORE_PARSE): Define. 2890 (LDEMUL_FINISH): Define. 2891 2892 * emultempl/hppaelf.em: Similarly zap most of this file. 2893 (hppaelf_add_stub_section): Prototype. 2894 (hppaelf_layaout_sections_again): Prototype. 2895 (hook_in_stub): Prototype. 2896 (LDEMUL_SET_OUTPUT_ARCH): Define. 2897 (LDEMUL_FINISH): Define. 2898 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define. 2899 2900 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32. 2901 (EXTRA_EM_FILE): New. 2902 * emulparams/armelf_linux.sh: Likewise. 2903 * emulparams/armelf_linux26.sh: Likewise. 2904 * emulparams/hppalinux.sh: Likewise. 2905 * emulparams/hppaelf.sh: Likewise. 2906 (NOP): Define. 2907 2908 * emultempl/elf32.em: Fix formatting. 2909 (EXTRA_EM_FILE): Source it. 2910 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL, 2911 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION, 2912 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET, 2913 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH, 2914 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS, 2915 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN, 2916 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE, 2917 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE, 2918 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to 2919 allow functions in this file to be overridden. 2920 (PARSE_AND_LIST_SHORTOPTS): Handle it. 2921 2922 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h. 2923 2924 * emultempl/elf32.em: Reorganize file. 2925 29262000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru> 2927 2928 * emulparams/elf64alpha.sh: Implement "-taso" emulation 2929 specific option to fit 64-bit executable in the lower 2930 31-bit address range. This is done by changing start 2931 address of .interp (the very first section of executable) 2932 and then setting EF_ALPHA_32BIT elf header flag. 2933 29342000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2935 2936 * emultempl/m68kcoff.em: New file. 2937 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template. 2938 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than 2939 generic.em. 2940 * Makefile.in: Regenerate. 2941 29422000-07-20 H.J. Lu <hjl@gnu.org> 2943 2944 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags" 2945 and "disable-new-dtags" to stop getopt from treating -d/-e as 2946 abbreviations for these options. 2947 29482000-07-20 H.J. Lu <hjl@gnu.org> 2949 2950 * ld.texinfo: Add documentation for --disable-new-dtags and 2951 --enable-new-dtags. 2952 2953 * ldmain.c (main): Initialize link_info.new_dtags to false. 2954 2955 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add 2956 --disable-new-dtags and --enable-new-dtags. 2957 (gld_${EMULATION_NAME}_list_options): Likewise. 2958 29592000-07-05 Kenneth Block <krblock@computer.org> 2960 2961 * lexsup.c: Add optional style to demangle switch 2962 * ld.texinfo: Document optional style to demangle switch. 2963 29642000-07-20 Hans-Peter Nilsson <hp@axis.com> 2965 2966 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o, 2967 ecrislinux.o. 2968 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules. 2969 Regenerate dependencies. 2970 * Makefile.in: Rebuild. 2971 * configure.tgt (cris-*-*): New target. 2972 * emulparams/crisaout.sh, emulparams/criself.sh, 2973 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files. 2974 * po/POTFILES.in, po/ld.pot: Regenerate. 2975 29762000-07-20 H.J. Lu <hjl@gnu.org> 2977 2978 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options): 2979 Print out ignored -z options. 2980 29812000-07-19 H.J. Lu <hjl@gnu.org> 2982 2983 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed. 2984 (PARSE_AND_LIST_PROLOGUE): New. 2985 (PARSE_AND_LIST_LONGOPTS): Likewise. 2986 (PARSE_AND_LIST_OPTIONS): Likewise. 2987 (PARSE_AND_LIST_ARGS_CASES): Likewise. 2988 2989 * ldmain.c (main): Clear link_info.flags and link_info.flags_1. 2990 2991 * lexsup.c (ld_options): Comment out 'z'. 2992 (parse_args): Likewise. 2993 2994 * emultempl/elf32.em: Include "elf/common.h". 2995 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z 2996 options. 2997 (gld_${EMULATION_NAME}_list_options): Likewise. 2998 2999 * ld.texinfo: Add documentation for the recognized -z options. 3000 30012000-07-19 H.J. Lu <hjl@gnu.org> 3002 3003 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call 3004 bfd_elf_set_dt_needed_soname (). 3005 30062000-07-18 DJ Delorie <dj@cygnus.com> 3007 3008 * pe-dll.c (pe_dll_id_target): check object target name also 3009 30102000-07-18 Hans-Peter Nilsson <hp@axis.com> 3011 3012 * scripttempl/elf.sc (.init): Only do ${INIT_START} and 3013 ${INIT_END} if relocating. 3014 (.fini): Likewise ${FINI_START} and ${FINI_END}. 3015 30162000-07-16 Charles Wilson <cwilson@ece.gatech.edu> 3017 3018 * emultempl/pe.em (gld_*_open_dynamic_archive): New search 3019 order for dynamic library '-lfoo' on pei386: libfoo.dll.a, 3020 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility 3021 errors introduced by the old dynamic lib search order. 3022 30232000-07-17 DJ Delorie <dj@cygnus.com> 3024 3025 * pe-dll.c (process_def_file): auto-export data items also 3026 (pe_process_import_defs): also see if _imp_ form needed 3027 30282000-07-12 Charles Wilson <cwilson@ece.gatech.edu> 3029 3030 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration 3031 for dll import libraries 3032 30332000-07-12 Mark Elbrecht <snowball3@bigfoot.com> 3034 3035 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in 3036 gcc 2.95.2 and later. 3037 30382000-07-11 Kazu Hirata <kazu@hxi.com> 3039 3040 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error 3041 message. 3042 30432000-07-10 Alan Modra <alan@linuxcare.com.au> 3044 3045 * ldemul.h (struct lang_input_statement_struct): Remove forward 3046 declaration. 3047 (struct search_dirs): Likewise. 3048 * ldfile.h (struct lang_input_statement_struct): Likewise. 3049 Protect file from multiple inclusion. 3050 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain 3051 declaration from macro to file scope. 3052 3053 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order. 3054 * ldgram.y: Likewise here. 3055 * ldlang.c: And here. 3056 * ldmain.c: And here. 3057 * mpw-elfmips.c: And here. 3058 * mpw-eppcmac.c: And here. 3059 * emultempl/aix.em: And here. 3060 * emultempl/armcoff.em: And here. 3061 * emultempl/armelf.em: And here. 3062 * emultempl/armelf_oabi.em: And here. 3063 * emultempl/beos.em: And here. 3064 * emultempl/elf32.em: And here. 3065 * emultempl/hppaelf.em: And here. 3066 * emultempl/linux.em: And here. 3067 * emultempl/lnk960.em: And here. 3068 * emultempl/pe.em: And here. 3069 * emultempl/sunos.em: And here. 3070 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too. 3071 * mpw-idtmips.c: Ditto. 3072 * emultempl/generic.em: Ditto. 3073 * emultempl/gld960.em: Ditto. 3074 * emultempl/gld960c.em: Ditto. 3075 * emultempl/mipsecoff.em: Ditto. 3076 * emultempl/ticoff.em: Ditto. 3077 * emultempl/vanilla.em: Ditto. 3078 3079 * pe-dll.c: Include ldfile.h 3080 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h 3081 3082 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing 3083 arguments to bfd_elf32_size_dynamic_sections call. 3084 (gldelf32ebmip_place_orphan): Add missing arguments to 3085 lang_leave_output_section_statement call. 3086 30872000-07-10 H.J. Lu <hjl@gnu.org> 3088 3089 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with 3090 DLL_SUPPORT. 3091 (strhash): Likewise. 3092 (compute_dll_image_base): Likewise. 3093 (pe_undef_found_sym): Likewise. 3094 (pe_undef_cdecl_match): Likewise. 3095 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the 3096 argument "arch" with ATTRIBUTE_UNUSED. 3097 30982000-07-10 Alan Modra <alan@linuxcare.com.au> 3099 3100 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*. 3101 3102 From Ryan Bradetich <rbradetich@uswest.net> 3103 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning. 3104 31052000-07-09 Alan Modra <alan@linuxcare.com.au> 3106 3107 Changes to create multiple linker stubs, positioned immediately 3108 before the section where they are required. 3109 * emultempl/hppaelf.em: Include elf32-hppa.h. 3110 (stub_sec, file_chain): Delete. 3111 (hppaelf_create_output_section_statements): Don't make a stub 3112 section here. 3113 (hook_stub_info): New struct. 3114 (hook_in_stub): New function. 3115 (hppaelf_add_stub_section): New function. 3116 (hppaelf_finish): Do nothing for relocateable links. Modify the 3117 call to elf32_hppa_size_stubs. Move code for updating section 3118 layout from here... 3119 (hppaelf_layaout_sections_again): ..to here, a new function. 3120 3121 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix 3122 broken list handling. Pass in a pointer to the list. 3123 (hppaelf_finish): Update call to hppaelf_delete_padding_statements 3124 for above changes. 3125 (hppaelf_before_parse): Prototype. 3126 (hppaelf_set_output_arch): Prototype. 3127 (hppaelf_create_output_section_statements): Prototype. 3128 (hppaelf_delete_padding_statements): Prototype. 3129 (hppaelf_finish): Prototype. 3130 3131 Merge from elf32.em 3132 * emultempl/hppaelf.em: Include ctype.h. 3133 (struct orphan_save): New. 3134 (gld${EMULATION_NAME}_place_orphan): New. 3135 (output_rel_find): New. 3136 (hppaelf_get_script): Update from elf32.em. 3137 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation. 3138 Change emulation_name field to "${EMULATION_NAME}". Add 3139 gld${EMULATION_NAME}_place_orphan. 3140 3141 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add 3142 ehppalinux.o, sort it. Regenerate dependencies. 3143 (ehppalinux.c): Depend on hppaelf.em 3144 * Makefile.in: Regenerate. 3145 3146 * configure.tgt: targ_emul=hppalinux for hppa*linux 3147 3148 * emulparams/hppalinux.sh: New. 3149 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex. 3150 31512000-07-08 Alan Modra <alan@linuxcare.com.au> 3152 3153 * lexsup.c (parse_args): Copy section name. 3154 31552000-07-07 Charles Wilson <cwilson@ece.gatech.edu> 3156 3157 * emultempl/pe.em: institute the following search order for 3158 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import 3159 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to 3160 static lib (libfoo.a) if none of the above are found. 3161 31622000-07-07 Mumit Khan <khan@xraylith.wisc.edu> 3163 3164 * emultempl/pe.em (pe_enable_auto_image_base): New variable. 3165 (longopts): New --{enable,disable}-auto-image-base options. 3166 (gld_${EMULATION_NAME}_list_options): Document. 3167 (gld_${EMULATION_NAME}_parse): Handle. 3168 (strhash): New static function. 3169 (compute_dll_image_base): New static function. 3170 (gld_${EMULATION_NAME}_set_symbols): Use. 3171 31722000-07-05 DJ Delorie <dj@redhat.com> 3173 3174 * MAINTAINERS: new 3175 31762000-07-01 Koundinya K <kk@ddeorg.soft.net> 3177 3178 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target. 3179 * emulparams/elf32btsmip.sh: New file. 3180 * Makefile.am: Add traditional mips target. 3181 * Makefile.in: Rebuild. 3182 31832000-07-01 H.J. Lu <hjl@gnu.org> 3184 3185 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for 3186 automake to use YLWRAP. 3187 * Makefile.in: Rebuild. 3188 31892000-07-01 Alan Modra <alan@linuxcare.com.au> 3190 3191 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed 3192 (CLEANFILES): Add DEPA. 3193 * Makefile.in: Regenerate. 3194 31952000-06-30 Timothy Wall <twall@ppc> 3196 3197 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode 3198 the page in the upper octet of the address. 3199 32002000-06-26 Marek Michalkiewicz <marekm@linux.org.pl> 3201 3202 * emulparams/avrmega161.sh (ARCH): Change to avr:5. 3203 32042000-06-24 Alan Modra <alan@linuxcare.com.au> 3205 3206 * NEWS: arm-elf does --gc-sections too. 3207 32082000-06-22 Alan Modra <alan@linuxcare.com.au> 3209 3210 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we 3211 find one. 3212 * Makefile.in: Regenerate. 3213 32142000-06-21 H.J. Lu <hjl@gnu.org> 3215 3216 * Makefile.am: Rebuild dependency. 3217 * Makefile.in: Rebuild. 3218 32192000-06-20 H.J. Lu <hjl@gnu.org> 3220 3221 * Makefile.am: Rebuild dependency. 3222 * Makefile.in: Rebuild. 3223 32242000-06-20 Timothy Wall <twall@cygnus.com> 3225 3226 * scripttempl/tic54xcoff.sc: New. 3227 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag. 3228 * gen-doc.texi: Add flag for TI COFF. 3229 * ld.texinfo: Add documentation for TI COFF handling switches. 3230 * emultempl/ticoff.em: New. TI COFF handling. 3231 * configure.tgt: Add tic54x target. 3232 * Makefile.am: Add tic54x target. 3233 * Makefile.in: Ditto. 3234 32352000-06-20 Alan Modra <alan@linuxcare.com.au> 3236 3237 * ldmain.c (set_scripts_dir): Correct pointer comparison when 3238 checking for backslashes. 3239 32402000-06-19 Alan Modra <alan@linuxcare.com.au> 3241 3242 * NEWS: Move entries not in 2.10 above "Changes in version 2.10". 3243 32442000-06-18 Alan Modra <alan@linuxcare.com.au> 3245 3246 * NEWS: Update list of targets supporting --gc-sections. 3247 3248 * scripttempl/elf.sc: KEEP .eh_frame contents. 3249 * scripttempl/elfd30v.sc: Same here. 3250 32512000-06-18 Stephane Carrez <stcarrez@worldnet.fr> 3252 3253 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12 3254 and m68hc11 (elf). 3255 * Makefile.in: Rebuild. 3256 * configure.tgt: Recognize m68hc12 and m68hc11. 3257 * scripttempl/elfm68hc12.sc: New file. 3258 * emulparams/m68hc12elfb: New emulation. 3259 * emulparams/m68hc12elf: New emulation. 3260 * emulparams/m68hc11elfb.sh: New file. User configurable emulation 3261 (includes a memory.x script to define the ROM and RAM banks). 3262 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh: 3263 New configuration files for support of Motorola 68hc11 3264 32652000-06-15 Alan Modra <alan@linuxcare.com.au> 3266 3267 * ldmain.c (main): Only change SEC_READONLY for final link. 3268 32692000-06-13 H.J. Lu <hjl@gnu.org> 3270 3271 * configure: Regenerate. 3272 32732000-06-08 David O'Brien <obrien@FreeBSD.org> 3274 3275 * configure.in (VERSION): Update to show this is the CVS mainline. 3276 32772000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG> 3278 3279 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all 3280 input objects to be ECOFF. 3281 (check_sections): einfo takes %B, not %P, to print a BFD name. 3282 32832000-06-05 Michael Matz <matz@ifh.de> 3284 3285 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in 3286 version scripts. 3287 3288 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols. 3289 32902000-05-23 Marek Michalkiewicz <marekm@linux.org.pl> 3291 3292 * emulparams/avr1200.sh (STACK): Define as 0. 3293 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address. 3294 * emulparams/avr4433.sh (STACK): Likewise. 3295 * emulparams/avr44x4.sh (STACK): Likewise. 3296 * emulparams/avr85xx.sh (STACK): Likewise. 3297 * emulparams/avrmega103.sh (STACK): Likewise. 3298 * emulparams/avrmega161.sh (STACK): Likewise. 3299 * emulparams/avrmega603.sh (STACK): Likewise. 3300 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1. 3301 (__stack): Define from ${STACK} for main(). 3302 33032000-05-26 Alan Modra <alan@linuxcare.com.au> 3304 3305 * Makefile.am: Update dependencies with "make dep-am" 3306 * Makefile.in: Regenerate. 3307 33082000-05-26 Eli Zaretskii <eliz@is.elta.co.il> 3309 3310 * ldmain.c: Include filenames.h. 3311 (set_scripts_dir): Support backslashes in program name. 3312 33132000-05-22 Igor Shevlyakov <igor@windriver.com> 3314 3315 * ldmain.c (main): When deciding if ".text" section should be 3316 read-only, don't forget to reset SEC_READONLY because it 3317 could be already set. 3318 33192000-05-22 Thomas de Lellis <tdel@windriver.com> 3320 3321 * ld.1: Add documentation for new command line option: 3322 --section-start <sectionname>=<sectionorg> 3323 This is a generic version of -Ttext etc. which accepts 3324 any section name as a parameter instead of just text/data/ 3325 bss. 3326 * ld.texinfo: More docs. 3327 * NEWS: More docs. 3328 * lexsup.c: (parse_args): Recognize new command line option. 3329 (ld_options): Add new option. 3330 33312000-05-18 H.J. Lu <hjl@gnu.org> 3332 3333 * lexsup.c (parse_args): `i' == `r', not `q'. 3334 33352000-05-18 Jeffrey A Law (law@cygnus.com) 3336 3337 * configure.tgt (hppa*64*-*-*): Enable PA64 target. 3338 33392000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com> 3340 Rick Gorton <gorton@scrugs.lkg.dec.com> 3341 3342 Add support for '-q' == '--emit-relocs' switch. 3343 * ldmain.c (main): Default to false. 3344 * lexsup.c (parse_args): Turn on emitrelocations flag if set. 3345 * NEWS: Describe the emitrelocations switch. 3346 * ld.texinfo: Describe the emitrelocations switch. 3347 33482000-05-16 Charles Wilson <cwilson@ece.gatech.edu> 3349 3350 * emultempl/pe.em (_open_dynamic_archive): New function: Search 3351 the library path for "foo.dll" and "libfoo.dll" dynamic libraries 3352 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo' 3353 link options. 3354 33552000-05-15 David O'Brien <obrien@FreeBSD.org> 3356 3357 * lexsup.c (parse_args): Update the year in the copyright notice. 3358 33592000-05-13 Alan Modra <alan@linuxcare.com.au> 3360 3361 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain): 3362 Replace defines with those from intl/libgettext.h to quieten gcc 3363 warnings. 3364 33652000-05-10 H.J. Lu <hjl@gnu.org> 3366 3367 * ldlang.c (open_input_bfds): Don't load the same file within 3368 a group again if the whole archive has been loaded already. 3369 33702000-05-03 Alan Modra <alan@linuxcare.com.au> 3371 3372 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de> 3373 * lexsup.c (set_section_start): Use bfd_scan_vma rather than 3374 strtoul. 3375 33762000-05-01 Jim Wilson <wilson@cygnus.com> 3377 3378 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}. 3379 3380 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for 3381 host "ia64-*-linux-gnu*". 3382 33832000-04-29 Andreas Jaeger <aj@suse.de> 3384 3385 * ld.h: Correctly check GCC version. 3386 33872000-04-25 Jeffrey A Law (law@cygnus.com) 3388 3389 * Makefile.am: Add PA64 support. Add missing dependencies for 3390 PA32 elf support. 3391 * Makefile.in: Rebuilt. 3392 * configure.tgt: Add PA64 support (currently disabled). 3393 33942000-04-25 Alan Modra <alan@linuxcare.com.au> 3395 3396 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete. 3397 (output_rel_find): New function. 3398 (hold_section, hold_use): Delete. 3399 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel, 3400 hold_interp): Make local to place_orphan. 3401 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find 3402 rather than place_section to find possible previous use of orphan. 3403 Similarly find the place-holder output sections. Use returned 3404 value from lang_enter_output_section_statement rather than calling 3405 lang_output_section_statement_lookup. 3406 * emultempl/armelf.em: Same here. 3407 * emultempl/pe.em: Similar to above, but no need for output_rel_find. 3408 3409 * ldlang.c (lang_enter_output_section_statement): Return output 3410 section statement. 3411 * ldlang.h (lang_enter_output_section_statement): Change 3412 declaration too. 3413 3414 * ldlang.h (lang_output_section_statement): Export it. 3415 * ldlang.c (lang_output_section_statement): Ditto. 3416 34172000-04-24 Nick Clifton <nickc@cygnus.com> 3418 3419 * ld.texinfo (Output Section Data): Add note that section data 3420 commands cannot appear outside of section directives. 3421 34222000-04-2 Matthew Green <mrg@cygnus.com> 3423 3424 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support. 3425 34262000-04-21 Richard Henderson <rth@cygnus.com> 3427 David Mosberger <davidm@hpl.hp.com> 3428 3429 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o. 3430 (eelf64_ia64.c): New rule. 3431 * Makefile.in: Rebuild. 3432 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets. 3433 * emulparams/elf64_ia64.sh: New file. 3434 34352000-04-21 Richard Henderson <rth@cygnus.com> 3436 3437 * scripttempl/elfd30v.sc: Place .gcc_except_table. 3438 34392000-04-19 Alan Modra <alan@linuxcare.com.au> 3440 3441 * dep-in.sed: Match space at start of file name, not at end. 3442 34432000-04-18 H.J. Lu <hjl@gnu.org> 3444 3445 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call 3446 lang_leave_output_section_statement () after calling 3447 lang_enter_output_section_statement (). 3448 * emultempl/armelf.em: Likewise. 3449 34502000-04-18 Alan Modra <alan@linuxcare.com.au> 3451 3452 * emultempl/elf32.em (struct orphan_save): Add section field. 3453 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in 3454 better order, and place first orphan section as we did before the 3455 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place. 3456 Don't call make_bfd_section here, let wild_doit do the job for us. 3457 Don't build a statement list when we'll only throw it away. 3458 * emultempl/armelf.em: Ditto. 3459 * emultempl/pe.em: Similarly. 3460 34612000-04-14 Geoff Keating <geoffk@cygnus.com> 3462 3463 * scripttempl/elfppc.sc: Remove. 3464 * emulparams/elf32ppc.sh: Use elf.sc. 3465 * emulparams/elf32lppc.sh: Use elf.sc. 3466 * emulparams/elf32ppclinux.sh: Use elf.sc. 3467 * emulparams/elf32ppcsim.sh: New file. 3468 * emulparams/elf32lppcsim.sh: New file. 3469 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim. 3470 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim. 3471 * Makefile.in: Regenerate. 3472 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim. 3473 34742000-04-14 Alan Modra <alan@linuxcare.com.au> 3475 3476 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process 3477 ~SEC_ALLOC sections too. Init start address of debug sections. 3478 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto. 3479 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto. 3480 Also set all relocateable section start addresses. 3481 34822000-04-13 Geoff Keating <geoffk@cygnus.com> 3483 3484 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections. 3485 Add new BSS_PLT variable for when .plt need not be contained in 3486 the file. Move _etext so that it is also after .fini, and provide 3487 both etext and _etext with a leading underscore. Mark the start 3488 and end of .sbss. 3489 34902000-04-12 Alan Modra <alan@linuxcare.com.au> 3491 3492 * emultempl/elf32.em (struct orphan_save): New. 3493 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel, 3494 hold_interp): Make them struct orphan_save. 3495 (gld${EMULATION_NAME}_place_section): Modify for new hold_*. 3496 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to 3497 the end of the relevant section list. Also add associated section 3498 statements to the end of any previous orphan statements. 3499 * emultempl/armelf.em: Similarly. 3500 * emultempl/pe.em: Similarly. 3501 35022000-04-11 Alan Modra <alan@linuxcare.com.au> 3503 3504 * ld.texinfo (Simple Example): Remove extraneous paragraph. 3505 35062000-04-07 Andrew Cagney <cagney@b1.cygnus.com> 3507 3508 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add 3509 --enable-build-warnings option. 3510 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions. 3511 * Makefile.in, configure: Re-generate. 3512 35132000-04-04 Alan Modra <alan@linuxcare.com.au> 3514 3515 * po/ld.pot: Regenerate. 3516 3517 * lexsup.c (help): Restore translated part of bug string. 3518 3519 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep. 3520 (DEP): Quote when passing vars to sub-make. Add warning message 3521 to end. 3522 (DEP1): Rewrite for "gcc -MM". 3523 (CLEANFILES): Add DEP2. 3524 Update dependencies. 3525 * Makefile.in: Regenerate. 3526 35272000-04-03 Alan Modra <alan@linuxcare.com.au> 3528 3529 * ld.h: #include "bin-bugs.h" 3530 * lexsup.c (help): Use REPORT_BUGS_TO. 3531 35322000-03-27 Denis Chertykov <denisc@overta.ru> 3533 3534 * configure.tgt (avr-*-*): New target support. 3535 * Makefile.am: Likewise. 3536 * scripttempl/elf32avr.sc: New script file. 3537 * emulparams/avr1200.sh: New file. 3538 * emulparams/avr23xx.sh: New file. 3539 * emulparams/avr4433.sh New file. 3540 * emulparams/avr44x4.sh New file. 3541 * emulparams/avr85xx.sh New file. 3542 * emulparams/avrmega103.sh New file. 3543 * emulparams/avrmega161.sh New file. 3544 * emulparams/avrmega603.sh New file. 3545 * Makefile.in: Regenerate. 3546 35472000-03-09 Andreas Jaeger <aj@suse.de> 3548 3549 * Makefile.am (check-DEJAGNU): Also unset LANG. 3550 * Makefile.in: Rebuild. 3551 35522000-03-06 Ian Lance Taylor <ian@zembu.com> 3553 3554 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty 3555 archive. 3556 35572000-03-02 H.J. Lu <hjl@gnu.org> 3558 3559 * emulparams/elf32mcore.sh: Include "getopt.h". 3560 35612000-03-01 Ian Lance Taylor <ian@zembu.com> 3562 3563 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware. 3564 35652000-03-01 H.J. Lu <hjl@gnu.org> 3566 3567 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR. 3568 * emulparams/shpe.sh: Likewise. 3569 35702000-03-01 Nick Clifton <nickc@cygnus.com> 3571 3572 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED 3573 to unused parameters. 3574 3575 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static 3576 functions only used by DLL code. 3577 (_place_orphan): Initialise 'dollar'. 3578 35792000-03-01 H.J. Lu <hjl@gnu.org> 3580 3581 * ldmain.c (undefined_symbol): Take one more arg, fatal, to 3582 indicate if the undefined symbol is a fatal error or not. 3583 Don't delete the output file if "fatal" is false. 3584 35852000-02-29 H.J. Lu <hjl@gnu.org> 3586 3587 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)". 3588 Set LC_COLLATE and LC_ALL to null and export them. It is for 3589 sort which expects the C locale. 3590 Add $(LIBS) to all $(HOSTING_LIBS). 3591 * Makefile.in: Rebuild. 3592 35932000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au> 3594 3595 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em, 3596 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em, 3597 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em} 3598 (ld_emulation_xfer_struct): Add missing NULL initialiser for 3599 find_potential_libraries. 3600 36012000-02-28 Jim Blandy <jimb@redhat.com> 3602 3603 * ldgram.y (exclude_name_list): Don't require a comma to separate 3604 list entries; the lexer considers commas to be valid part of a 3605 filename, so in something like `foo, bar' the comma is considered 3606 part of the first filename, `foo,'. 3607 * ld.texinfo: Update section on EXCLUDE_FILE lists. 3608 36092000-02-27 Loren J. Rittle <ljrittle@acm.org> 3610 3611 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for 3612 host "i[3456]86-*-freebsdelf*". 3613 36142000-02-27 Mark Elbrecht <snowball3@bigfoot.com> 3615 3616 * scripttempl/i386go32.sc: Move misplaced semicolons. 3617 36182000-02-25 Ian Lance Taylor <ian@zembu.com> 3619 3620 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o. 3621 (ALL_64_EMULATIONS): Remove eelf64hppa.o. 3622 (eelf64hppa.c, ehppaelf.c): Remove targets. 3623 * Makefile.in: Rebuild. 3624 36252000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br> 3626 3627 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on 3628 GNU/Linux/sparc, but keep the default as 32. 3629 3630 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make 3631 it default if sparcv9 or sparc64. 3632 36332000-02-24 Nick Clifton <nickc@cygnus.com> 3634 3635 * Makefile.am: Add rules to build emipspe.o and earmpe.o. 3636 * Makefile.in: Regenerate. 3637 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe. 3638 3639 * ldemul.h (ld_emulation_xfer_struct): Add new field: 3640 find_potential_libraries. 3641 * ldemul.c (ldemul_find_potential_libraries): New function. 3642 3643 * ldfile.c (ldfile_open_file_search): Allow function to be 3644 exported. 3645 (ldfile_open_file): Call ldemul_find_potential_libraries. 3646 * ldfile.h: Add prototype for ldfile_open_file_search. 3647 3648 * pe-dll.c: Add support for ARM, MIPS and SH targets. 3649 3650 * emulparams/mipspe.sh: New file. Parameters for mips-pe target. 3651 * emulparams/shpe.sh: New file. Parameters for sh-pe target. 3652 3653 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs. 3654 (gld_X_find_potential_libraries): New function. Search for 3655 libraries called "*.lib". 3656 3657 * scripttempl/pe.sc: Add .pdata section. 3658 36592000-02-23 Richard Henderson <rth@cygnus.com> 3660 3661 * scripttempl/elfd10v.sc: Remove dynamic linking hooks. 3662 Add and use memory regions. 3663 36642000-02-23 Linas Vepstas (linas@linas.org) 3665 3666 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New. 3667 3668 * Makefile.am: Add support for Linux/IBM 370. 3669 * configure.tgt: Likewise. 3670 3671 * Makefile.in: Regenerate. 3672 36732000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au> 3674 3675 * ldlang.c (print_input_section, print_data_statement, 3676 print_reloc_statement, print_padding_statement, insert_pad, 3677 size_input_section, lang_check_section_addresses, 3678 lang_size_sections, lang_do_assignments, lang_set_startof, 3679 lang_one_common): Change `opb' to unsigned. 3680 (lang_do_assignments): Also change `size' to unsigned. 3681 36822000-02-16 Richard Henderson <rth@cygnus.com> 3683 3684 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION. 3685 36862000-02-16 Timothy Wall <twall@cygnus.com> 3687 3688 * mri.c (mri_draw_tree): Add default LMA region argument to call 3689 to lang_leave_output_section_statement. 3690 * ldlang.h: Update prototypes with LMA region arguments. 3691 * ldlang.c (lang_size_sections): Encapsulate region bounds 3692 checking in os_check_region call. 3693 (os_check_region): New function. 3694 (lang_output_section_statement_lookup): Initialize lma_region. 3695 (lang_leave_output_section_statement): Add LMA region argument. 3696 (lang_leave_overlay): Ditto. 3697 * ldgram.y: Handle LMA region syntax. 3698 * ld.texinfo (Output Section Description): Describe LMA region usage. 3699 * emultempl/armelf.em (gld$place_orphan): Add default value for 3700 lma region in call to lang_leave_output_section_statement. 3701 * emultempl/elf32.em (gld$place_orphan): Add default value for 3702 lma region in call to lang_leave_output_section_statement. 3703 * emultempl/pe.em (gld$place_orphan): Add default value for 3704 lma region in call to lang_leave_output_section_statement. 3705 3706 37072000-02-04 Timothy Wall <twall@redhat.com> 3708 3709 * ldlang.c (lang_check_section_addresses): Use bytes instead of 3710 octets when calculating section end addresses. 3711 37122000-02-04 Timothy Wall <twall@redhat.com> 3713 3714 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation. 3715 37162000-02-03 Timothy Wall <twall@redhat.com> 3717 3718 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not 3719 octet count. 3720 * ldlang.c (print_input_section, print_data_statement, 3721 print_reloc_statement, print_padding_statement): Print target 3722 address values and section sizes as bytes, not octets. 3723 (insert_pad) Calculate padding size in octets, and adjust "dot" 3724 by bytes. 3725 (size_input_section) Always adjust "dot" by bytes, not octets. 3726 (lang_check_section_addresses, lang_do_assignments) Adjust 3727 "dot" by bytes, not octets. Use the larger of the directive size 3728 or octets_per_byte for the number of octets actually allocated in 3729 the output section. 3730 (lang_set_startof) Make sure STARTOF returns a target address. 3731 (lang_one_common) Record size changes in octets. 3732 (lang_abs_symbol_at_end_of) Section end symbol's value is 3733 recorded in target bytes. 3734 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc. 3735 to be clear about behavior when an octet is smaller than one byte. 3736 37372000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au> 3738 3739 * ldcref.c (output_cref): Don't pass message strings to printf 3740 as format arg. 3741 Update copyright. 3742 3743 * ldmisc.c (vfinfo): Same here. 3744 Update copyright. 3745 37462000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au> 3747 3748 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em, 3749 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em, 3750 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct): 3751 Add missing NULL initialisers, and comments. 3752 3753 * testsuite/ld-srec/sr3.cc (__rethrow): New. 3754 37552000-01-21 Nick Clifton <nickc@cygnus.com> 3756 3757 * ldlang.c (lang_size_sections): Fix typo in comment. 3758 37592000-01-18 H.J. Lu <hjl@gnu.org> 3760 3761 * ldlang.c (lang_size_sections): Also update the current 3762 address of a region if the SEC_NEVER_LOAD bit is not set. 3763 37642000-01-10 Philip Blundell <pb@futuretv.com> 3765 3766 * configure.tgt (arm*-*-conix*): New target. 3767 37682000-01-07 Nick Clifton <nickc@cygnus.com> 3769 3770 * ld.texinfo (Options): Remind users to preceed linker command 3771 line switches with -Wl, (or whatever is appropriate) if it is 3772 being invoked by a comnpiler driver program. 3773 Fix description of the behaviour of the -n command line switch. 3774 37752000-01-05 Catherine Moore <clm@cygnus.com> 3776 3777 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list. 3778 (name_list): New. 3779 * ld.texinfo (EXCLUDE_FILE): Update documentation. 3780 * ldgram.y (wildcard_spec): Support a list of excluded_files. 3781 (exclude_name_list): New. 3782 ldlang.c (walk_wild_section): Support list of excluded files. 3783 (print_wild_statement): Likewise. 3784 (lang_add_wild): Likewise. 3785 * ldlang.h (lang_wild_statement_type): Likewise. 3786 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support. 3787 37882000-01-04 Mumit Khan <khan@xraylith.wisc.edu> 3789 3790 * pe-dll.c (pe_dll_warn_dup_exports): New variable. 3791 (process_def_file): Use. 3792 (pe_dll_compat_implib): New variable. 3793 (make_one): Use. 3794 3795 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and 3796 pe_dll_compat_implib. 3797 3798 * emultempl/pe.em (longopts): Add warn-duplicate-exports and 3799 compat-implib options. 3800 (gld_${EMULATION_NAME}_list_options): List new options. 3801 (gld_${EMULATION_NAME}_parse_args): Handle. 3802 3803 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output 3804 dll. 3805 3806 * deffilep.y (opt_name): Allow "." in name. 3807 3808For older changes see ChangeLog-9899 3809 3810Local Variables: 3811mode: change-log 3812left-margin: 8 3813fill-column: 74 3814version-control: never 3815End: 3816