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