PR ld/12066
[binutils-gdb.git] / ld / ChangeLog
1 2010-10-01 Alan Modra <amodra@gmail.com>
2
3 PR ld/12066
4 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
5 * ld.texinfo (Expression Section): Don't say absolute symbols
6 are addresses.
7
8 2010-09-29 Alan Modra <amodra@gmail.com>
9
10 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
11 section for orphans handled here.
12
13 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14
15 * configure: Regenerate.
16
17 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
18
19 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
20
21 2010-09-23 Alan Modra <amodra@gmail.com>
22
23 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
24 to output section on a final link.
25
26 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
27
28 * ldlang.c (lang_add_section): Allow for debugging
29 section to be marked as noload but to keep content.
30 (IGNORE_SECTION): Likewise.
31 (lang_check_section_addresses): Likewise.
32 * ldwrite.c (build_link_order): Likewise.
33
34 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
35 idata to orphan set.
36 * emultempl/pep.em: Likewise.
37 * scripttempl/armcoff.sc: Separate idata
38 and add __IAT_start__ and __IAT_end__ labels.
39 * scripttempl/pe.sc: Likewise.
40 * scripttempl/pep.sc: Likewise.
41
42 2010-09-20 David S. Miller <davem@davemloft.net>
43
44 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
45
46 2010-09-16 Alan Modra <amodra@gmail.com>
47
48 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
49 appear in output file.
50 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
51 unless SEC_COFF_SHARED_LIBRARY.
52 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
53 output sections.
54 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
55 to update dot in region. Ditto when setting SEC_ALLOC if dot
56 advanced due to assignment.
57 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
58
59 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
60
61 * scripttempl/pep.sc: Add .xdata segment and
62 put into .pdata all segments beginning with .pdata.
63
64 2010-09-10 Alan Modra <amodra@gmail.com>
65
66 PR ld/11931
67 * ldlang.h (lang_for_each_statement_worker): Declare.
68 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
69 recurse into children of output_section_statement with constraint
70 set to -1.
71 (print_assignment): Handle NULL output_section->bfd_section.
72 (lang_size_sections_1): Ignore output section statement address
73 when constraint is -1.
74 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
75
76 2010-09-09 Tristan Gingold <gingold@adacore.com>
77
78 * NEWS: Add a entry for alpha-vms.
79
80 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
81
82 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
83 newly cloned section.
84
85 2010-09-02 Richard Henderson <rth@redhat.com>
86
87 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
88
89 2010-08-31 Nick Clifton <nickc@redhat.com>
90
91 * ldlex.l (WILDCHAR): Add the caret and exclamation point
92 characters, so that they can be used inside globs.
93
94 2010-08-31 Nick Clifton <nickc@redhat.com>
95
96 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
97 a region's attributes.
98
99 2010-08-31 Alan Modra <amodra@gmail.com>
100
101 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
102 output section statement.
103
104 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
105
106 PR ld/11946
107 * emultempl/elf32.em (_before_allocation): Check audit entry
108 only on ELF input.
109
110 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
111
112 PR ld/11937
113 * emultempl/elf32.em (_after_open): Find one .eh_frame section
114 for --eh-frame-hdr.
115
116 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
117
118 PR ld/11937
119 * emultempl/elf32.em (_after_open): Find an ELF input for
120 --build-id and --eh-frame-hdr.
121
122 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
123
124 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
125 directory.
126 * Makefile.in: Regenerate.
127
128 2010-08-20 Nick Clifton <nickc@redhat.com>
129
130 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
131 returning NULL.
132
133 2010-08-19 Alan Modra <amodra@gmail.com>
134
135 * NEWS: Mention change in linker script expression evaluation.
136
137 2010-08-19 Alan Modra <amodra@gmail.com>
138
139 * ld.texinfo (Expression Section): Detail expression evaluation.
140 (Builtin Functions <ADDR>): Correct.
141 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
142 the same as ADDR.
143 (Builtin Functions <SEGMENT_START>): Typo fix.
144 * ldexp.c (new_number): New function.
145 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
146 (fold_unary <'~', '!', '-'>): Don't make_abs.
147 (fold_binary): Simplify result section logic. Return NULL section
148 for logical ops.
149 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
150 a consistent result.
151 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
152 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
153 (fold_name <NAME>): No need to handle absolute symbols differently
154 from relative ones.
155 (fold_name <ORIGIN>): Don't return valid result when
156 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
157 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
158 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
159 a plain number to dot, assume the value is relative to expld.section.
160 Make terms not in an output section, absolute.
161 * ldlang.c (print_assignment): Fix style nit.
162 (lang_size_sections_1): Cope with NULL expld.result.section.
163 (lang_do_assignments_1): Likewise.
164
165 2010-08-12 Alan Modra <amodra@gmail.com>
166
167 * ldexp.c (new_rel): Remove "str". Update all call sites.
168 (exp_fold_tree_1): When assigning to dot, calculate nextdot
169 using expld.result.section rather than expld.section.
170
171 2010-08-06 Alan Modra <amodra@gmail.com>
172
173 PR ld/11887
174 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
175 uninitialised.
176
177 2010-07-28 Alan Modra <amodra@gmail.com>
178
179 * ldexp.c (exp_print_tree): Print function-like binary nodes as
180 functions rather than in-fix operators. Use fputs and fputc
181 where appropriate.
182
183 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
184 Ina Pandit <ina.pandit@kpitcummins.com>
185
186 * configure.tgt: Match all v850 targets.
187
188 2010-07-20 Mike Frysinger <vapier@gentoo.org>
189
190 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
191 Declare the default language as C.
192
193 2010-07-17 Alan Modra <amodra@gmail.com>
194
195 * ldlang.c (lang_check_section_addresses): Catch overlap for
196 sections that wrap around the address space.
197
198 2010-06-29 Nick Clifton <nickc@redhat.com>
199
200 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
201 with the .gcc_except_table. prefix.
202
203 2010-06-29 Alan Modra <amodra@gmail.com>
204
205 * emulparams/maxqcoff.sh: Delete file.
206 * scripttempl/maxqcoff.sc: Delete file.
207 * Makefile.am: Remove references to maxq.
208 * configure.tgt: Likewise.
209 * Makefile.in: Regenerate.
210 * configure: Regenerate.
211 * po/POTFILES.in: Regenerate.
212
213 2010-06-27 Alan Modra <amodra@gmail.com>
214
215 * pe-dll.c (fill_edata): Avoid set but unused warning.
216 (pe_walk_relocs_of_symbol): Delete set but unused variables.
217 (generate_reloc, pe_implied_import_dll): Likewise.
218 * emultempl/aix.em (open_dynamic_archive): Likewise.
219 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
220 (xtensa_layout_wild): Likewise.
221 (xtensa_colocate_output_literals_callback): Likewise.
222
223 2010-06-25 Alan Modra <amodra@gmail.com>
224
225 * emultempl/ppc64elf.em (prelim_size_sections): New function.
226 (ppc_before_allocation): Use it. Size sections before toc edit too.
227
228 2010-06-25 Alan Modra <amodra@gmail.com>
229
230 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
231
232 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
233
234 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
235 auto-import and merge-rdata defaults same for i[3-7]86 and
236 x86_64 mingw.
237
238 2010-06-15 Joseph Myers <joseph@codesourcery.com>
239
240 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
241
242 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
243
244 PR ld/11603
245 * pe-dll.c (process_def_file_and_drectve): Reorder check for
246 forwarded export name after check for ordinary export.
247
248 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
249
250 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
251
252 2010-06-08 Nick Clifton <nickc@redhat.com>
253
254 * fdl.texi: Replace with v1.3 text.
255 * ld.texinfo: Replace abbreviated 20th century year numbers with
256 full versions.
257 * ldint.texinfo: Likewise.
258 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
259 include of the fdl.texi file.
260
261 2010-06-01 Tristan Gingold <gingold@adacore.com>
262
263 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
264 readonly output-section. Handle LIB$INITIALIZE and sections
265 created by gcc.
266 * emultempl/vms.em (vms_place_orphan): Add comments.
267
268 2010-05-28 Nick Clifton <nickc@redhat.com>
269
270 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
271 * Makefile.in: Regenerate.
272
273 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
274
275 PR ld/11628
276 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
277 multiple of maximum page size.
278
279 2010-05-25 Nick Clifton <nickc@redhat.com>
280
281 * Makefile.am: Fix typo.
282 * Makefile.in: Regenerate.
283
284 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
285 Joseph Myers <joseph@codesourcery.com>
286 Andrew Stubbs <ams@codesourcery.com>
287
288 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
289 (eshelf_fd.c, eshlelf_fd.c): New rules.
290 * Makefile.in: Regenerate.
291 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
292 emulations.
293 * emulparams/shelf_fd.sh: New file.
294 * emulparams/shlelf_fd.sh: New file.
295 * emulparams/shlelf_linux.sh: Update comment.
296
297 2010-05-25 Jay Krell <jay.krell@cornell.edu>
298
299 PR ld/11621
300 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
301 * Makefile.in: Regenerate.
302
303 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
304
305 * deffilep.y (opt_name): Allow leading dot.
306 (dot_name): Likewise.
307 (anylang_id): Likewise.
308 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
309 default auto_import.
310 (gld${EMULATION_NAME}_handle_option): Warn about v1.
311 (pep_find_data_imports): Remove superflous warnings about
312 auto-import.
313 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
314 and active pseudo-relocation-v2 rdata into data section.
315 * emultempl/pe.em (default_merge_rdata): New shell variable.
316 (MERGE_RDATA_V2): New macro.
317 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
318 selected script.
319
320 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
321
322 * emultempl/pe.em (is_underscoring): New helper function.
323 (gld_${EMULATION_NAME}_before_parse): Replace code
324 for pe(p)_leading_underscore detection by is_underscoring.
325 (U): Likewise.
326 (GET_INIT_SYMBOL_NAME): Likewise.
327 (U_SIZE): Likewise.
328 (set_pe_name):
329 (set_entry_point):
330 (gld_${EMULATION_NAME}_set_symbols):
331 * emultempl/pep.em: Likewise.
332 * pe-dll.c (pe_detail_list): Set default
333 underscoring for x64 target.
334 (pe_dll_id_target): Add initialization of
335 pe(p)_leading_underscore.
336
337 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
338
339 * pe-dll.c: Removed trailing whitespaces.
340
341 2010-05-14 Alan Modra <amodra@gmail.com>
342
343 PR ld/11583
344 * ldexp.c (exp_fold_tree_1): If assignment source expression is
345 invalid, make the destination symbol undefined.
346
347 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
348
349 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
350 Initialize pe(p)_leading_underscore variable.
351 (set_pe_name): Likewise.
352 * emultempl/pep.em: Likewise.
353 Additional change default to non-underscore for
354 pep_leading_underscore equal to -1.
355
356 2010-05-07 Tristan Gingold <gingold@adacore.com>
357
358 * Makefile.in: Regenerate with automake 1.11.1.
359 * aclocal.m4: Ditto.
360
361 2010-05-05 Nick Clifton <nickc@redhat.com>
362
363 * po/es.po: Updated Spanish translation.
364
365 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
366
367 * pe-dll.c (_nm_-symbols): Use always underscored variant
368 for symbols.
369 (__imp_-symbols): Likewise.
370 (___imp_-symbols): Likewise.
371 * NEWS: Mention ABI change for x64 PE-COFF.
372
373 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
374
375 * Makefile.am (install-exec-local): Properly install ld as
376 default cross linker.
377 * Makefile.in: Regenerated.
378
379 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
380 Nick Clifton <nickc@redhat.com>
381
382 * configure.in (install_as_default): Define and set to true
383 unless --enable-gold=both/gold has been specified.
384 * configure: Regenerate.
385
386 * Makefile.am (transform): Use ld.bfd as the default name of
387 the linker.
388 (install-exec-local): Also install the executable as a binary
389 named 'ld' if install_as_default is true.
390 * Makefile.in: Regenerate.
391
392 2010-04-22 Nick Clifton <nickc@redhat.com>
393
394 * po/ld.pot: Updated by the Translation project.
395 * po/vi.po: Updated Vietnamese translation.
396 * po/bg.po: Updated Bulgarian translation.
397
398 2010-04-15 Andrew Haley <aph@redhat.com>
399
400 * emultempl/armelf.em (merge_exidx_entries): New variable.
401 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
402 ("no-merge-exidx-entries"): New option.
403 * ld.texinfo (merge-exidx-entries): Document this option.
404
405 2010-04-14 Tristan Gingold <gingold@adacore.com>
406
407 * emulparams/alphavms.sh: New file.
408 * emultempl/vms.em: New file.
409 * scripttempl/alphavms.sc: New file.
410 * configure.tgt (alpha*-*-*vms*): Added.
411 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
412 (ealphavms.c): New target.
413 * Makefile.in: Regenerate.
414
415 2010-04-09 Nick Clifton <nickc@redhat.com>
416
417 * ldlang.c (wild_sort): Remove unused variable section_name.
418
419 2010-04-07 Alan Modra <amodra@gmail.com>
420
421 * configure: Regenerate.
422
423 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
424
425 PR ld/11434
426 * ld/testsuite/ld-x86-64/unique1.d: New.
427 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
428
429 * ld-x86-64/x86-64.exp: Run unique1.
430
431 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
432
433 * emultempl/pep.em (U): Macro modified.
434 (U_SIZE): New helper macro.
435 (GET_INIT_SYMBOL_NAME): Likewise.
436 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
437 and OPTION_LEADING_UNDERSCORE enumerator-values.
438 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
439 option.
440 (definfo): Add new member is_c_symbol.
441 (D): Add to macro underscore mode parameter.
442 (init): Add definition for is_c_symbol.
443 (gld_${EMULATION_NAME}_list_options): Display new options.
444 (set_pep_name): Adjust underscoring dependent fixed
445 symbol handling.
446 (gld_${EMULATION_NAME}_set_symbols): Likewise.
447 (saw_option): Likewise.
448 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
449 (set_entry_point): Initial initial_symbol_char dependent to
450 target's default and new option flag pep_leading_underscore.
451 * emultempl/pe.em (U): Macro modified.
452 (U_SIZE): New helper macro.
453 (GET_INIT_SYMBOL_NAME): Likewise.
454 (OPTION_LEADING_UNDERSCORE): Add new option define.
455 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
456 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
457 option.
458 (definfo): Add new member is_c_symbol.
459 (D): Add to macro underscore mode parameter.
460 (init): Add definition for is_c_symbol.
461 (gld_${EMULATION_NAME}_list_options): Display new options.
462 (set_pep_name): Adjust underscoring dependent fixed
463 symbol handling.
464 (gld_${EMULATION_NAME}_set_symbols): Likewise.
465 (saw_option): Likewise.
466 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
467 (set_entry_point): Initial initial_symbol_char dependent to
468 target's default and new option flag pep_leading_underscore.
469 * pe-dll.c (pe_leading_underscore): New flag variable.
470 (pe_detail_list): Remove const to allow modify of
471 member underscore.
472 (pe_dll_id_target): Initialize pe_details' underscore variable
473 dependent to target's default and flag pe_leading_underscore.
474 * pe-dll.h (pe_leading_underscore): Add extern declaration of
475 option flag.
476 * pep-dll.c (pe_leading_underscore): Add alias define for
477 pep_leading_underscore.
478 * pep-dll.h (pep_leading_underscore) Add extern declaration of
479 option flag.
480 * ld.texinfo: Add documentation for --(no-)leading-underscore
481 option.
482
483 2010-03-26 Alan Modra <amodra@gmail.com>
484
485 PR ld/11426
486 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
487 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
488
489 2010-03-25 Joseph Myers <joseph@codesourcery.com>
490
491 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
492 eelf32_tic6x_le.o.
493 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
494 * NEWS: Add news entry for TI C6X support.
495 * configure.tgt (tic6x-*-*): New.
496 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
497
498 2010-03-23 Joseph Myers <joseph@codesourcery.com>
499
500 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
501 BSS_NAME): Define if not already defined. Use in place of some
502 hardcoded section names.
503
504 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
505
506 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
507
508 2010-03-18 Aymeric Vincent <vincent@labri.fr>
509
510 PR ld/11384
511 * emultempl/sh64elf.em: Add missing EOF.
512
513 2010-03-18 Doug Semler <dougsemler@gmail.com>
514
515 * pe-dll.c (make_one): Make text section readonly.
516 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
517 the jump stub on X86 as /SAFESEH compatible for
518 native toolchains.
519
520 2010-03-17 Alan Modra <amodra@gmail.com>
521
522 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
523 *prev instead. Update all callers.
524
525 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
526
527 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
528 region and phdrs as their placement section.
529
530 2010-03-15 Alan Modra <amodra@gmail.com>
531
532 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
533 (ppc_before_allocation): Call sort_toc_sections.
534 (no_toc_sort, OPTION_NO_TOC_SORT): New.
535 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
536 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
537
538 2010-03-14 Alan Modra <amodra@gmail.com>
539
540 PR ld/11378
541 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
542 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
543
544 2010-03-11 George Gensure <werkt0@gmail.com>
545
546 PR ld/11367
547 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
548
549 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
550
551 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
552 eelf_i386_sol2.o.
553 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
554 (eelf32_sparc_sol2.c): New rule.
555 (eelf64_sparc_sol2.c): Likewise.
556 (eelf_x86_64_sol2.c): Likewise.
557 (eelf_i386_sol2.c): Likewise.
558 * Makefile.in: Regenerate.
559 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
560 elf_i386_sol2.
561 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
562 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
563 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
564 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
565 Add target_extra_emuls.
566 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
567 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
568 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
569 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
570 * emulparams/elf32_sparc_sol2.sh: New file.
571 * emulparams/elf64_sparc_sol2.sh: New file.
572 * emulparams/elf_i386_sol2.sh: New file.
573 * emulparams/elf_x86_64_sol2.sh: New file.
574 * emultempl/solaris2.em: New file.
575
576 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
577
578 PR ld/11330
579 * ld.texinfo: Replace explicitely with explicitly.
580
581 2010-02-27 Jie Zhang <jie@codesourcery.com>
582
583 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
584 .fini_array.* when do relocatable linking.
585 * scripttempl/elf.sc: Likewise.
586 * scripttempl/elf32sh-symbian.sc: Likewise.
587 * scripttempl/elf64hppa.sc: Likewise.
588 * scripttempl/elfxtensa.sc: Likewise.
589
590 2010-02-26 Alan Modra <amodra@gmail.com>
591
592 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
593 .fini_array.*.
594 * scripttempl/armbpabi.sc: Likewise.
595 * scripttempl/elf32sh-symbian.sc: Likewise.
596 * scripttempl/elf64hppa.sc: Likewise.
597 * scripttempl/elfxtensa.sc: Likewise.
598
599 2010-02-25 Alan Modra <amodra@gmail.com>
600
601 PR ld/11304
602 * ldlang.c (init_os): Remove isec param. Don't check for
603 bfd_section already set or call bfd_init_private_section_data
604 here.
605 (exp_init_os): Update init_os call.
606 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
607 flags. Call bfd_init_private_section_data here.
608 (map_input_to_output_sections): Tidy. Update init_os calls.
609 Use os->sectype to select sec flags for lang_data_statement.
610
611 2010-02-23 Alan Modra <amodra@gmail.com>
612
613 PR ld/11304
614 * ldlang.c: Revert last patch.
615
616 2010-02-23 Nick Clifton <nickc@redhat.com>
617
618 * po/bg.po: Updated Bulgarian translation.
619
620 2010-02-22 Alan Modra <amodra@gmail.com>
621
622 PR ld/11304
623 * ldlang.c (exp_init_os): Delete forward declaration.
624 (init_os): Don't check for bfd_section already created and don't
625 init addr_tree and load_base expressions here.
626 (map_input_to_output_sections): Only map input to output sections
627 and set constraints here, and as an exception, create output
628 sections which have their address set. Move all the other code to..
629 (create_other_output_sections): ..here. New function. Handle init
630 of addr_tree and load_base here too.
631 (lang_process): Call create_other_output_sections.
632
633 2010-02-19 Alan Modra <amodra@gmail.com>
634
635 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
636 * Makefile.in: Regenerate.
637
638 2010-02-19 Alan Modra <amodra@gmail.com>
639
640 * ldlang.c (unique_section_p): Add os param. Allow group
641 sections to match /DISCARD/. Update all callers.
642 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
643 (LDEMUL_BEFORE_ALLOCATION): Define.
644
645 2010-02-15 Nick Clifton <nickc@redhat.com>
646
647 * po/vi.po: Updated Vietnamese translation.
648
649 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
650
651 * Makefile.am (CFILES): Add ldlex-wrapper.c.
652 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
653 (ldlex.o): Replace with...
654 (ldlex-wrapper.o): ...this new rule.
655 (EXTRA_ld_new_SOURCES): Add ldlex.l.
656 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
657 * Makefile.in: Regenerate.
658 * ldlex.l (sysdep.h): Don't include here.
659 * ldlex-wrapper.c: New file.
660
661 2010-02-09 Alan Modra <amodra@gmail.com>
662
663 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
664 function parameters.
665
666 2010-02-05 Nick Clifton <nickc@redhat.com>
667
668 * configure.in (ALL_LIBGUAS): Add bg.
669 * configure: Regenerate.
670 * po/bg.po: New Bulgarian translation.
671
672 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
673
674 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
675 --target1-abs and --target1-rel options.
676
677 2010-02-03 Nick Clifton <nickc@redhat.com>
678
679 * emultempl/alphaelf.em: Update value expected from elf_object_id.
680 * emultempl/hppaelf.em: Likewise.
681 * emultempl/mipself.em: Likewise.
682 * emultempl/ppc32elf.em: Likewise.
683 * emultempl/ppc64elf.em: Likewise.
684
685 2010-02-03 Alan Modra <amodra@gmail.com>
686
687 * emultempl/ppc64elf.em (build_toc_list): Report errors from
688 ppc64_elf_next_toc_section.
689 (after_allocation): Update for changed function names and params.
690 Run second pass of multitoc partitioning.
691
692 2010-01-21 Jon Grant <jg@jguk.org>
693 Nick Clifton <nickc@redhat.com>
694
695 PR 4437
696 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
697 a missing file or library. Instead mark the entry as missing and
698 set the global flag to indicate that missing files were
699 encountered.
700 * ldlang.c (missing_files): New exported variable.
701 (load_symbols): Skip loading if the file is missing.
702 (open_input_bfds): Terminate link if any input files were
703 missing.
704 * ldlang.h (struct lang_input_statement_struct): Add missing_file
705 field.
706 Add export of missing_file variable.
707
708 2010-01-13 DJ Delorie <dj@redhat.com>
709
710 * emultempl/elf32.em (_place_orphan): If an input section doesn't
711 match an existing output section, but an unused output section
712 statement does match, use it.
713 * emultempl/pe.em (_place_orphan): Likewise.
714 * emultempl/pep.em (_place_orphan): Likewise.
715
716 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
717
718 * configure: Regenerate.
719 * Makefile.in: Regenerate.
720
721 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
722
723 * ldver.c (ldversion): Change to "Copyright 2010".
724
725 2010-01-08 Alan Modra <amodra@gmail.com>
726
727 PR 11107
728 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
729
730 For older changes see ChangeLog-2009
731 \f
732 Local Variables:
733 mode: change-log
734 left-margin: 8
735 fill-column: 74
736 version-control: never
737 End: