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