12013-03-05 Alan Modra <amodra@gmail.com> 2 3 PR ld/15222 4 * ldlang.c (lang_size_sections_1): When given an lma_region align 5 LMA as per VMA only if lma_region is the same as region. 6 72013-01-22 Alan Modra <amodra@gmail.com> 8 9 Apply mainline patches 10 2013-01-08 Alan Modra <amodra@gmail.com> 11 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace 12 "name" param with a bfd_link_needed_link pointer. Update caller. 13 (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise. 14 15 2012-12-17 Alan Modra <amodra@gmail.com> 16 PR ld/14962 17 * ldexp.h (struct ldexp_control): Add "assign_name". 18 * ldexp.c (fold_name <NAME>): Compare and clear assign_name on match. 19 (exp_fold_tree_1): Remove existing code testing for self assignment. 20 Instead set and test expld.assign_name. 21 * ldlang.c (scan_for_self_assignment): Delete. 22 (print_assignment): Instead set and test expld.assign_name. 23 24 2012-12-05 H.J. Lu <hongjiu.lu@intel.com> 25 PR ld/14915 26 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Also 27 check DT_NEEDED entries when creating shared object with 28 --copy-dt-needed-entries. 29 30 2012-12-03 H.J. Lu <hongjiu.lu@intel.com> 31 PR ld/14904 32 * ldmain.c (main): Don't check plugin_load_plugins return. 33 * lexsup.c (parse_args): Don't check plugin_opt_plugin return. 34 * plugin.c (dlerror): New. Defined if HAVE_DLFCN_H isn't 35 defined. 36 (plugin_opt_plugin): Change return type to void. Stop on 37 dlopen error and report error with dlerror (). 38 (plugin_load_plugins): Change return type to void. Stop on 39 dlsym error and report error with dlerror (). Don't use 40 set_plugin_error. 41 (plugin_call_cleanup): Issue an error for each plugin. 42 * plugin.h (plugin_opt_plugin): Change return type to void. 43 (plugin_load_plugins): Likewise. 44 45 2012-11-01 Alan Modra <amodra@gmail.com> 46 * ldlang.c (insert_pad): Correct output section size calculation. 47 (lang_size_sections_1): Likewise for lang_data_statement and 48 lang_reloc_statement. 49 50 2012-10-22 Alan Modra <amodra@gmail.com> 51 * plugin.c (plugin_load_plugins): Warning fix. 52 532012-12-18 Roland McGrath <mcgrathr@google.com> 54 55 * ld.texinfo (Options): Describe -Trodata-segment. 56 * ldlex.h (enum option_values): Add OPTION_TRODATA_SEGMENT. 57 * lexsup.c (ld_options, parse_args): Handle -Trodata-segment. 58 * scripttempl/elf.sc (RODATA_ADDR, SHLIB_RODATA_ADDR): Wrap 59 SEGMENT_START("rodata-segment", ...) + SIZEOF_HEADERS around the value. 60 612012-12-11 Roland McGrath <mcgrathr@google.com> 62 63 * emulparams/elf_nacl.sh (nacl_rodata_addr): New shell function. 64 (RODATA_ADDR, SHLIB_RODATA_ADDR): Use it to base the calculation 65 on SEGMENT_START("text-segment", ...) rather than ... alone. 66 * Makefile.am (earmelf_nacl.c, earmelfb_nacl.c): Add missing 67 dependency on $(srcdir)/emulparams/elf_nacl.sh. 68 * Makefile.in: Regenerate. 69 702012-11-26 Roland McGrath <mcgrathr@google.com> 71 72 * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): 73 Copy last elf32.em here too. 74 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise. 75 * emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse): Likewise. 76 * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise. 77 782012-11-21 Roland McGrath <mcgrathr@google.com> 79 80 * ld.h (ld_config_type): New flag member separate_code. 81 * emultempl/elf32.em 82 (gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE. 83 * ldlang.c (ldlang_override_segment_assignment): If it's set, then 84 always return TRUE when SEC_CODE differs between the sections. 85 862012-11-05 Alan Modra <amodra@gmail.com> 87 88 * configure.in: Apply 2012-09-10 change to config.in here. 89 902012-09-10 Matthias Klose <doko@ubuntu.com> 91 92 * config.in: Disable sanity check for kfreebsd. 93 942012-09-10 Hans-Peter Nilsson <hp@bitrange.com> 95 96 * emultempl/mmo.em (mmo_place_orphan): Rewrite to also attach 97 orphan sections to .data and .bss output sections, not just .text. 98 When giving up on finding a suitable output section, attach to any 99 output section other than .MMIX.reg_contents, if it exists. 100 * scripttempl/mmo.sc: Move output debug sections to just before 101 .MMIX.reg_contents. Add .gnu.attributes. Add new . = . NOP 102 assignments and move end-of-section provide-symbols after them 103 to force the end-of-section symbols to the address after orphan 104 placement. Add SORT_NONE to .init and .fini sections. 105 1062012-09-10 Maciej W. Rozycki <macro@codesourcery.com> 107 108 * emulparams/elf32bmip.sh: Make _gp hidden. 109 * emulparams/elf32bmipn32-defs.sh: Likewise. 110 * emulparams/elf32mipswindiss.sh: Likewise. 111 * scripttempl/mips.sc: Likewise. 112 1132012-08-06 Maciej W. Rozycki <macro@codesourcery.com> 114 115 * ldexp.h (etree_union): Add defsym member to the assign member 116 structure. 117 (exp_assign): Add hidden argument to prototype. 118 * ldexp.c (exp_fold_tree_1): Use the defsym member to handle 119 --defsym symbols. 120 (exp_assop): Add defsym argument, initialize the defsym member 121 of the assign structure. 122 (exp_assign): Handle hidden symbols. 123 (exp_defsym): Update to use the defsym argument to exp_assop. 124 (exp_provide): Update to handle the defsym argument to exp_assop. 125 * ldlex.l (HIDDEN): New token. 126 * ldgram.y (HIDDEN): Likewise. 127 (assignment, section): Update calls to exp_assign. 128 * ldctor.c (ldctor_build_sets): Likewise. 129 * mri.c (mri_format): Likewise. 130 * ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise. 131 (open_input_bfds): Remove --defsym symbols special case. 132 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update 133 call to exp_assign. 134 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise. 135 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise. 136 * emultempl/spuelf.em (spu_place_special_section): Likewise. 137 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): 138 Likewise. 139 * ld.texinfo (Assigning Values to Symbols): Add HIDDEN. 140 (HIDDEN): New subsection. 141 1422012-08-13 Ian Bolton <ian.bolton@arm.com> 143 Laurent Desnogues <laurent.desnogues@arm.com> 144 Jim MacArthur <jim.macarthur@arm.com> 145 Marcus Shawcroft <marcus.shawcroft@arm.com> 146 Nigel Stephens <nigel.stephens@arm.com> 147 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> 148 Richard Earnshaw <rearnsha@arm.com> 149 Sofiane Naci <sofiane.naci@arm.com> 150 Tejas Belagod <tejas.belagod@arm.com> 151 Yufeng Zhang <yufeng.zhang@arm.com> 152 153 * Makefile.am: Add AArch64. 154 * Makefile.in: Regenerate. 155 * configure.tgt: Add AArch64. 156 * emulparams/aarch64elf.sh: New file. 157 * emulparams/aarch64elfb.sh: New file. 158 * emulparams/aarch64linux.sh: New file. 159 * emulparams/aarch64linuxb.sh: New file. 160 * emultempl/aarch64elf.em: New file. 161 * NEWS: Mention the new feature. 162 1632012-08-14 Nick Clifton <nickc@redhat.com> 164 165 * configure.in (ALL_LINGUGAS): Add uk. 166 * configure: Regenerate. 167 * po/uk.po: New Ukranian translation. 168 1692012-08-09 Nick Clifton <nickc@redhat.com> 170 171 * po/vi.po: Updated Vietnamese translation. 172 1732012-08-07 Nick Clifton <nickc@redhat.com> 174 175 * po/ja.po: Updated Japanese translation. 176 1772012-08-02 H.J. Lu <hongjiu.lu@intel.com> 178 179 Backport from mainline 180 2012-07-31 H.J. Lu <hongjiu.lu@intel.com> 181 182 PR ld/14156 183 * ldlang.c (wild_sort): Properly handle by_none. 184 185 * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections. 186 * scripttempl/elf32msp430.sc: Likewise. 187 * scripttempl/elf32msp430_3.sc: Likewise. 188 * scripttempl/elfd10v.sc: Likewise. 189 * scripttempl/elfd30v.sc: Likewise. 190 * scripttempl/elfxtensa.sc: Likewise. 191 1922012-07-30 Nick Clifton <nickc@redhat.com> 193 194 * po/ld.pot: Updated template. 195 * po/bg.po: Updated Bulgarian translation. 196 * po/es.po: Updated Spanish translation. 197 * po/fi.po: Updated Finnish translation. 198 1992012-07-27 Tristan Gingold <gingold@adacore.com> 200 201 * NEWS: Add marker for 2.23. 202 2032012-07-24 Jan Waclawek <konfera@efton.sk> 204 205 PR ld/14058 206 * emultempl/avrelf.em (avr_elf_after_allocation): Call 207 elf32_avr_size_stubs with is_prealloc_run as TRUE. 208 2092012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 210 211 * emulparams/elf_s390.sh (IREL_IN_PLT): Define. 212 * emulparams/elf64_s390.sh (IREL_IN_PLT): Define. 213 2142012-07-13 Nick Clifton <nickc@redhat.com> 215 216 PR ld/14357 217 * ldmain.c (trace_file_tries): Rename to 'verbose'. 218 * ldfile.c: Likewise. 219 * ldlang.c: Likewise. 220 * ldmain.h: Likewise. 221 * lexsup.c: Likewise. 222 * emultempl/elf32.em: Likewise. 223 * emultemp/spuelf.em: Likewise. 224 * pe-dll.c (pe_dll_generate_implib): Only print creation message 225 in verbose mode. 226 2272012-07-10 H.J. Lu <hongjiu.lu@intel.com> 228 229 PR ld/14156 230 * NEWS: Mention SORT_NONE. 231 232 * ld.h (sort_type): Add by_none. 233 234 * ld.texinfo: Document SORT_NONE. 235 236 * ldgram.y: Handle SORT_NONE. 237 238 * ldlang.c (update_wild_statements): Handle by_none. Don't 239 sort .init/.fini sections. 240 241 * ldlex.l: Add SORT_NONE. 242 2432012-07-02 H.J. Lu <hongjiu.lu@intel.com> 244 245 * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME. 246 2472012-06-29 Nick Clifton <nickc@redhat.com> 248 249 * scripttempl/alphavms.sc: Add .debug_macro section. 250 * scripttempl/elf.sc: Likewise. 251 * scripttempl/elf64hppa.sc: Likewise. 252 * scripttempl/elf_chaos.sc: Likewise. 253 * scripttempl/elfxtensa.sc: Likewise. 254 * scripttempl/ia64vms.sc: Likewise. 255 256 * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and 257 .debug_macro sections. 258 * scripttempl/avr.sc: Likewise. 259 * scripttempl/elf32cr16.sc: Likewise. 260 * scripttempl/elf32crx.sc: Likewise. 261 * scripttempl/elf32msp430.sc: Likewise. 262 * scripttempl/elf32msp430_3.sc: Likewise. 263 * scripttempl/elf32sh-symbian.sc: Likewise. 264 * scripttempl/elfd30v.sc: Likewise. 265 * scripttempl/elfi370.sc: Likewise. 266 * scripttempl/elfm68hc11.sc: Likewise. 267 * scripttempl/elfm68hc12.sc: Likewise. 268 * scripttempl/elfxgate.sc: Likewise. 269 * scripttempl/i386beos.sc: Likewise. 270 * scripttempl/i386go32.sc: Likewise. 271 * scripttempl/ip2k.sc: Likewise. 272 * scripttempl/iq2000.sc: Likewise. 273 * scripttempl/mep.sc: Likewise. 274 * scripttempl/mmo.sc: Likewise. 275 * scripttempl/v850.sc: Likewise. 276 * scripttempl/xstormy16.sc: Likewise. 277 2782012-06-28 H.J. Lu <hongjiu.lu@intel.com> 279 280 * ldlang.c (update_wild_statements): Remove redundant statement. 281 2822012-06-25 Alan Modra <amodra@gmail.com> 283 284 * ldlang.c (load_symbols): Close file and set flags.loaded 285 after parsing script file. 286 (open_input_bfds): Don't segv on closed script. 287 2882012-06-24 H.J. Lu <hongjiu.lu@intel.com> 289 290 * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32. 291 Remove x32 in tdir_i386linux and tdir_elf_i386. 292 2932012-06-22 Roland McGrath <mcgrathr@google.com> 294 295 * NEWS: Mention __ehdr_start. 296 2972012-06-21 Alan Modra <amodra@gmail.com> 298 299 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol 300 absolute, and remove unnecessary alignment. 301 3022012-06-16 Alan Modra <amodra@gmail.com> 303 304 * ldlang.h (lang_output_section_statement_type): Add after_end field. 305 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete. 306 (section_for_dot): Declare. 307 * ldlang.c (lang_size_sections_1): Correct comment. 308 (current_section): Move earlier. 309 (current_assign, prefer_next_section): New static vars. 310 (lang_do_assignments_1): Add found_end param. Detect _end 311 assignment to set found_end. Set os->after_end. Set above statics. 312 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init 313 vars. 314 (section_for_dot): New function. 315 (lang_set_startof): Don't make an absolute symbol. 316 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete. 317 * ldexp.c (new_rel_from_abs): Use section_for_dot. 318 * emultempl/lnk960.em (symbol_at_beginning_of): New function. 319 (symbol_at_end_of): Likewise. 320 (lnk960_after_allocation): Use them. 321 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and 322 likewise before __bss_start. 323 3242012-06-14 H.J. Lu <hongjiu.lu@intel.com> 325 326 * plugin.c (set_tv_header): Handle link_info.pie. 327 3282012-06-11 Alan Modra <amodra@gmail.com> 329 330 PR ld/14215 331 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section 332 references. 333 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of 334 .got.plt. 335 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise. 336 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise. 337 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise. 338 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise. 339 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise. 340 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise. 341 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise. 342 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise. 343 3442012-06-07 Georg-Johann Lay <avr@gjlay.de> 345 346 PR 13697 347 * scripttempl/avr.sc (.data): Keep it. 348 3492012-06-02 Andreas Schwab <schwab@linux-m68k.org> 350 351 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix. 352 * Makefile.in: Regenerate. 353 3542012-05-30 Alan Modra <amodra@gmail.com> 355 356 * ldlang.h (lang_output_section_statement_type): Rename 357 "section_relative_symbol" field to "update_dot". 358 * ldlang.c: Update all uses. 359 (strip_excluded_output_sections): Don't test update_dot_tree here.. 360 (lang_leave_overlay): ..set update_dot here. 361 3622012-05-26 Alan Modra <amodra@gmail.com> 363 364 * ldlex.h (enum option_values): Move from.. 365 * lexsup.c: ..here. 366 * emultempl/ppc32elf.em: Include ldlex.h. 367 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when 368 --traditional-format. 369 * emultempl/ppc64elf.em: Likewise. 370 3712012-05-25 Alan Modra <amodra@gmail.com> 372 373 PR ld/13909 374 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle 375 multiple .eh_frame sections attached to bfd. 376 3772012-05-23 Cary Coutant <ccoutant@google.com> 378 379 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more 380 carefully. Fix typo where .rela.data.rel.ro matches 381 .rel.data.rel.ro. 382 * scripttempl/mep.sc: Likewise. 383 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully. 384 * scripttempl/elf64hppa.sc: Likewise. 385 * scripttempl/elfxtensa.sc: Likewise. 386 3872012-05-17 Daniel Richard G. <skunk@iskunk.org> 388 Nick Clifton <nickc@redhat.com> 389 390 PR 14072 391 * configure.in: Add check that sysdep.h has been included before 392 any system header files. 393 * configure: Regenerate. 394 * config.in: Regenerate. 395 * sysdep.h: Generate an error if included before config.h. 396 3972012-05-16 Sergio Durigan Junior <sergiodj@redhat.com> 398 399 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd' 400 as the first argument for `bfd_get_section_name'. 401 4022012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org> 403 404 PR ld/14069 405 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf 406 support. 407 4082012-05-15 James Murray <jsm@jsm-net.demon.co.uk> 409 410 * NEWS: Mention the support for S12X processors. 411 4122012-05-14 James Lemke <jwlemke@codesourcery.com> 413 414 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list. 415 Pass it to callback. 416 (walk_wild_section_general): Pass section_flag_list to callback. 417 (lang_add_section): Add sflag_list parm. 418 Move out logic to keep / omit a section & call bfd_lookup_section_flags. 419 (output_section_callback_fast): Add sflag_list parm. 420 Add new parm to lang_add_section calls. 421 (output_section_callback): Likewise. 422 (check_section_callback): Add sflag_list parm. 423 (lang_place_orphans): Add new parm to lang_add_section calls. 424 (gc_section_callback): Add sflag_list parm. 425 (find_relro_section_callback): Likewise. 426 * ldlang.h (callback_t): Add flag_info parm. 427 (lang_add_section): Add sflag_list parm. 428 * emultempl/armelf.em (elf32_arm_add_stub_section): 429 Add lang_add_section parm. 430 * emultempl/beos.em (gld*_place_orphan): Likewise. 431 * emultempl/elf32.em (gld*_place_orphan): Likewise. 432 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise. 433 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise. 434 * emultempl/mipself.em (mips_add_stub_section): Likewise. 435 * emultempl/mmo.em (mmo_place_orphan): Likewise. 436 * emultempl/pe.em (gld_*_place_orphan): Likewise. 437 * emultempl/pep.em (gld_*_place_orphan): Likewise. 438 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise. 439 * emultempl/spuelf.em (spu_place_special_section): Likewise. 440 * emultempl/vms.em (vms_place_orphan): Likewise. 441 4422012-05-14 Catherine Moore <clm@codesourcery.com> 443 444 * NEWS: Mention PowerPC VLE port. 445 4462012-05-11 Daniel Richard G. <skunk@iskunk.org> 447 448 PR binutils/14028 449 * configure.in: Invoke ACX_HEADER_STRING. 450 * configure: Regenerate. 451 * config.in: Regenerate. 452 * sysdep.h: If STRINGS_WITH_STRING is defined then include both 453 string.h and strings.h. 454 4552012-05-08 Alan Modra <amodra@gmail.com> 456 457 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other 458 LC and LANG environment vars. 459 * Makefile.in: Regenerate. 460 4612012-05-07 Tristan Gingold <gingold@adacore.com> 462 463 * pe-dll.c (udef_table): Make it static. 464 4652012-05-05 Alan Modra <amodra@gmail.com> 466 467 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr. 468 (generate_reloc): Use bfd_abs_section_ptr. 469 4702012-05-04 H.J. Lu <hongjiu.lu@intel.com> 471 472 * configure.tgt: Support x86_64-*-linux-gnux32. 473 4742012-05-03 Sean Keys <skeys@ipdatasys.com> 475 476 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE 477 and XGATE (elf). 478 * Makefile.in: Rebuild. 479 * configure.tgt: Recognize XGATE. 480 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12. 481 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12. 482 * NEWS: Mention new support. 483 4842012-04-26 Hans-Peter Nilsson <hp@axis.com> 485 486 Make bfd asserts cause linker errors. 487 * ldmain.c (default_bfd_assert_handler): New variable. 488 (ld_bfd_assert_handler): New function. 489 (main): Call bfd_set_assert_handler. 490 4912012-04-24 Alan Modra <amodra@gmail.com> 492 493 * ldlang.c (size_input_section): Use sec_info_type rather than 494 usrdata->flags.just_syms. 495 * ldwrite.c (build_link_order): Likewise. 496 * emultempl/hppaelf.em (build_section_lists): Likewise. 497 * emultempl/ppc64elf.em (build_toc_list): Likewise. 498 * emultempl/armelf.em (build_section_lists): Likewise. 499 (after_allocation): Update for renamed sec_info_type value. 500 * emultempl/tic6xdsbt.em: Likewise. 501 5022012-04-12 Roland McGrath <mcgrathr@google.com> 503 504 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them. 505 * emulparams/armelf_nacl.sh: New file. 506 * emulparams/armelfb_nacl.sh: New file. 507 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c 508 and earmelfb_nacl.c here. 509 (earmelf_nacl.c, earmelfb_nacl.c): New targets. 510 * Makefile.in: Regenerated. 511 5122012-04-11 Tristan Gingold <gingold@adacore.com> 513 514 * scripttempl/ia64vms.sc: New file. 515 * emultempl/vms.em (_before_parse): Support for ia64. 516 (elf64-ia64-vms): New fragment for ia64. 517 * emulparams/elf64_ia64_vms.sh: New file. 518 * configure.tgt (ia64-*-*vms*): Add. 519 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c 520 (eelf64_ia64_vms.c): New rule. 521 * Makefile.in: Regenerate. 522 5232012-04-06 Roland McGrath <mcgrathr@google.com> 524 525 * configure.in (AC_CHECK_HEADERS): Add locale.h. 526 * config.in: Regenerate. 527 * configure: Regenerate. 528 5292012-04-05 Nick Clifton <nickc@redhat.com> 530 531 * configure.in (AC_CHECK_FUNCS): Add setlocale. 532 (AM_LC_MESSAGES): Add. 533 * aclocal.m4: Regenerate. 534 * config.in: Regenerate. 535 * configure: Regenerate. 536 5372012-04-03 Roland McGrath <mcgrathr@google.com> 538 539 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them. 540 * emulparams/elf_nacl.sh: New file. 541 * emulparams/elf_i386_nacl.sh: New file. 542 * emulparams/elf32_x86_64_nacl.sh: New file. 543 * emulparams/elf_x86_64_nacl.sh: New file. 544 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here. 545 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and 546 eelf_x86_64_nacl.c here. 547 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c): 548 New targets. 549 * Makefile.in: Regenerated. 550 551 * scripttempl/elf.sc: Handle SEPARATE_CODE cases. 552 5532012-04-02 Mike Frysinger <vapier@gentoo.org> 554 555 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete 556 putc call. If str and fmt are different, call fwrite on 557 the difference. 558 5592012-03-30 Nick Clifton <nickc@redhat.com> 560 561 * po/vi.po: Updated Vietnamese translation. 562 5632012-03-27 Roland McGrath <mcgrathr@google.com> 564 565 * configure.in: Set want64 on a 64-bit host regardless of 566 --enable-targets=all. 567 * configure: Regenerated. 568 5692012-03-26 Tristan Gingold <gingold@adacore.com> 570 571 * lexsup.c (parse_args): Add a missing '\n'. 572 5732012-03-25 Alan Modra <amodra@gmail.com> 574 575 * ldemul.c (before_allocation_default): Revert last change. 576 * ldlang.c (lang_add_section): Likewise. 577 (strip_excluded_output_sections): Don't strip output sections with 578 user input sections when emitrelocations, unless all are SEC_EXCLUDE. 579 5802012-03-23 Alan Modra <amodra@gmail.com> 581 582 * ldemul.c (before_allocation_default): When emitrelocations, 583 don't strip sections.. 584 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail. 585 5862012-03-14 Kai Tietz <ktietz@redhat.com> 587 Pascal Obry <pascal@obry.net> 588 589 * pe-dll.c (found_sym): New static variable. 590 (undef_count): Likewise. 591 (key_value): New structure. 592 (undef_sort_cmp): Compare routine for qsort/bsearch. 593 (pe_find_cdecl_alias_match): Add new argument. 594 (pe_undef_alias_cdecl_match): Removed. 595 (pe_undef_count): New helper routine. 596 (pe_create_undef_table): Likewise. 597 (pe_process_import_defs): Use pe_create_undef_table and 598 new pe_undef_alias_cdecl_match function. 599 6002012-03-14 Alan Modra <amodra@gmail.com> 601 602 PR ld/13839 603 * ldexp.c (fold_name): Ignore undefined symbols when assigning to 604 dot in mark phase. 605 (exp_fold_tree_1): Evaluate assignment to dot expressions even when 606 discarding result, for side effects. Fix typo in error message. 607 6082012-03-08 Tristan Gingold <gingold@adacore.com> 609 610 * ldexp.c (exp_print_tree): Special case for SEGMENT_START. 611 (exp_print_token): Constify. 612 6132012-03-08 Alan Modra <amodra@gmail.com> 614 615 PR ld/10340 616 * ldfile.c (is_sysrooted_pathname): Remove notsame param. 617 (ldfile_add_library_path): Don't set sysrooted flag. 618 (ldfile_open_file_search): Likewise, and don't copy them. 619 (try_open): Delete exten and code handling such. Add sysrooted 620 param and return whether path is in sysroot. 621 (ldfile_find_command_file): Delete extend param. Add sysrooted 622 param. Rename local var. Update try_open calls. 623 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file. 624 * ldfile.h (search_dirs_type): Remove sysrooted field. 625 * ldlang.c (new_afile): Always set sysrooted from input_flags. 626 (load_symbols): Don't set input_flags.sysrooted. 627 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted 628 comment. 629 * ldlex.h (lex_push_file): Update prototype. 630 * ldlex.l (sysrooted_stack): New array. 631 (EOF): Pop input_flags.sysrooted. 632 (lex_push_file): Add sysrooted param. Save and set 633 input_flags.sysrooted. 634 6352012-03-06 Alan Modra <amodra@gmail.com> 636 637 * ldlang.h (struct lang_input_statement_flags): New, extract from.. 638 (lang_input_statement_type): ..here. New field "flags". 639 (input_flags): Declare. 640 (missing_file): Delete. 641 * ldmain.h (whole_archive): Delete. 642 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete. 643 * ld.h (ld_config_type <dynamic_link>): Delete. 644 * ldmain.c (whole_archive): Delete. 645 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete. 646 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete. 647 (input_flags): New variable. Replace all uses of config.dynamic_link, 648 missing_file, ldlang_sysrooted_script, whole_archive, 649 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields 650 from here. 651 * ldfile.c: Likewise. 652 * ldgram.y: Likewise. 653 * ldmain.c: Likewise. 654 * ldwrite.c: Likewise. 655 * lexsup.c: Likewise. 656 * plugin.c: Likewise. 657 * emultempl/aix.em: Likewise. 658 * emultempl/armelf.em: Likewise. 659 * emultempl/elf32.em: Likewise. 660 * emultempl/hppaelf.em: Likewise. 661 * emultempl/linux.em: Likewise. 662 * emultempl/pe.em: Likewise. 663 * emultempl/pep.em: Likewise. 664 * emultempl/ppc64elf.em: Likewise. 665 * emultempl/scoreelf.em: Likewise. 666 * emultempl/spuelf.em: Likewise. 667 * emultempl/sunos.em: Likewise. 668 * emultempl/vms.em: Likewise. 669 * ldlang.c (new_afile): Use memset to init zero fields. 670 (load_symbols): Simplify save and restore of flags around command 671 file processing. 672 * ldfile.c (is_sysrooted_pathname): Tidy. 673 6742012-03-05 Hans-Peter Nilsson <hp@axis.com> 675 676 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*) 677 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by 678 replacing trailing "-*" with "*". 679 6802012-02-25 Walter Lee <walt@tilera.com> 681 682 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c. 683 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c. 684 (eelf32tilegx_be.c): Add rule to build this file. 685 (eelf64tilegx_be.c): Ditto. 686 * Makefile.in: Regenerate. 687 * configure.tgt (tilegx-*-*): Support big endian. 688 (tilegxbe-*-*): New. 689 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename. 690 (BIG_OUTPUT_FORMAT): Define. 691 (LITTLE_OUTPUT_FORMAT): Define. 692 * emulparams/elf32tilegx_be.sh: New. 693 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename. 694 (BIG_OUTPUT_FORMAT): Define. 695 (LITTLE_OUTPUT_FORMAT): Define. 696 * emulparams/elf64tilegx_be.sh: New. 697 6982012-02-24 Kai Tietz <ktietz@redhat.com> 699 700 PR binutils/13710 701 * deffilep.y (keyword_as_name): Disable LIBRARY 702 keyword. 703 7042012-02-22 Alan Modra <amodra@gmail.com> 705 706 PR ld/13683 707 * ldlang.c (lang_process): Rerun lang_do_assignments before 708 starting garbage collection. 709 * ldexp.c (fold_name): Generate a reloc for defined symbols 710 found without an associated output section during the mark phase. 711 (exp_fold_tree_1): Continue processing an expression, even if we 712 are unable to fold it, if we are in the first two evaluation 713 phases. 714 * ldexp.h (enum lang_phase_type): Add descriptions of the phases. 715 7162012-02-19 Kai Tietz <ktietz@redhat.com> 717 718 * deffilep.y (cmp_import_elem): Sort first by module name. 719 * pe-dll.c (process_def_file_and_drectve): Free strings 720 from removed export-element. 721 (add_bfd_to_link): Optimize loop on import-elements and lower 722 allocated memory. 723 (pe_implied_import_dll): Pass NULL instead of 0 for pointer 724 argument. 725 7262012-02-18 Hans-Peter Nilsson <hp@axis.com> 727 728 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for 729 temporary variable node used for NULL argument. 730 7312012-02-18 Alan Modra <amodra@gmail.com> 732 733 PR ld/13343 734 * ld.h (parsing_defsym): Delete. 735 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename. 736 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill, 737 exp_get_abs_int): Add tree arg for %S in error messages. Don't 738 fudge lineno. 739 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy 740 type.filename from sub-tree. 741 (exp_trinop): Likewise, and use "cond" rather than "lhs". 742 * ldexp.h (node_type): Add filename field to struct. 743 * ldfile.c (ldfile_input_filename): Delete. Remove all refs. 744 * ldfile.h (ldfile_input_filename): Delete. 745 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for 746 %S in error messages. 747 * ldemul.c (syslib_default, hll_default): Likewise. 748 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias, 749 lang_get_regions, lang_new_phdr): Likewise. 750 (lang_size_sections_1): Pass addr_tree for %S. 751 * ldlex.h (lex_redirect): Update prototype. 752 (ldlex_filename): Declare. 753 * ldlex.l (<EOF>): Don't set ldfile_input_filename. 754 (lex_redirect): Add fake_filename and count params. Push 755 fake_filename to file_name_stack and init lineno from count. 756 (ldlex_filename): New function. 757 (lex_warn_invalid): Use above. 758 * ldmain.c (main): Update lex_redirect call. 759 * ldmisc.c (vfinfo <%S>): Take file name and line number from 760 etree_type arg, or use current if arg is NULL. 761 * lexsup.c (parsing_defsym): Delete. 762 (parse_args <OPTION_DEFSYM>): Update lex_redirect call. 763 7642012-02-13 Kai Tietz <ktietz@redhat.com> 765 766 * deffilep.y (find_export_in_list): Set is_indent for 767 first or last element, if identical. 768 (find_import_in_list): Likewise. 769 7702012-02-11 Kai Tietz <ktietz@redhat.com> 771 772 * deffilep.y (%union): New type id_const. 773 (opt_name2): New rule. 774 (keyword_as_name): New rule. 775 (dot_name): Replaced by opt_name2 rule. 776 (opt_name): Adjust rule. 777 (opt_equal_name): Likewise. 778 7792012-02-11 Pascal Obry <pascal@obry.net> 780 781 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports 782 table. 783 (process_def_file_and_drectve): Maintain sorting of exports table 784 after stripping leading @ signs. 785 7862012-02-09 Alan Modra <amodra@gmail.com> 787 788 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags. 789 7902012-01-31 H.J. Lu <hongjiu.lu@intel.com> 791 792 PR ld/13616 793 * emulparams/elf32_x86_64.sh: Remove NOP. 794 * emulparams/elf_i386.sh: Likewise. 795 * emulparams/elf_i386_be.sh: Likewise. 796 * emulparams/elf_i386_ldso.sh: Likewise. 797 * emulparams/elf_i386_vxworks.sh: Likewise. 798 * emulparams/elf_k1om.sh: Likewise. 799 * emulparams/elf_l1om.sh: Likewise. 800 * emulparams/elf_x86_64.sh: Likewise. 801 802 * ldlang.c (zero_fill): Initialized to 0. 803 804 * ldwrite.c (build_link_order): Set data size to linker odrder 805 size when they are the same. 806 807 * scripttempl/elf.sc: Don't specify fill if NOP is undefined. 808 8092012-01-17 Alan Modra <amodra@gmail.com> 810 811 * ldver.c (ldversion): Update copyright message year. 812 8132012-01-15 Alan Modra <amodra@gmail.com> 814 815 PR ld/12758 816 * ldlang.c (lang_process): Don't reopen all files, just those 817 newly added by plugin. 818 8192012-01-11 Alan Modra <amodra@gmail.com> 820 821 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE, 822 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, 823 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and 824 --{no-,}plt-align. 825 (plt_thread_safe, plt_stub_align): New vars. 826 (gld${EMULATION_NAME}_after_allocation): Pass them to 827 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align. 828 * ld.texinfo: Document new command line options, and an old 829 undocumented option. 830 8312012-01-09 Roland McGrath <mcgrathr@google.com> 832 833 * configure.in: Use AM_ZLIB. 834 * configure: Regenerated. 835 836For older changes see ChangeLog-2011 837 838Local Variables: 839mode: change-log 840left-margin: 8 841fill-column: 74 842version-control: never 843End: 844