1 2011-04-20 Alan Modra <amodra@gmail.com>
4 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
5 pointer arg rather than "name", "obfd", "osec", "oval". Add code
6 removed from linker.c. Hack around xcofflink.c oddity in
8 (multiple_common): Similarly.
9 * plugin.c (orig_allow_multiple_defs): Delete.
10 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
11 (plugin_multiple_definition): Update.
13 2011-04-18 Kai Tietz <ktietz@redhat.com>
15 * deffilep.y (def_aligncomm): Avoid duplets.
17 * deffilep.y (def_pool_str): New type.
18 (pool_strs): Local static.
19 (def_pool_alloc): Local function.
20 (def_pool_strdup): Likewise.
21 (def_pool_free): Likewise.
22 (opt_name): Replace xmalloc/xstrdup by
23 def_pool_alloc/def_pool_strdup.
25 (anylang_id): Likewise.
27 (def_file_parse): Call def_pool_free on
28 exit and cleanup directives elements.
29 (def_file_add_directive): Call def_pool_free.
31 2011-04-18 Paul Brook <paul@codesourcery.com>
33 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
36 2011-04-18 Alan Modra <amodra@gmail.com>
40 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
41 when no_more_claiming.
42 * ldmain.c (add_archive_element): Likewise.
43 (multiple_definition): Remove plugin_multiple_definition call.
44 (notice): Remove plugin_notice call.
45 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
47 (plugin_insert): New static var.
48 (open_input_bfds): Only rescan libs after plugin insert point.
49 (lang_gc_sections): Omit plugin claimed files.
50 (lang_process): Set plugin_insert. Only rescan when plugin adds
52 * plugin.h (no_more_claiming): Declare.
53 (plugin_notice, plugin_multiple_definition): Don't declare.
54 * plugin.c: Formatting.
55 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
56 plugin_callbacks): New static vars.
57 (no_more_claiming): Make global.
58 (plugin_cached_allow_multiple_defs): Delete.
59 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
60 use newer bfd_make_section variant. Make COMMON section too.
61 Error handling. Correct setting of gp size.
62 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
63 (message): Likewise for ACONCAT.
64 (asymbol_from_plugin_symbol): Use our COMMON section.
65 (get_symbols): When report_plugin_symbols, show visibility too.
66 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
67 (plugin_load_plugins): Save state of linker callbacks, set up to
68 call plugin_notice instead. Call init_non_ironly_hash here.
69 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
71 (plugin_notice): Rewrite.
72 (plugin_multiple_definition): Make static, call original callback.
74 2011-04-15 Alan Modra <amodra@gmail.com>
77 * ldlang.c (enum open_bfd_mode): New.
78 (open_input_bfds): Replace "force" param with "mode". Reload
79 archives for rescan. Update all callers.
80 (lang_process): Make another open_input_bfds pass for plugins.
82 2011-04-13 Kai Tietz <ktietz@redhat.com>
85 * deffile.h (def_file_add_export): Add is_dup argument.
86 (def_file_add_import): Likewise.
87 * deffilep.y (are_names_equal): New helper.
88 (cmp_export_elem): New helper.
89 (find_export_in_list): Add search routine for exports.
90 (def_file_add_export): Check for duplicates.
91 (cmp_import_elem): New helper.
92 (find_import_in_list): Add search routine for imports.
93 (def_file_add_import): Check for duplicates.
94 (def_exports): Handle duplicates.
95 (def_imports): Likewise.
96 * pe-dll.c (process_def_file_and_drectve): Likewise.
97 (pe_implied_import_dll): Likewise.
99 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
101 * scripttempl/elf.sc (.exception_ranges): Add new section.
103 2011-04-08 Hector Oron <hector.oron@gmail.com>
106 * configure.tgt: Add support for arm-*-gnueabihf targets.
108 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
110 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
112 2011-04-07 Joseph Myers <joseph@codesourcery.com>
114 * configure.tgt: Remove stray ;;.
116 2011-04-06 Joseph Myers <joseph@codesourcery.com>
118 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
119 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
120 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
121 xscale-*-coff, xscale-*-elf): Remove targets.
123 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
125 * configure.tgt: Add elf_l1om to targ_extra_libpath for
128 * emulparams/elf_l1om.sh: Remove duplicates.
130 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
132 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
133 GENERATE_SHLIB_SCRIPT): New defines.
134 (TEXT_START_ADDR): Define differently depending on target.
135 (.got): Redefine to include "*(.dsbt)".
136 (SDATA_START_SYMBOLS): Remove, replace with
137 (OTHER_GOT_SYMBOLS): New.
138 (OTHER_BSS_SECTIONS): Define only for ELF targets.
139 * emultempl/tic6xdsbt.em: New file.
140 * gen-doc.texi: Set C6X.
141 * ld.texinfo: Likewise.
142 (Options specific to C6X uClinux targets): New section.
144 2011-03-29 Alan Modra <amodra@gmail.com>
147 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
149 2011-03-26 John Marino <binutils@marino.st>
151 * configure.host: Update *-*-dragonfly* host entry.
152 * configure.tgt: Update *-*-dragonfly* target entry.
153 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
155 2011-03-28 Joseph Myers <joseph@codesourcery.com>
157 * configure.in: Check for windows.h, not Windows.h.
158 * configure: Regenerate.
159 * plugin.c: Include windows.h, not Windows.h.
161 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
163 * Makefile.in: Regenerate.
165 2011-03-23 Joseph Myers <joseph@codesourcery.com>
167 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
168 are enabled. Mark level as possibly unused.
170 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
172 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
173 (eavrxmega?.c): Likewise.
174 * configure.tgt (targ_extra_emuls): Likewise.
175 * emulparams/avrxmega1.sh: New file.
176 * emulparams/avrxmega2.sh: Likewise.
177 * emulparams/avrxmega3.sh: Likewise.
178 * emulparams/avrxmega4.sh: Likewise.
179 * emulparams/avrxmega5.sh: Likewise.
180 * emulparams/avrxmega6.sh: Likewise.
181 * emulparams/avrxmega7.sh: Likewise.
182 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
183 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
185 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
187 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
189 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
191 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
194 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
196 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
197 instead of dynamic_sections_created.
199 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
201 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
203 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
205 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
207 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
209 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
210 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
211 * ldmain.c (add_archive_element): Set it if the member is claimed.
212 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
213 (find_replacements_insert_point): New helper function.
214 (lang_process): After adding and opening replacement files passed
215 from plugin, splice them into correct place in statement list and
216 file chains to preserve critical link order.
217 (lang_list_insert_after): New helper function.
218 (lang_list_remove_tail): Likewise.
220 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
222 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
223 (IRONLY_SUFFIX_LEN): Delete.
224 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
225 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
226 enclosing lang input statement instead.
228 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
230 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
231 alignment of input sections when creating orphan output sections
232 during relocatable link.
233 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
235 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
237 * ld.texinfo: Document --verbose[=NUMBER].
239 * lexsup.c (ld_options): Update --verbose.
240 (parse_args): Set report_plugin_symbols.
242 * plugin.c (report_plugin_symbols): New.
243 (get_symbols): Report plugin symbols if report_plugin_symbols
246 * plugin.h (report_plugin_symbols): New.
248 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
251 * testplug.c: Don't include "filenames.h".
252 (onclaim_file): Don't use filename_cmp.
254 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
256 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
257 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
259 (gld${EMULATION_NAME}_stat_needed): Likewise.
260 (gld${EMULATION_NAME}_check_needed): Likewise.
261 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
262 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
263 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
264 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
265 * ldfile.c (ldfile_open_file): Likewise.
266 * ldlang.c (wild_sort): Likewise.
267 (lookup_name): Likewise.
268 (check_excluded_libs): Likewise.
269 * ldmisc.c (vfinfo): Likewise.
270 * pe-dll.c (libnamencmp): Likewise.
271 (auto_export): Likewise.
272 (pe_dll_generate_implib): Likewise.
273 * testplug.c (onclaim_file): Likewise.
275 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
278 * plugin.c (get_symbols): Don't check entry symbol here.
279 (init_non_ironly_hash): Add entry_symbol chain into
282 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
285 * plugin.c (get_symbols): Don't mark entry symbol IR only.
287 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
290 emulparams/hppalinux.sh (DATA_ADDR): Define.
291 (SHLIB_DATA_ADDR): Likewise.
293 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
295 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
298 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
300 * pe-dll.c (process_def_file_and_drectve): Don't strip
301 leading underscore from symbol by calling bfd_find_version_for_sym.
303 2011-02-14 Mike Frysinger <vapier@gentoo.org>
305 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
306 the bfd_demangle of sym, change users of sym to c_sym when not
307 already demangling, and free when done. Change callers of
308 cplus_demangle to bfd_demangle.
310 2011-02-14 Alan Modra <amodra@gmail.com>
312 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
313 .text section, use newer bfd_make_section variant. Error handling.
314 Correct setting of gp size.
315 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
316 (message): Likewise for ACONCAT.
317 (get_symbols): Formatting.
319 2011-02-14 Alan Modra <amodra@gmail.com>
321 * ldmain.c (remove_output): Rename to..
322 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
324 * plugin.c (plugin_call_cleanup): Make global.
325 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
326 * plugin.h (plugin_call_cleanup): Declare.
328 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
330 * configure: Regenerate.
332 2011-02-10 Alan Modra <amodra@gmail.com>
334 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
335 * scripttempl/avr.sc: Likewise.
336 * scripttempl/elf32cr16.sc: Likewise.
337 * scripttempl/elf32crx.sc: Likewise.
338 * scripttempl/elf32msp430.sc: Likewise.
339 * scripttempl/elf32msp430_3.sc: Likewise.
340 * scripttempl/elf32sh-symbian.sc: Likewise.
341 * scripttempl/elf64hppa.sc: Likewise.
342 * scripttempl/elf_chaos.sc: Likewise.
343 * scripttempl/elfd10v.sc: Likewise.
344 * scripttempl/elfd30v.sc: Likewise.
345 * scripttempl/elfi370.sc: Likewise.
346 * scripttempl/elfm68hc11.sc: Likewise.
347 * scripttempl/elfm68hc12.sc: Likewise.
348 * scripttempl/elfxtensa.sc: Likewise.
349 * scripttempl/ip2k.sc: Likewise.
350 * scripttempl/iq2000.sc: Likewise.
351 * scripttempl/mep.sc: Likewise.
352 * scripttempl/mmo.sc: Likewise.
353 * scripttempl/v850.sc: Likewise.
354 * scripttempl/xstormy16.sc: Likewise.
355 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
357 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
359 * Makefile.am (CXX): Removed.
361 * configure.in: Add AC_PROG_CXX.
363 * Makefile.in: Regenerated.
364 * configure: Likewise.
366 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
368 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
369 private data and GP size.
371 2011-01-21 Alan Modra <amodra@gmail.com>
373 * ldexp.c (fold_binary): Set result section for arithmetic and
374 logical operations to NULL when both operands are in same section.
375 * ld.texinfo (Expression Section): Describe this.
377 2011-01-14 Alan Modra <amodra@gmail.com>
379 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
380 attempt to put non-alloc orphans before debug sections, just place
383 2011-01-14 J. Park <grassman@gmail.com>
386 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
388 2011-01-14 Alan Modra <amodra@gmail.com>
390 * Makefile.am: Sort emulation rules.
391 (eelf32am33lin.c): Delete.
392 (ALL_EMULATION_SOURCES): Sort, add missing entries.
393 (ALL_64_EMULATION_SOURCES): Likewise.
394 * Makefile.in: Regenerate.
396 2011-01-13 Alan Modra <amodra@gmail.com>
399 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
400 (Expression Section): Update.
401 * ld.h (ld_config_type): Add sane_expr.
402 * ldgram.y (ifile_p1): Add LD_FEATURE.
403 * ldlex.l (LD_FEATYRE): New.
404 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
405 * ldexp.h (struct ldexp_control): Delete uses_defined.
406 * ldexp.c: Remove all uses of uses_defined.
407 (fold_name): Test config.sane_expr rather than ld_compatibility.
408 (exp_fold_tree_1): Likewise. Adjust handling of assignments
410 * ldlang.h (ld_compatibility): Delete.
411 (lang_ld_feature): Declare.
412 * ldlang.c (ld_compatibility): Delete.
413 (open_input_bfds): Only handle assignments for --defsym.
414 (lang_ld_feature): New function.
417 * ldexp.h (exp_assop): Delete.
418 (exp_assign, exp_defsym): Declare.
419 * ldexp.c (exp_assop): Make static, handle all assignment variations.
420 (exp_assign, exp_defsym): New functions.
421 (exp_provide): Use exp_assop.
422 * ldgram.y (defsym_expr): Use exp_defsym.
423 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
424 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
425 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
427 2011-01-12 Alan Modra <amodra@gmail.com>
430 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
431 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
432 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
433 to detect when we've finished sizing sections.
434 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
435 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
436 that we are not inside an output section statement.
437 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
438 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
439 lang_final_phase_enum here.
440 (lang_process): Set lang_final_phase_enum here.
442 2011-01-10 Nick Clifton <nickc@redhat.com>
444 * po/da.po: Updated Danish translation.
446 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
448 * ldlang.c (startup_file): Removed.
449 (lang_startup): Updated.
451 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
454 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
455 before accessing its flags field.
457 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
459 * ldver.c (ldversion): Update copyright to 2011.
461 For older changes see ChangeLog-2010
467 version-control: never