Add x86-64 ILP32 support.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
351f65ca
L
12010-12-30 H.J. Lu <hongjiu.lu@intel.com>
2
3 * emulparams/elf32_x86_64.sh: New.
4
5 * configure.tgt (targ64_extra_emuls): Add elf32_x86_64 for
6 i[3-7]86-*-linux-*.
7 (targ_extra_libpath): Likewise.
8 (targ_extra_emuls): Add elf32_x86_64 for x86_64-*-linux-*.
9 (targ_extra_libpath): Likewise.
10
11 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64.c.
12 (eelf32_x86_64.c): New.
13 * Makefile.in: Regenerated.
14
5c3049d2
AM
152010-12-20 Alan Modra <amodra@gmail.com>
16
3458c452 17 PR ld/12327
5c3049d2
AM
18 * ld.texinfo (Expression Section): Describe treatment of numbers
19 and absolute symbols.
20 * ldemul.c (after_open_default): Look up __ld_compatibility.
21 * ldexp.c (fold_name): Convert absolute symbols to numbers when
22 inside output section definitions, or when __ld_compatibility >= 221.
23 (exp_fold_tree_1): Convert numbers to absolute when not in output
24 section definition and __ld_compatibility < 221. Don't always
25 convert values outside an output section definition to absolute.
26 * ldexp.h (uses_defined): Comment.
27 * ldlang.c (ld_compatibility): New variable.
28 * ldlang.h (ld_compatibility): Declare.
29 * emultempl/aix.em, * emultempl/armcoff.em, * emultempl/beos.em,
30 * emultempl/elf32.em, * emultempl/genelf.em, * emultempl/lnk960.em,
31 * emultempl/m68kcoff.em, * emultempl/mmo.em, * emultempl/pe.em,
32 * emultempl/pep.em, * emultempl/sunos.em, * emultempl/z80.em: Call
33 after_open_default from after_open function.
34
e759c116
AM
352010-12-20 Alan Modra <amodra@gmail.com>
36
37 PR ld/12001
38 Revert 2010-11-03 Nick Clifton
39 * ldlang.c (ldlang_def_chain_list): Delete.
40 (insert_defined, ldlang_add_def, lang_place_defineds): Delete.
41 (lang_process): Don't call lang_place_defineds.
42 (lang_add_assignment): Don't do anything special for --defsym.
43
44 * ldexp.h (struct ldexp_control): Add uses_defined.
45 (exp_fold_tree_no_dot): Declare.
46 * ldexp.c (exp_fold_tree): Clear uses_defined.
47 (exp_fold_tree_no_dot): Likewise. Make global.
48 (fold_name <DEFINED>): Set uses_defined.
49 (exp_fold_tree_1 <etree_assign>): Define symbol during first phase
50 even when the value being assigned isn't valid.
51 * ldlang.c (open_input_bfds): Process assignment statements.
52 (lang_process): Bump lang_statement_iteration.
53 (scan_for_self_assignment): Formatting.
54 (print_assignment): Style.
55
02ecc8e9
L
562010-12-15 H.J. Lu <hongjiu.lu@intel.com>
57
58 * Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.
59
60 * NEWS: Mention SORT_BY_INIT_PRIORITY.
61
62 * configure.in: Add AC_CANONICAL_BUILD.
63 Add --enable-initfini-array.
64
65 * genscripts.sh (ENABLE_INITFINI_ARRAY): New.
66
67 * ld.h (sort_type): Add by_init_priority.
68
69 * ld.texinfo: Document SORT_BY_INIT_PRIORITY.
70
71 * ldgram.y (SORT_BY_INIT_PRIORITY): New.
72 (wildcard_spec): Handle SORT_BY_INIT_PRIORITY.
73
74 * ldlang.c (get_init_priority): New.
75 (compare_section): Use get_init_priority for by_init_priority.
76
77 * ldlex.l (SORT_BY_INIT_PRIORITY): New.
78
79 * scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.
80
81 * Makefile.in: Regenerated.
82 * aclocal.m4: Regenerated.
83 * config.in: Likewise.
84 * configure: Likewise.
85
46105645
AM
862010-12-13 Alan Modra <amodra@gmail.com>
87
88 * ldlang.c (load_symbols): Correct last change.
89
db0ca79f
L
902010-12-12 H.J. Lu <hongjiu.lu@intel.com>
91
92 * ldlang.c (load_symbols): Optimize for add_archive_element.
93
8b9a522f
MF
942010-12-09 Mike Frysinger <vapier@gentoo.org>
95
96 * .gitignore: New file.
97
94bf3a11
L
982010-12-06 H.J. Lu <hongjiu.lu@intel.com>
99
100 * lexsup.c (ld_options): Add -flto and -flto-partition= for
101 GCC LTO option compatibility.
102
d251c5c4
L
1032010-12-06 H.J. Lu <hongjiu.lu@intel.com>
104
105 PR ld/12288
106 * plugin.c (message): Don't add the trailing `\n' for
107 LDPL_ERROR.
108
ada487f6
L
1092010-12-06 H.J. Lu <hongjiu.lu@intel.com>
110
111 PR ld/12288
112 * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
113
d9b21463
L
1142010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
115
116 PR ld/12288
117 * plugin.c (message): Use putchar for the trailing `\n'.
118
e73d965c
L
1192010-12-06 H.J. Lu <hongjiu.lu@intel.com>
120 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
121
122 PR ld/12289
123 * ldmain.c (main): Don't call plugin_call_cleanup.
124
125 * plugin.c (plugin_call_cleanup): Make it static.
126 (message): Don't call plugin_call_cleanup.
127 (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
128
3b8525f8
L
1292010-12-05 H.J. Lu <hongjiu.lu@intel.com>
130
131 PR ld/12289
132 * plugin.c (message): Call plugin_call_cleanup on fatal
133 error.
134
7990daec
L
1352010-12-05 H.J. Lu <hongjiu.lu@intel.com>
136
137 * plugin.c (message): Add a space after `:' in error message.
138
ea360572
L
1392010-12-05 H.J. Lu <hongjiu.lu@intel.com>
140
141 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
142 to einfo.
143 (get_symbols): Likewise.
144 (plugin_notice): Likewise.
145 (plugin_multiple_definition): Likewise.
146
b7f42144
L
1472010-12-05 H.J. Lu <hongjiu.lu@intel.com>
148
149 PR ld/12288
150 * plugin.c (message): Add the trailing `\n'.
151
b7f95647
L
1522010-12-05 H.J. Lu <hongjiu.lu@intel.com>
153
154 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
155 of is_archive.
156 * emultempl/aix.em: Likewise.
157 * emultempl/elf32.em: Likewise.
158 * emultempl/linux.em: Likewise.
159 * emultempl/pe.em: Likewise.
160 * emultempl/pep.em: Likewise.
161 * emultempl/sunos.em: Likewise.
162 * emultempl/vms.em: Likewise.
163
164 * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
165
166 * ldlang.h (lang_input_statement_struct): Replace is_archive
167 with maybe_archive.
168
cfac8028
L
1692010-12-05 H.J. Lu <hongjiu.lu@intel.com>
170
2be3382c 171 PR ld/12277
cfac8028
L
172 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
173 plugin visibility to ELF visibility.
174 (is_visible_from_outside): Re-indent.
175
c5b0a9ef
AM
1762010-12-04 Alan Modra <amodra@gmail.com>
177
178 * ldlang.c (lang_size_sections_1): Align lma using same alignment
179 as for vma.
180
99bca8f9
L
1812010-12-03 H.J. Lu <hongjiu.lu@intel.com>
182
183 * lexsup.c (ld_options): Fix a typo in comments.
184
a48d02c9
L
1852010-12-01 H.J. Lu <hongjiu.lu@intel.com>
186
187 * plugin.h: Re-indent.
188
9203b09a
AM
1892010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
190
191 * configure.tgt: Add sparc64-rtems.
192
a9a7adc0
AM
1932010-11-26 Alan Modra <amodra@gmail.com>
194
195 * po/ja.po: Update.
196
1de34e0a
AM
1972010-11-25 Alan Modra <amodra@gmail.com>
198
199 * po/bg.po: Update.
200 * po/es.po: Update.
201 * po/fi.po: Update.
202 * po/ja.po: New.
203 * po/zh_CN.po: Update.
204
add44f8d
AM
2052010-11-25 Jan Hubicka <hubicka@ucw.cz>
206
207 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
208 sections.
209
c7791212
NC
2102010-11-23 Matthias Klose <doko@ubuntu.com>
211
212 * configure.ac: For --enable-gold, handle value `default' instead of
213 `both*'. Always install ld as ld.gold, install as ld if gold is
214 the default.
215 * configure: Regenerate.
216
f84854b6
L
2172010-11-21 H.J. Lu <hongjiu.lu@intel.com>
218
219 * ldfile.c: Re-indent plugin code.
220 * ldlang.c: Likewise.
221 * ldmain.c: Likewise.
222 * plugin.c: Likewise.
223
5c08b7d4
L
2242010-11-20 H.J. Lu <hongjiu.lu@intel.com>
225
226 PR ld/12246
227 * plugin.c (asymbol_from_plugin_symbol): Set alignment of
228 common symbol to 1 for For ELF targets.
229
f9982339
L
2302010-11-20 H.J. Lu <hongjiu.lu@intel.com>
231
232 PR ld/12247
233 * lexsup.c (parse_args): Properly report loading plugin error.
234
42a851a9
DK
2352010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
236
237 * plugin.c (is_visible_from_outside): New function.
238 (get_symbols): Use it.
239
781303ce
MF
2402010-11-16 Jie Zhang <jie.zhang@analog.com>
241
242 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
243 * Makefile.in: Regenerated.
244 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
245 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
246 * emultempl/bfin.em: New.
247
c85f715a
AM
2482010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
249
250 * emultempl/pe.em (_list_options): Correct typo.
251 * emultempl/pep.em (_list_options): Likewise.
252
5940a93c
TS
2532010-11-08 Thomas Schwinge <thomas@schwinge.name>
254
255 * configure.host: Add stanza for *-*-gnu*.
256
04ea1ddd 2572010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
a38ce0d0
RS
258
259 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
260
2ee0aedf
TG
2612010-11-05 Tristan Gingold <gingold@adacore.com>
262
263 * po/ld.pot: Regenerate
264 * po/POTFILES.in: Regenerate
265
44f45767
TG
2662010-11-05 Tristan Gingold <gingold@adacore.com>
267
268 * NEWS: Add marker for 2.21.
269
d44ad554
DK
2702010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
271
272 * plugin.h (plugin_active_plugins_p): New prototype.
273 (is_ir_dummy_bfd): Delete prototype.
274 * plugin.c: Fix formatting issues.
275 (is_ir_dummy_bfd): Make static.
276 (plugin_active_plugins_p): New function.
277 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
278 are loaded. Always close file descriptor after claim handler returns.
279 * ldmain.c (add_archive_element): Likewise.
280
f4eaaf7f
AM
2812010-11-05 Alan Modra <amodra@gmail.com>
282
283 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
284 (map_input_to_output_sections): Likewise.
285 (lang_size_sections_1): Likewise.
286 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
287 (lang_check_section_addresses): Likewise.
288
802d4822
KT
2892010-11-04 Kai Tietz <kai.tietz@onevision.com>
290
291 * scripttempl/pe.sc (.debug_types): New.
292 * scripttempl/pep.sc: Likewise.
293
129b5d55
AM
2942010-11-04 Alan Modra <amodra@gmail.com>
295
296 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
297
e597fa08
NC
2982010-11-03 Nick Clifton <nickc@redhat.com>
299
300 PR ld/12001
301 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
302 of symbols defined via the --defsym command line option and
303 currently waiting assignment.
304 (insert_defined): Add a defined symbol to the symbol table.
305 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
306 (lang_place_defineds): Walk ldlang_def_chain_list defining the
307 symbols.
308 (lang_process): Call lang_place_defineds.
309 (lang_add_assignment): If the assignment has come from a --defsym
310 command line option then call lang_add_def.
311
2ebf3964
AM
3122010-11-03 Alan Modra <amodra@gmail.com>
313
314 * Makefile.am (eelf64hppa.c): Correct dependencies.
315 * Makefile.in: Regenerate.
316
34734a01
L
3172010-11-02 H.J. Lu <hongjiu.lu@intel.com>
318
319 * scripttempl/armbpabi.sc: Include compressed DWARF debug
320 sections.
321 * scripttempl/avr.sc: Likewise.
322 * scripttempl/elf32cr16.sc: Likewise.
323 * scripttempl/elf32crx.sc: Likewise.
324 * scripttempl/elf32msp430.sc: Likewise.
325 * scripttempl/elf32msp430_3.sc: Likewise.
326 * scripttempl/elf32sh-symbian.sc: Likewise.
327 * scripttempl/elf64hppa.sc: Likewise.
328 * scripttempl/elf_chaos.sc: Likewise.
329 * scripttempl/elfd10v.sc: Likewise.
330 * scripttempl/elfd30v.sc: Likewise.
331 * scripttempl/elfi370.sc: Likewise.
332 * scripttempl/elfm68hc11.sc: Likewise.
333 * scripttempl/elfm68hc12.sc: Likewise.
334 * scripttempl/elfxtensa.sc: Likewise.
335 * scripttempl/ip2k.sc: Likewise.
336 * scripttempl/iq2000.sc: Likewise.
337 * scripttempl/mep.sc: Likewise.
338 * scripttempl/mmo.sc: Likewise.
339 * scripttempl/v850.sc: Likewise.
340 * scripttempl/xstormy16.sc: Likewise.
341
4a114e3e
L
3422010-10-29 H.J. Lu <hongjiu.lu@intel.com>
343
344 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
345 bfd_openr returns.
346 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
347
348 * scripttempl/elf.sc: Include compressed DWARF debug sections.
349
ace9d866
AM
3502010-10-28 Alan Modra <amodra@gmail.com>
351
352 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
353
9160ea82
AM
3542010-10-28 Matthias Klose <doko@ubuntu.com>
355
356 * ld.texinfo: Add directory section for info document.
357 * ldint.texinfo: Likewise.
358
71755fdf
AM
3592010-10-28 Alan Modra <amodra@gmail.com>
360
361 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
362 --no-undefined-version, don't report dot sym versions added by ld.
363
24898b70
AM
3642010-10-28 Alan Modra <amodra@gmail.com>
365
366 * ldlang.h (ldlang_add_undef): Add cmdline param.
367 * ldlang.c (undef_from_cmdline): New var.
368 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
369 (lang_end): Really require -e or -u from command line on
370 relocatable --gc-sections.
371 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
372 * ldgram.y (extern_name_list_body): Likewise.
373 * lexsup.c (parse_args): Likewise.
374 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
375
bc110b6e
AM
3762010-10-25 Alan Modra <amodra@gmail.com>
377
378 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
379 Formatting.
380
1360ba76
RO
3812010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
382
383 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
384 elf32-sparc-sol2.
385 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
386 elf64-sparc-sol2.
387
2b42b063
AM
3882010-10-22 Alan Modra <amodra@gmail.com>
389
390 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
391 output when section has no contents.
392 (build_link_order <lang_reloc_statement_enum>): Likewise.
393
75fa6dc1
JM
3942010-10-21 Joseph Myers <joseph@codesourcery.com>
395
396 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
397 .c6xabi.attributes, not __TI_build_attributes.
398
7bac81d3
DK
3992010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
400
401 * plugin.c (get_symbols): Check symbol type correctly.
402
3917d5d5
DK
4032010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
404
405 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
406 * configure: Regenerate.
407 * config.in: Likewise.
408 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
409 trival LoadLibrary-based replacement for Windows systems.
410 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
411 replacement based on GetProcAddress.
412 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
413 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
414 anymore, use its own guard.
415
d4cb7acd
DK
4162010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
417
418 * plugin.c (add_input_file): Take copy of input string.
419 (add_input_library): Likewise.
420 (set_extra_library_path): Likewise.
421
2b42b063 4222010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
423
424 Apply LD plugin patch series (part 6/6).
425 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
426 add_archive_element callback.
427 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
428 member to the plugins and if claimed set "subsbfd" output parameter to
429 point to the dummy IR-only BFD.
430
2b42b063 4312010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
432
433 Apply LD plugin patch series (part 5/6).
434 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
435 find the elf symbol data and set the visibility in the st_other field.
436
2b42b063 4372010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
438
439 Apply LD plugin patch series (part 4/6).
440 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
441 plugin_call_all_symbols_read to before setting of gc_sym_list, and
442 open any new input files that may have been added during it.
443 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
444 plugin_multiple_definition and let it have first say over what to do
445 with the clashing definitions.
446 * plugin.c (no_more_claiming): New boolean variable.
447 (plugin_cached_allow_multiple_defs): Likewise.
448 (add_input_file): Implement.
449 (add_input_library): Likewise.
450 (set_extra_library_path): Likewise.
451 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
452 (plugin_call_all_symbols_read): Set it. Disable link info
453 "allow_multiple_definition" flag, but cache its value.
454 (plugin_multiple_definition): New function.
455 * plugin.h (plugin_multiple_definition): Add prototype.
456 * testplug.c (addfile_enum_t): New enumerated typedef.
457 (add_file_t): New struct typedef.
458 (addfiles_list): New variable.
459 (addfiles_tail_chain_ptr): Likewise.
460 (record_add_file): New function.
461 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
462 (onall_symbols_read): Iterate the list of new files, libs and dirs,
463 adding them.
464
2b42b063 4652010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
466
467 Apply LD plugin patch series (part 3/6).
468 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
469 * plugin.c (non_ironly_hash): Add new bfd hash table.
470 (plugin_load_plugins): Exit early if no plugins to load. If plugins
471 do load successfully, set notice_all flag in link info.
472 (get_symbols): Implement.
473 (plugin_load_plugins): Exit early if no plugins to load, else after
474 loading plugins successfully enable notice_all mode.
475 (init_non_ironly_hash): Lazily init non_ironly_hash table.
476 (plugin_notice): Record symbols referenced from non-IR files in the
477 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
478 tracking for symbols from dummy IR bfds.
479 * plugin.h: Fix formatting.
480 (plugin_notice): Add prototype.
481 * testplug.c (dumpresolutions): New global var.
482 (parse_options): Accept "dumpresolutions".
483 (onall_symbols_read): Get syms and dump resolutions if it was given.
484
2b42b063 4852010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
486
487 Apply LD plugin patch series (part 2/6).
488 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
489 during compat checks if they pass, instead offer any successfully
490 opened and accepted file to the plugin claim file hooks chain. Create
491 a dummy bfd to accept symbols added by the plugin, if the plugin
492 claims the file.
493 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
494 read hook chain before ldemul_after_open.
495 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
496 'claimed' flag.
497 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
498 (IRONLY_SUFFIX_LEN): Length of the above string.
499 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
500 to store symbols for ir-only files.
501 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
502 (asymbol_from_plugin_symbol): New function converts symbol formats.
503 (add_symbols): Call it to convert plugin syms to bfd syms and add
504 them to the dummy bfd.
505 * plugin.h: Add missing include guards.
506 (plugin_get_ir_dummy_bfd): Add prototype.
507 (is_ir_dummy_bfd): Likewise.
508 * testplug.c (TV_MESSAGE): New helper macro.
509 (struct claim_file): New struct.
510 (claim_file_t): New typedef.
511 (tag_names[]): Make static and const.
512 (claimfiles_list): New variable.
513 (claimfiles_tail_chain_ptr): Likewise.
514 (last_claimfile): Likewise.
515 (record_claim_file): Record a file to claim on a singly-linked list.
516 (parse_symdefstr): Parse an ASCII representation of a symbol from a
517 plugin option into the fields of a struct ld_plugin_symbol.
518 (record_claimed_file_symbol): Use it to parse plugin option for
519 adding a symbol.
520 (parse_option): Parse claim file and add symbol options.
521 (dump_tv_tag): Use TV_MESSAGE.
522 (onload): Likewise.
523 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
524 claim and claim this file if required, adding any symbols specified.
525 (onall_symbols_read): Make static and use TV_MESSAGE.
526 (oncleanup): Likewise.
527
2b42b063 5282010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
529
530 Apply LD plugin patch series (part 1/6).
531 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
532 functions and AC_SEARCH for -ldl.
533 (enable_plugins): New shell variable set if above tests find dlopen
534 functionality.
535 (ENABLE_PLUGINS): Add related automake conditional.
536 * configure: Regenerate.
537 * config.in: Likewise.
538 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
539 on ENABLE_PLUGINS being defined.
540 (PLUGIN_H): Likewise for header file.
541 (PLUGIN_OBJECT): Likewise for object file.
542 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
543 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
544 (CFILES): Use PLUGIN_C.
545 (HFILES): Use PLUGIN_H.
546 (OFILES): Use PLUGIN_OBJECT.
547 (ld_new_SOURCES): Use PLUGIN_C.
548 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
549 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
550 for test plugin.
551 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
552 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
553 * Makefile.in: Regenerate.
554 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
555 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
556 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
557 (O_WRONLY): Likewise.
558 (O_RDWR): Likewise.
559 (O_ACCMODE): Likewise.
560 (O_BINARY): Likewise.
561 (SEEK_SET): Likewise.
562 (SEEK_CUR): Likewise.
563 (SEEK_END): Likewise.
564 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
565 * ldmisc.h (vfinfo): Declare extern prototype.
566 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
567 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
568 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
569 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
570 option parsing is complete.
571 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
572 after lang_finish.
573 * plugin.c: New source file.
574 * plugin.h: Likewise new header.
575 * testplug.c: New source file.
576
18a1a992
RO
5772010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
578
579 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
580 basever_syms to global_syms.
581 Emit global_syms into .dynamic section for all executables and
582 shared objects.
583 (elf_solaris2_after_allocation): New function.
584 (LDEMUL_AFTER_ALLOCATION): Use it.
585 * emulparams/solaris2.sh: New file.
586 * emulparams/elf32_sparc_sol2.sh: Use it.
587 * emulparams/elf64_sparc_sol2.sh: Likewise.
588 * emulparams/elf_i386_sol2.sh: Likewise.
589 * emulparams/elf_x86_64_sol2.sh: Likewise.
590 * Makefile.am (eelf32_sparc_sol2.c): Depend on
591 $(srcdir)/emulparams/solaris2.sh.
592 (eelf64_sparc_sol2.c): Likewise.
593 (eelf_x86_64_sol2.c): Likewise.
594 (eelf_i386_sol2.c): Likewise.
595 * Makefile.in: Regenerate.
596
ea5cae92
NC
5972010-10-06 Nick Clifton <nickc@redhat.com>
598
599 * ld.texinfo: Update description of computation of VMA and LMA
600 addresses for output sections.
601
9034a328
RW
6022010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
603
4560bc04
RW
604 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
605 * Makefile.in: Regenerate.
606
9034a328
RW
607 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
608 (ALL_EMULATION_SOURCES): ... this new variable.
609 (ALL_64_EMULATIONS): Rewrite in terms of ...
610 (ALL_64_EMULATION_SOURCES): ... this new variable.
611 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
612 variables.
613 (eelf32microblaze.c): Fix indentation.
614 * Makefile.in: Regenerate.
615
d4730f92
BS
6162010-10-04 Bernd Schmidt <bernds@codesourcery.com>
617
618 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
619 _bfd_elf_single_rel_hdr.
620
abf4be64
AM
6212010-10-01 Alan Modra <amodra@gmail.com>
622
623 PR ld/12066
624 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
625 * ld.texinfo (Expression Section): Don't say absolute symbols
626 are addresses.
627
30920cab
AM
6282010-09-29 Alan Modra <amodra@gmail.com>
629
630 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
631 section for orphans handled here.
632
3cac54d2
RW
6332010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
634
635 * configure: Regenerate.
636
9396a3ce
DK
6372010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
638
639 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
640
0814be7d
AM
6412010-09-23 Alan Modra <amodra@gmail.com>
642
643 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
644 to output section on a final link.
645
d4874973
KT
6462010-09-22 Kai Tietz <kai.tietz@onevision.com>
647
e4b0fe2f
KT
648 * ldlang.c (lang_add_section): Allow for debugging
649 section to be marked as noload but to keep content.
650 (IGNORE_SECTION): Likewise.
651 (lang_check_section_addresses): Likewise.
652 * ldwrite.c (build_link_order): Likewise.
653
d4874973
KT
654 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
655 idata to orphan set.
656 * emultempl/pep.em: Likewise.
657 * scripttempl/armcoff.sc: Separate idata
658 and add __IAT_start__ and __IAT_end__ labels.
659 * scripttempl/pe.sc: Likewise.
660 * scripttempl/pep.sc: Likewise.
661
d9b807ab
DM
6622010-09-20 David S. Miller <davem@davemloft.net>
663
664 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
665
2e76e85a
AM
6662010-09-16 Alan Modra <amodra@gmail.com>
667
668 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
669 appear in output file.
670 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
671 unless SEC_COFF_SHARED_LIBRARY.
672 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
673 output sections.
674 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
675 to update dot in region. Ditto when setting SEC_ALLOC if dot
676 advanced due to assignment.
677 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
678
2d7f4929
KT
6792010-09-15 Kai Tietz <kai.tietz@onevision.com>
680
d3fe237d
KT
681 * scripttempl/pep.sc: Add .xdata segment and
682 put into .pdata all segments beginning with .pdata.
2d7f4929 683
8658f989
AM
6842010-09-10 Alan Modra <amodra@gmail.com>
685
686 PR ld/11931
687 * ldlang.h (lang_for_each_statement_worker): Declare.
688 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
689 recurse into children of output_section_statement with constraint
690 set to -1.
691 (print_assignment): Handle NULL output_section->bfd_section.
692 (lang_size_sections_1): Ignore output section statement address
693 when constraint is -1.
694 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
695
75875724
TG
6962010-09-09 Tristan Gingold <gingold@adacore.com>
697
698 * NEWS: Add a entry for alpha-vms.
699
3dbcc61d
NC
7002010-09-07 Andrew Burgess <aburgess@broadcom.com>
701
702 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
703 newly cloned section.
704
c518ddd8
RH
7052010-09-02 Richard Henderson <rth@redhat.com>
706
707 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
708
107c6e11
NC
7092010-08-31 Nick Clifton <nickc@redhat.com>
710
711 * ldlex.l (WILDCHAR): Add the caret and exclamation point
0d6cedc0 712 characters, so that they can be used inside globs.
107c6e11 713
c09e9a8c
NC
7142010-08-31 Nick Clifton <nickc@redhat.com>
715
716 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
717 a region's attributes.
718
6be999b8
AM
7192010-08-31 Alan Modra <amodra@gmail.com>
720
721 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
722 output section statement.
723
8dd881b6
L
7242010-08-25 H.J. Lu <hongjiu.lu@intel.com>
725
726 PR ld/11946
727 * emultempl/elf32.em (_before_allocation): Check audit entry
728 only on ELF input.
729
4440bb77
L
7302010-08-22 H.J. Lu <hongjiu.lu@intel.com>
731
732 PR ld/11937
733 * emultempl/elf32.em (_after_open): Find one .eh_frame section
734 for --eh-frame-hdr.
735
a654efd6
L
7362010-08-22 H.J. Lu <hongjiu.lu@intel.com>
737
738 PR ld/11937
739 * emultempl/elf32.em (_after_open): Find an ELF input for
740 --build-id and --eh-frame-hdr.
741
d820eaae
MR
7422010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
743
744 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
745 directory.
746 * Makefile.in: Regenerate.
747
c13526ca
NC
7482010-08-20 Nick Clifton <nickc@redhat.com>
749
750 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
751 returning NULL.
752
5fec8599
L
7532010-08-19 Alan Modra <amodra@gmail.com>
754
755 * NEWS: Mention change in linker script expression evaluation.
756
7542af2a
AM
7572010-08-19 Alan Modra <amodra@gmail.com>
758
759 * ld.texinfo (Expression Section): Detail expression evaluation.
760 (Builtin Functions <ADDR>): Correct.
761 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
762 the same as ADDR.
763 (Builtin Functions <SEGMENT_START>): Typo fix.
764 * ldexp.c (new_number): New function.
765 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
766 (fold_unary <'~', '!', '-'>): Don't make_abs.
767 (fold_binary): Simplify result section logic. Return NULL section
768 for logical ops.
769 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
770 a consistent result.
771 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
772 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
773 (fold_name <NAME>): No need to handle absolute symbols differently
774 from relative ones.
775 (fold_name <ORIGIN>): Don't return valid result when
776 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
777 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
778 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
779 a plain number to dot, assume the value is relative to expld.section.
780 Make terms not in an output section, absolute.
781 * ldlang.c (print_assignment): Fix style nit.
782 (lang_size_sections_1): Cope with NULL expld.result.section.
783 (lang_do_assignments_1): Likewise.
784
5942515f
AM
7852010-08-12 Alan Modra <amodra@gmail.com>
786
787 * ldexp.c (new_rel): Remove "str". Update all call sites.
788 (exp_fold_tree_1): When assigning to dot, calculate nextdot
789 using expld.result.section rather than expld.section.
790
1e0061d2
AM
7912010-08-06 Alan Modra <amodra@gmail.com>
792
793 PR ld/11887
794 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
795 uninitialised.
796
ae78bbeb
AM
7972010-07-28 Alan Modra <amodra@gmail.com>
798
799 * ldexp.c (exp_print_tree): Print function-like binary nodes as
800 functions rather than in-fix operators. Use fputs and fputc
801 where appropriate.
802
1cd986c5
NC
8032010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
804 Ina Pandit <ina.pandit@kpitcummins.com>
805
806 * configure.tgt: Match all v850 targets.
807
bb1515f2
MF
8082010-07-20 Mike Frysinger <vapier@gentoo.org>
809
810 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
811 Declare the default language as C.
812
f4427a75
AM
8132010-07-17 Alan Modra <amodra@gmail.com>
814
815 * ldlang.c (lang_check_section_addresses): Catch overlap for
816 sections that wrap around the address space.
817
ec51c381
NC
8182010-06-29 Nick Clifton <nickc@redhat.com>
819
820 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
821 with the .gcc_except_table. prefix.
822
360cfc9c
AM
8232010-06-29 Alan Modra <amodra@gmail.com>
824
825 * emulparams/maxqcoff.sh: Delete file.
826 * scripttempl/maxqcoff.sc: Delete file.
827 * Makefile.am: Remove references to maxq.
828 * configure.tgt: Likewise.
829 * Makefile.in: Regenerate.
830 * configure: Regenerate.
831 * po/POTFILES.in: Regenerate.
832
c7e2358a
AM
8332010-06-27 Alan Modra <amodra@gmail.com>
834
835 * pe-dll.c (fill_edata): Avoid set but unused warning.
836 (pe_walk_relocs_of_symbol): Delete set but unused variables.
837 (generate_reloc, pe_implied_import_dll): Likewise.
838 * emultempl/aix.em (open_dynamic_archive): Likewise.
839 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
840 (xtensa_layout_wild): Likewise.
841 (xtensa_colocate_output_literals_callback): Likewise.
842
ba761f19
AM
8432010-06-25 Alan Modra <amodra@gmail.com>
844
845 * emultempl/ppc64elf.em (prelim_size_sections): New function.
846 (ppc_before_allocation): Use it. Size sections before toc edit too.
847
bded3693
AM
8482010-06-25 Alan Modra <amodra@gmail.com>
849
850 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
851
09db93a8
DS
8522010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
853
854 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
bded3693
AM
855 auto-import and merge-rdata defaults same for i[3-7]86 and
856 x86_64 mingw.
857
59e6276b
JM
8582010-06-15 Joseph Myers <joseph@codesourcery.com>
859
860 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
861
75898d57
DK
8622010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
863
864 PR ld/11603
865 * pe-dll.c (process_def_file_and_drectve): Reorder check for
866 forwarded export name after check for ordinary export.
867
11dd4e37
BS
8682010-06-08 Bernd Schmidt <bernds@codesourcery.com>
869
870 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
871
9fbcbd81
NC
8722010-06-08 Nick Clifton <nickc@redhat.com>
873
874 * fdl.texi: Replace with v1.3 text.
875 * ld.texinfo: Replace abbreviated 20th century year numbers with
876 full versions.
877 * ldint.texinfo: Likewise.
878 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
879 include of the fdl.texi file.
880
46d00b8a
TG
8812010-06-01 Tristan Gingold <gingold@adacore.com>
882
883 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
884 readonly output-section. Handle LIB$INITIALIZE and sections
885 created by gcc.
886 * emultempl/vms.em (vms_place_orphan): Add comments.
887
de072cdc
NC
8882010-05-28 Nick Clifton <nickc@redhat.com>
889
890 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
891 * Makefile.in: Regenerate.
892
c8ce5710
L
8932010-05-26 H.J. Lu <hongjiu.lu@intel.com>
894
895 PR ld/11628
896 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
897 multiple of maximum page size.
898
d19e70fb
NC
8992010-05-25 Nick Clifton <nickc@redhat.com>
900
901 * Makefile.am: Fix typo.
902 * Makefile.in: Regenerate.
903
8e45593f
NC
9042010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
905 Joseph Myers <joseph@codesourcery.com>
906 Andrew Stubbs <ams@codesourcery.com>
907
908 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
909 (eshelf_fd.c, eshlelf_fd.c): New rules.
910 * Makefile.in: Regenerate.
911 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
912 emulations.
913 * emulparams/shelf_fd.sh: New file.
914 * emulparams/shlelf_fd.sh: New file.
915 * emulparams/shlelf_linux.sh: Update comment.
916
52a6ecd2
NC
9172010-05-25 Jay Krell <jay.krell@cornell.edu>
918
919 PR ld/11621
920 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
921 * Makefile.in: Regenerate.
922
ca5f2203
KT
9232010-05-25 Kai Tietz <kai.tietz@onevision.com>
924
770c040b
KT
925 * deffilep.y (opt_name): Allow leading dot.
926 (dot_name): Likewise.
927 (anylang_id): Likewise.
6ec6c79c
KT
928 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
929 default auto_import.
930 (gld${EMULATION_NAME}_handle_option): Warn about v1.
931 (pep_find_data_imports): Remove superflous warnings about
932 auto-import.
933 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
934 and active pseudo-relocation-v2 rdata into data section.
ca5f2203
KT
935 * emultempl/pe.em (default_merge_rdata): New shell variable.
936 (MERGE_RDATA_V2): New macro.
937 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
938 selected script.
939
d74720d2
KT
9402010-05-15 Kai Tietz <kai.tietz@onevision.com>
941
942 * emultempl/pe.em (is_underscoring): New helper function.
943 (gld_${EMULATION_NAME}_before_parse): Replace code
944 for pe(p)_leading_underscore detection by is_underscoring.
945 (U): Likewise.
946 (GET_INIT_SYMBOL_NAME): Likewise.
947 (U_SIZE): Likewise.
948 (set_pe_name):
949 (set_entry_point):
950 (gld_${EMULATION_NAME}_set_symbols):
951 * emultempl/pep.em: Likewise.
952 * pe-dll.c (pe_detail_list): Set default
953 underscoring for x64 target.
954 (pe_dll_id_target): Add initialization of
955 pe(p)_leading_underscore.
956
1b610c93
DK
9572010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
958
959 * pe-dll.c: Removed trailing whitespaces.
960
e092cb30
AM
9612010-05-14 Alan Modra <amodra@gmail.com>
962
963 PR ld/11583
964 * ldexp.c (exp_fold_tree_1): If assignment source expression is
965 invalid, make the destination symbol undefined.
966
b804e4af
KT
9672010-05-11 Kai Tietz <kai.tietz@onevision.com>
968
969 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
970 Initialize pe(p)_leading_underscore variable.
971 (set_pe_name): Likewise.
972 * emultempl/pep.em: Likewise.
973 Additional change default to non-underscore for
974 pep_leading_underscore equal to -1.
975
6540b386
TG
9762010-05-07 Tristan Gingold <gingold@adacore.com>
977
978 * Makefile.in: Regenerate with automake 1.11.1.
979 * aclocal.m4: Ditto.
980
3e01a7fd
NC
9812010-05-05 Nick Clifton <nickc@redhat.com>
982
983 * po/es.po: Updated Spanish translation.
984
17f73277
KT
9852010-04-27 Kai Tietz <kai.tietz@onevision.com>
986
987 * pe-dll.c (_nm_-symbols): Use always underscored variant
988 for symbols.
989 (__imp_-symbols): Likewise.
990 (___imp_-symbols): Likewise.
991 * NEWS: Mention ABI change for x64 PE-COFF.
992
7ad2014a
L
9932010-04-27 H.J. Lu <hongjiu.lu@intel.com>
994
995 * Makefile.am (install-exec-local): Properly install ld as
996 default cross linker.
997 * Makefile.in: Regenerated.
998
4fda8867
NC
9992010-04-27 H.J. Lu <hongjiu.lu@intel.com>
1000 Nick Clifton <nickc@redhat.com>
1001
1002 * configure.in (install_as_default): Define and set to true
1003 unless --enable-gold=both/gold has been specified.
1004 * configure: Regenerate.
1005
1006 * Makefile.am (transform): Use ld.bfd as the default name of
1007 the linker.
1008 (install-exec-local): Also install the executable as a binary
1009 named 'ld' if install_as_default is true.
1010 * Makefile.in: Regenerate.
1011
9c9c98a5
NC
10122010-04-22 Nick Clifton <nickc@redhat.com>
1013
1014 * po/ld.pot: Updated by the Translation project.
1015 * po/vi.po: Updated Vietnamese translation.
1016 * po/bg.po: Updated Bulgarian translation.
1017
85fdf906
AH
10182010-04-15 Andrew Haley <aph@redhat.com>
1019
1020 * emultempl/armelf.em (merge_exidx_entries): New variable.
1021 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
1022 ("no-merge-exidx-entries"): New option.
1023 * ld.texinfo (merge-exidx-entries): Document this option.
1024
8b351884
TG
10252010-04-14 Tristan Gingold <gingold@adacore.com>
1026
1027 * emulparams/alphavms.sh: New file.
1028 * emultempl/vms.em: New file.
1029 * scripttempl/alphavms.sc: New file.
1030 * configure.tgt (alpha*-*-*vms*): Added.
1031 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
1032 (ealphavms.c): New target.
1033 * Makefile.in: Regenerate.
1034
3d540e93
NC
10352010-04-09 Nick Clifton <nickc@redhat.com>
1036
1037 * ldlang.c (wild_sort): Remove unused variable section_name.
1038
397841b5
AM
10392010-04-07 Alan Modra <amodra@gmail.com>
1040
1041 * configure: Regenerate.
1042
6f8bcf84
L
10432010-04-06 H.J. Lu <hongjiu.lu@intel.com>
1044
1045 PR ld/11434
1046 * ld/testsuite/ld-x86-64/unique1.d: New.
1047 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
1048
1049 * ld-x86-64/x86-64.exp: Run unique1.
1050
522f09cd
KT
10512010-04-05 Kai Tietz <kai.tietz@onevision.com>
1052
1053 * emultempl/pep.em (U): Macro modified.
1054 (U_SIZE): New helper macro.
1055 (GET_INIT_SYMBOL_NAME): Likewise.
1056 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
1057 and OPTION_LEADING_UNDERSCORE enumerator-values.
1058 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1059 option.
1060 (definfo): Add new member is_c_symbol.
1061 (D): Add to macro underscore mode parameter.
1062 (init): Add definition for is_c_symbol.
1063 (gld_${EMULATION_NAME}_list_options): Display new options.
1064 (set_pep_name): Adjust underscoring dependent fixed
1065 symbol handling.
1066 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1067 (saw_option): Likewise.
1068 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1069 (set_entry_point): Initial initial_symbol_char dependent to
1070 target's default and new option flag pep_leading_underscore.
1071 * emultempl/pe.em (U): Macro modified.
1072 (U_SIZE): New helper macro.
1073 (GET_INIT_SYMBOL_NAME): Likewise.
1074 (OPTION_LEADING_UNDERSCORE): Add new option define.
1075 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
1076 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
1077 option.
1078 (definfo): Add new member is_c_symbol.
1079 (D): Add to macro underscore mode parameter.
1080 (init): Add definition for is_c_symbol.
1081 (gld_${EMULATION_NAME}_list_options): Display new options.
1082 (set_pep_name): Adjust underscoring dependent fixed
1083 symbol handling.
1084 (gld_${EMULATION_NAME}_set_symbols): Likewise.
1085 (saw_option): Likewise.
1086 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
1087 (set_entry_point): Initial initial_symbol_char dependent to
1088 target's default and new option flag pep_leading_underscore.
1089 * pe-dll.c (pe_leading_underscore): New flag variable.
1090 (pe_detail_list): Remove const to allow modify of
1091 member underscore.
1092 (pe_dll_id_target): Initialize pe_details' underscore variable
1093 dependent to target's default and flag pe_leading_underscore.
1094 * pe-dll.h (pe_leading_underscore): Add extern declaration of
1095 option flag.
1096 * pep-dll.c (pe_leading_underscore): Add alias define for
1097 pep_leading_underscore.
1098 * pep-dll.h (pep_leading_underscore) Add extern declaration of
1099 option flag.
1100 * ld.texinfo: Add documentation for --(no-)leading-underscore
1101 option.
1102
edc314c9
AM
11032010-03-26 Alan Modra <amodra@gmail.com>
1104
1105 PR ld/11426
1106 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
1107 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
1108
40b36596
JM
11092010-03-25 Joseph Myers <joseph@codesourcery.com>
1110
1111 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1112 eelf32_tic6x_le.o.
1113 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1114 * NEWS: Add news entry for TI C6X support.
1115 * configure.tgt (tic6x-*-*): New.
1116 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1117
349e935b
JM
11182010-03-23 Joseph Myers <joseph@codesourcery.com>
1119
1120 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1121 BSS_NAME): Define if not already defined. Use in place of some
1122 hardcoded section names.
1123
576ee33a
L
11242010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1125
1126 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1127
54801c2d
NC
11282010-03-18 Aymeric Vincent <vincent@labri.fr>
1129
1130 PR ld/11384
1131 * emultempl/sh64elf.em: Add missing EOF.
1132
17299ac7
NC
11332010-03-18 Doug Semler <dougsemler@gmail.com>
1134
1135 * pe-dll.c (make_one): Make text section readonly.
1136 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1137 the jump stub on X86 as /SAFESEH compatible for
1138 native toolchains.
1139
e535e147
AM
11402010-03-17 Alan Modra <amodra@gmail.com>
1141
1142 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
1143 *prev instead. Update all callers.
1144
f77c3948
DJ
11452010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1146
1147 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1148 region and phdrs as their placement section.
1149
d43d0b53
AM
11502010-03-15 Alan Modra <amodra@gmail.com>
1151
1152 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1153 (ppc_before_allocation): Call sort_toc_sections.
1154 (no_toc_sort, OPTION_NO_TOC_SORT): New.
1155 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1156 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1157
70cc837d
AM
11582010-03-14 Alan Modra <amodra@gmail.com>
1159
1160 PR ld/11378
1161 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1162 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1163
806fc311
AM
11642010-03-11 George Gensure <werkt0@gmail.com>
1165
1166 PR ld/11367
1167 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1168
a6cc6b3b
RO
11692010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1170
1171 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1172 eelf_i386_sol2.o.
1173 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1174 (eelf32_sparc_sol2.c): New rule.
1175 (eelf64_sparc_sol2.c): Likewise.
1176 (eelf_x86_64_sol2.c): Likewise.
1177 (eelf_i386_sol2.c): Likewise.
1178 * Makefile.in: Regenerate.
1179 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1180 elf_i386_sol2.
1181 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1182 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1183 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1184 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1185 Add target_extra_emuls.
1186 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1187 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1188 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1189 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1190 * emulparams/elf32_sparc_sol2.sh: New file.
1191 * emulparams/elf64_sparc_sol2.sh: New file.
1192 * emulparams/elf_i386_sol2.sh: New file.
1193 * emulparams/elf_x86_64_sol2.sh: New file.
1194 * emultempl/solaris2.em: New file.
1195
fc073cb7
L
11962010-02-27 H.J. Lu <hongjiu.lu@intel.com>
1197
1198 PR ld/11330
1199 * ld.texinfo: Replace explicitely with explicitly.
1200
3cff7cc7
JZ
12012010-02-27 Jie Zhang <jie@codesourcery.com>
1202
1203 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1204 .fini_array.* when do relocatable linking.
1205 * scripttempl/elf.sc: Likewise.
1206 * scripttempl/elf32sh-symbian.sc: Likewise.
1207 * scripttempl/elf64hppa.sc: Likewise.
1208 * scripttempl/elfxtensa.sc: Likewise.
1209
9445af9a
AM
12102010-02-26 Alan Modra <amodra@gmail.com>
1211
1212 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1213 .fini_array.*.
1214 * scripttempl/armbpabi.sc: Likewise.
1215 * scripttempl/elf32sh-symbian.sc: Likewise.
1216 * scripttempl/elf64hppa.sc: Likewise.
1217 * scripttempl/elfxtensa.sc: Likewise.
1218
dfa7b0b8
AM
12192010-02-25 Alan Modra <amodra@gmail.com>
1220
1221 PR ld/11304
1222 * ldlang.c (init_os): Remove isec param. Don't check for
1223 bfd_section already set or call bfd_init_private_section_data
1224 here.
1225 (exp_init_os): Update init_os call.
1226 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
1227 flags. Call bfd_init_private_section_data here.
1228 (map_input_to_output_sections): Tidy. Update init_os calls.
1229 Use os->sectype to select sec flags for lang_data_statement.
1230
a431bc2e
AM
12312010-02-23 Alan Modra <amodra@gmail.com>
1232
1233 PR ld/11304
1234 * ldlang.c: Revert last patch.
1235
1c063135
NC
12362010-02-23 Nick Clifton <nickc@redhat.com>
1237
1238 * po/bg.po: Updated Bulgarian translation.
1239
c380a809
AM
12402010-02-22 Alan Modra <amodra@gmail.com>
1241
1242 PR ld/11304
1243 * ldlang.c (exp_init_os): Delete forward declaration.
1244 (init_os): Don't check for bfd_section already created and don't
1245 init addr_tree and load_base expressions here.
1246 (map_input_to_output_sections): Only map input to output sections
1247 and set constraints here, and as an exception, create output
1248 sections which have their address set. Move all the other code to..
1249 (create_other_output_sections): ..here. New function. Handle init
1250 of addr_tree and load_base here too.
1251 (lang_process): Call create_other_output_sections.
1252
c8c66882
AM
12532010-02-19 Alan Modra <amodra@gmail.com>
1254
1255 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1256 * Makefile.in: Regenerate.
1257
d0bf826b
AM
12582010-02-19 Alan Modra <amodra@gmail.com>
1259
1260 * ldlang.c (unique_section_p): Add os param. Allow group
1261 sections to match /DISCARD/. Update all callers.
1262 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1263 (LDEMUL_BEFORE_ALLOCATION): Define.
1264
ab7875de
NC
12652010-02-15 Nick Clifton <nickc@redhat.com>
1266
1267 * po/vi.po: Updated Vietnamese translation.
1268
45e481d1
RS
12692010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1270
1271 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1272 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1273 (ldlex.o): Replace with...
1274 (ldlex-wrapper.o): ...this new rule.
1275 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1276 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1277 * Makefile.in: Regenerate.
1278 * ldlex.l (sysdep.h): Don't include here.
1279 * ldlex-wrapper.c: New file.
1280
33c0ec9d
AM
12812010-02-09 Alan Modra <amodra@gmail.com>
1282
1283 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1284 function parameters.
1285
ef3f88be
NC
12862010-02-05 Nick Clifton <nickc@redhat.com>
1287
1288 * configure.in (ALL_LIBGUAS): Add bg.
1289 * configure: Regenerate.
1290 * po/bg.po: New Bulgarian translation.
1291
f8266dc4
NC
12922010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1293
1294 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1295 --target1-abs and --target1-rel options.
1296
4dfe6ac6
NC
12972010-02-03 Nick Clifton <nickc@redhat.com>
1298
1299 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1300 * emultempl/hppaelf.em: Likewise.
1301 * emultempl/mipself.em: Likewise.
1302 * emultempl/ppc32elf.em: Likewise.
1303 * emultempl/ppc64elf.em: Likewise.
1304
927be08e
AM
13052010-02-03 Alan Modra <amodra@gmail.com>
1306
1307 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1308 ppc64_elf_next_toc_section.
1309 (after_allocation): Update for changed function names and params.
1310 Run second pass of multitoc partitioning.
1311
c4b78195
NC
13122010-01-21 Jon Grant <jg@jguk.org>
1313 Nick Clifton <nickc@redhat.com>
1314
1315 PR 4437
1316 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1317 a missing file or library. Instead mark the entry as missing and
1318 set the global flag to indicate that missing files were
1319 encountered.
1320 * ldlang.c (missing_files): New exported variable.
1321 (load_symbols): Skip loading if the file is missing.
1322 (open_input_bfds): Terminate link if any input files were
1323 missing.
1324 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1325 field.
1326 Add export of missing_file variable.
1327
b5f14a6d
DD
13282010-01-13 DJ Delorie <dj@redhat.com>
1329
1330 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1331 match an existing output section, but an unused output section
1332 statement does match, use it.
1333 * emultempl/pe.em (_place_orphan): Likewise.
1334 * emultempl/pep.em (_place_orphan): Likewise.
1335
3725885a
RW
13362010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1337
1338 * configure: Regenerate.
1339 * Makefile.in: Regenerate.
1340
5256a5b0
L
13412010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 * ldver.c (ldversion): Change to "Copyright 2010".
1344
b903363e
AM
13452010-01-08 Alan Modra <amodra@gmail.com>
1346
1347 PR 11107
1348 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
9dda37c1 1349
43ecc30f 1350For older changes see ChangeLog-2009
252b5132
RH
1351\f
1352Local Variables:
1353mode: change-log
1354left-margin: 8
1355fill-column: 74
1356version-control: never
1357End:
This page took 0.645532 seconds and 4 git commands to generate.