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