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