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