* ldlang.c (lang_leave_output_section_statement): Don't copy
[binutils-gdb.git] / ld / ChangeLog
1 2011-05-16 Alan Modra <amodra@gmail.com>
2
3 * ldlang.c (lang_leave_output_section_statement): Don't copy
4 previous lma_region if given address.
5
6 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
7
8 (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c,
9 eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules.
10 * Makefile.am (ALL_EMULATIONS): Add these files.
11 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em.
12 * Makefile.in: Regenerated.
13 * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target
14 vectors.
15 * emulparams/elf32_tic6x_elf_be.sh: New file.
16 * emulparams/elf32_tic6x_elf_le.sh: New file.
17 * emulparams/elf32_tic6x_linux_be.sh: New file.
18 * emulparams/elf32_tic6x_linux_le.sh: New file.
19 * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New.
20 (tic6x-*-*): Replaced by these.
21
22 2011-05-13 Jan Beulich <jbeulich@novell.com>
23
24 * configure.tgt: Add targets x86_64-*-pe and x86_64-*-pep.
25
26 2011-05-09 Paul Brook <paul@codesourcery.com>
27
28 * emultempl/tic6xdsbt.em (merge_exidx_entries): New.
29 (compare_output_sec_vma): New function.
30 (gld${EMULATION_NAME}_after_allocation): New function.
31 (OPTION_NO_MERGE_EXIDX_ENTRIES): Define.
32 (PARSE_AND_LIST_OPTIONS): Add --no-merge-exidx-entries.
33 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_MERGE_EXIDX_ENTRIES.
34 (LDEMUL_AFTER_ALLOCATION): Set.
35 * ld.texinfo: Document c6x --no-merge-exidx-entries.
36
37 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
38
39 PR ld/12365
40 * scripttempl/pe.sc (__rt_psrelocs_start): New symbol definition.
41 (__rt_psrelocs_end): Likewise.
42 (__rt_psrelocs_size): Likewise difference between the above.
43 (__RUNTIME_PSEUDO_RELOC_LIST_END__): Move outside .rdata section
44 immediately after end of pseudo-reloc data.
45 (___RUNTIME_PSEUDO_RELOC_LIST_END___): Likewise.
46 (__RUNTIME_PSEUDO_RELOC_LIST__): Move outside .rdata section and
47 calculate backward from list end.
48 (___RUNTIME_PSEUDO_RELOC_LIST___): Likewise.
49 * scripttempl/pep.sc: Likewise.
50
51 2011-05-06 Tristan Gingold <gingold@adacore.com>
52
53 * scripttempl/alphavms.sc (CODE): Add *$CODE*.
54
55 2011-05-04 Tristan Gingold <gingold@adacore.com>
56
57 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
58 LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
59 * emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
60 (gld${EMULATION_NAME}_add_options): New function.
61 (gld${EMULATION_NAME}_list_options): Ditto.
62 (gld${EMULATION_NAME}_handle_option): Ditto.
63 (LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
64 (LDEMUL_LIST_OPTIONS): Define.
65
66 2011-05-04 Alan Modra <amodra@gmail.com>
67
68 PR ld/12726
69 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
70 * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't
71 assign to dot when lang_assigning_phase_enum.
72 * ldlang.h (lang_do_assignments): Update prototype.
73 * ldlang.c (lang_do_assignments): Add phase parameter. Update all
74 callers.
75 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
76 lang_do_assignments calls.
77
78 2011-04-28 Daniel C. Klauer <daniel.c.klauer@web.de>
79
80 PR ld/12614
81 * emultempl/pe.em (_after_open): Correctly check whether symbol is
82 in undef list.
83
84 2011-04-26 Kai Tietz <ktietz@redhat.com>
85
86 * scripttempl/pe.sc: Handle .eh_frame($|.)* sections.
87 * scripttempl/pep.sc: Likewise.
88
89 2011-04-24 Alan Modra <amodra@gmail.com>
90
91 PR ld/12365
92 PR ld/12696
93 * ldmain.c (notice): Delete "name" param, add "h".
94 * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle
95 redefinitions of IR symbols in real BFDs.
96 (plugin_multiple_definition, plugin_multiple_common): Delete.
97 (non_ironly_hash, init_non_ironly_hash): Delete.
98 (is_visible_from_outside): Traverse entry_symbol chain.
99 (get_symbols): Use non_ir_ref flag rather than hash lookup.
100
101 2011-04-21 Tristan Gingold <gingold@adacore.com>
102
103 * scripttempl/alphavms.sc: Add dwarf2 embedding marks.
104
105 2011-04-20 Tristan Gingold <gingold@adacore.com>
106
107 * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
108
109 2011-04-20 Alan Modra <amodra@gmail.com>
110
111 * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
112
113 2011-04-20 Alan Modra <amodra@gmail.com>
114
115 PR ld/12365
116 * ldfile.c (ldfile_try_open_bfd): Move code creating and switching
117 to plugin IR BFD..
118 * ldmain.c (add_archive_element): ..and similar code here..
119 * plugin.c (plugin_maybe_claim): ..to here. New function.
120 (plugin_call_claim_file): Make static.
121 (asymbol_from_plugin_symbol): Set ELF st_shndx for common syms.
122 (plugin_multiple_common): New function.
123 (plugin_call_all_symbols_read): Hook in plugin_multiple_common.
124 * plugin.h (plugin_call_claim_file): Don't declare.
125 (plugin_maybe_claim): Declare.
126
127 2011-04-20 Alan Modra <amodra@gmail.com>
128
129 PR ld/12365
130 * ldmain.c (multiple_definition): Take a bfd_link_hash_entry
131 pointer arg rather than "name", "obfd", "osec", "oval". Add code
132 removed from linker.c. Hack around xcofflink.c oddity in
133 passing NULL nbfd.
134 (multiple_common): Similarly.
135 * plugin.c (orig_allow_multiple_defs): Delete.
136 (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
137 (plugin_multiple_definition): Update.
138
139 2011-04-18 Kai Tietz <ktietz@redhat.com>
140
141 * deffilep.y (def_aligncomm): Avoid duplets.
142
143 * deffilep.y (def_pool_str): New type.
144 (pool_strs): Local static.
145 (def_pool_alloc): Local function.
146 (def_pool_strdup): Likewise.
147 (def_pool_free): Likewise.
148 (opt_name): Replace xmalloc/xstrdup by
149 def_pool_alloc/def_pool_strdup.
150 (dot_name): Likewise.
151 (anylang_id): Likewise.
152 (def_lex): Likewise.
153 (def_file_parse): Call def_pool_free on
154 exit and cleanup directives elements.
155 (def_file_add_directive): Call def_pool_free.
156
157 2011-04-18 Paul Brook <paul@codesourcery.com>
158
159 * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
160 for unwinding tables.
161
162 2011-04-18 Alan Modra <amodra@gmail.com>
163
164 PR ld/12365
165 PR ld/12672
166 * ldfile.c (ldfile_try_open_bfd): Don't attempt any plugin action
167 when no_more_claiming.
168 * ldmain.c (add_archive_element): Likewise.
169 (multiple_definition): Remove plugin_multiple_definition call.
170 (notice): Remove plugin_notice call.
171 * ldlang.c (lang_list_insert_after, void lang_list_remove_tail): Move.
172 Delete prototype.
173 (plugin_insert): New static var.
174 (open_input_bfds): Only rescan libs after plugin insert point.
175 (lang_gc_sections): Omit plugin claimed files.
176 (lang_process): Set plugin_insert. Only rescan when plugin adds
177 objects.
178 * plugin.h (no_more_claiming): Declare.
179 (plugin_notice, plugin_multiple_definition): Don't declare.
180 * plugin.c: Formatting.
181 (orig_notice_all, orig_allow_multiple_defs, orig_callbacks,
182 plugin_callbacks): New static vars.
183 (no_more_claiming): Make global.
184 (plugin_cached_allow_multiple_defs): Delete.
185 (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy .text section,
186 use newer bfd_make_section variant. Make COMMON section too.
187 Error handling. Correct setting of gp size.
188 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
189 (message): Likewise for ACONCAT.
190 (asymbol_from_plugin_symbol): Use our COMMON section.
191 (get_symbols): When report_plugin_symbols, show visibility too.
192 (init_non_ironly_hash): Move. Don't test non_ironly_hash.
193 (plugin_load_plugins): Save state of linker callbacks, set up to
194 call plugin_notice instead. Call init_non_ironly_hash here.
195 (plugin_call_all_symbols_read): Set plugin_multiple_definition in
196 plugin callbacks.
197 (plugin_notice): Rewrite.
198 (plugin_multiple_definition): Make static, call original callback.
199
200 2011-04-15 Alan Modra <amodra@gmail.com>
201
202 PR ld/12672
203 * ldlang.c (enum open_bfd_mode): New.
204 (open_input_bfds): Replace "force" param with "mode". Reload
205 archives for rescan. Update all callers.
206 (lang_process): Make another open_input_bfds pass for plugins.
207
208 2011-04-13 Kai Tietz <ktietz@redhat.com>
209
210 PR binutils/12658
211 * deffile.h (def_file_add_export): Add is_dup argument.
212 (def_file_add_import): Likewise.
213 * deffilep.y (are_names_equal): New helper.
214 (cmp_export_elem): New helper.
215 (find_export_in_list): Add search routine for exports.
216 (def_file_add_export): Check for duplicates.
217 (cmp_import_elem): New helper.
218 (find_import_in_list): Add search routine for imports.
219 (def_file_add_import): Check for duplicates.
220 (def_exports): Handle duplicates.
221 (def_imports): Likewise.
222 * pe-dll.c (process_def_file_and_drectve): Likewise.
223 (pe_implied_import_dll): Likewise.
224
225 2011-04-11 Chris Quenelle <chris.quenelle@oracle.com>
226
227 * scripttempl/elf.sc (.exception_ranges): Add new section.
228
229 2011-04-08 Hector Oron <hector.oron@gmail.com>
230
231 PR ld/12643
232 * configure.tgt: Add support for arm-*-gnueabihf targets.
233
234 2011-04-07 Eric B. Weddington <eric.weddington@atmel.com>
235
236 * Makefile.in: Regenerate. Remove stray eavrtiny10 rules.
237
238 2011-04-07 Joseph Myers <joseph@codesourcery.com>
239
240 * configure.tgt: Remove stray ;;.
241
242 2011-04-06 Joseph Myers <joseph@codesourcery.com>
243
244 * configure.tgt (thumb-*-linux-* | thumb-*-uclinux*,
245 strongarm-*-coff, strongarm-*-elf, strongarm-*-kaos*,
246 thumb-*-coff, thumb-*-elf, thumb-epoc-pe, thumb-*-pe,
247 xscale-*-coff, xscale-*-elf): Remove targets.
248
249 2011-03-31 H.J. Lu <hongjiu.lu@intel.com>
250
251 * configure.tgt: Add elf_l1om to targ_extra_libpath for
252 x86_64-*-linux-*.
253
254 * emulparams/elf_l1om.sh: Remove duplicates.
255
256 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
257
258 * emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
259 GENERATE_SHLIB_SCRIPT): New defines.
260 (TEXT_START_ADDR): Define differently depending on target.
261 (.got): Redefine to include "*(.dsbt)".
262 (SDATA_START_SYMBOLS): Remove, replace with
263 (OTHER_GOT_SYMBOLS): New.
264 (OTHER_BSS_SECTIONS): Define only for ELF targets.
265 * emultempl/tic6xdsbt.em: New file.
266 * gen-doc.texi: Set C6X.
267 * ld.texinfo: Likewise.
268 (Options specific to C6X uClinux targets): New section.
269
270 2011-03-29 Alan Modra <amodra@gmail.com>
271
272 PR ld/12613
273 * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
274
275 2011-03-26 John Marino <binutils@marino.st>
276
277 * configure.host: Update *-*-dragonfly* host entry.
278 * configure.tgt: Update *-*-dragonfly* target entry.
279 * ldlex.l: Prevent redefinition of YY_NO_UNPUT.
280
281 2011-03-28 Joseph Myers <joseph@codesourcery.com>
282
283 * configure.in: Check for windows.h, not Windows.h.
284 * configure: Regenerate.
285 * plugin.c: Include windows.h, not Windows.h.
286
287 2011-03-25 Eric B. Weddington <eric.weddington@atmel.com>
288
289 * Makefile.in: Regenerate.
290
291 2011-03-23 Joseph Myers <joseph@codesourcery.com>
292
293 * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
294 are enabled. Mark level as possibly unused.
295
296 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
297
298 * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
299 (eavrxmega?.c): Likewise.
300 * configure.tgt (targ_extra_emuls): Likewise.
301 * emulparams/avrxmega1.sh: New file.
302 * emulparams/avrxmega2.sh: Likewise.
303 * emulparams/avrxmega3.sh: Likewise.
304 * emulparams/avrxmega4.sh: Likewise.
305 * emulparams/avrxmega5.sh: Likewise.
306 * emulparams/avrxmega6.sh: Likewise.
307 * emulparams/avrxmega7.sh: Likewise.
308 * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
309 Add avrxmega6, avrxmega7 to list of architectures for no stubs.
310
311 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
312
313 * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
314
315 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
316
317 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
318 eh->target_internal.
319
320 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
321
322 * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj
323 instead of dynamic_sections_created.
324
325 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
326
327 * plugin.c (get_symbols): Use wrapped lookup for undefined symbols.
328
329 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
330
331 * ldlang.c (lang_check): Don't run checks on dummy IR BFDs.
332
333 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
334
335 * ldlang.h (lang_input_statement_type): Add new 'claim_archive' flag,
336 wrapping both it and 'claim' flag in #ifdef ENABLE_PLUGINS.
337 * ldmain.c (add_archive_element): Set it if the member is claimed.
338 * ldlang.c (new_afile): Initialise claim_archive and claimed members.
339 (find_replacements_insert_point): New helper function.
340 (lang_process): After adding and opening replacement files passed
341 from plugin, splice them into correct place in statement list and
342 file chains to preserve critical link order.
343 (lang_list_insert_after): New helper function.
344 (lang_list_remove_tail): Likewise.
345
346 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
347
348 * plugin.c (IRONLY_SUFFIX): Revise to nicely human-readable form.
349 (IRONLY_SUFFIX_LEN): Delete.
350 (plugin_get_ir_dummy_bfd): Don't append IRONLY_SUFFIX.
351 (is_ir_dummy_bfd): Don't look for suffix; check claimed flag of
352 enclosing lang input statement instead.
353
354 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com>
355
356 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Preserve
357 alignment of input sections when creating orphan output sections
358 during relocatable link.
359 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
360
361 2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
362
363 * ld.texinfo: Document --verbose[=NUMBER].
364
365 * lexsup.c (ld_options): Update --verbose.
366 (parse_args): Set report_plugin_symbols.
367
368 * plugin.c (report_plugin_symbols): New.
369 (get_symbols): Report plugin symbols if report_plugin_symbols
370 is TRUE.
371
372 * plugin.h (report_plugin_symbols): New.
373
374 2011-03-01 H.J. Lu <hongjiu.lu@intel.com>
375
376 PR ld/12529
377 * testplug.c: Don't include "filenames.h".
378 (onclaim_file): Don't use filename_cmp.
379
380 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
381
382 * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
383 * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck):
384 Likewise.
385 (gld${EMULATION_NAME}_stat_needed): Likewise.
386 (gld${EMULATION_NAME}_check_needed): Likewise.
387 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
388 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
389 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
390 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
391 * ldfile.c (ldfile_open_file): Likewise.
392 * ldlang.c (wild_sort): Likewise.
393 (lookup_name): Likewise.
394 (check_excluded_libs): Likewise.
395 * ldmisc.c (vfinfo): Likewise.
396 * pe-dll.c (libnamencmp): Likewise.
397 (auto_export): Likewise.
398 (pe_dll_generate_implib): Likewise.
399 * testplug.c (onclaim_file): Likewise.
400
401 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
402
403 PR ld/12507
404 * plugin.c (get_symbols): Don't check entry symbol here.
405 (init_non_ironly_hash): Add entry_symbol chain into
406 non_ironly_hash.
407
408 2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
409
410 PR ld/12507
411 * plugin.c (get_symbols): Don't mark entry symbol IR only.
412
413 2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
414
415 PR ld/12376
416 emulparams/hppalinux.sh (DATA_ADDR): Define.
417 (SHLIB_DATA_ADDR): Likewise.
418
419 2011-02-16 H.J. Lu <hongjiu.lu@intel.com>
420
421 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to
422 x32 for x32.
423
424 2011-02-15 Kai Tietz <kai.tietz@onevision.com>
425
426 * pe-dll.c (process_def_file_and_drectve): Don't strip
427 leading underscore from symbol by calling bfd_find_version_for_sym.
428
429 2011-02-14 Mike Frysinger <vapier@gentoo.org>
430
431 * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
432 the bfd_demangle of sym, change users of sym to c_sym when not
433 already demangling, and free when done. Change callers of
434 cplus_demangle to bfd_demangle.
435
436 2011-02-14 Alan Modra <amodra@gmail.com>
437
438 * plugin.c (plugin_get_ir_dummy_bfd): Set SEC_EXCLUDE on dummy
439 .text section, use newer bfd_make_section variant. Error handling.
440 Correct setting of gp size.
441 (asymbol_from_plugin_symbol): Properly cast last arg of concat.
442 (message): Likewise for ACONCAT.
443 (get_symbols): Formatting.
444
445 2011-02-14 Alan Modra <amodra@gmail.com>
446
447 * ldmain.c (remove_output): Rename to..
448 (ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup.
449 (main): Adjust.
450 * plugin.c (plugin_call_cleanup): Make global.
451 (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit.
452 * plugin.h (plugin_call_cleanup): Declare.
453
454 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
455
456 * configure: Regenerate.
457
458 2011-02-10 Alan Modra <amodra@gmail.com>
459
460 * scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
461 * scripttempl/avr.sc: Likewise.
462 * scripttempl/elf32cr16.sc: Likewise.
463 * scripttempl/elf32crx.sc: Likewise.
464 * scripttempl/elf32msp430.sc: Likewise.
465 * scripttempl/elf32msp430_3.sc: Likewise.
466 * scripttempl/elf32sh-symbian.sc: Likewise.
467 * scripttempl/elf64hppa.sc: Likewise.
468 * scripttempl/elf_chaos.sc: Likewise.
469 * scripttempl/elfd10v.sc: Likewise.
470 * scripttempl/elfd30v.sc: Likewise.
471 * scripttempl/elfi370.sc: Likewise.
472 * scripttempl/elfm68hc11.sc: Likewise.
473 * scripttempl/elfm68hc12.sc: Likewise.
474 * scripttempl/elfxtensa.sc: Likewise.
475 * scripttempl/ip2k.sc: Likewise.
476 * scripttempl/iq2000.sc: Likewise.
477 * scripttempl/mep.sc: Likewise.
478 * scripttempl/mmo.sc: Likewise.
479 * scripttempl/v850.sc: Likewise.
480 * scripttempl/xstormy16.sc: Likewise.
481 * scripttempl/elf.sc: Revert 2010-10-29 H.J. Lu.
482
483 2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
484
485 * Makefile.am (CXX): Removed.
486
487 * configure.in: Add AC_PROG_CXX.
488
489 * Makefile.in: Regenerated.
490 * configure: Likewise.
491
492 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
493
494 * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
495 private data and GP size.
496
497 2011-01-21 Alan Modra <amodra@gmail.com>
498
499 * ldexp.c (fold_binary): Set result section for arithmetic and
500 logical operations to NULL when both operands are in same section.
501 * ld.texinfo (Expression Section): Describe this.
502
503 2011-01-14 Alan Modra <amodra@gmail.com>
504
505 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
506 attempt to put non-alloc orphans before debug sections, just place
507 them after .comment.
508
509 2011-01-14 J. Park <grassman@gmail.com>
510
511 PR ld/12339
512 * ldlang.c (sort_def_symbol): Handle bfd_link_hash_warning symbols.
513
514 2011-01-14 Alan Modra <amodra@gmail.com>
515
516 * Makefile.am: Sort emulation rules.
517 (eelf32am33lin.c): Delete.
518 (ALL_EMULATION_SOURCES): Sort, add missing entries.
519 (ALL_64_EMULATION_SOURCES): Likewise.
520 * Makefile.in: Regenerate.
521
522 2011-01-13 Alan Modra <amodra@gmail.com>
523
524 PR ld/12356
525 * ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
526 (Expression Section): Update.
527 * ld.h (ld_config_type): Add sane_expr.
528 * ldgram.y (ifile_p1): Add LD_FEATURE.
529 * ldlex.l (LD_FEATYRE): New.
530 * ldemul.c (after_parse_default): Delete code handling ld_compatibility.
531 * ldexp.h (struct ldexp_control): Delete uses_defined.
532 * ldexp.c: Remove all uses of uses_defined.
533 (fold_name): Test config.sane_expr rather than ld_compatibility.
534 (exp_fold_tree_1): Likewise. Adjust handling of assignments
535 during first phase.
536 * ldlang.h (ld_compatibility): Delete.
537 (lang_ld_feature): Declare.
538 * ldlang.c (ld_compatibility): Delete.
539 (open_input_bfds): Only handle assignments for --defsym.
540 (lang_ld_feature): New function.
541
542 PR ld/12356
543 * ldexp.h (exp_assop): Delete.
544 (exp_assign, exp_defsym): Declare.
545 * ldexp.c (exp_assop): Make static, handle all assignment variations.
546 (exp_assign, exp_defsym): New functions.
547 (exp_provide): Use exp_assop.
548 * ldgram.y (defsym_expr): Use exp_defsym.
549 * ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
550 * emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
551 * emultempl/xtensaelf.em: Update exp_assop -> exp_assign.
552
553 2011-01-12 Alan Modra <amodra@gmail.com>
554
555 PR ld/12380
556 * ldexp.h (enum phase_enum): Comment. Add exp_dataseg_done.
557 * ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code. Test
558 for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
559 to detect when we've finished sizing sections.
560 (fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
561 (fold_binary <DATA_SEGMENT_RELRO_END>): Likewise. Also test
562 that we are not inside an output section statement.
563 * ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
564 not exp_dataseg_relro_adjust or exp_dataseg_adjust. Don't set
565 lang_final_phase_enum here.
566 (lang_process): Set lang_final_phase_enum here.
567
568 2011-01-10 Nick Clifton <nickc@redhat.com>
569
570 * po/da.po: Updated Danish translation.
571
572 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
573
574 * ldlang.c (startup_file): Removed.
575 (lang_startup): Updated.
576
577 2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
578
579 PR ld/12364
580 * plugin.c (get_symbols): Check if owner_sec->owner is NULL
581 before accessing its flags field.
582
583 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
584
585 * ldver.c (ldversion): Update copyright to 2011.
586
587 For older changes see ChangeLog-2010
588 \f
589 Local Variables:
590 mode: change-log
591 left-margin: 8
592 fill-column: 74
593 version-control: never
594 End: