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