*** empty log message ***
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
71a75f6f
MF
12006-10-18 Roy Marples <uberlord@gentoo.org>
2
3 * emulparams/elf64_sparc_fbsd.sh (OUTPUT_FORMAT): Define as elf64-sparc-freebsd.
4
e4818e07
JM
52006-10-18 Joseph Myers <joseph@codesourcery.com>
6
7 * configure.tgt (i[3-7]86-*-linux-*): Also define
8 targ_extra_libpath in want64 case.
9 * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
10 x86_64*-linux*.
11
5a8e7be2
AM
122006-10-17 Alan Modra <amodra@bigpond.net.au>
13
14 * scripttempl/elf.sc (INTERP): Delete. Move definition to..
15 (INITIAL_READONLY_SECTIONS): ..here.
16 * emulparams/criself.sh (INITIAL_READONLY_SECTIONS): Include .interp.
17 * emulparams/elf32bmip.sh (INITIAL_READONLY_SECTIONS): Ditto.
18 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Ditto.
19
74541ad4
AM
202006-10-17 Alan Modra <amodra@bigpond.net.au>
21
22 * ldlang.c (strip_excluded_output_sections): Do strip sections
23 that define syms, but don't ignore them.
24 * ld.texinfo (Output Section Discarding): Revise.
25 * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
26 finish_default.
27
94bb04b3
RS
282006-10-16 Richard Sandiford <richard@codesourcery.com>
29
30 * Makefile.am (eelf64bmip.c): Depend on emulparams/elf64bmip-defs.sh.
31 (eelf64btsmip.c, eelf64ltsmip.c): Likewise.
32 * Makefile.in: Regenerate.
33 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Include
34 .reginfo rather than .MIPS.options.
35 * emulparams/elf64bmip-defs.sh: New file.
36 * emulparams/elf64bmip.sh: Include it.
37 (COMMONPAGESIZE): Delete.
38 * emulparams/elf64btsmip.sh: As for elf64bmip.sh.
39
a77dc2cc
BW
402006-10-12 Bob Wilson <bob.wilson@acm.org>
41
42 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
43 for linkonce XCC exception tables (".e" and ".h").
44
3c173cb1
BW
452006-10-11 Bob Wilson <bob.wilson@acm.org>
46
47 * emulparams/elf32xtensa.sh (TEXT_PLT): Enable.
48 (OTHER_READONLY_SECTIONS): Add linkonce .xt_except_table sections.
49 (OTHER_READWRITE_SECTIONS): Add linkonce .xt_except_desc sections.
50 (OTHER_SDATA_SECTIONS): New.
51 * scripttempl/elfxtensa.sc: Import changes from elf.sc.
52
07806542
JJ
532006-10-11 Jakub Jelinek <jakub@redhat.com>
54
55 * ldlang.c (lang_append_dynamic_list): When appending, add all elements
56 of the dynamic list rather than just the first entry.
57
ba05963f
BW
582006-10-10 Bob Wilson <bob.wilson@acm.org>
59
60 * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
61
33423b7f
MF
622006-10-06 Mike Frysinger <vapier@gentoo.org>
63
64 * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
65
a9c70046
BW
662006-10-04 Bob Wilson <bob.wilson@acm.org>
67
68 * emulparams/xtensa-config.sh: Delete file.
69 * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
70 xtensa-config.sh.
71 * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
72 * Makefile.in: Regenerate.
73
00479ba8
NC
742006-10-03 Pedro Alves <pedro_alves@portugalmail.pt>
75
76 * pe-dll.c : Fix typo.
77 (autofilter_symbolprefixlist) : Remove __imp_.
78 (is_import) : New.
79 (auto-export) : Remove re-import check. Moved to callers.
80 (process_def_file) : Check is symbol is an import. Always
81 underscore __imp_.
82 Only skip underscore on underscored targets.
83 (make_one) : Always underscore __imp_.
84 (pe_create_runtime_relocator_reference) : Only underscore
85 _pei386_runtime_relocator on underscored targets.
86 (pe_process_import_defs) : Always underscore __imp_.
87 * pe.em (U) : New macro.
88 (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
89 on wince subsystem case.
90 (pe_find_data_imports) : Use U on "_head_".
91 (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
92
49c13adb
L
932006-09-26 H.J. Lu <hongjiu.lu@intel.com>
94
95 PR ld/3223
96 PR ld/3267
97 * ld.texinfo: Updated Output Section Discarding.
98
99 * ldlang.h (lang_output_section_statement_type): Add
100 section_relative_symbol.
101 * ldlang.c (strip_excluded_output_sections): Don't strip a
102 section with a symbol relative to it.
103 (lang_size_sections_1): Mark if an output section has a symbol
104 symbol relative to it.
105
3c68c38f
BW
1062006-09-25 Bob Wilson <bob.wilson@acm.org>
107
108 * ld.texinfo (Options): Update description of local symbols for -X.
109
779dafb4
L
1102006-09-23 H.J. Lu <hongjiu.lu@intel.com>
111
112 PR ld/3249
113 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
114 and .gnu.linkonce.wi.* sections with .data and .debug_info for
115 relocatable link.
116
99ad8390
NC
1172006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
118
119 * configure.in: Add new target x86_64-pc-mingw64.
120 * configure: Regenerate.
121 * configure.tgt: Add definition of target emulation i386pep.
122 * Makefile.am: Add new target files for target-all.
123 * Makefile.in: Regenerate.
124 * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
125 Fix memory out of bounds excess for idata relocation section data.
126 * pep-dll.c: Add target specific shared object handling.
127 * pep-dll.h: Add target specific definitions for shared object handling.
128 * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
129 * emultempl/pep.em: Add new emulation file for target x86_64 coff.
130 * po/POTFILES.in: Regenerate.
131 * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
132 * NEWS: Mention new target.
133
6f693073
TS
1342006-09-18 Thiemo Seufer <ths@networkno.de>
135
136 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
137 configurations.
138
1c0d3aa6
NC
1392006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
140
141 * emulparams/scoreelf.sh: New file.
142 * emultempl/scoreelf.em: New file.
143 * Makefile.am: Add Score files.
144 * Makefile.in: Regenerate.
145 * configure.tgt: Add Score target.
146 * NEWS: Mention new target support.
147
0112cd26
NC
1482006-09-16 Nick Clifton <nickc@redhat.com>
149 Pedro Alves <pedro_alves@portugalmail.pt>
150
151 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
152 macros defined in bfd.h.
153 * ldmain.c: Likewise.
154 * ldwrite.c: Likewise.
155 * lexsup.c: Likewise.
156 * pe-dll.c: Likewise.
157 * emultempl/aix.em: Likewise.
158 * emultempl/beos.em: Likewise.
159 * emultempl/elf32.em: Likewise.
160 * emultempl/pe.em: Likewise.
161 * emultempl/sunos.em: Likewise.
162 * emultempl/xtensaelf.em: Likewise.
163
99643f69
NC
1642006-09-15 Nick Clifton <nickc@redhat.com>
165
166 PR ld/3107
167 * ldlang.c (lang_size_sections_1): Do not abort when encountering
168 a non-empty section that is ignored. Instead produce a warning
169 message.
170
0b8a70d9
L
1712006-09-08 H.J. Lu <hongjiu.lu@intel.com>
172
173 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
174
55255dae
L
1752006-09-07 H.J. Lu <hongjiu.lu@intel.com>
176
177 * Makefile.am (CXX): Set to g++.
178 (CXX_FOR_TARGET): Likewise.
179 * Makefile.in: Regenerated.
180
181 * NEWS: Mention --dynamic-list.
182
183 * ld.texinfo: Document --dynamic-list.
184
185 * ldgram.y: Support dynamic list.
186
187 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
188 on link_info.dynamic if needed.
189 (lang_append_dynamic_list): New.
190 (lang_append_dynamic_list_cpp_typeinfo): New.
191 * ldlang.h (lang_append_dynamic_list): Likewise.
192 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
193
194 * ldlex.h (input_enum): Add input_dynamic_list.
195 * ldlex.l: Handle it.
196
197 * ldmain.c (main): Initialize link_info.dynamic.
198
199 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
200 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
201 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
202 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
203 (parse_args): Handle OPTION_DYNAMIC_LIST and
204 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
205
7c94efc5
NC
2062006-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
207
208 * emulparams/h8300elf.sh: _tinydata should not be placed in
209 relocatables.
210 * emulparams/h8300.sh: Likewise.
211 * emulparams/h8300sxelf.sh: Likewise.
212
88b882e9
L
2132006-09-05 H.J. Lu <hongjiu.lu@intel.com>
214
215 PR ld/3015
216 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
217 is defined.
218
68bbb9f7
NS
2192006-08-29 Nathan Sidwell <nathan@codesourcery.com>
220
221 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
222
40cf2291
AM
2232006-08-28 Alan Modra <amodra@bigpond.net.au>
224
225 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
226 not match random object files in a path containing "crtbegin" or
227 "crtend" as part of a directory name.
228 * scripttempl/armbpabi.sc: Likewise.
229 * scripttempl/crisaout.sc: Likewise.
230 * scripttempl/elf32crx.sc: Likewise.
231 * scripttempl/elf32sh-symbian.sc: Likewise.
232 * scripttempl/elf_chaos.sc: Likewise.
233 * scripttempl/elfd10v.sc: Likewise.
234 * scripttempl/elfd30v.sc: Likewise.
235 * scripttempl/elfxtensa.sc: Likewise.
236 * scripttempl/iq2000.sc: Likewise.
237 * scripttempl/mmo.sc: Likewise.
238 * scripttempl/xstormy16.sc: Likewise.
239
74869ac7
BW
2402006-08-24 Bob Wilson <bob.wilson@acm.org>
241
242 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
243 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
244
85852e36
NC
2452006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
246
247 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
248 Adjust the current address of DEFAULT_MEMORY_REGION even
249 when dot hasn't changed.
250
3e23777d
AM
2512006-08-23 Alan Modra <amodra@bigpond.net.au>
252
253 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
254 rather than a section relative value.
255
dc0b6aa0
AM
2562006-08-22 Alan Modra <amodra@bigpond.net.au>
257
258 * NEWS: Mention LMA default change.
259 * ld.texinfo (Output Section LMA): Update default description.
260 (Location Counter): Clarify backward movement.
261 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
262 default lma equal to vma. Warn on backward movement of dot.
263
57da97f5
NC
2642006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
265
266 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
267 Windows CE targets.
268
7148cc28
NC
2692006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
270
271 * Makefile.am: Split arm-wince into its own emulation.
272 * Makefile.in: Regenerate.
7148cc28
NC
273 * pe-dll.c : Define PE_ARCH_arm_wince.
274 (pe_detail_list): Add PE_ARCH_arm_wince case.
275 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
276 * emulparams/arm_wince_pe.sh: New file.
277 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
278 Remap bfd_arm_allocate_interworking_sections,
279 bfd_arm_get_bfd_for_interworking and
280 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
281 targets too.
282 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
283 arm-epoc bfd format names.
284
a4fd1a8e
PB
2852006-08-18 Paul Brook <paul@codesourcery.com>
286
287 * emultempl/armelf.em (arm_elf_before_allocation): Call
288 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
289
19b3b564
CF
2902006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
291
292 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
293 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
294 and to not skipping .idata* sections.
295
cde9e0be
AM
2962006-08-16 Alan Modra <amodra@bigpond.net.au>
297
298 PR 3052
299 * ldlang.h (lang_output_section_statement_type): Replace
300 "processed" field with "processed_vma" and "processed_lma".
301 * ldlang.c (lang_do_assignments_1): Move lma setting code..
302 (lang_size_sections_1): ..to here.
303 (lang_reset_memory_regions): Adjust for
304 lang_output_section_statement_type change.
305 * ldexp.c (fold_name): Likewise.
306
50571e46
MF
3072006-08-08 Peter S. Mazinger <ps.m@gmx.net>
308
309 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
310 "CONSTANT (MAXPAGESIZE)".
311
e6f2cbf5
L
3122006-08-08 H.J. Lu <hongjiu.lu@intel.com>
313
314 PR ld/3006
315 * ldlang.c (lang_section_bst_type): Moved to ...
316 * ldlang.h: Here.
317
318 * ldlang.h (lang_wild_statement_struct): Add a tree field.
319
320 * ldlang.c (wild_sort_fast): Use the tree field for BST.
321 (wild): Likeise.
322 (analyze_walk_wild_section_handler): Initialize the tree field.
323
0d0999db
L
3242006-08-08 H.J. Lu <hongjiu.lu@intel.com>
325
326 PR ld/3009
327 * ldlang.c (update_wild_statements): Update the whole wild
328 section list.
329
a817dba3 3302006-08-04 Nick Clifton <nickc@redhat.com>
9d13c143 331 Mike Frysinger <michael.frysinger@analog.com>
a817dba3
MF
332
333 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
334 (__preinit_array_start, __preinit_array_end, __init_array_start,
335 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
336 Use ${USER_LABEL_PREFIX}.
337 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
338 (USER_LABEL_PREFIX): Set.
339
c17d87de
NC
3402006-08-04 Marcelo Tosatti <marcelo@kvack.org>
341
342 * ldmain.c (main): Initialise print_gc_sections field of link_info
343 structure.
344 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
345 switches.
346 * ld.texinfo: Document new switches.
347 * NEWS: Mention new switches.
348
55e6e397
RS
3492006-08-04 Richard Sandiford <richard@codesourcery.com>
350 Kazu Hirata <kazu@codesourcery.com>
351 Phil Edwards <phil@codesourcery.com>
352
353 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
354 eshlelf_vxworks.o.
355 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
356 * Makefile.in: Regenerate.
357 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
358 shlelf_vxworks.
359 * emulparams/shelf_vxworks.sh: New file.
360 * emulparams/shlelf_vxworks.sh: Likewise.
361 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
362 (OTHER_END_SYMBOLS): Likewise _ehdr.
363 (DATA_END_SYMBOLS): Likewise _edata.
364 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
365 is indeed an ELF file before dealing with --force-dynamic.
366
9d7cbccd
NC
3672006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
368
369 PR binutils/2983
370 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
371 elf64-x86-64-freebsd.
372
12d814e1
L
3732006-08-01 H.J. Lu <hongjiu.lu@intel.com>
374
375 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
376 bfd_make_section_with_flags.
377 (exp_init_os): Updated.
378 (lang_add_section): Call init_os with flags.
379 (map_input_to_output_sections): Likewise.
380
73934d31
RS
3812006-07-29 Richard Sandiford <richard@codesourcery.com>
382
383 * Makefile.am (eelf32b4300.c): Update dependencies.
384 (eelf32bmip.c): Likewise.
385 (eelf32bsmip.c): Likewise.
386 (eelf32btsmip.c): Likewise.
387 (eelf32btsmipn32.c): Likewise.
388 (eelf32ltsmip.c): Likewise.
389 (eelf32ltsmipn32.c): Likewise.
390 (eelf32ebmip.c): Likewise.
391 (eelf32ebmipvxworks.c): Likewise.
392 (eelf32elmip.c): Likewise.
393 (eelf32elmipvxworks.c): Likewise.
394 (eelf32bmipn32.c): Likewise.
395 (eelf32lmip.c): Likewise.
396 (eelf32mipswindiss.c): Likewise.
397 (eelf32lsmip.c): Likewise.
398 (eelf64bmip.c): Likewise.
399 (eelf64btsmip.c): Likewise.
400 (eelf64ltsmip.c): Likewise.
401 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
402 (emipsbsd.c): Likewise.
403 (emipsidt.c): Update dependencies.
404 (emipsidtl.c): Likewise.
405 (emipslit.c): Likewise.
406 (emipslnews.c): Likewise.
407 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
408 * Makefile.in: Regenerate.
409 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
410 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
411 * emultempl/irix.em: Include emultempl/mipself.em.
412 * emultempl/mipself.em: New file.
413
00bb149b
AM
4142006-07-26 Alan Modra <amodra@bigpond.net.au>
415
416 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
417 layout happens before segment map. Don't do segment map on
418 relocatable link.
419
329c1c86
AM
4202006-07-26 Alan Modra <amodra@bigpond.net.au>
421
66e28d60
AM
422 * ldexp.c (fold_name <LOADADDR>): Use the lma.
423 * ldlang.h (lang_memory_region_type): Delete old_length. Add
424 last_os.
425 * ldlang.c (lang_memory_region_lookup): Init new field.
426 (lang_reset_memory_regions): Reset new field.
427 (lang_insert_orphan): Don't set load_base.
428 (lang_leave_overlay): Likewise.
429 (lang_size_sections_1): Delete unnecessary code setting lma_region
430 to region. Correct lma region check.
431 (lang_do_assignments_1): Rename output_section_statement parm
432 to current_os. Set lma from previous section in region.
433
329c1c86
AM
434 * ldlang.c: Formatting.
435
b2f28975
BW
4362006-07-25 Bob Wilson <bob.wilson@acm.org>
437
438 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
439 Set discarded section's output_section to bfd_abs_section_ptr.
440
7544697a
AM
4412006-07-26 Alan Modra <amodra@bigpond.net.au>
442
443 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
444 earlier.
445
644143c8
BW
4462006-07-24 Bob Wilson <bob.wilson@acm.org>
447
448 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
449 in dep_sec_name for null terminator. Make sure dep_sec_name has a
450 ".t" linkonce tag.
451
ff15b240
NC
4522006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
453
454 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
455 Set for *-*-solaris2*.
456
b45619c0
NC
4572006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
458
459 * ld.texinfo: Fix spelling mistakes.
460 * ldint.texinfo: Likewise.
461
50c77e5d
NC
4622006-07-23 Sonal Santan <sonal.santan@xilinx.com>
463
464 * ldlang.c (lang_section_bst): New structure for sorting sections
465 by name.
466 (wild_sort_fast): New function: Insert a section into a binary
467 search tree.
468 (output_section_callback_fast): New function: Store a section in
469 BST.
470 (output_section_callback_tree_to_list): New function: Convert a
471 BST into a list.
472 (analyze_walk_wild_section_handler): Initialize handler_data
473 elements.
474 (wild): If the data is sorted by name use the BST method to sort
475 the names.
476
5061a885
AM
4772006-07-19 Alan Modra <amodra@bigpond.net.au>
478
479 * ld.h (handle_asneeded_cref): Declare.
480 * ldcref.c: Include objalloc.h.
481 (old_table, old_count, old_tab, alloc_mark): New variables.
482 (tabsize, entsize, refsize, old_symcount): Likewise.
483 (add_cref): Use bfd_hash_allocate for refs.
484 (handle_asneeded_cref): New function.
485 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
486
d19628a5
DJ
4872006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
488
489 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
490 typo setting targ_extra_libpath.
491
fdc90cb4
JJ
4922006-07-10 Jakub Jelinek <jakub@redhat.com>
493
494 * scripttempl/elf.sc: Add .gnu.hash section.
495 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
496 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
497 (gld${EMULATION_NAME}_handle_option): Handle it.
498 (gld${EMULATION_NAME}_list_options): Document it.
499 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
500 * ld.texinfo: Document --hash-style option.
501
b83ef3ee
NC
5022006-07-10 Nick Clifton <nickc@redhat.com>
503
504 * po/zh_TW.po: New Chinese (traditional) translation.
505 * configure.in (ALL_LINGUAS): Add zh_TW.
506 * configure: Regenerate.
507
71ba23f6
NC
5082006-07-07 Nick Clifton <nickc@redhat.com>
509
510 PR ld/2874
511 * ld.texinfo: Remove "Using LD" from the title since it is
512 redundant.
513
ba1be17e
NC
5142006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
515
71ba23f6 516 PR ld/2877
ba1be17e
NC
517 * ld.texinfo: Fix spelling mistakes.
518
b1d9458a
NC
5192006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
520 Nick Clifton <nickc@redhat.com>
521
522 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
523 length of format strings in the libname_fmt[] array, rather than
524 relying upon a statically chosen value. Adjust xmalloc call to
525 use this longest length.
526
ece2d90e
NC
5272006-06-27 Nick Clifton <nickc@redhat.com>
528
529 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
530 -rpath-link.
531
0faaaeb8
DJ
5322006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
533
534 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
535 targ_extra_libpath.
536
5b8273bf
NC
5372006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
538
539 * pe-dll.c (pe_details_type): Add new pointer for symbols list
540 autofilter.
541 (autofilter_symbollist): Split into autofilter_symbollist_generic
542 and autofilter_symbollist_i386.
543 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
544 autofilter_symbollist_generic for all the others.
545 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
546 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
547 into autofilter_symbollist_i386.
548 (auto_export): Get autofilter_symbollist from pe_details.
549
b952b98f
NC
5502006-06-22 Nick Clifton <nickc@redhat.com>
551
552 PR ld/2757
553 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
554 output files mention the file name and the fact that it is an
555 output file.
556
45e948fe
NC
5572006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
558
559 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
560 Restructure. Add native "%s.lib" format to search list
561 * ld.texinfo (node WIN32): Update documentation on dynamic lib
562 search order. Add another reason for using import libs.
563
5e542ba7
MS
5642006-06-21 Mark Shinwell <shinwell@codesourcery.com>
565
566 * ldlang.c (lang_insert_orphan): Correctly handle the case where
567 the section is to end up after the section currently at the end
568 of the list in output_bfd.
569
a4308b79
HPN
5702006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
571
572 * emultempl/mmo.em: Improve comments. Explain why there's
573 ELF-stuff here.
574
f5ff60a6
AM
5752006-06-21 Alan Modra <amodra@bigpond.net.au>
576
577 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
578 loop to ten iterations. Throw away any previous linker generated
579 segment map.
580 * ldlang.c (lang_phdr_list): Make global.
581 * ldlang.h (lang_phdr_list): Declare.
582 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
583 * Makefile.in: Regenerate.
584
8ded5a0f
AM
5852006-06-20 Alan Modra <amodra@bigpond.net.au>
586
587 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
588 many ELF emul file deps that incorrectly said they needed elf32.em
589 instead of generic.em. Add genelf.em as required.
590 * Makefile.in: Regenerate.
591 * ldlang.c (lang_process): Call ldemul_finish before
592 lang_check_section_addresses.
593 * emulparams/arcelf.sh: Generic elf target needs genelf.
594 * emulparams/d30v_e.sh: Likewise.
595 * emulparams/d30v_o.sh: Likewise.
596 * emulparams/d30velf.sh: Likewise.
597 * emulparams/elf32_dlx.sh: Likewise.
598 * emulparams/elf32_i860.sh: Likewise.
599 * emulparams/elf32fr30.sh: Likewise.
600 * emulparams/elf32frv.sh: Likewise.
601 * emulparams/elf32iq10.sh: Likewise.
602 * emulparams/elf32iq2000.sh: Likewise.
603 * emulparams/elf32mt.sh: Likewise.
604 * emulparams/mn10200.sh: Likewise.
605 * emulparams/or32.sh: Likewise.
606 * emulparams/or32elf.sh: Likewise.
607 * emulparams/pjelf.sh: Likewise.
608 * emulparams/msp430all.sh: Likewise. Extract common entries.
609 * emulparams/pjlelf.sh: Include pjelf.sh.
610 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
611 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
612 * emultempl/elf-generic.em: New file.
613 * emultempl/genelf.em: New file.
614 * emultempl/elf32.em: Include elf-generic.em.
615 (gld${EMULATION_NAME}_layout_sections_again): Delete.
616 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
617 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
618 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
619 gld${EMULATION_NAME}_map_segments.
620 (LDEMUL_FINISH): Update.
621 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
622 source elf-generic.em.
623 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
624 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
625 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
626 gld${EMULATION_NAME}_map_segments.
627 (LDEMUL_FINISH): Update.
628
a6b96beb
AM
6292006-06-19 Alan Modra <amodra@bigpond.net.au>
630
631 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
632
5fa222e4
AM
6332006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
634
635 * ld.texinfo: Document new -z lazy option.
636 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
637 new option.
638 (gld${EMULATION_NAME}_list_options): Update help text.
639
ce28273f
FF
6402006-06-12 Fred Fish <fnf@specifix.com>
641
642 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
643 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
644 generated by mips gcc.
645
7fd91fe0
TS
6462006-06-12 Thiemo Seufer <ths@mips.com>
647
648 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
649 Define.
650
409d7240
AM
6512006-06-09 Alan Modra <amodra@bigpond.net.au>
652
653 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
654 * ldlang.c (struct out_section_hash_entry): Rename from
655 output_statement_hash_entry. Delete output_section_statement_type
656 entry. Add statement_union_type entry. Adjust all users.
657 (output_section_statement_table): Rename from output_statement_table.
658 Adjust all users.
659 (output_section_statement_newfunc): Rename from
660 output_statement_newfunc. Adjust all users.
661 (output_section_statement_table_init): Rename from
662 output_statement_table_init. Adjust all users.
663 (output_section_statement_table_free): Rename from
664 output_statement_table_free. Adjust all users.
665
6648b7cf
JM
6662006-06-07 Joseph S. Myers <joseph@codesourcery.com>
667
668 * po/Make-in (pdf, ps): New dummy targets.
669
02a38f92
AM
6702006-06-07 Alan Modra <amodra@bigpond.net.au>
671
672 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
673 info_section and overlay_section. Add noalloc_section.
674 * ldlang.c (lang_add_section): Adjust.
675 * ldgram.y (type): Adjust.
676
e0f6802f
AM
6772006-06-06 Alan Modra <amodra@bigpond.net.au>
678
679 * ldlang.c (init_os): Whitespace.
680 (map_input_to_output_sections): Don't init_os for lang_input_section.
681 (print_all_symbols): Remove forward declaration. Convert to ISO C.
682
4cfe2c59
DJ
6832006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
684
685 * po/Make-in (top_builddir): Define.
686
65ede3f4
AM
6872006-06-05 Alan Modra <amodra@bigpond.net.au>
688
689 * ldexp.c (exp_get_abs_int): Make error message the same as
690 others emitted in this file.
691
8c61c153
AM
6922006-06-05 Alan Modra <amodra@bigpond.net.au>
693
694 * config.in: Regenerate.
695
87aa7f19
AM
6962006-06-05 Alan Modra <amodra@bigpond.net.au>
697
698 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
699
e13629bc
AM
7002006-06-03 Alan Modra <amodra@bigpond.net.au>
701
702 * emultempl/elf32.em (global_found): Make it a pointer.
703 (stat_needed, try_needed): Adjust.
704 (check_needed): Don't skip non-loaded as-needed entries. Only
705 consider entries with both filename and the_bfd non-null.
706 (after_open): Try loading non-loaded as-needed libs to satisfy
707 DT_NEEDED libs.
708
e10fad12
JM
7092006-06-02 Joseph S. Myers <joseph@codesourcery.com>
710
711 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
712 * Makefile.in: Regenerate.
713
20e95c23
DJ
7142006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
715
716 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
717 and LIBINTL_DEP everywhere.
718 (INTLLIBS): Remove.
719 (INCLUDES): Use @INCINTL@.
720 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
721 Remove local code for po/Makefile.
722 * Makefile.in, configure: Regenerated.
723
24718e3b
L
7242006-05-30 H.J. Lu <hongjiu.lu@intel.com>
725
726 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
727 "CONSTANT (MAXPAGESIZE)".
728 * emulparams/armelf_nbsd.sh: Likewise.
729 * emulparams/armelf_vxworks.sh: Likewise.
730 * emulparams/armnto.sh: Likewise.
731 * emulparams/armsymbian.sh: Likewise.
732 * emulparams/crislinux.sh: Likewise.
733 * emulparams/elf32_i860.sh: Likewise.
734 * emulparams/elf32_i960.sh: Likewise.
735 * emulparams/elf32am33lin.sh: Likewise.
736 * emulparams/elf32bfinfd.sh: Likewise.
737 * emulparams/elf32bmipn32-defs.sh: Likewise.
738 * emulparams/elf32frvfd.sh: Likewise.
739 * emulparams/elf32i370.sh: Likewise.
740 * emulparams/elf32lppcnto.sh: Likewise.
741 * emulparams/elf32mcore.sh: Likewise.
742 * emulparams/elf32openrisc.sh: Likewise.
743 * emulparams/elf32ppcnto.sh: Likewise.
744 * emulparams/elf32ppcwindiss.sh: Likewise.
745 * emulparams/elf32vax.sh: Likewise.
746 * emulparams/elf32xc16x.sh: Likewise.
747 * emulparams/elf32xc16xl.sh: Likewise.
748 * emulparams/elf32xc16xs.sh: Likewise.
749 * emulparams/elf64_aix.sh: Likewise.
750 * emulparams/elf64hppa.sh: Likewise.
751 * emulparams/elf64mmix.sh: Likewise.
752 * emulparams/elf_i386_be.sh: Likewise.
753 * emulparams/elf_i386_chaos.sh: Likewise.
754 * emulparams/elf_i386_ldso.sh: Likewise.
755 * emulparams/hppa64linux.sh: Likewise.
756 * emulparams/hppalinux.sh: Likewise.
757 * emulparams/hppaobsd.sh: Likewise.
758 * emulparams/i386lynx.sh: Likewise.
759 * emulparams/i386moss.sh: Likewise.
760 * emulparams/i386nto.sh: Likewise.
761 * emulparams/i386nw.sh: Likewise.
762 * emulparams/m32relf_linux.sh: Likewise.
763 * emulparams/m68kpsos.sh: Likewise.
764 * emulparams/or32elf.sh: Likewise.
765 * emulparams/pjelf.sh: Likewise.
766 * emulparams/pjlelf.sh: Likewise.
767 * emulparams/ppclynx.sh: Likewise.
768 * emulparams/ppcnw.sh: Likewise.
769 * emulparams/shelf32_nbsd.sh : Likewise.
770 * emulparams/shelf_nbsd.sh: Likewise.
771 * emulparams/shelf_nto.sh: Likewise.
772 * emulparams/shlelf_nto.sh: Likewise.
773 * emulparams/xtensa-config.sh: Likewise.
774
775 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
776 "CONSTANT (MAXPAGESIZE)".
777 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
778 * emulparams/elf32_sparc.sh: Likewise.
779 * emulparams/elf32bmip.sh: Likewise.
780 * emulparams/elf32ppccommon.sh: Likewise.
781 * emulparams/elf64_ia64.sh: Likewise.
782 * emulparams/elf64_s390.sh: Likewise.
783 * emulparams/elf64_sparc.sh: Likewise.
784 * emulparams/elf64alpha.sh: Likewise.
785 * emulparams/elf64ppc.sh: Likewise.
786 * emulparams/elf_i386.sh: Likewise.
787 * emulparams/elf_i386_vxworks.sh: Likewise.
788 * emulparams/elf_s390.sh: Likewise.
789 * emulparams/elf_x86_64.sh: Likewise.
790 * emulparams/shlelf32_linux.sh: Likewise.
791 * emulparams/shlelf_linux.sh: Likewise.
792
793 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
794 "CONSTANT (COMMONPAGESIZE)".
795 * emulparams/elf32btsmipn32.sh: Likewise.
796
797 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
798 "-z max-page-size=" and "-z common-page-size=".
799 (gld${EMULATION_NAME}_list_options): Likewise.
800
801 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
802
803 * ld.texinfo: Document "-z max-page-size=" and
804 "-z common-page-size=".
805
806 * ldexp.c (exp_print_token): Handle CONSTANT.
807 (fold_name): Likewise.
808 * ldgram.y: Likewise.
809 * ldlex.l: Likewise.
810
811 * ldmain.c (main): Initiliaze config.maxpagesize and
812 config.commonpagesize. Call bfd_emul_set_maxpagesize if
813 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
814 config.commonpagesize config.maxpagesize isn't 0.
815
eebf07fb
NC
8162006-05-30 Nick Clifton <nickc@redhat.com>
817
818 * po/es.po: Updated Spanish translation.
819
f7661549
L
8202006-05-25 H.J. Lu <hongjiu.lu@intel.com>
821
822 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
823
314e9a4e
L
8242006-05-24 H.J. Lu <hongjiu.lu@intel.com>
825
826 PR ld/1485
827 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
828 bfd. Support 64bit host for --enable-targets=all.
829 * configure: Regenerated.
830
4a4d496a
NC
8312006-05-24 Nick Clifton <nickc@redhat.com>
832
833 * po/vi.po: Updated Vietnamese translation.
834
28c9d252
NC
8352006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
836
837 * configure.tgt: Add avr6 to emulation list.
838 * Makefile.am: Add eavr6.o and corresponding rule.
839 * Makefile.in: Regenerate.
840 * emulparams/avr6.sh: New file.
841 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
842 for target option support.
843 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
844 * scripttempl/avr.sc: Add ".trampolines" section.
845 * emultempl/avrelf.em: Add new file for target specific options.
846
b7309ada
NC
8472006-05-22 Nick Clifton <nickc@redhat.com>
848
849 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
850
f0636a44
AM
8512006-05-19 Alan Modra <amodra@bigpond.net.au>
852
853 * ldlang.c (lang_size_sections_1): Don't check mem regions for
854 os->ignored sections.
855
f86a8756
DJ
8562005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
857
858 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
859 before redoing one_lang_size_sections_pass.
860
370b66a1
CD
8612006-05-11 Carlos O'Donell <carlos@codesourcery.com>
862
863 * ld.texinfo: Rename "Index" to "LD Index"
864
53baae48
NC
8652006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
866
867 * pe-dll.c (autofilter_symbollist): Add Dllmain,
868 DllMainCRTStartup, _DllMainCRTStartup and .text.
869 (autofilter_liblist): Add libcegcc.
870 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
871 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
872 they can still contain relocs that need processing.
873 Skip the .idata$6 section.
874 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
875 (make_one): Use the new array.
876 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
877 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
878
2a60a7a8
AM
8792006-05-05 Alan Modra <amodra@bigpond.net.au>
880
881 * ld.texinfo: Document PowerPC and PowerPC64 options.
882 * gen-doc.texi: Enable.
883
38fc1cb1
DJ
8842006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
885
886 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
887 (TEXI2POD): Use AM_MAKEINFOFLAGS.
888 (configdoc.texi): Don't set top_srcdir.
889 * ld.texinfo: Don't use top_srcdir.
890 * aclocal.m4, Makefile.in: Regenerated.
891
241a6c40
AM
8922006-04-19 Alan Modra <amodra@bigpond.net.au>
893
abe6ac95
AM
894 * ldlang.c (wild): Tidy default_common_section loop.
895 (print_input_section): Format.
896
241a6c40
AM
897 * configure: Regenerate.
898
e7403566
DJ
8992006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
900
901 * po/POTFILES.in: Regenerated.
902
b030a24e
DJ
9032006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
904
905 * config.in: Regenerated.
906
a255b6c7
BW
9072006-04-14 David Heine <dlheine@tensilica.com>
908 Bob Wilson <bob.wilson@acm.org>
909
910 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
911 function to strip inconsistent linkonce sections.
912 (input_section_linked_worker, input_section_linked): New.
913 (is_inconsistent_linkonce_section): New.
914 (xtensa_strip_inconsistent_linkonce_sections): New.
915