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