12011-05-29 Alan Modra <amodra@gmail.com> 2 3 Apply from mainline 4 2011-05-23 Alan Modra <amodra@gmail.com> 5 PR 12763 6 * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2 7 like sections to existing .sdata2, and similarly for orphan TLS 8 sections. 9 * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss. 10 11 2011-05-17 Alan Modra <amodra@gmail.com> 12 PR ld/12760 13 * ldmain.c (notice): Add "flags" and "string" param. 14 * plugin.c (plugin_notice): Likewise. Handle indirect, warning 15 and constructor syms. 16 17 2010-05-16 Daniel Jacobowitz <dan@codesourcery.com> 18 * ldlang.c (print_assignment): Use the symbol's section if we 19 use its value. 20 * ldexp.c (exp_fold_tree_1): Skip self-assignment. Expand 21 comment on copying symbol type. 22 23 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com> 24 PR ld/12365 25 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition. 26 (__rt_psrelocs_end): Likewise. 27 (__rt_psrelocs_size): Likewise difference between the above. 28 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section 29 immediately after end of pseudo-reloc data. 30 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise. 31 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and 32 calculate backward from list end. 33 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise. 34 * scripttempl/pep.sc: Likewise. 35 36 2011-03-29 Alan Modra <amodra@gmail.com> 37 PR ld/12613 38 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned. 39 40 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> 41 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve 42 alignment of input sections when creating orphan output sections 43 during relocatable link. 44 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise. 45 46 2011-02-14 Mike Frysinger <vapier@gentoo.org> 47 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to 48 the bfd_demangle of sym, change users of sym to c_sym when not 49 already demangling, and free when done. Change callers of 50 cplus_demangle to bfd_demangle. 51 522011-05-16 H.J. Lu <hongjiu.lu@intel.com> 53 54 PR ld/12760 55 * plugin.c (plugin_notice): Set u.undef.abfd for symbols made 56 undefweak. 57 582011-05-16 Alan Modra <amodra@gmail.com> 59 60 * ldlang.c (lang_leave_output_section_statement): Don't copy 61 previous lma_region if given address. 62 632011-05-04 Alan Modra <amodra@gmail.com> 64 65 PR ld/12726 66 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum. 67 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't 68 assign to dot when lang_assigning_phase_enum. 69 * ldlang.h (lang_do_assignments): Update prototype. 70 * ldlang.c (lang_do_assignments): Add phase parameter. Update all 71 callers. 72 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update 73 lang_do_assignments calls. 74 752011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de> 76 77 PR ld/12614 78 * emultempl/pe.em (_after_open): Correctly check whether symbol is 79 in undef list. 80 812011-04-27 Alan Modra <amodra@gmail.com> 82 83 Backport from mainline. 84 2011-04-24 Alan Modra <amodra@gmail.com> 85 PR ld/12365 86 PR ld/12696 87 * ldmain.c (notice): Delete "name" param, add "h". 88 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle 89 redefinitions of IR symbols in real BFDs. 90 (plugin_multiple_definition, plugin_multiple_common): Delete. 91 (non_ironly_hash, init_non_ironly_hash): Delete. 92 (is_visible_from_outside): Traverse entry_symbol chain. 93 (get_symbols): Use non_ir_ref flag rather than hash lookup. 94 95 2011-04-20 Alan Modra <amodra@gmail.com> 96 PR ld/12365 97 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching 98 to plugin IR BFD.. 99 * ldmain.c (add_archive_element): ..and similar code here.. 100 * plugin.c (plugin_maybe_claim): ..to here. New function. 101 (plugin_call_claim_file): Make static. 102 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms. 103 (plugin_multiple_common): New function. 104 (plugin_call_all_symbols_read): Hook in plugin_multiple_common. 105 * plugin.h (plugin_call_claim_file): Don't declare. 106 (plugin_maybe_claim): Declare. 107 108 2011-04-20 Alan Modra <amodra@gmail.com> 109 PR ld/12365 110 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry 111 pointer arg rather than "name", "obfd", "osec", "oval". Add code 112 removed from linker.c. Hack around xcofflink.c oddity in 113 passing NULL nbfd. 114 (multiple_common): Similarly. 115 * plugin.c (orig_allow_multiple_defs): Delete. 116 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition. 117 (plugin_multiple_definition): Update. 118 119 2011-04-18 Alan Modra <amodra@gmail.com> 120 PR ld/12365 121 PR ld/12672 122 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action 123 when no_more_claiming. 124 * ldmain.c (add_archive_element): Likewise. 125 (multiple_definition): Remove plugin_multiple_definition call. 126 (notice): Remove plugin_notice call. 127 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move. 128 Delete prototype. 129 (plugin_insert): New static var. 130 (open_input_bfds): Only rescan libs after plugin insert point. 131 (lang_gc_sections): Omit plugin claimed files. 132 (lang_process): Set plugin_insert. Only rescan when plugin adds 133 objects. 134 * plugin.h (no_more_claiming): Declare. 135 (plugin_notice, plugin_multiple_definition): Don't declare. 136 * plugin.c: Formatting. 137 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks, 138 plugin_callbacks): New static vars. 139 (no_more_claiming): Make global. 140 (plugin_cached_allow_multiple_defs): Delete. 141 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section, 142 use newer bfd_make_section variant. Make COMMON section too. 143 Error handling. Correct setting of gp size. 144 (asymbol_from_plugin_symbol): Properly cast last arg of concat. 145 (message): Likewise for ACONCAT. 146 (asymbol_from_plugin_symbol): Use our COMMON section. 147 (get_symbols): When report_plugin_symbols, show visibility too. 148 (init_non_ironly_hash): Move. Don't test non_ironly_hash. 149 (plugin_load_plugins): Save state of linker callbacks, set up to 150 call plugin_notice instead. Call init_non_ironly_hash here. 151 (plugin_call_all_symbols_read): Set plugin_multiple_definition in 152 plugin callbacks. 153 (plugin_notice): Rewrite. 154 (plugin_multiple_definition): Make static, call original callback. 155 156 2011-04-15 Alan Modra <amodra@gmail.com> 157 PR ld/12672 158 * ldlang.c (enum open_bfd_mode): New. 159 (open_input_bfds): Replace "force" param with "mode". Reload 160 archives for rescan. Update all callers. 161 (lang_process): Make another open_input_bfds pass for plugins. 162 163 2011-03-23 Joseph Myers <joseph@codesourcery.com> 164 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins 165 are enabled. Mark level as possibly unused. 166 167 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> 168 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols. 169 170 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> 171 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs. 172 173 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> 174 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag, 175 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS. 176 * ldmain.c (add_archive_element): Set it if the member is claimed. 177 * ldlang.c (new_afile): Initialise claim_archive and claimed members. 178 (find_replacements_insert_point): New helper function. 179 (lang_process): After adding and opening replacement files passed 180 from plugin, splice them into correct place in statement list and 181 file chains to preserve critical link order. 182 (lang_list_insert_after): New helper function. 183 (lang_list_remove_tail): Likewise. 184 185 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> 186 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form. 187 (IRONLY_SUFFIX_LEN): Delete. 188 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX. 189 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of 190 enclosing lang input statement instead. 191 192 2011-03-04 H.J. Lu <hongjiu.lu@intel.com> 193 * ld.texinfo: Document --verbose[=NUMBER]. 194 * lexsup.c (ld_options): Update --verbose. 195 (parse_args): Set report_plugin_symbols. 196 * plugin.c (report_plugin_symbols): New. 197 (get_symbols): Report plugin symbols if report_plugin_symbols 198 is TRUE. 199 * plugin.h (report_plugin_symbols): New. 200 201 2011-02-24 H.J. Lu <hongjiu.lu@intel.com> 202 PR ld/12507 203 * plugin.c (get_symbols): Don't check entry symbol here. 204 (init_non_ironly_hash): Add entry_symbol chain into 205 non_ironly_hash. 206 207 2011-02-24 H.J. Lu <hongjiu.lu@intel.com> 208 PR ld/12507 209 * plugin.c (get_symbols): Don't mark entry symbol IR only. 210 211 2010-12-06 H.J. Lu <hongjiu.lu@intel.com> 212 * lexsup.c (ld_options): Add -flto and -flto-partition= for 213 GCC LTO option compatibility. 214 215 2010-12-01 H.J. Lu <hongjiu.lu@intel.com> 216 * plugin.h: Re-indent. 217 2182011-04-20 Tristan Gingold <gingold@adacore.com> 219 220 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch. 221 2222011-03-26 John Marino <binutils@marino.st> 223 224 * configure.host: Update *-*-dragonfly* host entry. 225 * configure.tgt: Update *-*-dragonfly* target entry. 226 * ldlex.l: Prevent redefinition of YY_NO_UNPUT. 227 2282011-03-13 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca> 229 230 Backport from mainline: 231 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca> 232 233 PR ld/12376 234 emulparams/hppalinux.sh (DATA_ADDR): Define. 235 (SHLIB_DATA_ADDR): Likewise. 236 2372011-02-14 Alan Modra <amodra@gmail.com> 238 239 * ldmain.c (remove_output): Rename to.. 240 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup. 241 (main): Adjust. 242 * plugin.c (plugin_call_cleanup): Make global. 243 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit. 244 * plugin.h (plugin_call_cleanup): Declare. 245 2462011-02-10 Alan Modra <amodra@gmail.com> 247 248 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu. 249 * scripttempl/avr.sc: Likewise. 250 * scripttempl/elf32cr16.sc: Likewise. 251 * scripttempl/elf32crx.sc: Likewise. 252 * scripttempl/elf32msp430.sc: Likewise. 253 * scripttempl/elf32msp430_3.sc: Likewise. 254 * scripttempl/elf32sh-symbian.sc: Likewise. 255 * scripttempl/elf64hppa.sc: Likewise. 256 * scripttempl/elf_chaos.sc: Likewise. 257 * scripttempl/elfd10v.sc: Likewise. 258 * scripttempl/elfd30v.sc: Likewise. 259 * scripttempl/elfi370.sc: Likewise. 260 * scripttempl/elfm68hc11.sc: Likewise. 261 * scripttempl/elfm68hc12.sc: Likewise. 262 * scripttempl/elfxtensa.sc: Likewise. 263 * scripttempl/ip2k.sc: Likewise. 264 * scripttempl/iq2000.sc: Likewise. 265 * scripttempl/mep.sc: Likewise. 266 * scripttempl/mmo.sc: Likewise. 267 * scripttempl/v850.sc: Likewise. 268 * scripttempl/xstormy16.sc: Likewise. 269 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu. 270 2712011-02-10 Alan Modra <amodra@gmail.com> 272 273 Apply from mainline 274 2010-11-08 Thomas Schwinge <thomas@schwinge.name> 275 * configure.host: Add stanza for *-*-gnu*. 276 2772011-02-01 Alan Modra <amodra@gmail.com> 278 279 Backport from mainline 280 2011-01-22 H.J. Lu <hongjiu.lu@intel.com> 281 * Makefile.am (CXX): Removed. 282 * configure.in: Add AC_PROG_CXX. 283 * Makefile.in: Regenerated. 284 * configure: Likewise. 285 286 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com> 287 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's 288 private data and GP size. 289 290 2011-01-21 Alan Modra <amodra@gmail.com> 291 * ldexp.c (fold_binary): Set result section for arithmetic and 292 logical operations to NULL when both operands are in same section. 293 * ld.texinfo (Expression Section): Describe this. 294 295 2011-01-14 Alan Modra <amodra@gmail.com> 296 * ldmain.c (main): Flush stdout before and stderr after printing 297 message. 298 * ldmisc.c (einfo): Similarly. 299 * plugin.c (message): Likewise. 300 * emultempl/ppc64elf.em: Likewise. 301 * emultempl/xtensaelf.em: Likewise. 302 * emulparams/elf32mcore.sh: Use einfo rather than printf. 303 * emultempl/beos.em: Likewise. 304 * emultempl/pe.em: Likewise. 305 * emultempl/pep.em: Likewise. 306 307 2011-01-14 Alan Modra <amodra@gmail.com> 308 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't 309 attempt to put non-alloc orphans before debug sections, just place 310 them after .comment. 311 312 2011-01-14 J. Park <grassman@gmail.com> 313 PR ld/12339 314 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols. 315 316 2011-01-14 Alan Modra <amodra@gmail.com> 317 * Makefile.am: Sort emulation rules. 318 (eelf32am33lin.c): Delete. 319 (ALL_EMULATION_SOURCES): Sort, add missing entries. 320 (ALL_64_EMULATION_SOURCES): Likewise. 321 * Makefile.in: Regenerate. 322 323 2011-01-13 Alan Modra <amodra@gmail.com> 324 PR ld/12356 325 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE. 326 (Expression Section): Update. 327 * ld.h (ld_config_type): Add sane_expr. 328 * ldgram.y (ifile_p1): Add LD_FEATURE. 329 * ldlex.l (LD_FEATYRE): New. 330 * ldemul.c (after_parse_default): Delete code handling ld_compatibility. 331 * ldexp.h (struct ldexp_control): Delete uses_defined. 332 * ldexp.c: Remove all uses of uses_defined. 333 (fold_name): Test config.sane_expr rather than ld_compatibility. 334 (exp_fold_tree_1): Likewise. Adjust handling of assignments 335 during first phase. 336 * ldlang.h (ld_compatibility): Delete. 337 (lang_ld_feature): Declare. 338 * ldlang.c (ld_compatibility): Delete. 339 (open_input_bfds): Only handle assignments for --defsym. 340 (lang_ld_feature): New function. 341 342 2011-01-13 Alan Modra <amodra@gmail.com> 343 PR ld/12356 344 * ldexp.h (exp_assop): Delete. 345 (exp_assign, exp_defsym): Declare. 346 * ldexp.c (exp_assop): Make static, handle all assignment variations. 347 (exp_assign, exp_defsym): New functions. 348 (exp_provide): Use exp_assop. 349 * ldgram.y (defsym_expr): Use exp_defsym. 350 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em, 351 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em, 352 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign. 353 354 2011-01-12 Alan Modra <amodra@gmail.com> 355 PR ld/12380 356 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done. 357 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test 358 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum 359 to detect when we've finished sizing sections. 360 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise. 361 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test 362 that we are not inside an output section statement. 363 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if 364 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set 365 lang_final_phase_enum here. 366 (lang_process): Set lang_final_phase_enum here. 367 368 2011-01-05 H.J. Lu <hongjiu.lu@intel.com> 369 PR ld/12364 370 * plugin.c (get_symbols): Check if owner_sec->owner is NULL 371 before accessing its flags field. 372 373 2011-01-01 H.J. Lu <hongjiu.lu@intel.com> 374 * ldver.c (ldversion): Update copyright to 2011. 375 376 2010-12-20 Alan Modra <amodra@gmail.com> 377 PR ld/12327 378 * ld.texinfo (Expression Section): Describe treatment of numbers 379 and absolute symbols. 380 * ldemul.c (after_open_default): Look up __ld_compatibility. 381 * ldexp.c (fold_name): Convert absolute symbols to numbers when 382 inside output section definitions, or when __ld_compatibility >= 221. 383 (exp_fold_tree_1): Convert numbers to absolute when not in output 384 section definition and __ld_compatibility < 221. Don't always 385 convert values outside an output section definition to absolute. 386 * ldexp.h (uses_defined): Comment. 387 * ldlang.c (ld_compatibility): New variable. 388 * ldlang.h (ld_compatibility): Declare. 389 * emultempl/aix.em, * emultempl/armcoff.em, * emultempl/beos.em, 390 * emultempl/elf32.em, * emultempl/genelf.em, * emultempl/lnk960.em, 391 * emultempl/m68kcoff.em, * emultempl/mmo.em, * emultempl/pe.em, 392 * emultempl/pep.em, * emultempl/sunos.em, * emultempl/z80.em: Call 393 after_open_default from after_open function. 394 395 2010-12-20 Alan Modra <amodra@gmail.com> 396 PR ld/12001 397 Revert 2010-11-03 Nick Clifton 398 * ldlang.c (ldlang_def_chain_list): Delete. 399 (insert_defined, ldlang_add_def, lang_place_defineds): Delete. 400 (lang_process): Don't call lang_place_defineds. 401 (lang_add_assignment): Don't do anything special for --defsym. 402 * ldexp.h (struct ldexp_control): Add uses_defined. 403 (exp_fold_tree_no_dot): Declare. 404 * ldexp.c (exp_fold_tree): Clear uses_defined. 405 (exp_fold_tree_no_dot): Likewise. Make global. 406 (fold_name <DEFINED>): Set uses_defined. 407 (exp_fold_tree_1 <etree_assign>): Define symbol during first phase 408 even when the value being assigned isn't valid. 409 * ldlang.c (open_input_bfds): Process assignment statements. 410 (lang_process): Bump lang_statement_iteration. 411 (scan_for_self_assignment): Formatting. 412 (print_assignment): Style. 413 414 2010-12-13 Alan Modra <amodra@gmail.com> 415 * ldlang.c (load_symbols): Correct last change. 416 417 2010-12-12 H.J. Lu <hongjiu.lu@intel.com> 418 * ldlang.c (load_symbols): Optimize for add_archive_element. 419 420 2010-12-06 H.J. Lu <hongjiu.lu@intel.com> 421 PR ld/12288 422 * plugin.c (message): Don't add the trailing `\n' for 423 LDPL_ERROR. 424 425 2010-12-06 H.J. Lu <hongjiu.lu@intel.com> 426 PR ld/12288 427 * testplug.c: Remove the trailing `\n' from TV_MESSAGE. 428 429 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 430 PR ld/12288 431 * plugin.c (message): Use putchar for the trailing `\n'. 432 433 2010-12-06 H.J. Lu <hongjiu.lu@intel.com> 434 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 435 PR ld/12289 436 * ldmain.c (main): Don't call plugin_call_cleanup. 437 * plugin.c (plugin_call_cleanup): Make it static. 438 (message): Don't call plugin_call_cleanup. 439 (plugin_load_plugins): Call xatexit with plugin_call_cleanup. 440 441 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> 442 PR ld/12289 443 * plugin.c (message): Call plugin_call_cleanup on fatal 444 error. 445 446 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> 447 * plugin.c (message): Add a space after `:' in error message. 448 449 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> 450 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n' 451 to einfo. 452 (get_symbols): Likewise. 453 (plugin_notice): Likewise. 454 (plugin_multiple_definition): Likewise. 455 456 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> 457 PR ld/12288 458 * plugin.c (message): Add the trailing `\n'. 459 460 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> 461 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead 462 of is_archive. 463 * emultempl/aix.em: Likewise. 464 * emultempl/elf32.em: Likewise. 465 * emultempl/linux.em: Likewise. 466 * emultempl/pe.em: Likewise. 467 * emultempl/pep.em: Likewise. 468 * emultempl/sunos.em: Likewise. 469 * emultempl/vms.em: Likewise. 470 * ldlang.c (new_afile): Set maybe_archive instead of is_archive.. 471 * ldlang.h (lang_input_statement_struct): Replace is_archive 472 with maybe_archive. 473 474 2010-12-05 H.J. Lu <hongjiu.lu@intel.com> 475 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO 476 plugin visibility to ELF visibility. 477 (is_visible_from_outside): Re-indent. 478 479 2010-11-21 H.J. Lu <hongjiu.lu@intel.com> 480 * ldfile.c: Re-indent plugin code. 481 * ldlang.c: Likewise. 482 * ldmain.c: Likewise. 483 * plugin.c: Likewise. 484 485 2010-11-20 H.J. Lu <hongjiu.lu@intel.com> 486 PR ld/12246 487 * plugin.c (asymbol_from_plugin_symbol): Set alignment of 488 common symbol to 1 for For ELF targets. 489 490 2010-11-20 H.J. Lu <hongjiu.lu@intel.com> 491 PR ld/12247 492 * lexsup.c (parse_args): Properly report loading plugin error. 493 4942010-12-21 Alan Modra <amodra@gmail.com> 495 496 * po/ja.po: Update. 497 4982010-12-04 Alan Modra <amodra@gmail.com> 499 500 * ldlang.c (lang_size_sections_1): Align lma using same alignment 501 as for vma. 502 5032010-11-05 Pierre Muller� <muller@ics.u-strasbg.fr> 504 505 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter. 506 5072010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com> 508 509 * configure.tgt: Add sparc64-rtems. 510 5112010-11-26 Alan Modra <amodra@gmail.com> 512 513 * po/ja.po: Update. 514 5152010-11-25 Alan Modra <amodra@gmail.com> 516 517 * po/bg.po: Update. 518 * po/es.po: Update. 519 * po/fi.po: Update. 520 * po/ja.po: New. 521 * po/zh_CN.po: Update. 522 5232010-11-25 Jan Hubicka <hubicka@ucw.cz> 524 525 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot 526 sections. 527 5282010-11-23 Matthias Klose <doko@ubuntu.com> 529 530 * configure.ac: For --enable-gold, handle value `default' instead of 531 `both*'. Always install ld as ld.gold, install as ld if gold is 532 the default. 533 * configure: Regenerate. 534 5352010-11-19 Dave Korn <dave.korn.cygwin@gmail.com> 536 537 * plugin.c (is_visible_from_outside): New function. 538 (get_symbols): Use it. 539 5402010-11-05 Tristan Gingold <gingold@adacore.com> 541 542 * po/ld.pot: Regenerate 543 * po/POTFILES.in: Regenerate 544 5452010-11-05 Tristan Gingold <gingold@adacore.com> 546 547 * NEWS: Add marker for 2.21. 548 5492010-11-05 Dave Korn <dave.korn.cygwin@gmail.com> 550 551 * plugin.h (plugin_active_plugins_p): New prototype. 552 (is_ir_dummy_bfd): Delete prototype. 553 * plugin.c: Fix formatting issues. 554 (is_ir_dummy_bfd): Make static. 555 (plugin_active_plugins_p): New function. 556 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins 557 are loaded. Always close file descriptor after claim handler returns. 558 * ldmain.c (add_archive_element): Likewise. 559 5602010-11-05 Alan Modra <amodra@gmail.com> 561 562 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD. 563 (map_input_to_output_sections): Likewise. 564 (lang_size_sections_1): Likewise. 565 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD. 566 (lang_check_section_addresses): Likewise. 567 5682010-11-04 Kai Tietz <kai.tietz@onevision.com> 569 570 * scripttempl/pe.sc (.debug_types): New. 571 * scripttempl/pep.sc: Likewise. 572 5732010-11-04 Alan Modra <amodra@gmail.com> 574 575 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd. 576 5772010-11-03 Nick Clifton <nickc@redhat.com> 578 579 PR ld/12001 580 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list 581 of symbols defined via the --defsym command line option and 582 currently waiting assignment. 583 (insert_defined): Add a defined symbol to the symbol table. 584 (ldlang_add_def): Add a entry to the ldlang_def_chain_list. 585 (lang_place_defineds): Walk ldlang_def_chain_list defining the 586 symbols. 587 (lang_process): Call lang_place_defineds. 588 (lang_add_assignment): If the assignment has come from a --defsym 589 command line option then call lang_add_def. 590 5912010-11-03 Alan Modra <amodra@gmail.com> 592 593 * Makefile.am (eelf64hppa.c): Correct dependencies. 594 * Makefile.in: Regenerate. 595 5962010-11-02 H.J. Lu <hongjiu.lu@intel.com> 597 598 * scripttempl/armbpabi.sc: Include compressed DWARF debug 599 sections. 600 * scripttempl/avr.sc: Likewise. 601 * scripttempl/elf32cr16.sc: Likewise. 602 * scripttempl/elf32crx.sc: Likewise. 603 * scripttempl/elf32msp430.sc: Likewise. 604 * scripttempl/elf32msp430_3.sc: Likewise. 605 * scripttempl/elf32sh-symbian.sc: Likewise. 606 * scripttempl/elf64hppa.sc: Likewise. 607 * scripttempl/elf_chaos.sc: Likewise. 608 * scripttempl/elfd10v.sc: Likewise. 609 * scripttempl/elfd30v.sc: Likewise. 610 * scripttempl/elfi370.sc: Likewise. 611 * scripttempl/elfm68hc11.sc: Likewise. 612 * scripttempl/elfm68hc12.sc: Likewise. 613 * scripttempl/elfxtensa.sc: Likewise. 614 * scripttempl/ip2k.sc: Likewise. 615 * scripttempl/iq2000.sc: Likewise. 616 * scripttempl/mep.sc: Likewise. 617 * scripttempl/mmo.sc: Likewise. 618 * scripttempl/v850.sc: Likewise. 619 * scripttempl/xstormy16.sc: Likewise. 620 6212010-10-29 H.J. Lu <hongjiu.lu@intel.com> 622 623 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after 624 bfd_openr returns. 625 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise. 626 627 * scripttempl/elf.sc: Include compressed DWARF debug sections. 628 6292010-10-28 Alan Modra <amodra@gmail.com> 630 631 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR. 632 6332010-10-28 Matthias Klose <doko@ubuntu.com> 634 635 * ld.texinfo: Add directory section for info document. 636 * ldint.texinfo: Likewise. 637 6382010-10-28 Alan Modra <amodra@gmail.com> 639 640 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For 641 --no-undefined-version, don't report dot sym versions added by ld. 642 6432010-10-28 Alan Modra <amodra@gmail.com> 644 645 * ldlang.h (ldlang_add_undef): Add cmdline param. 646 * ldlang.c (undef_from_cmdline): New var. 647 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline. 648 (lang_end): Really require -e or -u from command line on 649 relocatable --gc-sections. 650 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call. 651 * ldgram.y (extern_name_list_body): Likewise. 652 * lexsup.c (parse_args): Likewise. 653 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise. 654 6552010-10-25 Alan Modra <amodra@gmail.com> 656 657 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id. 658 Formatting. 659 6602010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 661 662 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to 663 elf32-sparc-sol2. 664 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to 665 elf64-sparc-sol2. 666 6672010-10-22 Alan Modra <amodra@gmail.com> 668 669 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't 670 output when section has no contents. 671 (build_link_order <lang_reloc_statement_enum>): Likewise. 672 6732010-10-21 Joseph Myers <joseph@codesourcery.com> 674 675 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use 676 .c6xabi.attributes, not __TI_build_attributes. 677 6782010-10-20 Dave Korn <dave.korn.cygwin@gmail.com> 679 680 * plugin.c (get_symbols): Check symbol type correctly. 681 6822010-10-15 Dave Korn <dave.korn.cygwin@gmail.com> 683 684 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h> 685 * configure: Regenerate. 686 * config.in: Likewise. 687 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide 688 trival LoadLibrary-based replacement for Windows systems. 689 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial 690 replacement based on GetProcAddress. 691 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary. 692 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS 693 anymore, use its own guard. 694 6952010-10-15 Dave Korn <dave.korn.cygwin@gmail.com> 696 697 * plugin.c (add_input_file): Take copy of input string. 698 (add_input_library): Likewise. 699 (set_extra_library_path): Likewise. 700 7012010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> 702 703 Apply LD plugin patch series (part 6/6). 704 * ldlang.c (load_symbols): Handle bfd subsitution when calling the 705 add_archive_element callback. 706 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive 707 member to the plugins and if claimed set "subsbfd" output parameter to 708 point to the dummy IR-only BFD. 709 7102010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> 711 712 Apply LD plugin patch series (part 5/6). 713 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd, 714 find the elf symbol data and set the visibility in the st_other field. 715 7162010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> 717 718 Apply LD plugin patch series (part 4/6). 719 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of 720 plugin_call_all_symbols_read to before setting of gc_sym_list, and 721 open any new input files that may have been added during it. 722 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to 723 plugin_multiple_definition and let it have first say over what to do 724 with the clashing definitions. 725 * plugin.c (no_more_claiming): New boolean variable. 726 (plugin_cached_allow_multiple_defs): Likewise. 727 (add_input_file): Implement. 728 (add_input_library): Likewise. 729 (set_extra_library_path): Likewise. 730 (plugin_call_claim_file): Don't do anything when no_more_claiming set. 731 (plugin_call_all_symbols_read): Set it. Disable link info 732 "allow_multiple_definition" flag, but cache its value. 733 (plugin_multiple_definition): New function. 734 * plugin.h (plugin_multiple_definition): Add prototype. 735 * testplug.c (addfile_enum_t): New enumerated typedef. 736 (add_file_t): New struct typedef. 737 (addfiles_list): New variable. 738 (addfiles_tail_chain_ptr): Likewise. 739 (record_add_file): New function. 740 (parse_option): Parse "add:", "lib:" and "dir:" options and call it. 741 (onall_symbols_read): Iterate the list of new files, libs and dirs, 742 adding them. 743 7442010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> 745 746 Apply LD plugin patch series (part 3/6). 747 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice. 748 * plugin.c (non_ironly_hash): Add new bfd hash table. 749 (plugin_load_plugins): Exit early if no plugins to load. If plugins 750 do load successfully, set notice_all flag in link info. 751 (get_symbols): Implement. 752 (plugin_load_plugins): Exit early if no plugins to load, else after 753 loading plugins successfully enable notice_all mode. 754 (init_non_ironly_hash): Lazily init non_ironly_hash table. 755 (plugin_notice): Record symbols referenced from non-IR files in the 756 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs 757 tracking for symbols from dummy IR bfds. 758 * plugin.h: Fix formatting. 759 (plugin_notice): Add prototype. 760 * testplug.c (dumpresolutions): New global var. 761 (parse_options): Accept "dumpresolutions". 762 (onall_symbols_read): Get syms and dump resolutions if it was given. 763 7642010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> 765 766 Apply LD plugin patch series (part 2/6). 767 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early 768 during compat checks if they pass, instead offer any successfully 769 opened and accepted file to the plugin claim file hooks chain. Create 770 a dummy bfd to accept symbols added by the plugin, if the plugin 771 claims the file. 772 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols 773 read hook chain before ldemul_after_open. 774 * ldlang.h (struct lang_input_statement_struct): Add new single-bit 775 'claimed' flag. 776 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix. 777 (IRONLY_SUFFIX_LEN): Length of the above string. 778 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used 779 to store symbols for ir-only files. 780 (is_ir_dummy_bfd): New function to check if a bfd is ir-only. 781 (asymbol_from_plugin_symbol): New function converts symbol formats. 782 (add_symbols): Call it to convert plugin syms to bfd syms and add 783 them to the dummy bfd. 784 * plugin.h: Add missing include guards. 785 (plugin_get_ir_dummy_bfd): Add prototype. 786 (is_ir_dummy_bfd): Likewise. 787 * testplug.c (TV_MESSAGE): New helper macro. 788 (struct claim_file): New struct. 789 (claim_file_t): New typedef. 790 (tag_names[]): Make static and const. 791 (claimfiles_list): New variable. 792 (claimfiles_tail_chain_ptr): Likewise. 793 (last_claimfile): Likewise. 794 (record_claim_file): Record a file to claim on a singly-linked list. 795 (parse_symdefstr): Parse an ASCII representation of a symbol from a 796 plugin option into the fields of a struct ld_plugin_symbol. 797 (record_claimed_file_symbol): Use it to parse plugin option for 798 adding a symbol. 799 (parse_option): Parse claim file and add symbol options. 800 (dump_tv_tag): Use TV_MESSAGE. 801 (onload): Likewise. 802 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to 803 claim and claim this file if required, adding any symbols specified. 804 (onall_symbols_read): Make static and use TV_MESSAGE. 805 (oncleanup): Likewise. 806 8072010-10-14 Dave Korn <dave.korn.cygwin@gmail.com> 808 809 Apply LD plugin patch series (part 1/6). 810 * configure.in: Add AC_CHECKs for file io and dlfcn headers and 811 functions and AC_SEARCH for -ldl. 812 (enable_plugins): New shell variable set if above tests find dlopen 813 functionality. 814 (ENABLE_PLUGINS): Add related automake conditional. 815 * configure: Regenerate. 816 * config.in: Likewise. 817 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional 818 on ENABLE_PLUGINS being defined. 819 (PLUGIN_H): Likewise for header file. 820 (PLUGIN_OBJECT): Likewise for object file. 821 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support. 822 (AM_CPPFLAGS): Use PLUGIN_CFLAGS. 823 (CFILES): Use PLUGIN_C. 824 (HFILES): Use PLUGIN_H. 825 (OFILES): Use PLUGIN_OBJECT. 826 (ld_new_SOURCES): Use PLUGIN_C. 827 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin. 828 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition 829 for test plugin. 830 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise. 831 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise. 832 * Makefile.in: Regenerate. 833 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or 834 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS. 835 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h 836 (O_WRONLY): Likewise. 837 (O_RDWR): Likewise. 838 (O_ACCMODE): Likewise. 839 (O_BINARY): Likewise. 840 (SEEK_SET): Likewise. 841 (SEEK_CUR): Likewise. 842 (SEEK_END): Likewise. 843 * ldmisc.c (vfinfo): Make non-static. Add %p format char. 844 * ldmisc.h (vfinfo): Declare extern prototype. 845 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for 846 OPTION_PLUGIN and OPTION_PLUGIN_OPT. 847 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two. 848 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once 849 option parsing is complete. 850 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just 851 after lang_finish. 852 * plugin.c: New source file. 853 * plugin.h: Likewise new header. 854 * testplug.c: New source file. 855 8562010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 857 858 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed 859 basever_syms to global_syms. 860 Emit global_syms into .dynamic section for all executables and 861 shared objects. 862 (elf_solaris2_after_allocation): New function. 863 (LDEMUL_AFTER_ALLOCATION): Use it. 864 * emulparams/solaris2.sh: New file. 865 * emulparams/elf32_sparc_sol2.sh: Use it. 866 * emulparams/elf64_sparc_sol2.sh: Likewise. 867 * emulparams/elf_i386_sol2.sh: Likewise. 868 * emulparams/elf_x86_64_sol2.sh: Likewise. 869 * Makefile.am (eelf32_sparc_sol2.c): Depend on 870 $(srcdir)/emulparams/solaris2.sh. 871 (eelf64_sparc_sol2.c): Likewise. 872 (eelf_x86_64_sol2.c): Likewise. 873 (eelf_i386_sol2.c): Likewise. 874 * Makefile.in: Regenerate. 875 8762010-10-06 Nick Clifton <nickc@redhat.com> 877 878 * ld.texinfo: Update description of computation of VMA and LMA 879 addresses for output sections. 880 8812010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 882 883 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit. 884 * Makefile.in: Regenerate. 885 886 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ... 887 (ALL_EMULATION_SOURCES): ... this new variable. 888 (ALL_64_EMULATIONS): Rewrite in terms of ... 889 (ALL_64_EMULATION_SOURCES): ... this new variable. 890 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES 891 variables. 892 (eelf32microblaze.c): Fix indentation. 893 * Makefile.in: Regenerate. 894 8952010-10-04 Bernd Schmidt <bernds@codesourcery.com> 896 897 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use 898 _bfd_elf_single_rel_hdr. 899 9002010-10-01 Alan Modra <amodra@gmail.com> 901 902 PR ld/12066 903 * ldexp.c (fold_name): Treat absolute symbols as plain numbers. 904 * ld.texinfo (Expression Section): Don't say absolute symbols 905 are addresses. 906 9072010-09-29 Alan Modra <amodra@gmail.com> 908 909 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load 910 section for orphans handled here. 911 9122010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 913 914 * configure: Regenerate. 915 9162010-09-23 Dave Korn <dave.korn.cygwin@gmail.com> 917 918 * scripttempl/armcoff.sc: Revert 2010-09-22 change. 919 9202010-09-23 Alan Modra <amodra@gmail.com> 921 922 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input 923 to output section on a final link. 924 9252010-09-22 Kai Tietz <kai.tietz@onevision.com> 926 927 * ldlang.c (lang_add_section): Allow for debugging 928 section to be marked as noload but to keep content. 929 (IGNORE_SECTION): Likewise. 930 (lang_check_section_addresses): Likewise. 931 * ldwrite.c (build_link_order): Likewise. 932 933 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add 934 idata to orphan set. 935 * emultempl/pep.em: Likewise. 936 * scripttempl/armcoff.sc: Separate idata 937 and add __IAT_start__ and __IAT_end__ labels. 938 * scripttempl/pe.sc: Likewise. 939 * scripttempl/pep.sc: Likewise. 940 9412010-09-20 David S. Miller <davem@davemloft.net> 942 943 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000 944 9452010-09-16 Alan Modra <amodra@gmail.com> 946 947 * ld.texinfo (NOLOAD): Do not erroneously state that contents will 948 appear in output file. 949 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload 950 unless SEC_COFF_SHARED_LIBRARY. 951 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload 952 output sections. 953 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding 954 to update dot in region. Ditto when setting SEC_ALLOC if dot 955 advanced due to assignment. 956 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD. 957 9582010-09-15 Kai Tietz <kai.tietz@onevision.com> 959 960 * scripttempl/pep.sc: Add .xdata segment and 961 put into .pdata all segments beginning with .pdata. 962 9632010-09-10 Alan Modra <amodra@gmail.com> 964 965 PR ld/11931 966 * ldlang.h (lang_for_each_statement_worker): Declare. 967 * ldlang.c (lang_for_each_statement_worker): Make global. Don't 968 recurse into children of output_section_statement with constraint 969 set to -1. 970 (print_assignment): Handle NULL output_section->bfd_section. 971 (lang_size_sections_1): Ignore output section statement address 972 when constraint is -1. 973 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete. 974 9752010-09-09 Tristan Gingold <gingold@adacore.com> 976 977 * NEWS: Add a entry for alpha-vms. 978 9792010-09-07 Andrew Burgess <aburgess@broadcom.com> 980 981 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on 982 newly cloned section. 983 9842010-09-02 Richard Henderson <rth@redhat.com> 985 986 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too. 987 9882010-08-31 Nick Clifton <nickc@redhat.com> 989 990 * ldlex.l (WILDCHAR): Add the caret and exclamation point 991 characters, so that they can be used inside globs. 992 9932010-08-31 Nick Clifton <nickc@redhat.com> 994 995 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in 996 a region's attributes. 997 9982010-08-31 Alan Modra <amodra@gmail.com> 999 1000 * scripttempl/mmo.sc: Move assignment to "Main" inside .text 1001 output section statement. 1002 10032010-08-25 H.J. Lu <hongjiu.lu@intel.com> 1004 1005 PR ld/11946 1006 * emultempl/elf32.em (_before_allocation): Check audit entry 1007 only on ELF input. 1008 10092010-08-22 H.J. Lu <hongjiu.lu@intel.com> 1010 1011 PR ld/11937 1012 * emultempl/elf32.em (_after_open): Find one .eh_frame section 1013 for --eh-frame-hdr. 1014 10152010-08-22 H.J. Lu <hongjiu.lu@intel.com> 1016 1017 PR ld/11937 1018 * emultempl/elf32.em (_after_open): Find an ELF input for 1019 --build-id and --eh-frame-hdr. 1020 10212010-08-20 Maciej W. Rozycki <macro@codesourcery.com> 1022 1023 * Makefile.am (eshlelf_fd.c): Correct the name of the tool 1024 directory. 1025 * Makefile.in: Regenerate. 1026 10272010-08-20 Nick Clifton <nickc@redhat.com> 1028 1029 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data 1030 returning NULL. 1031 10322010-08-19 Alan Modra <amodra@gmail.com> 1033 1034 * NEWS: Mention change in linker script expression evaluation. 1035 10362010-08-19 Alan Modra <amodra@gmail.com> 1037 1038 * ld.texinfo (Expression Section): Detail expression evaluation. 1039 (Builtin Functions <ADDR>): Correct. 1040 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally 1041 the same as ADDR. 1042 (Builtin Functions <SEGMENT_START>): Typo fix. 1043 * ldexp.c (new_number): New function. 1044 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section. 1045 (fold_unary <'~', '!', '-'>): Don't make_abs. 1046 (fold_binary): Simplify result section logic. Return NULL section 1047 for logical ops. 1048 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to 1049 a consistent result. 1050 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs. 1051 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise. 1052 (fold_name <NAME>): No need to handle absolute symbols differently 1053 from relative ones. 1054 (fold_name <ORIGIN>): Don't return valid result when 1055 lang_first_phase_enum. Return new_rel_from_abs, not new_abs. 1056 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel. 1057 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning 1058 a plain number to dot, assume the value is relative to expld.section. 1059 Make terms not in an output section, absolute. 1060 * ldlang.c (print_assignment): Fix style nit. 1061 (lang_size_sections_1): Cope with NULL expld.result.section. 1062 (lang_do_assignments_1): Likewise. 1063 10642010-08-12 Alan Modra <amodra@gmail.com> 1065 1066 * ldexp.c (new_rel): Remove "str". Update all call sites. 1067 (exp_fold_tree_1): When assigning to dot, calculate nextdot 1068 using expld.result.section rather than expld.section. 1069 10702010-08-06 Alan Modra <amodra@gmail.com> 1071 1072 PR ld/11887 1073 * ldlang.c (lang_add_vers_depend): Don't leave version_needed 1074 uninitialised. 1075 10762010-07-28 Alan Modra <amodra@gmail.com> 1077 1078 * ldexp.c (exp_print_tree): Print function-like binary nodes as 1079 functions rather than in-fix operators. Use fputs and fputc 1080 where appropriate. 1081 10822010-07-23 Naveen.H.S <naveen.S@kpitcummins.com> 1083 Ina Pandit <ina.pandit@kpitcummins.com> 1084 1085 * configure.tgt: Match all v850 targets. 1086 10872010-07-20 Mike Frysinger <vapier@gentoo.org> 1088 1089 * ld.texinfo (VERSION): Remove "int" from example script and add ";". 1090 Declare the default language as C. 1091 10922010-07-17 Alan Modra <amodra@gmail.com> 1093 1094 * ldlang.c (lang_check_section_addresses): Catch overlap for 1095 sections that wrap around the address space. 1096 10972010-06-29 Nick Clifton <nickc@redhat.com> 1098 1099 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections 1100 with the .gcc_except_table. prefix. 1101 11022010-06-29 Alan Modra <amodra@gmail.com> 1103 1104 * emulparams/maxqcoff.sh: Delete file. 1105 * scripttempl/maxqcoff.sc: Delete file. 1106 * Makefile.am: Remove references to maxq. 1107 * configure.tgt: Likewise. 1108 * Makefile.in: Regenerate. 1109 * configure: Regenerate. 1110 * po/POTFILES.in: Regenerate. 1111 11122010-06-27 Alan Modra <amodra@gmail.com> 1113 1114 * pe-dll.c (fill_edata): Avoid set but unused warning. 1115 (pe_walk_relocs_of_symbol): Delete set but unused variables. 1116 (generate_reloc, pe_implied_import_dll): Likewise. 1117 * emultempl/aix.em (open_dynamic_archive): Likewise. 1118 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise. 1119 (xtensa_layout_wild): Likewise. 1120 (xtensa_colocate_output_literals_callback): Likewise. 1121 11222010-06-25 Alan Modra <amodra@gmail.com> 1123 1124 * emultempl/ppc64elf.em (prelim_size_sections): New function. 1125 (ppc_before_allocation): Use it. Size sections before toc edit too. 1126 11272010-06-25 Alan Modra <amodra@gmail.com> 1128 1129 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided. 1130 11312010-06-20 Danny Smith <dannysmith@users.sourceforge.net> 1132 1133 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make 1134 auto-import and merge-rdata defaults same for i[3-7]86 and 1135 x86_64 mingw. 1136 11372010-06-15 Joseph Myers <joseph@codesourcery.com> 1138 1139 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define. 1140 11412010-06-09 Dave Korn <dave.korn.cygwin@gmail.com> 1142 1143 PR ld/11603 1144 * pe-dll.c (process_def_file_and_drectve): Reorder check for 1145 forwarded export name after check for ordinary export. 1146 11472010-06-08 Bernd Schmidt <bernds@codesourcery.com> 1148 1149 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New. 1150 11512010-06-08 Nick Clifton <nickc@redhat.com> 1152 1153 * fdl.texi: Replace with v1.3 text. 1154 * ld.texinfo: Replace abbreviated 20th century year numbers with 1155 full versions. 1156 * ldint.texinfo: Likewise. 1157 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an 1158 include of the fdl.texi file. 1159 11602010-06-01 Tristan Gingold <gingold@adacore.com> 1161 1162 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the 1163 readonly output-section. Handle LIB$INITIALIZE and sections 1164 created by gcc. 1165 * emultempl/vms.em (vms_place_orphan): Add comments. 1166 11672010-05-28 Nick Clifton <nickc@redhat.com> 1168 1169 * Makefile.am (eshlelf_fd.c): Fix typo in rule. 1170 * Makefile.in: Regenerate. 1171 11722010-05-26 H.J. Lu <hongjiu.lu@intel.com> 1173 1174 PR ld/11628 1175 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't 1176 multiple of maximum page size. 1177 11782010-05-25 Nick Clifton <nickc@redhat.com> 1179 1180 * Makefile.am: Fix typo. 1181 * Makefile.in: Regenerate. 1182 11832010-05-25 Daniel Jacobowitz <dan@codesourcery.com> 1184 Joseph Myers <joseph@codesourcery.com> 1185 Andrew Stubbs <ams@codesourcery.com> 1186 1187 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o. 1188 (eshelf_fd.c, eshlelf_fd.c): New rules. 1189 * Makefile.in: Regenerate. 1190 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd 1191 emulations. 1192 * emulparams/shelf_fd.sh: New file. 1193 * emulparams/shlelf_fd.sh: New file. 1194 * emulparams/shlelf_linux.sh: Update comment. 1195 11962010-05-25 Jay Krell <jay.krell@cornell.edu> 1197 1198 PR ld/11621 1199 * Makefile.am: Replace all occurences of .o with .@OBJEXT@ 1200 * Makefile.in: Regenerate. 1201 12022010-05-25 Kai Tietz <kai.tietz@onevision.com> 1203 1204 * deffilep.y (opt_name): Allow leading dot. 1205 (dot_name): Likewise. 1206 (anylang_id): Likewise. 1207 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by 1208 default auto_import. 1209 (gld${EMULATION_NAME}_handle_option): Warn about v1. 1210 (pep_find_data_imports): Remove superflous warnings about 1211 auto-import. 1212 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import 1213 and active pseudo-relocation-v2 rdata into data section. 1214 * emultempl/pe.em (default_merge_rdata): New shell variable. 1215 (MERGE_RDATA_V2): New macro. 1216 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import 1217 selected script. 1218 12192010-05-15 Kai Tietz <kai.tietz@onevision.com> 1220 1221 * emultempl/pe.em (is_underscoring): New helper function. 1222 (gld_${EMULATION_NAME}_before_parse): Replace code 1223 for pe(p)_leading_underscore detection by is_underscoring. 1224 (U): Likewise. 1225 (GET_INIT_SYMBOL_NAME): Likewise. 1226 (U_SIZE): Likewise. 1227 (set_pe_name): 1228 (set_entry_point): 1229 (gld_${EMULATION_NAME}_set_symbols): 1230 * emultempl/pep.em: Likewise. 1231 * pe-dll.c (pe_detail_list): Set default 1232 underscoring for x64 target. 1233 (pe_dll_id_target): Add initialization of 1234 pe(p)_leading_underscore. 1235 12362010-05-15 Dave Korn <dave.korn.cygwin@gmail.com> 1237 1238 * pe-dll.c: Removed trailing whitespaces. 1239 12402010-05-14 Alan Modra <amodra@gmail.com> 1241 1242 PR ld/11583 1243 * ldexp.c (exp_fold_tree_1): If assignment source expression is 1244 invalid, make the destination symbol undefined. 1245 12462010-05-11 Kai Tietz <kai.tietz@onevision.com> 1247 1248 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): 1249 Initialize pe(p)_leading_underscore variable. 1250 (set_pe_name): Likewise. 1251 * emultempl/pep.em: Likewise. 1252 Additional change default to non-underscore for 1253 pep_leading_underscore equal to -1. 1254 12552010-05-07 Tristan Gingold <gingold@adacore.com> 1256 1257 * Makefile.in: Regenerate with automake 1.11.1. 1258 * aclocal.m4: Ditto. 1259 12602010-05-05 Nick Clifton <nickc@redhat.com> 1261 1262 * po/es.po: Updated Spanish translation. 1263 12642010-04-27 Kai Tietz <kai.tietz@onevision.com> 1265 1266 * pe-dll.c (_nm_-symbols): Use always underscored variant 1267 for symbols. 1268 (__imp_-symbols): Likewise. 1269 (___imp_-symbols): Likewise. 1270 * NEWS: Mention ABI change for x64 PE-COFF. 1271 12722010-04-27 H.J. Lu <hongjiu.lu@intel.com> 1273 1274 * Makefile.am (install-exec-local): Properly install ld as 1275 default cross linker. 1276 * Makefile.in: Regenerated. 1277 12782010-04-27 H.J. Lu <hongjiu.lu@intel.com> 1279 Nick Clifton <nickc@redhat.com> 1280 1281 * configure.in (install_as_default): Define and set to true 1282 unless --enable-gold=both/gold has been specified. 1283 * configure: Regenerate. 1284 1285 * Makefile.am (transform): Use ld.bfd as the default name of 1286 the linker. 1287 (install-exec-local): Also install the executable as a binary 1288 named 'ld' if install_as_default is true. 1289 * Makefile.in: Regenerate. 1290 12912010-04-22 Nick Clifton <nickc@redhat.com> 1292 1293 * po/ld.pot: Updated by the Translation project. 1294 * po/vi.po: Updated Vietnamese translation. 1295 * po/bg.po: Updated Bulgarian translation. 1296 12972010-04-15 Andrew Haley <aph@redhat.com> 1298 1299 * emultempl/armelf.em (merge_exidx_entries): New variable. 1300 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition. 1301 ("no-merge-exidx-entries"): New option. 1302 * ld.texinfo (merge-exidx-entries): Document this option. 1303 13042010-04-14 Tristan Gingold <gingold@adacore.com> 1305 1306 * emulparams/alphavms.sh: New file. 1307 * emultempl/vms.em: New file. 1308 * scripttempl/alphavms.sc: New file. 1309 * configure.tgt (alpha*-*-*vms*): Added. 1310 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o 1311 (ealphavms.c): New target. 1312 * Makefile.in: Regenerate. 1313 13142010-04-09 Nick Clifton <nickc@redhat.com> 1315 1316 * ldlang.c (wild_sort): Remove unused variable section_name. 1317 13182010-04-07 Alan Modra <amodra@gmail.com> 1319 1320 * configure: Regenerate. 1321 13222010-04-06 H.J. Lu <hongjiu.lu@intel.com> 1323 1324 PR ld/11434 1325 * ld/testsuite/ld-x86-64/unique1.d: New. 1326 * ld/testsuite/ld-x86-64/unique1.s: Likewise. 1327 1328 * ld-x86-64/x86-64.exp: Run unique1. 1329 13302010-04-05 Kai Tietz <kai.tietz@onevision.com> 1331 1332 * emultempl/pep.em (U): Macro modified. 1333 (U_SIZE): New helper macro. 1334 (GET_INIT_SYMBOL_NAME): Likewise. 1335 (enum options): Add OPTION_NO_LEADING_UNDERSCORE 1336 and OPTION_LEADING_UNDERSCORE enumerator-values. 1337 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore 1338 option. 1339 (definfo): Add new member is_c_symbol. 1340 (D): Add to macro underscore mode parameter. 1341 (init): Add definition for is_c_symbol. 1342 (gld_${EMULATION_NAME}_list_options): Display new options. 1343 (set_pep_name): Adjust underscoring dependent fixed 1344 symbol handling. 1345 (gld_${EMULATION_NAME}_set_symbols): Likewise. 1346 (saw_option): Likewise. 1347 (gld_${EMULATION_NAME}_unrecognized_file): Likewise. 1348 (set_entry_point): Initial initial_symbol_char dependent to 1349 target's default and new option flag pep_leading_underscore. 1350 * emultempl/pe.em (U): Macro modified. 1351 (U_SIZE): New helper macro. 1352 (GET_INIT_SYMBOL_NAME): Likewise. 1353 (OPTION_LEADING_UNDERSCORE): Add new option define. 1354 (OPTION_NO_LEADING_UNDERSCORE): Likewise. 1355 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore 1356 option. 1357 (definfo): Add new member is_c_symbol. 1358 (D): Add to macro underscore mode parameter. 1359 (init): Add definition for is_c_symbol. 1360 (gld_${EMULATION_NAME}_list_options): Display new options. 1361 (set_pep_name): Adjust underscoring dependent fixed 1362 symbol handling. 1363 (gld_${EMULATION_NAME}_set_symbols): Likewise. 1364 (saw_option): Likewise. 1365 (gld_${EMULATION_NAME}_unrecognized_file): Likewise. 1366 (set_entry_point): Initial initial_symbol_char dependent to 1367 target's default and new option flag pep_leading_underscore. 1368 * pe-dll.c (pe_leading_underscore): New flag variable. 1369 (pe_detail_list): Remove const to allow modify of 1370 member underscore. 1371 (pe_dll_id_target): Initialize pe_details' underscore variable 1372 dependent to target's default and flag pe_leading_underscore. 1373 * pe-dll.h (pe_leading_underscore): Add extern declaration of 1374 option flag. 1375 * pep-dll.c (pe_leading_underscore): Add alias define for 1376 pep_leading_underscore. 1377 * pep-dll.h (pep_leading_underscore) Add extern declaration of 1378 option flag. 1379 * ld.texinfo: Add documentation for --(no-)leading-underscore 1380 option. 1381 13822010-03-26 Alan Modra <amodra@gmail.com> 1383 1384 PR ld/11426 1385 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits. 1386 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo. 1387 13882010-03-25 Joseph Myers <joseph@codesourcery.com> 1389 1390 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and 1391 eelf32_tic6x_le.o. 1392 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New. 1393 * NEWS: Add news entry for TI C6X support. 1394 * configure.tgt (tic6x-*-*): New. 1395 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New. 1396 13972010-03-23 Joseph Myers <joseph@codesourcery.com> 1398 1399 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME, 1400 BSS_NAME): Define if not already defined. Use in place of some 1401 hardcoded section names. 1402 14032010-03-18 H.J. Lu <hongjiu.lu@intel.com> 1404 1405 * scripttempl/elf.sc (INIT_ARRAY): Re-indent. 1406 14072010-03-18 Aymeric Vincent <vincent@labri.fr> 1408 1409 PR ld/11384 1410 * emultempl/sh64elf.em: Add missing EOF. 1411 14122010-03-18 Doug Semler <dougsemler@gmail.com> 1413 1414 * pe-dll.c (make_one): Make text section readonly. 1415 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag 1416 the jump stub on X86 as /SAFESEH compatible for 1417 native toolchains. 1418 14192010-03-17 Alan Modra <amodra@gmail.com> 1420 1421 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from 1422 *prev instead. Update all callers. 1423 14242010-03-15 Daniel Jacobowitz <dan@codesourcery.com> 1425 1426 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same 1427 region and phdrs as their placement section. 1428 14292010-03-15 Alan Modra <amodra@gmail.com> 1430 1431 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New. 1432 (ppc_before_allocation): Call sort_toc_sections. 1433 (no_toc_sort, OPTION_NO_TOC_SORT): New. 1434 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS, 1435 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort. 1436 14372010-03-14 Alan Modra <amodra@gmail.com> 1438 1439 PR ld/11378 1440 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call 1441 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs. 1442 14432010-03-11 George Gensure <werkt0@gmail.com> 1444 1445 PR ld/11367 1446 * ldcref.c (handle_asneeded_cref): Correct copying of refs. 1447 14482010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1449 1450 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o, 1451 eelf_i386_sol2.o. 1452 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o. 1453 (eelf32_sparc_sol2.c): New rule. 1454 (eelf64_sparc_sol2.c): Likewise. 1455 (eelf_x86_64_sol2.c): Likewise. 1456 (eelf_i386_sol2.c): Likewise. 1457 * Makefile.in: Regenerate. 1458 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to 1459 elf_i386_sol2. 1460 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls. 1461 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2. 1462 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls. 1463 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2. 1464 Add target_extra_emuls. 1465 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2. 1466 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls. 1467 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2. 1468 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls. 1469 * emulparams/elf32_sparc_sol2.sh: New file. 1470 * emulparams/elf64_sparc_sol2.sh: New file. 1471 * emulparams/elf_i386_sol2.sh: New file. 1472 * emulparams/elf_x86_64_sol2.sh: New file. 1473 * emultempl/solaris2.em: New file. 1474 14752010-02-27 H.J. Lu <hongjiu.lu@intel.com> 1476 1477 PR ld/11330 1478 * ld.texinfo: Replace explicitely with explicitly. 1479 14802010-02-27 Jie Zhang <jie@codesourcery.com> 1481 1482 * scripttempl/armbpabi.sc: Don't combine .init_array.* or 1483 .fini_array.* when do relocatable linking. 1484 * scripttempl/elf.sc: Likewise. 1485 * scripttempl/elf32sh-symbian.sc: Likewise. 1486 * scripttempl/elf64hppa.sc: Likewise. 1487 * scripttempl/elfxtensa.sc: Likewise. 1488 14892010-02-26 Alan Modra <amodra@gmail.com> 1490 1491 * scripttempl/elf.sc (.fini_array): Place input .fini_array after 1492 .fini_array.*. 1493 * scripttempl/armbpabi.sc: Likewise. 1494 * scripttempl/elf32sh-symbian.sc: Likewise. 1495 * scripttempl/elf64hppa.sc: Likewise. 1496 * scripttempl/elfxtensa.sc: Likewise. 1497 14982010-02-25 Alan Modra <amodra@gmail.com> 1499 1500 PR ld/11304 1501 * ldlang.c (init_os): Remove isec param. Don't check for 1502 bfd_section already set or call bfd_init_private_section_data 1503 here. 1504 (exp_init_os): Update init_os call. 1505 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE 1506 flags. Call bfd_init_private_section_data here. 1507 (map_input_to_output_sections): Tidy. Update init_os calls. 1508 Use os->sectype to select sec flags for lang_data_statement. 1509 15102010-02-23 Alan Modra <amodra@gmail.com> 1511 1512 PR ld/11304 1513 * ldlang.c: Revert last patch. 1514 15152010-02-23 Nick Clifton <nickc@redhat.com> 1516 1517 * po/bg.po: Updated Bulgarian translation. 1518 15192010-02-22 Alan Modra <amodra@gmail.com> 1520 1521 PR ld/11304 1522 * ldlang.c (exp_init_os): Delete forward declaration. 1523 (init_os): Don't check for bfd_section already created and don't 1524 init addr_tree and load_base expressions here. 1525 (map_input_to_output_sections): Only map input to output sections 1526 and set constraints here, and as an exception, create output 1527 sections which have their address set. Move all the other code to.. 1528 (create_other_output_sections): ..here. New function. Handle init 1529 of addr_tree and load_base here too. 1530 (lang_process): Call create_other_output_sections. 1531 15322010-02-19 Alan Modra <amodra@gmail.com> 1533 1534 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS. 1535 * Makefile.in: Regenerate. 1536 15372010-02-19 Alan Modra <amodra@gmail.com> 1538 1539 * ldlang.c (unique_section_p): Add os param. Allow group 1540 sections to match /DISCARD/. Update all callers. 1541 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New. 1542 (LDEMUL_BEFORE_ALLOCATION): Define. 1543 15442010-02-15 Nick Clifton <nickc@redhat.com> 1545 1546 * po/vi.po: Updated Vietnamese translation. 1547 15482010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com> 1549 1550 * Makefile.am (CFILES): Add ldlex-wrapper.c. 1551 (OFILES): Replace ldlex.c with ldlex-wrapper.c. 1552 (ldlex.o): Replace with... 1553 (ldlex-wrapper.o): ...this new rule. 1554 (EXTRA_ld_new_SOURCES): Add ldlex.l. 1555 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c. 1556 * Makefile.in: Regenerate. 1557 * ldlex.l (sysdep.h): Don't include here. 1558 * ldlex-wrapper.c: New file. 1559 15602010-02-09 Alan Modra <amodra@gmail.com> 1561 1562 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed 1563 function parameters. 1564 15652010-02-05 Nick Clifton <nickc@redhat.com> 1566 1567 * configure.in (ALL_LIBGUAS): Add bg. 1568 * configure: Regenerate. 1569 * po/bg.po: New Bulgarian translation. 1570 15712010-02-05 Ryan Mansfield <rmansfield@qnx.com> 1572 1573 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for 1574 --target1-abs and --target1-rel options. 1575 15762010-02-03 Nick Clifton <nickc@redhat.com> 1577 1578 * emultempl/alphaelf.em: Update value expected from elf_object_id. 1579 * emultempl/hppaelf.em: Likewise. 1580 * emultempl/mipself.em: Likewise. 1581 * emultempl/ppc32elf.em: Likewise. 1582 * emultempl/ppc64elf.em: Likewise. 1583 15842010-02-03 Alan Modra <amodra@gmail.com> 1585 1586 * emultempl/ppc64elf.em (build_toc_list): Report errors from 1587 ppc64_elf_next_toc_section. 1588 (after_allocation): Update for changed function names and params. 1589 Run second pass of multitoc partitioning. 1590 15912010-01-21 Jon Grant <jg@jguk.org> 1592 Nick Clifton <nickc@redhat.com> 1593 1594 PR 4437 1595 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering 1596 a missing file or library. Instead mark the entry as missing and 1597 set the global flag to indicate that missing files were 1598 encountered. 1599 * ldlang.c (missing_files): New exported variable. 1600 (load_symbols): Skip loading if the file is missing. 1601 (open_input_bfds): Terminate link if any input files were 1602 missing. 1603 * ldlang.h (struct lang_input_statement_struct): Add missing_file 1604 field. 1605 Add export of missing_file variable. 1606 16072010-01-13 DJ Delorie <dj@redhat.com> 1608 1609 * emultempl/elf32.em (_place_orphan): If an input section doesn't 1610 match an existing output section, but an unused output section 1611 statement does match, use it. 1612 * emultempl/pe.em (_place_orphan): Likewise. 1613 * emultempl/pep.em (_place_orphan): Likewise. 1614 16152010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1616 1617 * configure: Regenerate. 1618 * Makefile.in: Regenerate. 1619 16202010-01-08 H.J. Lu <hongjiu.lu@intel.com> 1621 1622 * ldver.c (ldversion): Change to "Copyright 2010". 1623 16242010-01-08 Alan Modra <amodra@gmail.com> 1625 1626 PR 11107 1627 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr. 1628 1629For older changes see ChangeLog-2009 1630 1631Local Variables: 1632mode: change-log 1633left-margin: 8 1634fill-column: 74 1635version-control: never 1636End: 1637