1178172Simp2009-12-17 Dave Korn <dave.korn.cygwin@gmail.com> 2178172Simp 3178172Simp * pe-dll.c (generate_reloc): Take account of wrapper options when 4178172Simp testing if a weak symbol is defined or not, and when it is not, 5178172Simp consider whether the default value requires a base reloc anyway. 6178172Simp 7178172Simp2009-12-17 Dave Korn <dave.korn.cygwin@gmail.com> 8178172Simp 9178172Simp * deffilep.y (def_file_free): Add missing shadow parameter renaming. 10178172Simp (def_file_print): Likewise. 11178172Simp (def_stash_module): Likewise. 12178172Simp (def_file_add_import): Likewise. 13178172Simp 14178172Simp2009-12-11 Nick Clifton <nickc@redhat.com> 15178172Simp 16178172Simp * Makefile.in: Regenerate. 17178172Simp * configure: Regenerate. 18178172Simp * deffilep.y: Fix shadowed variable warnings. 19178172Simp * ldlang.c: Likewise. 20178172Simp * ldmain.c: Likewise. 21178172Simp * pe-dll.c: Likewise. 22178172Simp * emultempl/elf32.em: Likewise. 23178172Simp 24178172Simp2009-12-09 Alan Modra <amodra@bigpond.net.au> 25178172Simp 26178172Simp PR ld/11012 27178172Simp * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Move .rela.opd .. 28178172Simp (INITIAL_RELOC_SECTIONS): .. to here. New define. 29178172Simp * scripttempl/elf.sc: Expand INITIAL_RELOC_SECTIONS. 30178172Simp 31178172Simp2009-12-04 Jie Zhang <jie.zhang@analog.com> 32178172Simp 33178172Simp * ld.texinfo: Make it clear that --nmagic disables linking 34178172Simp against shared libraries. 35178172Simp 36178172Simp2009-11-30 Joseph Myers <joseph@codesourcery.com> 37178172Simp 38178172Simp * configure: Regenerate. 39178172Simp 40178172Simp2009-11-30 Alan Modra <amodra@bigpond.net.au> 41178172Simp 42178172Simp PR ld/11006 43178172Simp * lexsup.c (parse_args): Allow nested --start-group, --end-group. 44178172Simp 45178172Simp2009-11-27 Tristan Gingold <gingold@adacore.com> 46178172Simp 47178172Simp * pe-dll.c (pe_implied_import_dll): Return early if there is no 48178172Simp export entries. 49178172Simp 50178172Simp2009-11-26 Nick Clifton <nickc@redhat.com> 51178172Simp 52178172Simp PR ld/10956 53178172Simp * ld.h (struct args_type): Rename 'relax' field to 54205675Sneel 'disable_target_specific_optimizations' and turn it into a 55205675Sneel tri-state variable. 56205675Sneel (RELAXATION_DISABLED_BY_DEFAULT): New macro. 57205675Sneel (RELAXATION_DISABLED_BY_USER): New macro. 58205675Sneel (RELAXATION_ENABLED): New macro. 59205675Sneel (DISABLE_RELAXATION): New macro. 60205675Sneel (ENABLE_RELAXATION): New macro. 61205675Sneel * lexsup (enum option_values): Add OPTION_NO_RELAX. 62205675Sneel (struct ld_options): Add --no-relax. 63205675Sneel (parse_args): Handle OPTION_NO_RELAX. Use DISABLE_RELAXATION and 64205675Sneel ENABLE_RELAXATION macros. 65205675Sneel * ldlang.c (lang_relax_sections): Use RELAXATION_ENABLED macro. 66205675Sneel (lang_process): Likewise. 67205675Sneel * ldmain.c (main): Initialise 68205675Sneel disable_target_specific_optimizations field. 69205675Sneel (multiple_definition): Use RELAXATION_ENABLED macro. 70205675Sneel * ld.texinfo: Document new command line option. 71205675Sneel * emultempl/alphaelf.em: Remove --no-relax option. 72205675Sneel (before_allocation): Test RELAXATION_DISABLED_BY_USER macro. 73205675Sneel Use ENABLE_RELAXATION macro. 74205675Sneel * emultempl/avrelf.em: (after_allocation): Test RELAXATION_ENABLED 75205675Sneel macro. 76205675Sneel * emultempl/cr16elf.em: Remove --no-relax option. 77205675Sneel (before_allocation): Test RELAXATION_DISABLED_BY_USER macro. 78205675Sneel Use ENABLE_RELAXATION macro. 79205675Sneel * emultempl/crxelf.em: Remove --no-relax option. 80205675Sneel (before_allocation): Test RELAXATION_DISABLED_BY_USER macro. 81205675Sneel Use ENABLE_RELAXATION macro. 82205675Sneel * emultempl/mmix-elfnmmo.em: (before_allocation): Use 83205675Sneel ENABLE_RELAXATION macro. 84205675Sneel * emultempl/needrelax.em: (before_allocation): Use 85205675Sneel ENABLE_RELAXATION macro. 86243203Sjmallett * emultempl/ppc32elf.em: (before_allocation): Test 87178172Simp RELAXATION_DISABLED_BY_DEFAULT macro. Use 88178172Simp ENABLE_RELAXATION macro. 89178172Simp * emultempl/sh64elf.em: (before_allocation): Test 90178172Simp RELAXATION_ENABLED macro. Use DISABLE_RELAXATION macro. 91178172Simp * emultempl/xtensaelf.em: Remove --no-relax option. 92178172Simp (before_allocation): Test RELAXATION_ENABLED macro. 93178172Simp Use ENABLE_RELAXATION macro. 94205675Sneel 95249901Simp2009-11-25 Kai Tietz <kai.tietz@onevision.com> 96178172Simp 97178172Simp * scripttempl/pe.sc: (.note.GNU-stack): Mark as discardable. 98178172Simp (.gnu.lto_*): Likewise. 99178172Simp * scripttempl/pep.sc: (.note.GNU-stack): Mark as discardable. 100178172Simp (.gnu.lto_*): Likewise. 101178172Simp 102178172Simp2009-11-23 Paul Brook <paul@codesourcery.com> 103178172Simp 104178172Simp * ldexp.c: Copy symbol type for simple assignments. 105178172Simp 106178172Simp2009-11-20 Thomas Schwinge <thomas@codesourcery.com> 107178172Simp 108178172Simp * emulparams/armelf.sh (OTHER_READONLY_SECTIONS) 109206749Sjmallett <__exidx_start, __exidx_end>: Use PROVIDE_HIDDEN. 110178172Simp * emulparams/armelf_linux_eabi.sh (OTHER_READONLY_SECTIONS) 111178172Simp <__exidx_start, __exidx_end>: Likewise. 112178172Simp * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS) 113178172Simp <.ARM.exidx$$Base, __exidx_start, __exidx_end, .ARM.exidx$$Limit>: 114178172Simp Likewise. 115178172Simp 116206749Sjmallett2009-11-19 Matthias Klose <doko@ubuntu.com> 117178172Simp 118206749Sjmallett PR ld/9863 119178172Simp * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE 120206749Sjmallett with __data_start. 121178172Simp 122178172Simp2009-11-19 Ben Elliston <bje@au.ibm.com> 123178172Simp 124178172Simp * ldlex.l: Enable nounput flex option. 125178172Simp 126178172Simp2009-11-15 Kai Tietz <kai.tietz@onevision.com> 127178172Simp 128178172Simp * pe-dll.c (pe_undef_alias_cdecl_match): New function. 129178172Simp (pe_find_cdecl_alias_match): New function. 130178172Simp (pe_process_import_defs): Add matching for import symbols 131206749Sjmallett declared as cdecl for fastcall/stdcall. 132178172Simp * emultempl/pe.em (pe_undef_cdecl_match): Treat fastcall 133178172Simp symbols, too. 134178172Simp (pe_fixup_stdcalls): Likewise. 135178172Simp (gld_XXX_after_open): Redo scanning for imported 136178172Simp fastcall/stdcall symbols as cdecl one. 137178172Simp * emultempl/pep.em (pep_undef_cdecl_match): Treat fastcall 138178172Simp symbols, too. 139178172Simp (pep_fixup_stdcalls): Likewise. 140178172Simp (gld_XXX_after_open): Redo scanning for imported 141178172Simp fastcall/stdcall symbols as cdecl one. 142178172Simp 143178172Simp2009-11-11 Nick Clifton <nickc@redhat.com> 144178172Simp 145178172Simp * po/id.po: Updated Indonesian translation. 146206749Sjmallett 147206749Sjmallett2009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com> 148178172Simp 149206749Sjmallett * configure.in: Call ACX_LARGEFILE. Stop calling AC_SYS_LARGEFILE. 150206749Sjmallett * aclocal.m4: Regenerate. 151206749Sjmallett * configure: Regenerate. 152206749Sjmallett 153206749Sjmallett2009-11-10 Nick Clifton <nickc@redhat.com> 154206749Sjmallett 155206749Sjmallett PR ld/10864 156178172Simp * ld.texinfo (Entry Point): Mention that the default entry symbol 157206749Sjmallett is not 'start' on some targets. 158178172Simp 159206749Sjmallett2009-11-06 H.J. Lu <hongjiu.lu@intel.com> 160206749Sjmallett 161206749Sjmallett PR ld/10912 162178172Simp * ldmain.c (add_DT_NEEDED_for_dynamic): Default to TRUE. 163206749Sjmallett 164178172Simp2009-11-06 Kai Tietz <kai.tietz@onevision.com> 165178172Simp 166178172Simp * pe.em (DEFAULT_PSEUDO_RELOC_VERSION): New macro. 167178172Simp (gld_XXX_before_parse): Set pseudo-relocation default 168178172Simp version to DEFAULT_PSEUDO_RELOC_VERSION. 169178172Simp (gldXXX_handle_option): Likewise. 170178172Simp 171178172Simp 172178172Simp2009-11-05 Nick Clifton <nickc@redhat.com> 173178172Simp 174178172Simp * lexsup.c: Rename --add-needed to --copy-dt-needed-entries. 175178172Simp * ldlang.h (struct lang_input_statement_struct): Rename add_needed 176178172Simp to add_DT_NEEDED_for_dynamic. Rename as_needed to 177178172Simp add_DT_NEEDED_for_regular. 178206749Sjmallett * ldlang.c: Likewise. 179206749Sjmallett * ldlang.h: Likewise. 180206749Sjmallett * ldlang.c: Use the new variable names. 181206749Sjmallett * ldgram.y: Likewise. 182178172Simp * emultempl/elf32.em: Likewise. 183206749Sjmallett * ld.texinfo: Document the renamed option. Also mention its 184178172Simp affect on the resolution of dynamic symbols. 185206749Sjmallett * NEWS: Mention the changed option name. 186178172Simp 187206749Sjmallett2009-11-04 Kai Tietz <kai.tietz@onevision.com> 188206749Sjmallett 189178172Simp * emulparams/arm_epoc_pe.sh: Remove ENTRY. 190206749Sjmallett * emulparams/arm_wince_pe.sh: Likewise. 191206749Sjmallett * emulparams/i386pe.sh: Likewise. 192178172Simp * emulparams/i386pe_posix.sh: Likewise. 193206749Sjmallett * emulparams/mcorepe.sh: Likewise. 194178172Simp * emulparams/mipspe.sh: Likewise. 195178172Simp * emulparams/ppcpe.sh: Likewise. 196178172Simp * emulparams/armpe.sh: Likewise. 197178172Simp * emulparams/i386pep.sh: Likewise. 198178172Simp * emulparams/shpe.sh: Likewise. 199178172Simp Additionally cleaned up double-defined 200178172Simp variables SUBSYSTEM and INITIAL_SYMBOL_CHAR. 201178172Simp * emultempl/pe.em: Remove use of ENTRY. 202178172Simp (pe_subsystem): New local variable. 203178172Simp (gld_XXX_before_parse): Don't set default 204178172Simp entry point here. 205178172Simp (set_entry_point): New function to set entry 206206749Sjmallett point. 207206749Sjmallett (set_pe_subsystem): Remove code for entry point. 208206749Sjmallett (gld_XXX_after_parse): Use set_entry_point here. 209206749Sjmallett * emultempl/pep.em: Likewise. 210178172Simp 211206749Sjmallett2009-10-29 Nathan Sidwell <nathan@codesourcery.com> 212178172Simp 213206749Sjmallett * emulparams/vxworks.sh (OTHER_READONLY_SECTIONS): Move into ... 214178172Simp (OTHER_READWRITE_SECTIONS): ... here. 215206749Sjmallett 216206749Sjmallett2009-10-28 Kai Tietz <kai.tietz@onevision.com> 217178172Simp 218206749Sjmallett * emultempl/pep.em (U): Define underscore macro. 219206749Sjmallett (init): Use for __ImageBase U macro. 220178172Simp 221206749Sjmallett2009-10-23 Kai Tietz <kai.tietz@onevision.com> 222178172Simp 223178172Simp * deffile.h (def_file_export): New member its_name. 224178172Simp (def_file_import): Likewise. 225178172Simp (def_file_add_export): Add argument its_name. 226178172Simp (def_file_add_import): Likewise. 227178172Simp * deffilep.y (def_exports): Add argument its_name. 228178172Simp (def_import): Likewise. 229178172Simp (EQUAL): Add new token for '=='. 230178172Simp (opt_equalequal_name): New rule. 231206749Sjmallett (expline): Add rule opt_equalequal_name. 232206749Sjmallett (impline): Likewise. 233206749Sjmallett (def_file_free): Free for exports and imports 234206749Sjmallett the optional member its_name. 235178172Simp (def_lex): Add scan of '==' as EQUAL. 236206749Sjmallett * pe-dll.c (pe_export_sort): Sort for its_name too. 237178172Simp (process_def_file_and_drectve): Adjust calls to 238206749Sjmallett def_file_add_export. 239178172Simp (generate_edata): Take its_name in account. 240206749Sjmallett (make_one): Likewise. 241206749Sjmallett (pe_process_import_defs): Likewise. 242178172Simp (pe_dll_generate_def_file): Add print of new '==' option. 243206749Sjmallett * ld.texinfo: Extend documentation about .def file syntax. 244206749Sjmallett * NEWS: Mention new feature. 245206749Sjmallett 246178172Simp2009-10-23 Kai Tietz <kai.tietz@onevision.com> 247178172Simp 248178172Simp * deffilep.y (def_lex): Allow '<' and '>' characters in identifier 249178172Simp strings. 250178172Simp 251178172Simp2009-10-23 Ryan Mansfield <rmansfield@qnx.com> 252178172Simp 253178172Simp PR ld/10489 254178172Simp * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Handle 255178172Simp drive specifiers for DOS based filesystems in rpath-link strings. 256178172Simp 257206749Sjmallett2009-10-19 Nick Clifton <nickc@redhat.com> 258206749Sjmallett 259206749Sjmallett * Makefile.am: Remove spurious sanitization marker. 260206749Sjmallett * Makefile.in: Regenerate. 261178172Simp 262206749Sjmallett2009-10-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 263178172Simp 264206749Sjmallett * emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro. 265178172Simp (gld${EMULATION_NAME}_add_options): Add new --exclude-all-symbols option 266206749Sjmallett to exclude all symbols from automatic export. 267206749Sjmallett (gld_${EMULATION_NAME}_list_options): Describe it. 268178172Simp (gld${EMULATION_NAME}_handle_option): Handle it. 269206749Sjmallett * emultempl/pep.em: Likewise to all the above. 270206749Sjmallett * pe-dll.c (pe_dll_exclude_all_symbols): New variable. 271206749Sjmallett (process_def_file_and_drectve): Use it. 272178172Simp * pe-dll.h (pe_dll_exclude_all_symbols): Declare. 273178172Simp * pep-dll.c (pep_dll_exclude_all_symbols): Define pep_ alias. 274178172Simp * pep-dll.h (pe_dll_exclude_all_symbols): Declare. 275178172Simp * NEWS: Mention the new feature. 276178172Simp * ld.texinfo: Document the new command line switch. 277206749Sjmallett 278206749Sjmallett2009-10-14 Andreas Schwab <schwab@linux-m68k.org> 279178172Simp 280178172Simp * ldlex.l (yy_input): Remove second argument and return the value 281178172Simp instead. 282178172Simp (YY_INPUT): Adjust. 283178172Simp 284178172Simp2009-10-14 Alan Modra <amodra@bigpond.net.au> 285178172Simp 286178172Simp * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix. 287178172Simp 288178172Simp2009-10-14 Ryan Mansfield <rmansfield@qnx.com> 289210625Sjchandra 290210625Sjchandra * ldlang.c (load_symbols): Set whole_archive from entry when 291210625Sjchandra parsing a linker script. 292206749Sjmallett 293178172Simp2009-10-10 Alan Modra <amodra@bigpond.net.au> 294206749Sjmallett 295178172Simp * scripttempl/elf32cr16.sc: Revert 2009-09-28 changes. 296206749Sjmallett * scripttempl/elf32cr16c.sc: Likewise. 297206749Sjmallett * scripttempl/elf32crx.sc: Likewise. 298210625Sjchandra * scripttempl/tic54xcoff.sc: Likewise. 299210625Sjchandra * scripttempl/aix.sc: Likewise. 300210625Sjchandra * scripttempl/avr.sc: Likewise. 301210625Sjchandra * scripttempl/elf32msp430.sc: Likewise. 302210625Sjchandra * scripttempl/elf32msp430_3.sc: Likewise. 303210625Sjchandra * scripttempl/elf32sh-symbian.sc: Likewise. 304210625Sjchandra * scripttempl/elf_chaos.sc: Likewise. 305210625Sjchandra * scripttempl/elfi370.sc: Likewise. 306210625Sjchandra * scripttempl/nw.sc: Likewise. 307210625Sjchandra * scripttempl/psos.sc: Likewise. 308210625Sjchandra * scripttempl/armbpabi.sc: Likewise. 309210625Sjchandra * scripttempl/elf.sc: Likewise. 310210625Sjchandra * scripttempl/elf64hppa.sc: Likewise. 311210625Sjchandra * scripttempl/elfd10v.sc: Likewise. 312210625Sjchandra * scripttempl/elfd30v.sc: Likewise. 313210625Sjchandra * scripttempl/elfm68hc11.sc: Likewise. 314178172Simp * scripttempl/elfm68hc12.sc: Likewise. 315178172Simp * scripttempl/elfmicroblaze.sc: Likewise. 316206749Sjmallett * scripttempl/elfxtensa.sc: Likewise. 317210625Sjchandra * scripttempl/iq2000.sc: Likewise. 318178172Simp * scripttempl/mep.sc: Likewise. 319178172Simp * scripttempl/xstormy16.sc: Likewise. 320206749Sjmallett 321178172Simp2009-10-09 Alan Modra <amodra@bigpond.net.au> 322206749Sjmallett 323178172Simp PR ld/10749 324206749Sjmallett * ldlang.c (lang_size_sections_1): Zero section vmas only for COFF. 325206749Sjmallett 326178172Simp2009-10-08 Alan Modra <amodra@bigpond.net.au> 327178172Simp 328206749Sjmallett PR ld/10744 329178172Simp * ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the 330178172Simp first PT_LOAD header. 331178172Simp * ld.texinfo: Update. 332206749Sjmallett 333178172Simp2009-10-06 Nathan Sidwell <nathan@codesourcery.com> 334206749Sjmallett 335178172Simp * ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable 336206749Sjmallett segments do not appear after a different loadable segment. 337206749Sjmallett * ld.texinfo (PHDRS): Document order of processing segments. 338178172Simp Document where PHDRS and FILEHDR may appear. 339178172Simp 340206749Sjmallett2009-10-03 Alan Modra <amodra@bigpond.net.au> 341178172Simp 342178172Simp * emultempl/ppc32elf.em (emit_stub_syms): Init to -1. 343202046Simp (ppc_after_open): Set emit_stubs_syms by default when shared. 344202046Simp (OPTION_NO_STUBSYMS): Define. 345202046Simp (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, 346202046Simp PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms. 347206749Sjmallett * emultempl/ppc64elf.em (emit_stub_syms): Init to -1. 348178172Simp (gld${EMULATION_NAME}_finish): Set emit_stubs_syms by default. 349206749Sjmallett (OPTION_NO_STUBSYMS): Define. 350178172Simp (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, 351206749Sjmallett PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms. 352206749Sjmallett 353178172Simp2009-09-29 Joel Sherrill <joel.sherrill@oarcorp.com> 354206749Sjmallett 355178172Simp * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75 356178172Simp (rts). 357202046Simp 358178172Simp2009-09-29 DJ Delorie <dj@redhat.com> 359202046Simp 360202046Simp * Makefile.am: Add rules to build RX emulation. 361202046Simp * configure.tgt: Likewise. 362206749Sjmallett * NEWS: Mention support for RX architecture. 363202046Simp * Makefile.in: Regenerate. 364206749Sjmallett * emulparams/elf32rx.sh: New file. 365202046Simp * emultempl/rxelf.em: New file. 366206749Sjmallett 367206749Sjmallett2009-09-29 Alan Modra <amodra@bigpond.net.au> 368202046Simp 369206749Sjmallett * ldlang.c (lang_size_sections_1): Allow scripts to specify a 370202046Simp non-zero vma even when relocatable. 371202046Simp 372202046Simp2009-09-28 Alan Modra <amodra@bigpond.net.au> 373202046Simp 374202046Simp * scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur. 375178172Simp * scripttempl/elf32cr16c.sc: Likewise. 376178172Simp * scripttempl/elf32crx.sc: Likewise. 377178172Simp * scripttempl/tic54xcoff.sc: Likewise. 378178172Simp * scripttempl/aix.sc: Delete ${RELOCATING-0}. 379178172Simp * scripttempl/avr.sc: Likewise. 380178172Simp * scripttempl/elf32msp430.sc: Likewise. 381178172Simp * scripttempl/elf32msp430_3.sc: Likewise. 382178172Simp * scripttempl/elf32sh-symbian.sc: Likewise. 383178172Simp * scripttempl/elf_chaos.sc: Likewise. 384202046Simp * scripttempl/elfi370.sc: Likewise. 385202046Simp * scripttempl/nw.sc: Likewise. 386202046Simp * scripttempl/psos.sc: Likewise. 387202046Simp * scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}. 388206749Sjmallett * scripttempl/elf.sc: Likewise. 389202046Simp * scripttempl/elf64hppa.sc: Likewise. 390206749Sjmallett * scripttempl/elfd10v.sc: Likewise. 391202046Simp * scripttempl/elfd30v.sc: Likewise. 392206749Sjmallett * scripttempl/elfm68hc11.sc: Likewise. 393206749Sjmallett * scripttempl/elfm68hc12.sc: Likewise. 394202046Simp * scripttempl/elfmicroblaze.sc: Likewise. 395202046Simp * scripttempl/elfxtensa.sc: Likewise. 396202046Simp * scripttempl/iq2000.sc: Likewise. 397202046Simp * scripttempl/mep.sc: Likewise. 398202046Simp * scripttempl/xstormy16.sc: Likewise. 399202046Simp 400202046Simp2009-09-27 Christopher Faylor <me+cygwin@cgf.cx> 401202046Simp 402202046Simp PR ld/10634 403202046Simp * ldlang.c (lang_size_sections_1): Always force output vma to zero for 404202046Simp relocatable sections. 405178172Simp (lang_size_sections_1): Revert previous COFF-only accommodation for 406202046Simp relocatable sections. 407206749Sjmallett 408178172Simp2009-09-25 Martin Thuresson <martint@google.com> 409178172Simp 410178172Simp Update sources to make arm targets compile cleanly with 411178172Simp -Wc++-compat: 412202046Simp * emultempl/armelf.em: Add casts. 413202046Simp 414202046Simp2009-09-23 Matt Rice <ratmice@gmail.com> 415206749Sjmallett 416202046Simp * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit, 417206749Sjmallett --depaudit, and -P options. 418202046Simp (gld${EULATION_NAME}_handle_options): Ditto. 419206749Sjmallett (gld${EULATION_NAME}_list_options): Ditto. 420206749Sjmallett (gld${EMULATION_NAME}_append_to_separated_string): New function for 421202046Simp handling rpath-like colon separated strings. 422202046Simp (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit 423202046Simp libs to bfd. Propagate DT_AUDIT from needed libs to depaudit. 424202046Simp * ld.texinfo: Document new options. 425202046Simp 426202046Simp2009-09-23 Nick Clifton <nickc@redhat.com> 427202046Simp 428202046Simp * po/vi.po: Updated Vietnamese translation. 429202046Simp 430202046Simp2009-09-22 Alan Modra <amodra@bigpond.net.au> 431202046Simp 432202046Simp * scripttempl/a29k.sc: Delete. 433202046Simp * scripttempl/ebmon29k.sc: Delete. 434206749Sjmallett * scripttempl/m68klynx.sc: Delete. 435202046Simp * scripttempl/sa29200.sc: Delete. 436202046Simp * scripttempl/sparclynx.sc: Delete. 437202046Simp 438202046Simp2009-09-21 Alan Modra <amodra@bigpond.net.au> 439202046Simp 440178172Simp * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var. 441178172Simp (ppc_before_allocation): Pass to ppc_elf_tls_setup. 442178172Simp (OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in 443178172Simp terms of previous option. 444206749Sjmallett (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add 445178172Simp --no-tls-get-addr-optimize. 446206749Sjmallett (PARSE_AND_LIST_ARGS_CASES): Handle it. 447178172Simp * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var. 448206749Sjmallett (ppc_before_allocation): Pass to ppc64_elf_tls_setup. 449206749Sjmallett (OPTION_NO_TLS_GET_ADDR_OPT): Define. 450178172Simp (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add 451206749Sjmallett --no-tls-get-addr-optimize. 452178172Simp (PARSE_AND_LIST_ARGS_CASES): Handle it. 453178172Simp 454178172Simp2009-09-18 Nick Clifton <nickc@redhat.com> 455178172Simp 456178172Simp * po/es.po: Updated Spanish translation. 457206749Sjmallett 458178172Simp2009-09-13 Alan Modra <amodra@bigpond.net.au> 459206749Sjmallett 460178172Simp PR ld/6766 461206749Sjmallett * lexsup.c (parse_args <-e>): Revert 2009-03-18 change. 462206749Sjmallett * ldemul.c (after_parse_default): Add entry symbol as undef. 463178172Simp * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default. 464206749Sjmallett * emultempl/cr16elf.em (cr16elf_after_parse): Likewise. 465178172Simp * emultempl/crxelf.em (crxelf_after_parse): Likewise. 466178172Simp * emultempl/hppaelf.em (hppaelf_after_parse): Likewise. 467178172Simp * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise. 468178172Simp * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call 469178172Simp after_parse_default and delete now duplicate code. 470178172Simp * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise. 471178172Simp * scripttempl/elf32cr16.sc: No need to make entry extern. 472178172Simp * scripttempl/elf32cr16c.sc: Likewise. 473178172Simp * scripttempl/elf32crx.sc: Likewise. 474178172Simp * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link. 475178172Simp 476178172Simp2009-09-11 Nick Clifton <nickc@redhat.com> 477178172Simp 478178172Simp * po/ld.pot: Updated by the Translation project. 479178172Simp * po/fi.po: Updated Finnish translation. 480206749Sjmallett 481178172Simp2009-09-11 Martin Thuresson <martint@google.com> 482206749Sjmallett 483178172Simp Updated sources to compile cleanly with -Wc++-compat: 484206749Sjmallett * ld.h (enum endian_enum,enum symbolic_enum,enum 485206749Sjmallett dynamic_list_enum): Move to top level. 486178172Simp * ldcref.c: Add casts. 487178172Simp * ldctor.c: Add casts. 488206749Sjmallett * ldexp.c 489178172Simp * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level. 490178172Simp * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead 491178172Simp of integer. 492206749Sjmallett * ldlang.h (enum statement_enum): Move to top level. 493178172Simp * ldmain.c: Add casts. 494206749Sjmallett * ldwrite.c: Add casts. 495178172Simp * lexsup.c: Add casts. (enum control_enum): Move to top level. 496206749Sjmallett * mri.c: Add casts. (mri_draw_tree): Use enum name instead of 497206749Sjmallett integer. 498178172Simp 499206749Sjmallett2009-09-09 Alan Modra <amodra@bigpond.net.au> 500178172Simp 501178172Simp * scripttempl/aix.sc: Only provide ENTRY on final link. 502178172Simp * scripttempl/alpha.sc: Likewise. 503178172Simp * scripttempl/armcoff.sc: Likewise. 504178172Simp * scripttempl/crisaout.sc: Likewise. 505178172Simp * scripttempl/delta68.sc: Likewise. 506178172Simp * scripttempl/ebmon29k.sc: Likewise. 507178172Simp * scripttempl/elf32xc16x.sc: Likewise. 508178172Simp * scripttempl/elf32xc16xl.sc: Likewise. 509178172Simp * scripttempl/elfmicroblaze.sc: Likewise. 510178172Simp * scripttempl/epocpe.sc: Likewise. 511178172Simp * scripttempl/h8300.sc: Likewise. 512178172Simp * scripttempl/h8300h.sc: Likewise. 513178172Simp * scripttempl/h8300hn.sc: Likewise. 514178172Simp * scripttempl/h8300s.sc: Likewise. 515178172Simp * scripttempl/h8300sn.sc: Likewise. 516178172Simp * scripttempl/h8300sx.sc: Likewise. 517178172Simp * scripttempl/h8300sxn.sc: Likewise. 518178172Simp * scripttempl/hppaelf.sc: Likewise. 519178172Simp * scripttempl/i386beos.sc: Likewise. 520178172Simp * scripttempl/i386coff.sc: Likewise. 521178172Simp * scripttempl/i386go32.sc: Likewise. 522178172Simp * scripttempl/m68kaux.sc: Likewise. 523206749Sjmallett * scripttempl/m68klynx.sc: Likewise. 524178172Simp * scripttempl/m88kbcs.sc: Likewise. 525178172Simp * scripttempl/maxqcoff.sc: Likewise. 526206749Sjmallett * scripttempl/mcorepe.sc: Likewise. 527178172Simp * scripttempl/mips.sc: Likewise. 528206749Sjmallett * scripttempl/ppcpe.sc: Likewise. 529178172Simp * scripttempl/sa29200.sc: Likewise. 530178172Simp * scripttempl/sparccoff.sc: Likewise. 531206749Sjmallett * scripttempl/sparclynx.sc: Likewise. 532206749Sjmallett * scripttempl/tic4xcoff.sc: Likewise. 533206749Sjmallett * scripttempl/tic54xcoff.sc: Likewise. 534178172Simp * scripttempl/tic80coff.sc: Likewise. 535206749Sjmallett * scripttempl/z8000.sc: Likewise. 536178172Simp 537178172Simp2009-09-07 Tristan Gingold <gingold@adacore.com> 538178172Simp 539178172Simp * po/ld.pot: Regenerate. 540178172Simp 541206749Sjmallett2009-09-05 Martin Thuresson <martin@mtme.org> 542178172Simp 543206749Sjmallett * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols, 544178172Simp gld${EMULATION_NAME}_try_needed): Rename variable class to 545178172Simp link_class. 546178172Simp 547178172Simp2009-09-04 Tristan Gingold <gingold@adacore.com> 548178172Simp 549178172Simp * NEWS: Add marker for 2.20. 550178172Simp 551178172Simp2009-09-04 Alan Modra <amodra@bigpond.net.au> 552178172Simp 553178172Simp * scripttempl/elf.sc (.text): Add cold text sections. 554178172Simp 555178172Simp2009-09-04 Jie Zhang <jie.zhang@analog.com> 556178172Simp 557178172Simp * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text 558178172Simp and .l2.data. 559206749Sjmallett 560178172Simp2009-09-03 Dave Korn <dave.korn.cygwin@gmail.com> 561178172Simp 562206749Sjmallett * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch 563178172Simp new GCC hot/cold/unlikely partitions. 564206749Sjmallett * scripttempl/pep.sc: Likewise. 565178172Simp * scripttempl/epocpe.sc: Likewise. 566178172Simp * scripttempl/mcorepe.sc: Likewise. 567206749Sjmallett * scripttempl/ppcpe.sc: Likewise. 568178172Simp 569206749Sjmallett2009-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 570178172Simp 571206749Sjmallett * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct 572178172Simp source file name for generated files which may be in $(srcdir). 573178172Simp * Makefile.in: Regenerate. 574178172Simp 575178172Simp2009-09-01 H.J. Lu <hongjiu.lu@intel.com> 576206749Sjmallett 577178172Simp * ldver.c (ldversion): Change to "Copyright 2009". 578206749Sjmallett 579178172Simp2009-09-01 Jie Zhang <jie.zhang@analog.com> 580178172Simp 581178172Simp * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext, 582178172Simp _stack and __bss_start. 583178172Simp * emulparams/bfin.sh (ENTRY): Remove. 584178172Simp 585178172Simp2009-08-30 Alan Modra <amodra@bigpond.net.au> 586178172Simp 587178172Simp PR ld/10569 588178172Simp * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize. 589178172Simp (fold_name <COMMONPAGESIZE>): Similarly. 590178172Simp * ldlang.c (output_target): Make global. 591178172Simp * ldlang.h (output_target): Declare. 592178172Simp * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize. 593178172Simp Similarly for config.commonpagesize. 594178172Simp * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize 595206749Sjmallett and bfd_emul_set_commonpagesize. 596178172Simp * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call 597178172Simp bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here. 598178172Simp 599178172Simp2009-08-29 Martin Thuresson <martin@mtme.org> 600206749Sjmallett 601178172Simp * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop) 602178172Simp (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new 603178172Simp to new_e. 604206749Sjmallett * ldfile.c (ldfile_add_library_path): Rename variable new to 605178172Simp new_dirs. (ldfile_add_arch): Rename variable new to new_arch. 606206749Sjmallett * ldlang.c (new_statement, lang_final, lang_add_wild) 607178172Simp (lang_target, lang_add_fill, lang_add_data, lang_add_assignment) 608178172Simp (lang_add_insert): Rename variable new to new_stmt. (new_afile): 609206749Sjmallett Added missing cast. (lang_memory_region_lookup): Rename variable 610206749Sjmallett new to new_region. (init_os): Rename variable new to 611178172Simp new_userdata. (lang_add_section): Rename variable new to 612178172Simp new_section. (ldlang_add_undef): Rename variable new to 613178172Simp new_undef. (realsymbol): Rename variable new to new_name. 614206749Sjmallett 615178172Simp2009-08-26 Nick Clifton <nickc@redhat.com> 616206749Sjmallett 617178172Simp PR ld/10555 618178172Simp * emultempl/elf32.em (_after_open): Do not create a 619178172Simp .note.gnu-build-id section if there are no input files. 620178172Simp 621178172Simp2009-08-24 Nick Clifton <nickc@redhat.com> 622178172Simp 623206749Sjmallett * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with 624206749Sjmallett .gnu.lto_ prefix. 625178172Simp * scripttempl/armbpabi.sc: Likewise. 626178172Simp * scripttempl/elf32sh-symbian.sc: Likewise. 627178172Simp * scripttempl/elf64hppa.sc: Likewise. 628206749Sjmallett * scripttempl/mep.sc: Likewise. 629178172Simp 630206749Sjmallett2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 631178172Simp 632178172Simp * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep 633178172Simp rules. 634178172Simp (eelf32_spu.o): Add dependency tracking. 635206749Sjmallett * Makefile.in: Regenerate. 636206749Sjmallett 637178172Simp * Makefile.am (am__skiplex, am__skipyacc): New. 638178172Simp * Makefile.in: Regenerate. 639178172Simp 640178172Simp2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 641206749Sjmallett 642178172Simp * Makefile.am (bin_PROGRAMS): Renamed from ... 643206749Sjmallett (noinst_PROGRAMS): ... this. 644178172Simp (transform): Override, including the renaming of ld-new to ld. 645178172Simp (install-exec-local): Installation of ld in $(bindir) not needed 646178172Simp here any more. 647178172Simp (AM_CPPFLAGS): Renamed from ... 648206749Sjmallett (INCLUDES): ... this. 649178172Simp (MAINTAINERCLEANFILES): Add ld.1. 650178172Simp * Makefile.in: Regenerate. 651178172Simp 652206749Sjmallett * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add 653178172Simp no-texinfo.tex, no-dist, foreign. 654206749Sjmallett (TEXINFO_TEX): New variable. 655178172Simp (install-data-local): Removed, not needed any more. 656178172Simp (all): Dependencies upon info and ld.1 not needed any more. 657178172Simp (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed. 658178172Simp (mkdep generated section): Removed. 659178172Simp (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to 660178172Simp use automake dependency tracking mechanism. 661178172Simp (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and 662178172Simp $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their 663178172Simp dependencies are tracked too. 664178172Simp (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they 665178172Simp are built early. 666178172Simp * configure.in: Use AM_MAINTAINER_MODE. 667178172Simp * aclocal.m4, configure, Makefile.in: Regenerate. 668178172Simp 669178172Simp * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am) 670178172Simp (install-pdf-recursive, html__strip_dir, install-html) 671178172Simp (install-html-am, install-html-recursive): Remove. 672178172Simp * Makefile.in: Regenerate. 673178172Simp 674178172Simp * Makefile.in: Regenerate. 675178172Simp * aclocal.m4: Likewise. 676178172Simp * config.in: Likewise. 677178172Simp * configure: Likewise. 678178172Simp 679178172Simp2009-08-21 Richard Guenther <rguenther@suse.de> 680178172Simp 681178172Simp * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix. 682178172Simp 683178172Simp2009-08-12 Tristan Gingold <gingold@adacore.com> 684178172Simp 685178172Simp * ld.h (fat_user_section_struct): Add map_symbol_def_count field. 686178172Simp * ldlang.c (hash_entry_addr_cmp): New function. 687178172Simp (print_all_symbols): Sort the symbols by address before printing them. 688178172Simp 689178172Simp2009-08-10 Alan Modra <amodra@bigpond.net.au> 690178172Simp 691178172Simp PR 10474 692178172Simp * ldemul.c (after_allocation_default): Run lang_relax_sections. 693178172Simp * ldlang.h (lang_relax_sections): Declare. 694178172Simp * ldlang.c (relax_sections): Delete. 695178172Simp (lang_relax_sections): New function. 696178172Simp (lang_process): Don't relax directly from here. 697178172Simp * emultempl/alphaelf.em (alpha_finish): Call finish_default. 698178172Simp * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body.. 699178172Simp (gld${EMULATION_NAME}_finish): ..to here. Move existing code.. 700178172Simp (gld${EMULATION_NAME}_after_allocation): ..to here. New function. 701178172Simp (LDEMUL_AFTER_ALLOCATION): Update. 702178172Simp * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete. 703178172Simp (avr_elf_after_allocation): New function. 704178172Simp (LDEMUL_AFTER_ALLOCATION): Define. 705178172Simp * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call 706178172Simp lang_relax_sections. 707178172Simp * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move.. 708178172Simp (gld${EMULATION_NAME}_after_allocation): ..code to here. New function. 709178172Simp (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update. 710178172Simp * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move.. 711178172Simp (gld${EMULATION_NAME}_after_allocation): ..code to here. New function. 712178172Simp (LDEMUL_FINISH): Delete. 713178172Simp (LDEMUL_AFTER_ALLOCATION): Define. 714178172Simp * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move.. 715178172Simp (gld${EMULATION_NAME}_after_allocation): ..to here. New function. 716178172Simp (LDEMUL_FINISH): Delete. 717178172Simp (LDEMUL_AFTER_ALLOCATION): Define. 718178172Simp * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move.. 719178172Simp (m68hc11elf_after_allocation): ..to here. New function. 720178172Simp (LDEMUL_FINISH): Delete. 721178172Simp (LDEMUL_AFTER_ALLOCATION): Define. 722178172Simp * emultempl/m68kelf.em (m68k_elf_after_allocation): Call 723178172Simp gld${EMULATION_NAME}_after_allocation. 724178172Simp * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call 725178172Simp gld${EMULATION_NAME}_after_allocation. 726178172Simp * emultempl/mmo.em (mmo_finish): Delete. Move body.. 727178172Simp (gld${EMULATION_NAME}_after_allocation): ..to here. New function. 728178172Simp (LDEMUL_FINISH): Define. 729178172Simp * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp. 730178172Simp (gld${EMULATION_NAME}_finish): Move code sizing sections.. 731178172Simp (gld${EMULATION_NAME}_after_allocation): ..to here. 732178172Simp * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation): 733178172Simp Call gld${EMULATION_NAME}_after_allocation. 734178172Simp * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete 735178172Simp bfd_elf_discard_info and map_segments call. 736178172Simp 737178172Simp2009-08-06 Michael Eager <eager@eagercon.com> 738178172Simp 739178172Simp * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to 740178172Simp ALL_EMULATIONS, targets. 741178172Simp * Makefile.in: Regenerate. 742178172Simp * configure.tgt: Add microblaze*-linux*, microblaze* targets. 743178172Simp * emulparams/elf32mb_linux.sh: New. 744178172Simp * emulparams/elf32microblaze.sh. New. 745178172Simp * scripttempl/elfmicroblaze.sc: New. 746178172Simp 747178172Simp2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> 748178172Simp 749178172Simp * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup 750178172Simp section and __fixup_start symbol. 751178172Simp * emultempl/spuelf.em (params): Initialize emit_fixups member. 752178172Simp (spu_before_allocation): Call spu_elf_size_sections. 753178172Simp (OPTION_SPU_EMIT_FIXUPS): Define. 754178172Simp (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups. 755178172Simp (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups. 756178172Simp * ld.texinfo (--emit-fixups): Document. 757178172Simp 758178172Simp2009-08-04 Alan Modra <amodra@bigpond.net.au> 759178172Simp 760178172Simp PR 10474 761178172Simp * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize, 762178172Simp not size, after lang_reset_memory_regions. 763178172Simp 764178172Simp2009-07-30 Alan Modra <amodra@bigpond.net.au> 765178172Simp 766178172Simp * emulparams/elf32ppc.sh (PLT): Don't include ".iplt". 767178172Simp * emulparams/elf_i386.sh (IREL_IN_PLT): Define. 768178172Simp * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define. 769178172Simp * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections 770178172Simp when !IREL_IN_PLT. 771178172Simp 772178172Simp2009-07-29 Hans-Peter Nilsson <hp@bitrange.com> 773178172Simp 774178172Simp * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to 775178172Simp the new $RELOCATEABLE_OUTPUT_FORMAT, if set. 776178172Simp (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT. 777178172Simp (ENTRY): Don't emit for relocateable links. 778178172Simp (/DISCARD/): Don't discard .gnu.warning.* for relocateable links. 779178172Simp * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to 780178172Simp elf64-mmix. 781178172Simp * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't 782178172Simp provide "Main" or set "_start.", for relocateable links. 783178172Simp 784178172Simp2009-07-27 Nick Clifton <nickc@redhat.com> 785178172Simp 786178172Simp * (po/fi.po): Updated Finnish translation. 787178172Simp 788178172Simp2009-07-25 H.J. Lu <hongjiu.lu@intel.com> 789178172Simp 790178172Simp * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64 791178172Simp is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported. 792178172Simp (targ_extra_emuls): Likewise. 793178172Simp 794178172Simp * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and 795178172Simp eelf_l1om_fbsd.o 796178172Simp (eelf_l1om.c): New. 797178172Simp (eelf_l1om_fbsd.c): Likewise. 798178172Simp * Makefile.in: Regenerated. 799178172Simp 800178172Simp * emulparams/elf_l1om.sh: New. 801178172Simp * emulparams/elf_l1om_fbsd.sh: Likewise. 802178172Simp 803178172Simp2009-07-23 Ulrich Drepper <drepper@redhat.com> 804178172Simp 805178172Simp * NEWS: Mention the linker's support for symbols with a binding of 806178172Simp STB_GNU_UNIQUE. 807178172Simp 808178172Simp2009-07-22 H.J. Lu <hongjiu.lu@intel.com> 809178172Simp 810178172Simp PR ld/10429 811178172Simp * ldlang.c (insert_os_after): Tie assignments to non-alloc 812178172Simp output sections if there is no-input section. 813178172Simp 814178172Simp2009-07-11 Alan Modra <amodra@bigpond.net.au> 815178172Simp 816178172Simp * ldlang.c (insert_os_after): Don't tie assignments to non-alloc 817178172Simp output sections. 818178172Simp 819178172Simp2009-07-10 Alan Modra <amodra@bigpond.net.au> 820178172Simp 821178172Simp * emultempl/ppc32elf.em (ppc_before_allocation): Turn on 822178172Simp linker relaxation if it might be necessary. 823178172Simp 824178172Simp2009-07-10 Alan Modra <amodra@bigpond.net.au> 825178172Simp 826178172Simp * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt. 827178172Simp 828178172Simp2009-07-06 Matthias Klose <doko@ubuntu.com> 829178172Simp 830178172Simp * ld.texinfo: Fix typo. 831178172Simp 832178172Simp2009-07-03 Tristan Gingold <gingold@adacore.com> 833178172Simp 834178172Simp * scripttempl/pep.sc: Put .eh_frame in its own section. 835178172Simp * scripttempl/pe.sc: Ditto. 836178172Simp 837178172Simp2009-06-26 Kai Tietz <kai.tietz@onevision.com> 838178172Simp 839178172Simp * scripttempl/pe.sc (.debug_pubtypes): Added section rule. 840178172Simp * scripttempl/pep.sc: Likewise. 841178172Simp 842178172Simp2009-06-25 Tristan Gingold <gingold@adacore.com> 843178172Simp 844178172Simp * ldlang.c (print_input_section): Add is_discarded parameter. Adjust 845178172Simp prototype. 846178172Simp (lang_map): Print the size of discarded sections. 847178172Simp (print_statement): Adjust call to print_input_section. 848202046Simp 849202046Simp2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com> 850202046Simp 851202046Simp Merge cegcc and mingw32ce target name changes from CeGCC project: 852210038Simp 853210038Simp 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net> 854232855Sjmallett 855232855Sjmallett * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to 856232855Sjmallett ${tooldir}/lib/w32api. 857232855Sjmallett 858232855Sjmallett 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt> 859232855Sjmallett 860232855Sjmallett * configure.tgt: Add arm*-*-cegcc* target. 861232855Sjmallett 862232855Sjmallett 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt> 863202046Simp 864178172Simp * configure.tgt: Add arm-*-mingw32ce* target. 865210038Simp 866210038Simp2009-06-10 Philip Blundell <philb@gnu.org> 867210038Simp 868178172Simp * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash 869178172Simp if section has no ELF data. 870178172Simp 871178172Simp2009-06-06 H.J. Lu <hongjiu.lu@intel.com> 872178172Simp 873178172Simp * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc. 874178172Simp 875178172Simp2009-06-05 H.J. Lu <hongjiu.lu@intel.com> 876178172Simp 877178172Simp * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn. 878210038Simp 879178172Simp2009-06-04 Alan Modra <amodra@bigpond.net.au> 880178172Simp 881178172Simp * dep-in.sed: Don't use \n in replacement part of s command. 882178172Simp * Makefile.am (DEP1): LC_ALL for uniq. 883178172Simp * Makefile.in: Regenerate. 884178172Simp 885178172Simp2009-06-01 H.J. Lu <hongjiu.lu@intel.com> 886178172Simp 887178172Simp * scripttempl/elf.sc (PLT): Add "*(.iplt)". 888210038Simp (GOT): Add "*(.igot.plt)a" and "*(.igot)". 889210038Simp (GOTPLT): Add "*(.igot)". 890210038Simp (__rel_iplt_start): New. 891178172Simp (__rel_iplt_end): Likewise. 892178172Simp (__rela_iplt_start): Likewise. 893178172Simp (__rela_iplt_end): Likewise. 894178172Simp 895178172Simp2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com> 896178172Simp 897178172Simp * deffilep.y (%union): Add new string-type semantic value 'digits'. 898178172Simp (%token): Remove NUMBER as token, add DIGITS. 899178172Simp (%type): Add NUMBER as type. Add new id types anylang_id, opt_id. 900178172Simp (ALIGNCOMM): Parse an anylang_id instead of a plain ID. 901210038Simp (anylang_id): New production. 902178172Simp (opt_digits): Likewise. 903178172Simp (opt_id): Likewise. 904178172Simp (NUMBER): Likewise. 905178172Simp (def_lex): Return strings of digits in raw string form as DIGITS 906178172Simp token, instead of converting to numeric integer type. 907178172Simp 908178172Simp2009-05-26 Nathan Sidwell <nathan@codesourcery.com> 909202046Simp 910178172Simp * ldmain.c (main): Don't reject --relax -r. 911178172Simp * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing 912178172Simp partial links. 913178172Simp 914206749Sjmallett2009-05-26 Nick Clifton <nickc@redhat.com> 915178172Simp 916178172Simp * po/id.po: Updated Indonesian translation. 917206749Sjmallett * po/ld.pot: Updated template file. 918178172Simp 919206749Sjmallett2009-05-26 Alan Modra <amodra@bigpond.net.au> 920178172Simp 921178172Simp * dep-in.sed: Output one filename per line with all lines having 922178172Simp continuation backslash. Prefix first line with "A", following 923206749Sjmallett lines with "B". 924178172Simp * Makefile.am (DEP): Don't use dep.sed here. 925178172Simp (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies, 926178172Simp sort and uniq. 927178172Simp * Makefile.in: Regenerate. 928178172Simp 929206749Sjmallett2009-05-26 Alan Modra <amodra@bigpond.net.au> 930178172Simp 931178172Simp * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections. 932230094Sgonzo 933230094Sgonzo2009-05-22 Julian Brown <julian@codesourcery.com> 934230094Sgonzo 935230094Sgonzo * emultempl/armelf.em (fix_cortex_a8): New. 936230094Sgonzo (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix. 937230094Sgonzo (arm_elf_create_output_section_statements): Add fix_cortex_a8 to 938230094Sgonzo bfd_elf32_arm_set_target_relocs. 939230094Sgonzo (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New. 940230094Sgonzo (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options. 941230094Sgonzo (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options. 942230094Sgonzo (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8. 943230094Sgonzo * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options. 944230094Sgonzo 945230094Sgonzo2009-05-22 Nathan Sidwell <nathan@codesourcery.com> 946230094Sgonzo 947230094Sgonzo * ldlang.c (lang_check_section_addresses): Ignore non-loadable 948230094Sgonzo sections when checking for overlap. Clarify error message 949230094Sgonzo concerns load address. 950230094Sgonzo 951178172Simp2009-05-22 Alan Modra <amodra@bigpond.net.au> 952178172Simp 953178172Simp * Makefile.am: Run "make dep-am". 954178172Simp * Makefile.in: Regenerate. 955178172Simp 956178172Simp2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> 957206749Sjmallett 958178172Simp * NEWS: Mention new feature. 959178172Simp * deffile.h (def_file_aligncomm): Add new struct definition. 960206749Sjmallett (def_file): Add new def_file_aligncomm member. 961178172Simp * deffilep.y (%token): Add new ALIGNCOMM token. 962206749Sjmallett (command): Add production rule for ALIGNCOMM. 963178172Simp (def_file_free): Free any chained def_file_aligncomm structs. 964178172Simp (diropts[]): Add entry for '-aligncomm' .drectve command. 965178172Simp (def_aligncomm): New grammar function. 966206749Sjmallett * ld.texinfo: Document new feature. 967178172Simp * pe-dll.c (process_def_file): Rename from this ... 968178172Simp (process_def_file_and_drectve): ... to this, updating all callers, 969178172Simp and process any aligncomms chained to the def file after scanning 970178172Simp all .drectve sections. 971178172Simp (generate_edata): Updated to match. 972206749Sjmallett (pe_dll_build_sections): Likewise. 973178172Simp 974178172Simp2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com> 975178172Simp 976178172Simp * pe-dll.c (process_def_file): Do not create empty export table. 977178172Simp 978178172Simp2009-05-15 Alan Modra <amodra@bigpond.net.au> 979178172Simp 980178172Simp * ldlang.c (lang_output_section_statement_lookup): Add function 981178172Simp comment. Make "name" non-const. Ensure duplicate entries use 982178172Simp the same string, allowing simple comparison in hash bucket loop. 983178172Simp Tweak constraint check. 984210038Simp (next_matching_output_section_statement): New function. 985178172Simp * ldlang.h (lang_output_section_statement_lookup): Update. 986178172Simp (next_matching_output_section_statement): Declare. 987232872Sjmallett * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't 988178172Simp combine orphan sections when input sections flags differ in 989178172Simp alloc or load. 990210038Simp * emultempl/pe.em: Formatting throughout. 991249901Simp (gld${EMULATION_NAME}_place_orphan): As for elf32.em. 992249901Simp * emultempl/pep.em: Formatting throughout. 993249901Simp (gld${EMULATION_NAME}_place_orphan): As for elf32.em. 994249901Simp 995249901Simp2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 996249901Simp 997249901Simp * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use 998249901Simp compact stubs with software i-cache. 999249901Simp 1000249901Simp2009-05-14 Alan Modra <amodra@bigpond.net.au> 1001249901Simp 1002249901Simp * emultempl/spuelf.em (spu_before_allocation): Call 1003178172Simp spu_elf_place_overlay_data. 1004178172Simp 1005178172Simp2009-05-14 Alan Modra <amodra@bigpond.net.au> 1006178172Simp 1007178172Simp * ldlang.c (lang_insert_orphan): Add __start_<section> symbol 1008249901Simp assignment inside output section statement. Ensure only one 1009249901Simp set of symbols per output section. 1010249901Simp * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non- 1011249901Simp dollar sections before dollar sections. Correct add_child 1012249901Simp list insertion. 1013249901Simp * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise. 1014249901Simp 1015249901Simp2009-05-05 Paul Brook <paul@codesourcery.com> 1016249901Simp 1017249901Simp * emultempl/armelf.em (compare_output_sec_vma): New function. 1018249901Simp (gld${EMULATION_NAME}_finish): Add exidx munging code. 1019249901Simp 1020210038Simp2009-05-05 Anatoly Sokolov <aesok@post.ru> 1021178172Simp 1022178172Simp * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN. 1023178172Simp * emulparams/avr1.sh (DATA_ORIGIN): Add. 1024178172Simp * emulparams/avr2.sh (DATA_ORIGIN): Add. 1025178172Simp * emulparams/avr25.sh (DATA_ORIGIN): Add. 1026205675Sneel * emulparams/avr3.sh (DATA_ORIGIN): Add. 1027205675Sneel * emulparams/avr31.sh (DATA_ORIGIN): Add. 1028205675Sneel * emulparams/avr35.sh (DATA_ORIGIN): Add. 1029205675Sneel * emulparams/avr4.sh (DATA_ORIGIN): Add. 1030205675Sneel * emulparams/avr5.sh (DATA_ORIGIN): Add. 1031205675Sneel * emulparams/avr51.sh (DATA_ORIGIN): Add. 1032205675Sneel (DATA_LENGTH): Update. 1033205675Sneel * emulparams/avr6.sh (DATA_ORIGIN): Add. 1034205675Sneel (DATA_LENGTH): Update. 1035205675Sneel 1036205675Sneel2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com> 1037205675Sneel 1038205675Sneel * NEWS: Mention new feature. 1039205675Sneel * ld.texinfo (--version-script): Document extent of PE support. 1040205675Sneel (WIN32): Mention --version-script. Extend auto-export description. 1041205675Sneel * pe-dll.c (process_def_file): Use version script info to filter 1042205675Sneel symbols from auto-export. 1043205675Sneel * testsuite/ld-pe/vers-script-1.d: New file. 1044205675Sneel * testsuite/ld-pe/vers-script-2.d: New file. 1045205675Sneel * testsuite/ld-pe/vers-script-3.d: New file. 1046205675Sneel * testsuite/ld-pe/vers-script-4.d: New file. 1047205675Sneel * testsuite/ld-pe/vers-script-1.ver: New file. 1048205675Sneel * testsuite/ld-pe/vers-script-2.ver: New file. 1049205675Sneel * testsuite/ld-pe/vers-script-3.ver: New file. 1050205675Sneel * testsuite/ld-pe/vers-script-4.ver: New file. 1051205675Sneel * testsuite/ld-pe/vers-script-dll.c: New file. 1052205675Sneel * testsuite/ld-pe/vers-script.exp: New test script. 1053205675Sneel 1054205675Sneel2009-05-01 Nathan Sidwell <nathan@codesourcery.com> 1055205675Sneel 1056205675Sneel * emulparams/vxworks.sh (TEXT_START_ADDR): Override. 1057205675Sneel 1058205675Sneel2009-04-30 Nick Clifton <nickc@redhat.com> 1059205675Sneel 1060205675Sneel * NEWS: Mention support for IFUNC symbols. 1061205675Sneel 1062205675Sneel2009-04-29 Anthony Green <green@moxielogic.com> 1063205675Sneel 1064205675Sneel * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack 1065205675Sneel position out to accommodate larger programs. 1066205675Sneel 1067205675Sneel2009-04-29 Chris Demetriou <cgd@google.com> 1068205675Sneel 1069205675Sneel * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC. 1070205675Sneel (ld_options): Likewise. 1071205675Sneel (parse_args): Likewise. 1072205675Sneel * ld.texinfo: Document --no-export-dynamic. 1073205675Sneel * NEWS: Mention --no-export-dynamic. 1074205675Sneel 1075205675Sneel2009-04-29 Alan Modra <amodra@bigpond.net.au> 1076205675Sneel 1077205675Sneel * deffilep.y (STACKSIZE_K): Rename from STACKSIZE. 1078205675Sneel 1079205675Sneel2009-04-25 Alan Modra <amodra@bigpond.net.au> 1080205675Sneel 1081205675Sneel PR 10061 1082205675Sneel * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT 1083205675Sneel param. 1084205675Sneel 1085205675Sneel2009-04-21 Daniel Jacobowitz <dan@codesourcery.com> 1086205675Sneel 1087205675Sneel * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open) 1088205675Sneel (arm_elf_set_bfd_for_interworking): Delete. 1089205675Sneel (arm_elf_before_allocation): Do not set the interworking BFD. 1090205675Sneel Move allocation inside not-dynamic block. 1091205675Sneel (arm_elf_create_output_section_statements): Create glue sections 1092205675Sneel and set the interworking BFD here. 1093205675Sneel (LDEMUL_AFTER_OPEN): Delete. 1094205675Sneel 1095205675Sneel2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com> 1096205675Sneel 1097205675Sneel * ldlang.c (lang_one_common): Use bfd_define_common_symbol. 1098205675Sneel 1099205675Sneel2009-04-15 Anthony Green <green@moxielogic.com> 1100 1101 * configure.tgt: Add moxie support. 1102 * Makefile.am: Add moxie files. 1103 * Makefile.in: Rebuilt. 1104 * emulparams/elf32moxie.sh: New file. 1105 * scripttempl/moxie.sc: New file. 1106 11072009-04-15 Kazu Hirata <kazu@codesourcery.com> 1108 1109 * ldlang.c: Do not include limits.h. 1110 11112009-04-14 Alan Modra <amodra@bigpond.net.au> 1112 1113 PR ld/10047 1114 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find 1115 ldscripts in build tree. Don't repeat search for ../lib/ldscripts. 1116 11172009-04-13 H.J. Lu <hongjiu.lu@intel.com> 1118 1119 * ldfile.c (ldfile_find_command_file): Revert the last change. 1120 11212009-04-11 H.J. Lu <hongjiu.lu@intel.com> 1122 1123 PR ld/10047 1124 * ldfile.c (ldfile_find_command_file): First try raw name. 1125 11262009-04-09 Nick Clifton <nickc@redhat.com> 1127 1128 PR 9824 1129 * ld.texinfo (Output Section Constraint): New node. Documents the 1130 ONLY_IF_RO and ONLY_IF_RW constraints. 1131 (Symbolic Constants): New node. Documents the CONSTANT operator. 1132 11332009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de> 1134 1135 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place 1136 of fork/execvp. 1137 11382009-04-08 H.J. Lu <hongjiu.lu@intel.com> 1139 1140 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM. 1141 (ld_options): Likewise. 1142 (parse_args): Likewise. 1143 1144 * ld.texinfo: Document --warn-alternate-em. 1145 1146 * NEWS: Mention --warn-alternate-em. 1147 11482009-04-07 DJ Delorie <dj@redhat.com> 1149 1150 * emulparams/elf32mep.sh: Change default endian to little. 1151 11522009-04-07 Nick Clifton <nickc@redhat.com> 1153 1154 * ld.texinfo (Output Section Address): Note that specifying an 1155 address for an output section will only change the location 1156 counter if the output section is used. 1157 11582009-04-06 Kazu Hirata <kazu@codesourcery.com> 1159 1160 * ldfile.c (ldfile_find_command_file): Initialize result. 1161 11622009-04-06 Kazu Hirata <kazu@codesourcery.com> 1163 1164 * ld.texinfo (-L): Mention that -L options do not affect how ld 1165 searches for a linker script unless -T option is specified. 1166 * ldfile.c (ldfile_find_command_file): Append the path obtained 1167 from the program name to the search path instead of 1168 prepending. Add a new parameter "default_only". Restrict the 1169 search to the default script location if the new parameter is 1170 true. 1171 (ldfile_open_command_file_1): New. 1172 (ldfile_open_command_file): Call ldfile_open_command_file_1. 1173 (ldfile_open_default_command_file): New. 1174 11752009-04-03 Nathan Sidwell <nathan@codesourcery.com> 1176 1177 * ldlang.c (lang_leave_output_section_statement): Set lma_region 1178 if it is not overridden and section is for the same vma region as 1179 the previous section. 1180 11812009-04-02 Dave Korn <dave.korn.cygwin@gmail.com> 1182 1183 PR ld/6744 1184 * ld.texinfo (--export-dynamic): Mention --export-all-symbols. 1185 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue 1186 warning if --export-dynamic was passed on command-line. 1187 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise. 1188 11892009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> 1190 1191 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New 1192 function. 1193 (ld_${EMULATION_NAME}_emulation): Use it. 1194 11952009-03-20 H.J. Lu <hongjiu.lu@intel.com> 1196 1197 PR ld/9970 1198 * ldlang.c (lang_end): Warn missing entry symbol for -pie. 1199 12002009-03-19 Alan Modra <amodra@bigpond.net.au> 1201 1202 * emultempl/spuelf.em (spu_before_allocation): Report errors from 1203 spu_elf_find_overlays. 1204 12052009-03-18 H.J. Lu <hongjiu.lu@intel.com> 1206 1207 PR ld/6766 1208 * lexsup.c (parse_args): Call ldlang_add_undef for -e. 1209 12102009-03-18 Alan Modra <amodra@bigpond.net.au> 1211 1212 * ld.h: Remove alloca handling. 1213 12142009-03-17 Alan Modra <amodra@bigpond.net.au> 1215 1216 * emultempl/spu_icache.S: Add new entry to dummy handler. 1217 * emultempl/spu_icache.o_c: Regenerate. 1218 * emultempl/spuelf.em (params): Init new field. 1219 (no_overlays): New static var. 1220 (spu_before_allocation): Use it. 1221 (OPTION_SPU_COMPACT_STUBS): Define. 1222 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs. 1223 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays 1224 handling. 1225 12262009-03-17 Alan Modra <amodra@bigpond.net.au> 1227 1228 * configure.host (HOSTING_LIBS): Two dollars on shell variable 1229 expansion to suit make. 1230 12312009-03-17 Alan Modra <amodra@bigpond.net.au> 1232 1233 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL. 1234 * Makefile.am (check-DEJAGNU): Set DO_COMPARE. 1235 * aclocal.m4: Regenerate. 1236 * configure: Regenerate. 1237 * Makefile.in: Regenerate. 1238 12392009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 1240 1241 * emultempl/aix.em (auto_export_flags): New variable. 1242 (explicit_auto_export_flags): Likewise. 1243 (OPTION_EXPALL, OPTION_EXPFULL): New enum values. 1244 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise. 1245 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull, 1246 -bnoexpall and -bnoexpfull. 1247 (gld${EMULATION_NAME}_handle_option): Handle them. 1248 (gld${EMULATION_NAME}_before_allocation): Update the call to 1249 bfd_size_dynamic_sections. 1250 12512009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 1252 1253 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make 1254 -berok and -bernotok control link_info.unresolved_syms_in_objects 1255 and link_info.unresolved_syms_in_shared_libs instead of 1256 force_make_executable. 1257 12582009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 1259 1260 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set 1261 config.dynamic_link to TRUE. 1262 12632009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 1264 1265 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark 1266 .text, .data and .bss output sections as SEC_KEEP. 1267 12682009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 1269 1270 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above. 1271 12722009-03-14 Dave Korn <dave.korn.cygwin@gmail.com> 1273 Danny Smith <dannysmith@users.sourceforge.net> 1274 1275 * emultmpl/pe.em (pe_dll_characteristics): New variable. 1276 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT, 1277 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND, 1278 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE): 1279 New macros for options to set DllCharacteristics flag bits. 1280 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg, 1281 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options. 1282 (init): Add DllCharacteristics field. 1283 (gld_${EMULATION_NAME}_list_options): List new options. 1284 (gld${EMULATION_NAME}_handle_option): Handle new options. 1285 * emultmpl/pep.em (pe_dll_characteristics): New variable. 1286 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT, 1287 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND, 1288 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE): 1289 New macros for options to set DllCharacteristics flags. 1290 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg, 1291 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options. 1292 (init): Add DllCharacteristics field. 1293 (gld_${EMULATION_NAME}_list_options): List new options. 1294 (gld${EMULATION_NAME}_handle_option): Handle new options. 1295 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat, 1296 no-isolation, no-seh, no-bind, wdmdriver, tsaware options. 1297 12982009-03-06 Nick Clifton <nickc@redhat.com> 1299 1300 * po/es.po: Updated Spanish translation. 1301 13022009-03-03 Dave Korn <dave.korn.cygwin@gmail.com> 1303 1304 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook. 1305 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections 1306 of all input BFDs, looking for debug info. Enable long section names 1307 if any found. 1308 * emultempl/pe.em (debug_section_p): Likewise. 1309 (gld_${EMULATION_NAME}_after_open): Likewise. 1310 * NEWS: Retrospectively adjust news announcement. 1311 * ld.texinfo: Update documentation to mention new behaviour. 1312 13132009-03-03 Alan Modra <amodra@bigpond.net.au> 1314 1315 * Makefile.am: Run "make dep-am". 1316 * Makefile.in: Regenerate. 1317 13182009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de> 1319 1320 * ldgram.y: Add support for REGION_ALIAS operator. 1321 * ldlang.c: Likewise. 1322 * ldlang.h: Likewise. 1323 * ldlex.l: Likewise. 1324 * NEWS: Mention the new feature. 1325 * ld.texinfo: Document the new feature. 1326 13272009-03-02 Qinwei <qinwei@sunnorth.com.cn> 1328 1329 * Makefile.am: Replace score elf emulation with score3 and score7 1330 emulations. 1331 * Makefile.in: Regenerate, 1332 * NEWS: Mention support for Score7 architecture. 1333 * configure.tgt: Add score7 emulation to score-elf target. 1334 * emulparams/scoreelf.sh: Add score7 support. 1335 * emultempl/scoreelf.em: Likewise. 1336 13372009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 1338 1339 * configure.tgt: Only use elf64hppa target emulation for hpux. 1340 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh. 1341 (SCRIPT_NAME): Use new script elf64hppa. 1342 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY, 1343 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS, 1344 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS, 1345 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT, 1346 TEXT_DYNAMIC): Define. 1347 * emulparams/hppa64linux.sh: Adjust comments. 1348 * scripttempl/elf64hppa.sc: New file. 1349 13502009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1351 1352 * configure: Regenerate. 1353 13542009-02-27 Dave Korn <dave.korn.cygwin@gmail.com> 1355 1356 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set 1357 default state of auto-import flag based on $target. 1358 13592009-02-24 Joseph Myers <joseph@codesourcery.com> 1360 1361 * ld.texinfo (ARM): Document changed meaning of --stub-group-size. 1362 * emultempl/armelf.em (hook_in_stub): Insert after the input section. 1363 (elf32_arm_add_stub_section): Update comment. 1364 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size. 1365 13662009-02-24 Sandra Loosemore <sandra@codesourcery.com> 1367 1368 * ld.texinfo (Options): Correct typos in example. Recommend 1369 using joined forms of syntax for passing options with arguments 1370 from a driver. 1371 (-a): Use consistent syntax for documenting option arguments. 1372 Clean up indexing and markup. 1373 (-A/--architecture): Likewise. 1374 (-f/--auxiliary): Likewise. 1375 (-F/--filter): Likewise. 1376 (-fini): Likewise. 1377 (-G/--gpsize): Likewise. 1378 (-h/-soname):Likewise. 1379 (-init): Likewise. 1380 (-l/--library): Likewise. 1381 (-L/--library-path): Likewise. 1382 (-m): Likewise. 1383 (--defsym): Likewise. 1384 (-I/--dynamic-linker): Likewise. 1385 (-Map): Likewise. 1386 (--oformat): Likewise. 1387 (--retain-symbols-file): Likewise. 1388 (-rpath): Likewise. 1389 (-rpath-link): Likewise. 1390 (--sort-common): Likewise. 1391 (--sort-section): Likewise. 1392 (--split-by-file): Likewise. 1393 (--split-by-reloc): Likewise. 1394 (--sysroot): Likewise. 1395 (--section-start): Likewise. 1396 (-Tbss, -Tdata, -Ttext): Likewise. 1397 (-Ttext-segment): Likewise. 1398 (--version-script): Likewise. 1399 (--wrap): Likewise. 1400 14012009-02-18 Dave Korn <dave.korn.cygwin@gmail.com> 1402 1403 * ld.texinfo: Update to mention long section name options. 1404 * NEWS: Mention new behaviour and command-line options. 1405 * pe-dll.c (pe_use_coff_long_section_names): New global variable. 1406 (pe_output_file_set_long_section_names): New function. 1407 (pe_dll_build_sections): Call it on output BFDs. 1408 (pe_exe_build_sections): Likewise. 1409 (pe_dll_fill_sections): Likewise. 1410 (pe_exe_fill_sections): Likewise. 1411 * pe-dll.h (pe_use_coff_long_section_names): Declare extern. 1412 (pe_output_file_set_long_section_names): Add prototype. 1413 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias. 1414 (pe_output_file_set_long_section_names): Likewise. 1415 * pep-dll.h (pep_use_coff_long_section_names): Declare extern. 1416 (pep_output_file_set_long_section_names): Add prototype. 1417 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro. 1418 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise. 1419 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[]. 1420 (gld_${EMULATION_NAME}_list_options): Describe them. 1421 (gld${EMULATION_NAME}_handle_option): Set or clear global 1422 pe_use_coff_long_section_names flag when options recognised. 1423 (gld_${EMULATION_NAME}_after_open): En/disable long section names 1424 for main output bfd by calling pe_output_file_set_long_section_names. 1425 * pep.em (enum options): Extend enum with new getopt option values. 1426 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[]. 1427 (gld_${EMULATION_NAME}_list_options): Describe them. 1428 (gld${EMULATION_NAME}_handle_option): Set or clear global 1429 pe_use_coff_long_section_names flag when options recognised. 1430 (gld_${EMULATION_NAME}_after_open): En/disable long section names 1431 for main output bfd by calling pep_output_file_set_long_section_names. 1432 14332009-02-16 Dave Korn <dave.korn.cygwin@gmail.com> 1434 1435 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit 1436 inadvertent .reloc sections caused by refactoring accident. 1437 14382009-02-16 Alan Modra <amodra@bigpond.net.au> 1439 1440 * ldlang.c (process_insert_statements): ASSERT that output section 1441 statements are in order. 1442 14432009-02-16 Alan Modra <amodra@bigpond.net.au> 1444 1445 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions. 1446 (stat_save, stat_save_ptr): New variables. 1447 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr. 1448 (load_symbols): Likewise. Delete dead "bad_load" code. 1449 (open_input_bfds): Warn on script containing output sections. 1450 (lang_enter_output_section_statement): Use push_stat_ptr. 1451 (lang_enter_group): Likewise. 1452 (lang_leave_output_section_statement): Use pop_stat_ptr. 1453 (lang_leave_group): Likewise. 1454 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare. 1455 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr. 1456 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise. 1457 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise. 1458 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise. 1459 * emultempl/spuelf.em (spu_place_special_section): Likewise. 1460 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise. 1461 14622009-02-09 Nathan Sidwell <nathan@codesourcery.com> 1463 1464 Missing piece of 2009-01-26 commit 1465 * ldlang.c (lang_process): Don't consider relocatable flag when 1466 checking for overlap. 1467 14682009-02-05 Joseph Myers <joseph@codesourcery.com> 1469 1470 * emulparams/m68kelf.sh: Add newline at end of file. 1471 14722009-02-04 Nick Clifton <nickc@redhat.com> 1473 1474 PR 9805 1475 * ld.texinfo (--allow-shlib-undefined): Correct description of 1476 default settings and tidy up the rest of the entry. 1477 14782009-02-04 Alan Modra <amodra@bigpond.net.au> 1479 1480 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.* 1481 during relocatable link. 1482 14832009-02-03 Nick Clifton <nickc@redhat.com> 1484 1485 PR 9797 1486 * ld.texinfo (Constants): Document the base-encoding suffixes 1487 supported in linker scripts. 1488 14892009-02-03 Alan Modra <amodra@bigpond.net.au> 1490 1491 * NEWS: Mention --as-needed change. 1492 14932009-02-03 Carlos O'Donell <carlos@codesourcery.com> 1494 1495 * configure.in: AC_SUBST pdfdir. 1496 * Makefile.am: Add install-pdf, install-pdf-am, 1497 and install-pdf-recursive targets. Define pdf__strip_dir. 1498 * po/Make-in: Add install-pdf target. 1499 * configure: Regenerate. 1500 * Makefile.in: Regenerate. 1501 15022009-01-31 Alan Modra <amodra@bigpond.net.au> 1503 1504 * ld.texinfo (--as-needed): Update. 1505 15062009-01-29 Andrew Jenner <andrew@codesourcery.com> 1507 1508 * emultempl/armelf.em: Correct formatting of help text for 1509 --no-enum-size-warning option. 1510 15112009-01-26 Nathan Sidwell <nathan@codesourcery.com> 1512 1513 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0. 1514 * ld.h (args_type): Make check_section_addresses a char. 1515 * ldmain.c (main): Default check_section_addresses to -1. Check it 1516 for relocatable links. 1517 * ld.texinfo (--check-sections): Update documentation. 1518 15192009-01-26 Kai Tietz <kai.tietz@onevision.com> 1520 1521 * pe-dll.c (tmp_seq2): New static variable. 1522 (make_singleton_name_imp): New. 1523 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and 1524 avoid duplicate import table generation for same symbol. 1525 (pe_create_runtime_relocator_reference): Make reference for 1526 64-bit 8 bytes. 1527 15282009-01-21 Alan Modra <amodra@bigpond.net.au> 1529 1530 * emultempl/spuelf.em (params): Init new field. 1531 (OPTION_SPU_NON_IA_TEXT): Define. 1532 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text. 1533 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT. 1534 15352009-01-16 H.J. Lu <hongjiu.lu@intel.com> 1536 1537 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT. 1538 (ld_options): Add -Ttext-segment. 1539 (parse_args): Handle OPTION_TTEXT_SEGMENT. 1540 1541 * ld.texinfo: Document -Ttext-segment. 1542 1543 * NEWS: Mention -Ttext-segment. 1544 1545 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START. 1546 (SHLIB_TEXT_START_ADDR): Likewise. 1547 15482009-01-13 Alan Modra <amodra@bigpond.net.au> 1549 1550 * emultempl/spu_icache.o_c: Regenerate. 1551 15522009-01-12 Alan Modra <amodra@bigpond.net.au> 1553 1554 * emultempl/spuelf.em (params): Init new fields. 1555 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars. 1556 (spu_place_special_section): Adjust placement for soft-icache. Pad 1557 soft-icache section to a fixed size. Clear addr_tree. 1558 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager 1559 sections a little more intelligently. 1560 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs. 1561 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS. 1562 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define. 1563 (OPTION_SPU_LRLIVE): Define. 1564 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options. 1565 (PARSE_AND_LIST_OPTIONS): Likewise. 1566 (PARSE_AND_LIST_ARGS_CASES): Handle them. 1567 * emultempl/spu_icache.S: Dummy file. 1568 * emultempl/spu_icache.o_c: Regenerate. 1569 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c. 1570 (spu_icache.o_c): Add rule to build. 1571 (CLEANFILES): Zap temp files. 1572 (EXTRA_DIST): Add spu_icache.o_c. 1573 * Makefile.in: Regenerate. 1574 15752009-01-08 Kai Tietz <kai.tietz@onevision.com> 1576 1577 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New. 1578 (gld..._add_options): Add new option 1579 --use-nul-prefixed-import-tables. 1580 (gld..._handle_option): Likewise. 1581 * pep.em: Same as for pe.em. 1582 * ld.texinfo: Add new option documentation for 1583 --use-nul-prefixed-import-tables. 1584 * pe-dll.c (pe_use_nul_prefixed_import_tables): New. 1585 (make_head): Make prefix leading zero prefix element for 1586 idata$4 and idata$5 dependent to new flag. 1587 (make_import_fixup_entry): Remove idata4/5 prefix. 1588 * pe-dll.h (pe_use_nul_prefixed_import_tables): New. 1589 * pep-dll.c (pe_use_nul_prefixed_import_tables): New. 1590 * pep-dll.h (pep_use_nul_prefixed_import_tables): New. 1591 * NEWS: Add new option. 1592 15932009-01-05 Kai Tietz <kai.tietz@onevision.com> 1594 1595 * emultempl/pe.em: Prefix dollar characters to be outputed in 1596 generated C file. 1597 * emultempl/pep.em: Likewise. 1598 15992009-01-03 Dave Korn <dave.korn.cygwin@gmail.com> 1600 1601 * NEWS: Mention new feature --exclude-modules-for-implib. 1602 * ld.texinfo: Document new --exclude-modules-for-implib option. 1603 * pe-dll.c (exclude_list_struct): Change type member from int to 1604 new enumeration exclude_type. 1605 (pe_dll_add_excludes): Accept exclude_type instead of int param. 1606 (auto_export): Replace magic constants by exclude_type values and 1607 handle new choice EXCLUDEFORIMPLIB. 1608 (pe_dll_generate_implib): Accept a pointer to the link_info and 1609 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open 1610 fresh BFDs for any found and link into import lib archive chain. 1611 * pe-dll.h (exclude_type): Add new enumerated type to replace magic 1612 constants previously used for exclude_list_struct type member. 1613 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes. 1614 * pep-dll.h (exclude_type, pe_dll_add_excludes, 1615 pe_dll_generate_implib): Likewise to all the above. 1616 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new 1617 getopts long option code for new --exclude-modules-for-implib option. 1618 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[]. 1619 (gld_${EMULATION_NAME}_list_options): List usage for it. 1620 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated 1621 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB. 1622 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when 1623 calling pe_dll_generate_implib. 1624 * emultempl/pep.em (options): Define new enumerated value for getopts 1625 long option code for new --exclude-modules-for-implib option. 1626 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options, 1627 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish): 1628 Again, likewise to all the above. 1629 16302009-01-03 Dave Korn <dave.korn.cygwin@gmail.com> 1631 1632 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc. 1633 (libnamencmp): New function. 1634 (auto_export): Use it in place of strncmp when filtering libraries. 1635 1636For older changes see ChangeLog-2008 1637 1638Local Variables: 1639mode: change-log 1640left-margin: 8 1641fill-column: 74 1642version-control: never 1643End: 1644