2011-04-18 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
6970a028
PB
12011-04-18 Paul Brook <paul@codesourcery.com>
2
3 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
4 for unwinding tables.
5
901f1d17
AM
62011-04-18 Alan Modra <amodra@gmail.com>
7
8 PR ld/12365
9 PR ld/12672
10 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
11 when no_more_claiming.
12 * ldmain.c (add_archive_element): Likewise.
13 (multiple_definition): Remove plugin_multiple_definition call.
14 (notice): Remove plugin_notice call.
15 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
16 Delete prototype.
17 (plugin_insert): New static var.
18 (open_input_bfds): Only rescan libs after plugin insert point.
19 (lang_gc_sections): Omit plugin claimed files.
20 (lang_process): Set plugin_insert. Only rescan when plugin adds
21 objects.
22 * plugin.h (no_more_claiming): Declare.
23 (plugin_notice, plugin_multiple_definition): Don't declare.
24 * plugin.c: Formatting.
25 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
26 plugin_callbacks): New static vars.
27 (no_more_claiming): Make global.
28 (plugin_cached_allow_multiple_defs): Delete.
29 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
30 use newer bfd_make_section variant. Make COMMON section too.
31 Error handling. Correct setting of gp size.
32 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
33 (message): Likewise for ACONCAT.
34 (asymbol_from_plugin_symbol): Use our COMMON section.
35 (get_symbols): When report_plugin_symbols, show visibility too.
36 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
37 (plugin_load_plugins): Save state of linker callbacks, set up to
38 call plugin_notice instead. Call init_non_ironly_hash here.
39 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
40 plugin callbacks.
41 (plugin_notice): Rewrite.
42 (plugin_multiple_definition): Make static, call original callback.
43
486329aa
AM
442011-04-15 Alan Modra <amodra@gmail.com>
45
46 PR ld/12672
47 * ldlang.c (enum open_bfd_mode): New.
48 (open_input_bfds): Replace "force" param with "mode". Reload
49 archives for rescan. Update all callers.
50 (lang_process): Make another open_input_bfds pass for plugins.
51
db17156e
KT
522011-04-13 Kai Tietz <ktietz@redhat.com>
53
54 PR binutils/12658
55 * deffile.h (def_file_add_export): Add is_dup argument.
56 (def_file_add_import): Likewise.
57 * deffilep.y (are_names_equal): New helper.
58 (cmp_export_elem): New helper.
59 (find_export_in_list): Add search routine for exports.
60 (def_file_add_export): Check for duplicates.
61 (cmp_import_elem): New helper.
62 (find_import_in_list): Add search routine for imports.
63 (def_file_add_import): Check for duplicates.
64 (def_exports): Handle duplicates.
65 (def_imports): Likewise.
66 * pe-dll.c (process_def_file_and_drectve): Likewise.
67 (pe_implied_import_dll): Likewise.
68
ed0d9c71
NC
692011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
70
71 * scripttempl/elf.sc (.exception_ranges): Add new section.
72
0e9dfb46
NC
732011-04-08 Hector Oron <hector.oron@gmail.com>
74
75 PR ld/12643
76 * configure.tgt: Add support for arm-*-gnueabihf targets.
77
80518809
EW
782011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
79
80 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
81
91db4c57
JM
822011-04-07 Joseph Myers <joseph@codesourcery.com>
83
84 * configure.tgt: Remove stray ;;.
85
8c5fc800
JM
862011-04-06 Joseph Myers <joseph@codesourcery.com>
87
88 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
89 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
90 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
91 xscale-*-coff, xscale-*-elf): Remove targets.
92
d02c4aae
L
932011-03-31 H.J. Lu <hongjiu.lu@intel.com>
94
95 * configure.tgt: Add elf_l1om to targ_extra_libpath for
96 x86_64-*-linux-*.
97
98 * emulparams/elf_l1om.sh: Remove duplicates.
99
ac145307
BS
1002011-03-31 Bernd Schmidt <bernds@codesourcery.com>
101
102 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
103 GENERATE_SHLIB_SCRIPT): New defines.
104 (TEXT_START_ADDR): Define differently depending on target.
105 (.got): Redefine to include "*(.dsbt)".
106 (SDATA_START_SYMBOLS): Remove, replace with
107 (OTHER_GOT_SYMBOLS): New.
108 (OTHER_BSS_SECTIONS): Define only for ELF targets.
109 * emultempl/tic6xdsbt.em: New file.
110 * gen-doc.texi: Set C6X.
111 * ld.texinfo: Likewise.
112 (Options specific to C6X uClinux targets): New section.
113
c3a7b120
AM
1142011-03-29 Alan Modra <amodra@gmail.com>
115
116 PR ld/12613
117 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
118
5b806d27
NC
1192011-03-26 John Marino <binutils@marino.st>
120
121 * configure.host: Update *-*-dragonfly* host entry.
122 * configure.tgt: Update *-*-dragonfly* target entry.
123 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
124
f31d24a0
JM
1252011-03-28 Joseph Myers <joseph@codesourcery.com>
126
127 * configure.in: Check for windows.h, not Windows.h.
128 * configure: Regenerate.
129 * plugin.c: Include windows.h, not Windows.h.
130
d0289b45
EW
1312011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
132
133 * Makefile.in: Regenerate.
134
d436a15e
JM
1352011-03-23 Joseph Myers <joseph@codesourcery.com>
136
137 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
138 are enabled. Mark level as possibly unused.
139
8cc66334
EW
1402011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
141
142 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
143 (eavrxmega?.c): Likewise.
144 * configure.tgt (targ_extra_emuls): Likewise.
145 * emulparams/avrxmega1.sh: New file.
146 * emulparams/avrxmega2.sh: Likewise.
147 * emulparams/avrxmega3.sh: Likewise.
148 * emulparams/avrxmega4.sh: Likewise.
149 * emulparams/avrxmega5.sh: Likewise.
150 * emulparams/avrxmega6.sh: Likewise.
151 * emulparams/avrxmega7.sh: Likewise.
152 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
153 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
154
ef844a53
EW
1552011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
156
157 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
158
35fc36a8
RS
1592011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
160
161 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
162 eh->target_internal.
163
cbc704f3
RS
1642011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
165
166 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
167 instead of dynamic_sections_created.
168
10be1b6a
DK
1692011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
170
171 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
172
422b6f14
DK
1732011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
174
175 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
176
8543fde5
DK
1772011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
178
179 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
180 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
181 * ldmain.c (add_archive_element): Set it if the member is claimed.
182 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
183 (find_replacements_insert_point): New helper function.
184 (lang_process): After adding and opening replacement files passed
185 from plugin, splice them into correct place in statement list and
186 file chains to preserve critical link order.
187 (lang_list_insert_after): New helper function.
188 (lang_list_remove_tail): Likewise.
189
cf4dc96f
DK
1902011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
191
192 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
193 (IRONLY_SUFFIX_LEN): Delete.
194 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
195 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
196 enclosing lang input statement instead.
197
4bf0cafb
DK
1982011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
199
200 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
201 alignment of input sections when creating orphan output sections
202 during relocatable link.
203 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
204
1715a13c
L
2052011-03-04 H.J. Lu <hongjiu.lu@intel.com>
206
207 * ld.texinfo: Document --verbose[=NUMBER].
208
209 * lexsup.c (ld_options): Update --verbose.
210 (parse_args): Set report_plugin_symbols.
211
212 * plugin.c (report_plugin_symbols): New.
213 (get_symbols): Report plugin symbols if report_plugin_symbols
214 is TRUE.
215
216 * plugin.h (report_plugin_symbols): New.
217
f4c37f56
L
2182011-03-01 H.J. Lu <hongjiu.lu@intel.com>
219
220 PR ld/12529
221 * testplug.c: Don't include "filenames.h".
222 (onclaim_file): Don't use filename_cmp.
223
42627821
KT
2242011-02-28 Kai Tietz <kai.tietz@onevision.com>
225
226 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
227 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
228 Likewise.
229 (gld${EMULATION_NAME}_stat_needed): Likewise.
230 (gld${EMULATION_NAME}_check_needed): Likewise.
231 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
232 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
233 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
234 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
235 * ldfile.c (ldfile_open_file): Likewise.
236 * ldlang.c (wild_sort): Likewise.
237 (lookup_name): Likewise.
238 (check_excluded_libs): Likewise.
239 * ldmisc.c (vfinfo): Likewise.
240 * pe-dll.c (libnamencmp): Likewise.
241 (auto_export): Likewise.
242 (pe_dll_generate_implib): Likewise.
243 * testplug.c (onclaim_file): Likewise.
244
174b85fc
L
2452011-02-24 H.J. Lu <hongjiu.lu@intel.com>
246
247 PR ld/12507
248 * plugin.c (get_symbols): Don't check entry symbol here.
249 (init_non_ironly_hash): Add entry_symbol chain into
250 non_ironly_hash.
251
8ff09c12
L
2522011-02-24 H.J. Lu <hongjiu.lu@intel.com>
253
254 PR ld/12507
255 * plugin.c (get_symbols): Don't mark entry symbol IR only.
256
ae97b922
DA
2572011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
258
259 PR ld/12376
260 emulparams/hppalinux.sh (DATA_ADDR): Define.
261 (SHLIB_DATA_ADDR): Likewise.
262
73f2a3d2
L
2632011-02-16 H.J. Lu <hongjiu.lu@intel.com>
264
265 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
266 x32 for x32.
267
fd11958c
KT
2682011-02-15 Kai Tietz <kai.tietz@onevision.com>
269
270 * pe-dll.c (process_def_file_and_drectve): Don't strip
271 leading underscore from symbol by calling bfd_find_version_for_sym.
272
93252b1c
MF
2732011-02-14 Mike Frysinger <vapier@gentoo.org>
274
275 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
276 the bfd_demangle of sym, change users of sym to c_sym when not
277 already demangling, and free when done. Change callers of
278 cplus_demangle to bfd_demangle.
279
486329aa
AM
2802011-02-14 Alan Modra <amodra@gmail.com>
281
282 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
283 .text section, use newer bfd_make_section variant. Error handling.
284 Correct setting of gp size.
285 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
286 (message): Likewise for ACONCAT.
287 (get_symbols): Formatting.
288
498cd2a0
AM
2892011-02-14 Alan Modra <amodra@gmail.com>
290
291 * ldmain.c (remove_output): Rename to..
292 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
293 (main): Adjust.
294 * plugin.c (plugin_call_cleanup): Make global.
295 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
296 * plugin.h (plugin_call_cleanup): Declare.
297
822ce8ee
RW
2982011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
299
300 * configure: Regenerate.
301
09b910c6
AM
3022011-02-10 Alan Modra <amodra@gmail.com>
303
304 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
305 * scripttempl/avr.sc: Likewise.
306 * scripttempl/elf32cr16.sc: Likewise.
307 * scripttempl/elf32crx.sc: Likewise.
308 * scripttempl/elf32msp430.sc: Likewise.
309 * scripttempl/elf32msp430_3.sc: Likewise.
310 * scripttempl/elf32sh-symbian.sc: Likewise.
311 * scripttempl/elf64hppa.sc: Likewise.
312 * scripttempl/elf_chaos.sc: Likewise.
313 * scripttempl/elfd10v.sc: Likewise.
314 * scripttempl/elfd30v.sc: Likewise.
315 * scripttempl/elfi370.sc: Likewise.
316 * scripttempl/elfm68hc11.sc: Likewise.
317 * scripttempl/elfm68hc12.sc: Likewise.
318 * scripttempl/elfxtensa.sc: Likewise.
319 * scripttempl/ip2k.sc: Likewise.
320 * scripttempl/iq2000.sc: Likewise.
321 * scripttempl/mep.sc: Likewise.
322 * scripttempl/mmo.sc: Likewise.
323 * scripttempl/v850.sc: Likewise.
324 * scripttempl/xstormy16.sc: Likewise.
325 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
326
3cb62297
L
3272011-01-22 H.J. Lu <hongjiu.lu@intel.com>
328
329 * Makefile.am (CXX): Removed.
330
331 * configure.in: Add AC_PROG_CXX.
332
333 * Makefile.in: Regenerated.
334 * configure: Likewise.
335
ed88c97e
RS
3362011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
337
338 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
339 private data and GP size.
340
9bc8bb33
AM
3412011-01-21 Alan Modra <amodra@gmail.com>
342
343 * ldexp.c (fold_binary): Set result section for arithmetic and
344 logical operations to NULL when both operands are in same section.
345 * ld.texinfo (Expression Section): Describe this.
346
175b7cd4
AM
3472011-01-14 Alan Modra <amodra@gmail.com>
348
349 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
350 attempt to put non-alloc orphans before debug sections, just place
351 them after .comment.
352
a05e447f
AM
3532011-01-14 J. Park <grassman@gmail.com>
354
355 PR ld/12339
356 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
357
3ed41d59
AM
3582011-01-14 Alan Modra <amodra@gmail.com>
359
360 * Makefile.am: Sort emulation rules.
361 (eelf32am33lin.c): Delete.
362 (ALL_EMULATION_SOURCES): Sort, add missing entries.
363 (ALL_64_EMULATION_SOURCES): Likewise.
364 * Makefile.in: Regenerate.
365
2e57b2af
AM
3662011-01-13 Alan Modra <amodra@gmail.com>
367
01554a74
AM
368 PR ld/12356
369 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
370 (Expression Section): Update.
371 * ld.h (ld_config_type): Add sane_expr.
372 * ldgram.y (ifile_p1): Add LD_FEATURE.
373 * ldlex.l (LD_FEATYRE): New.
374 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
375 * ldexp.h (struct ldexp_control): Delete uses_defined.
376 * ldexp.c: Remove all uses of uses_defined.
377 (fold_name): Test config.sane_expr rather than ld_compatibility.
378 (exp_fold_tree_1): Likewise. Adjust handling of assignments
379 during first phase.
380 * ldlang.h (ld_compatibility): Delete.
381 (lang_ld_feature): Declare.
382 * ldlang.c (ld_compatibility): Delete.
383 (open_input_bfds): Only handle assignments for --defsym.
384 (lang_ld_feature): New function.
385
2e57b2af
AM
386 PR ld/12356
387 * ldexp.h (exp_assop): Delete.
388 (exp_assign, exp_defsym): Declare.
389 * ldexp.c (exp_assop): Make static, handle all assignment variations.
390 (exp_assign, exp_defsym): New functions.
391 (exp_provide): Use exp_assop.
392 * ldgram.y (defsym_expr): Use exp_defsym.
393 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
394 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
395 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
396
ea7c2e6c
AM
3972011-01-12 Alan Modra <amodra@gmail.com>
398
399 PR ld/12380
400 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
401 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
402 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
403 to detect when we've finished sizing sections.
404 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
405 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
406 that we are not inside an output section statement.
407 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
408 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
409 lang_final_phase_enum here.
410 (lang_process): Set lang_final_phase_enum here.
411
f7465604
NC
4122011-01-10 Nick Clifton <nickc@redhat.com>
413
414 * po/da.po: Updated Danish translation.
415
1e915804
L
4162011-01-10 H.J. Lu <hongjiu.lu@intel.com>
417
418 * ldlang.c (startup_file): Removed.
419 (lang_startup): Updated.
420
cc322803
L
4212011-01-05 H.J. Lu <hongjiu.lu@intel.com>
422
423 PR ld/12364
424 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
425 before accessing its flags field.
426
0db46eb4
L
4272011-01-01 H.J. Lu <hongjiu.lu@intel.com>
428
429 * ldver.c (ldversion): Update copyright to 2011.
430
9e9e0820 431For older changes see ChangeLog-2010
252b5132
RH
432\f
433Local Variables:
434mode: change-log
435left-margin: 8
436fill-column: 74
437version-control: never
438End:
This page took 0.588131 seconds and 4 git commands to generate.