162646629aad74f0dd9de1d555258535d28597dc
[binutils-gdb.git] / ld / ChangeLog
1 2006-11-20 Alan Modra <amodra@bigpond.net.au>
2
3 * emulparams/elf32_spu.sh (OTHER_SECTIONS): Define.
4
5 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
6
7 * emultempl/armelf.em (arm_elf_before_allocation): Only call
8 bfd_elf32_arm_process_before_allocation if no dynamic sections.
9
10 2006-11-08 Alan Modra <amodra@bigpond.net.au>
11
12 * emultempl/elf32.em (gld*_before_allocation): Adjust output section
13 size for warning sections.
14
15 2006-11-06 Vladimir Prus <vladimir@codesourcery.com>
16
17 * emultempl/elf32.em (gld*_before_allocation): Don't prepend
18 "warning" to the message.
19
20 2006-10-31 Pedro Alves <pedro_alves@portugalmail.pt>
21
22 * pe-dll.c (autofilter_entry_type): Change name to const.
23 (pe_details_type) : Change target_name, object_target and
24 autofilter_symbollist to const.
25 (autofilter_symbollist_generic): Change to const.
26 (autofilter_symbollist_i386, pe_detail_list, pe_details,
27 autofilter_liblist, autofilter_objlist autofilter_symbolprefixlist,
28 autofilter_symbolsuffixlist): Likewise.
29 (is_import): Fix indentation.
30 (auto_export): Change afptr to const. Move name declaration to
31 beginning of scope.
32 (make_tail): Clear undefined byte.
33 (jmp_ix86_bytes, jmp_sh_bytes, jmp_mips_bytes, jmp_arm_bytes): Change
34 to const.
35 (make_one): Change jmp_bytes to const. Make idata$6 member size
36 arithmetic explicit and add comment.
37
38 2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
39
40 PR ld/3111
41 * ld.h (args_type): Remove reduce_memory_overheads.
42
43 * ldlang.c (lang_map): Updated.
44 (section_already_linked): Likewise.
45 (print_input_section): Likewise.
46 * ldmain.c (main): Likewise.
47 * lexsup.c (parse_args): Likewise.
48
49 2006-10-29 Pedro Alves <pedro_alves@portugalmail.pt>
50
51 * pe-dll.c (make_singleton_name_thunk): Re-add the NULL terminator.
52
53 2006-10-27 Alan Modra <amodra@bigpond.net.au>
54
55 * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP
56 sections have been discarded.
57 (lang_do_version_exports_section): Set SEC_KEEP on export section.
58 * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning
59 sections.
60
61 2006-10-26 Joseph S. Myers <joseph@codesourcery.com>
62 Mark Mitchell <mark@codesourcery.com>
63
64 * configure.tgt (arm*linux*): Support both big- and little-endian.
65
66 2006-10-25 H.J. Lu <hongjiu.lu@intel.com>
67
68 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Renamed to ...
69 (OTHER_BSS_SECTIONS): This.
70 * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Support LARGE_SECTIONS.
71 (LARGE_SECTIONS): Move .lbss sections to OTHER_BSS_SECTIONS.
72
73 2006-10-25 Alan Modra <amodra@bigpond.net.au>
74 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
75 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
76 Nobuhisa Fujinami <fnami@rd.scei.sony.co.jp>
77 Takeaki Fukuoka <fukuoka@rd.scei.sony.co.jp>
78
79 * emulparams/elf32_spu.sh: New file.
80 * emultempl/spu_inc.s: New file.
81 * emultempl/spu_ovl.S: New file.
82 * emultempl/spu_ovl.o: New file.
83 * emultempl/spuelf.em: New file.
84 * Makefile.am: Add SPU support.
85 * configure.tgt: Likewise.
86 * ldlang.c (load_symbols): Make global.
87 * ldlang.h (load_symbols): Declare.
88 * scripttempl/elf.sc (OTHER_BSS_SECTIONS): Add.
89 * Makefile.in: Regenerate.
90
91 2006-10-24 Ben Elliston <bje@au.ibm.com>
92
93 * lexsup.c (parse_args): Add a comment noting a fall-through.
94
95 2006-10-24 H.J. Lu <hongjiu.lu@intel.com>
96
97 * configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h.
98 * configure: Regenerated.
99 * config.in: Likewise.
100
101 2006-10-23 Alan Modra <amodra@bigpond.net.au>
102
103 * emulparams/h8300elf.sh (TINY_DATA_SECTION, TINY_BSS_SECTION): Don't
104 set section address on a relocatable link.
105
106 * ld.texinfo (Output Section Discarding): Fix xref.
107
108 2006-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp>
109
110 * emulparams/shelf32.sh: Set default stack to 0x80000.
111 * emulparams/shelf64.sh: Likewise.
112
113 2006-10-20 Richard Sandiford <richard@codesourcery.com>
114
115 * emulparams/elf32bmip.sh (OTHER_GOT_RELOC_SECTIONS): Define.
116 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_RELOC_SECTIONS): Likewise.
117
118 2006-10-19 Alan Modra <amodra@bigpond.net.au>
119
120 * emultempl/armelf.em (arm_elf_before_allocation): Run
121 gld${EMULATION_NAME}_before_allocation later.
122 * ldlang.c (lang_size_sections_1): Revert 2006-09-15 change.
123
124 2006-10-18 Roy Marples <uberlord@gentoo.org>
125
126 * emulparams/elf64_sparc_fbsd.sh (OUTPUT_FORMAT): Define as
127 elf64-sparc-freebsd.
128
129 2006-10-18 Joseph Myers <joseph@codesourcery.com>
130
131 * configure.tgt (i[3-7]86-*-linux-*): Also define
132 targ_extra_libpath in want64 case.
133 * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
134 x86_64*-linux*.
135
136 2006-10-17 Alan Modra <amodra@bigpond.net.au>
137
138 * scripttempl/elf.sc (INTERP): Delete. Move definition to..
139 (INITIAL_READONLY_SECTIONS): ..here.
140 * emulparams/criself.sh (INITIAL_READONLY_SECTIONS): Include .interp.
141 * emulparams/elf32bmip.sh (INITIAL_READONLY_SECTIONS): Ditto.
142 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Ditto.
143
144 2006-10-17 Alan Modra <amodra@bigpond.net.au>
145
146 * ldlang.c (strip_excluded_output_sections): Do strip sections
147 that define syms, but don't ignore them.
148 * ld.texinfo (Output Section Discarding): Revise.
149 * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
150 finish_default.
151
152 2006-10-16 Richard Sandiford <richard@codesourcery.com>
153
154 * Makefile.am (eelf64bmip.c): Depend on emulparams/elf64bmip-defs.sh.
155 (eelf64btsmip.c, eelf64ltsmip.c): Likewise.
156 * Makefile.in: Regenerate.
157 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Include
158 .reginfo rather than .MIPS.options.
159 * emulparams/elf64bmip-defs.sh: New file.
160 * emulparams/elf64bmip.sh: Include it.
161 (COMMONPAGESIZE): Delete.
162 * emulparams/elf64btsmip.sh: As for elf64bmip.sh.
163
164 2006-10-12 Bob Wilson <bob.wilson@acm.org>
165
166 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
167 for linkonce XCC exception tables (".e" and ".h").
168
169 2006-10-11 Bob Wilson <bob.wilson@acm.org>
170
171 * emulparams/elf32xtensa.sh (TEXT_PLT): Enable.
172 (OTHER_READONLY_SECTIONS): Add linkonce .xt_except_table sections.
173 (OTHER_READWRITE_SECTIONS): Add linkonce .xt_except_desc sections.
174 (OTHER_SDATA_SECTIONS): New.
175 * scripttempl/elfxtensa.sc: Import changes from elf.sc.
176
177 2006-10-11 Jakub Jelinek <jakub@redhat.com>
178
179 * ldlang.c (lang_append_dynamic_list): When appending, add all elements
180 of the dynamic list rather than just the first entry.
181
182 2006-10-10 Bob Wilson <bob.wilson@acm.org>
183
184 * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
185
186 2006-10-06 Mike Frysinger <vapier@gentoo.org>
187
188 * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
189
190 2006-10-04 Bob Wilson <bob.wilson@acm.org>
191
192 * emulparams/xtensa-config.sh: Delete file.
193 * emulparams/elf32xtensa.sh: Set MAXPAGESIZE here instead of including
194 xtensa-config.sh.
195 * Makefile.am (eelf32xtensa.c): Remove dependency on xtensa-config.sh.
196 * Makefile.in: Regenerate.
197
198 2006-10-03 Pedro Alves <pedro_alves@portugalmail.pt>
199
200 * pe-dll.c : Fix typo.
201 (autofilter_symbolprefixlist) : Remove __imp_.
202 (is_import) : New.
203 (auto-export) : Remove re-import check. Moved to callers.
204 (process_def_file) : Check is symbol is an import. Always
205 underscore __imp_.
206 Only skip underscore on underscored targets.
207 (make_one) : Always underscore __imp_.
208 (pe_create_runtime_relocator_reference) : Only underscore
209 _pei386_runtime_relocator on underscored targets.
210 (pe_process_import_defs) : Always underscore __imp_.
211 * pe.em (U) : New macro.
212 (set_pe_subsystem) : Remove underscore from _WinMainCRTStartup
213 on wince subsystem case.
214 (pe_find_data_imports) : Use U on "_head_".
215 (gld_${EMULATION_NAME}_unrecognized_file) : Use U.
216
217 2006-09-26 H.J. Lu <hongjiu.lu@intel.com>
218
219 PR ld/3223
220 PR ld/3267
221 * ld.texinfo: Updated Output Section Discarding.
222
223 * ldlang.h (lang_output_section_statement_type): Add
224 section_relative_symbol.
225 * ldlang.c (strip_excluded_output_sections): Don't strip a
226 section with a symbol relative to it.
227 (lang_size_sections_1): Mark if an output section has a symbol
228 symbol relative to it.
229
230 2006-09-25 Bob Wilson <bob.wilson@acm.org>
231
232 * ld.texinfo (Options): Update description of local symbols for -X.
233
234 2006-09-23 H.J. Lu <hongjiu.lu@intel.com>
235
236 PR ld/3249
237 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
238 and .gnu.linkonce.wi.* sections with .data and .debug_info for
239 relocatable link.
240
241 2006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
242
243 * configure.in: Add new target x86_64-pc-mingw64.
244 * configure: Regenerate.
245 * configure.tgt: Add definition of target emulation i386pep.
246 * Makefile.am: Add new target files for target-all.
247 * Makefile.in: Regenerate.
248 * pe-dll.c: Adjust to be inheritable by pep_dll.c as include.
249 Fix memory out of bounds excess for idata relocation section data.
250 * pep-dll.c: Add target specific shared object handling.
251 * pep-dll.h: Add target specific definitions for shared object handling.
252 * emulparams/i386pep.sh: Add new emulation params for target x86_64 coff.
253 * emultempl/pep.em: Add new emulation file for target x86_64 coff.
254 * po/POTFILES.in: Regenerate.
255 * scripttempl/pep.sc: Add linker script template for target x86_64 coff.
256 * NEWS: Mention new target.
257
258 2006-09-18 Thiemo Seufer <ths@networkno.de>
259
260 * configure.tgt: Add mips*el-sde-elf* and mips*-sde-elf*
261 configurations.
262
263 2006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
264
265 * emulparams/scoreelf.sh: New file.
266 * emultempl/scoreelf.em: New file.
267 * Makefile.am: Add Score files.
268 * Makefile.in: Regenerate.
269 * configure.tgt: Add Score target.
270 * NEWS: Mention new target support.
271
272 2006-09-16 Nick Clifton <nickc@redhat.com>
273 Pedro Alves <pedro_alves@portugalmail.pt>
274
275 * ldctor.c: Make use of new STRING_COMMA_LEN and CONST_STRNEQ
276 macros defined in bfd.h.
277 * ldmain.c: Likewise.
278 * ldwrite.c: Likewise.
279 * lexsup.c: Likewise.
280 * pe-dll.c: Likewise.
281 * emultempl/aix.em: Likewise.
282 * emultempl/beos.em: Likewise.
283 * emultempl/elf32.em: Likewise.
284 * emultempl/pe.em: Likewise.
285 * emultempl/sunos.em: Likewise.
286 * emultempl/xtensaelf.em: Likewise.
287
288 2006-09-15 Nick Clifton <nickc@redhat.com>
289
290 PR ld/3107
291 * ldlang.c (lang_size_sections_1): Do not abort when encountering
292 a non-empty section that is ignored. Instead produce a warning
293 message.
294
295 2006-09-08 H.J. Lu <hongjiu.lu@intel.com>
296
297 * ld.texinfo: Document --dynamic-list-cpp-typeinfo.
298
299 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
300
301 * Makefile.am (CXX): Set to g++.
302 (CXX_FOR_TARGET): Likewise.
303 * Makefile.in: Regenerated.
304
305 * NEWS: Mention --dynamic-list.
306
307 * ld.texinfo: Document --dynamic-list.
308
309 * ldgram.y: Support dynamic list.
310
311 * ldlang.c (lang_process): Call lang_finalize_version_expr_head
312 on link_info.dynamic if needed.
313 (lang_append_dynamic_list): New.
314 (lang_append_dynamic_list_cpp_typeinfo): New.
315 * ldlang.h (lang_append_dynamic_list): Likewise.
316 * ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
317
318 * ldlex.h (input_enum): Add input_dynamic_list.
319 * ldlex.l: Handle it.
320
321 * ldmain.c (main): Initialize link_info.dynamic.
322
323 * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
324 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
325 (ld_options): Add entries for OPTION_DYNAMIC_LIST and
326 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
327 (parse_args): Handle OPTION_DYNAMIC_LIST and
328 OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
329
330 2006-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
331
332 * emulparams/h8300elf.sh: _tinydata should not be placed in
333 relocatables.
334 * emulparams/h8300.sh: Likewise.
335 * emulparams/h8300sxelf.sh: Likewise.
336
337 2006-09-05 H.J. Lu <hongjiu.lu@intel.com>
338
339 PR ld/3015
340 * emultempl/elf32.em: Enable "-z relro" only if $COMMONPAGESIZE
341 is defined.
342
343 2006-08-29 Nathan Sidwell <nathan@codesourcery.com>
344
345 * ldlang.c (walk_wild): Allow * to glob '/' in wildcarded match.
346
347 2006-08-28 Alan Modra <amodra@bigpond.net.au>
348
349 * scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
350 not match random object files in a path containing "crtbegin" or
351 "crtend" as part of a directory name.
352 * scripttempl/armbpabi.sc: Likewise.
353 * scripttempl/crisaout.sc: Likewise.
354 * scripttempl/elf32crx.sc: Likewise.
355 * scripttempl/elf32sh-symbian.sc: Likewise.
356 * scripttempl/elf_chaos.sc: Likewise.
357 * scripttempl/elfd10v.sc: Likewise.
358 * scripttempl/elfd30v.sc: Likewise.
359 * scripttempl/elfxtensa.sc: Likewise.
360 * scripttempl/iq2000.sc: Likewise.
361 * scripttempl/mmo.sc: Likewise.
362 * scripttempl/xstormy16.sc: Likewise.
363
364 2006-08-24 Bob Wilson <bob.wilson@acm.org>
365
366 * emulparams/elf32xtensa.sh (.xt.prop): Add .xt.prop.*.
367 * scripttempl/elfxtensa.sc (.text): Add .literal.*.
368
369 2006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
370
371 * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
372 Adjust the current address of DEFAULT_MEMORY_REGION even
373 when dot hasn't changed.
374
375 2006-08-23 Alan Modra <amodra@bigpond.net.au>
376
377 * ldexp.c (fold_name <LOADADDR>): Return an absolute value
378 rather than a section relative value.
379
380 2006-08-22 Alan Modra <amodra@bigpond.net.au>
381
382 * NEWS: Mention LMA default change.
383 * ld.texinfo (Output Section LMA): Update default description.
384 (Location Counter): Clarify backward movement.
385 * ldlang.c (lang_size_sections_1): Leave non-alloc sections with
386 default lma equal to vma. Warn on backward movement of dot.
387
388 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
389
390 * configure.tgt: Set targ_emul to arm_wince_pe for ARM
391 Windows CE targets.
392
393 2006-08-22 Pedro Alves <pedro_alves@portugalmail.pt>
394
395 * Makefile.am: Split arm-wince into its own emulation.
396 * Makefile.in: Regenerate.
397 * pe-dll.c : Define PE_ARCH_arm_wince.
398 (pe_detail_list): Add PE_ARCH_arm_wince case.
399 (make_one): Handle PE_ARCH_arm_epoc and PE_ARCH_arm_wince cases.
400 * emulparams/arm_wince_pe.sh: New file.
401 * emultempl/pe.em: Handle new TARGET_IS_arm_wince_pe define.
402 Remap bfd_arm_allocate_interworking_sections,
403 bfd_arm_get_bfd_for_interworking and
404 bfd_arm_process_before_allocation for arm-pe and arm-wince-pe
405 targets too.
406 (gld_${EMULATION_NAME}_recognized_file): Handle arm-wince and
407 arm-epoc bfd format names.
408
409 2006-08-18 Paul Brook <paul@codesourcery.com>
410
411 * emultempl/armelf.em (arm_elf_before_allocation): Call
412 gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
413
414 2006-08-17 Pedro Alves <pedro_alves@portugalmail.pt>
415
416 * pe-dll.c (autofilter_symbolprefixlist): Remove .idata$.
417 (generate_reloc): Revert to skipping sections without a SEC_LOAD flag,
418 and to not skipping .idata* sections.
419
420 2006-08-16 Alan Modra <amodra@bigpond.net.au>
421
422 PR 3052
423 * ldlang.h (lang_output_section_statement_type): Replace
424 "processed" field with "processed_vma" and "processed_lma".
425 * ldlang.c (lang_do_assignments_1): Move lma setting code..
426 (lang_size_sections_1): ..to here.
427 (lang_reset_memory_regions): Adjust for
428 lang_output_section_statement_type change.
429 * ldexp.c (fold_name): Likewise.
430
431 2006-08-08 Peter S. Mazinger <ps.m@gmx.net>
432
433 * emulparams/armelf.sh (MAXPAGESIZE): Changed to
434 "CONSTANT (MAXPAGESIZE)".
435
436 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
437
438 PR ld/3006
439 * ldlang.c (lang_section_bst_type): Moved to ...
440 * ldlang.h: Here.
441
442 * ldlang.h (lang_wild_statement_struct): Add a tree field.
443
444 * ldlang.c (wild_sort_fast): Use the tree field for BST.
445 (wild): Likeise.
446 (analyze_walk_wild_section_handler): Initialize the tree field.
447
448 2006-08-08 H.J. Lu <hongjiu.lu@intel.com>
449
450 PR ld/3009
451 * ldlang.c (update_wild_statements): Update the whole wild
452 section list.
453
454 2006-08-04 Nick Clifton <nickc@redhat.com>
455 Mike Frysinger <michael.frysinger@analog.com>
456
457 * scripttempl/elf.sc (USER_LABEL_PREFIX): Define.
458 (__preinit_array_start, __preinit_array_end, __init_array_start,
459 __init_array_end, __fini_array_start, __fini_array_end, edata, end):
460 Use ${USER_LABEL_PREFIX}.
461 * emulparams/bfin.sh (DATA_END_SYMBOLS,END_SYMBOLS): Unset.
462 (USER_LABEL_PREFIX): Set.
463
464 2006-08-04 Marcelo Tosatti <marcelo@kvack.org>
465
466 * ldmain.c (main): Initialise print_gc_sections field of link_info
467 structure.
468 * lexsup.c: Add --print-gc-sections and --no-print-gc-sections
469 switches.
470 * ld.texinfo: Document new switches.
471 * NEWS: Mention new switches.
472
473 2006-08-04 Richard Sandiford <richard@codesourcery.com>
474 Kazu Hirata <kazu@codesourcery.com>
475 Phil Edwards <phil@codesourcery.com>
476
477 * Makefile.am (ALL_EMULATIONS): Add eshelf_vxworks.o and
478 eshlelf_vxworks.o.
479 (eshelf_vxworks.c, eshlelf_vxworks.c): New rules.
480 * Makefile.in: Regenerate.
481 * configure.tgt (sh-*-vxworks): Use shelf_vxworks and
482 shlelf_vxworks.
483 * emulparams/shelf_vxworks.sh: New file.
484 * emulparams/shlelf_vxworks.sh: Likewise.
485 * emulparams/vxworks.sh (FINI): Prefix _etext with ${SYMPREFIX}.
486 (OTHER_END_SYMBOLS): Likewise _ehdr.
487 (DATA_END_SYMBOLS): Likewise _edata.
488 * emultempl/vxworks.em (vxworks_after_open): Check whether output_bfd
489 is indeed an ELF file before dealing with --force-dynamic.
490
491 2006-08-02 Petr Salinger <Petr.Salinger@seznam.cz>
492
493 PR binutils/2983
494 * emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as
495 elf64-x86-64-freebsd.
496
497 2006-08-01 H.J. Lu <hongjiu.lu@intel.com>
498
499 * ldlang.c (init_os): Add flags. Replace bfd_make_section with
500 bfd_make_section_with_flags.
501 (exp_init_os): Updated.
502 (lang_add_section): Call init_os with flags.
503 (map_input_to_output_sections): Likewise.
504
505 2006-07-29 Richard Sandiford <richard@codesourcery.com>
506
507 * Makefile.am (eelf32b4300.c): Update dependencies.
508 (eelf32bmip.c): Likewise.
509 (eelf32bsmip.c): Likewise.
510 (eelf32btsmip.c): Likewise.
511 (eelf32btsmipn32.c): Likewise.
512 (eelf32ltsmip.c): Likewise.
513 (eelf32ltsmipn32.c): Likewise.
514 (eelf32ebmip.c): Likewise.
515 (eelf32ebmipvxworks.c): Likewise.
516 (eelf32elmip.c): Likewise.
517 (eelf32elmipvxworks.c): Likewise.
518 (eelf32bmipn32.c): Likewise.
519 (eelf32lmip.c): Likewise.
520 (eelf32mipswindiss.c): Likewise.
521 (eelf32lsmip.c): Likewise.
522 (eelf64bmip.c): Likewise.
523 (eelf64btsmip.c): Likewise.
524 (eelf64ltsmip.c): Likewise.
525 (emipsbig.c): Likewise. Canonicalize ${GENSCRIPTS} line.
526 (emipsbsd.c): Likewise.
527 (emipsidt.c): Update dependencies.
528 (emipsidtl.c): Likewise.
529 (emipslit.c): Likewise.
530 (emipslnews.c): Likewise.
531 (emipspe.c): Likewise. Fix ${GENSCRIPTS} invocation.
532 * Makefile.in: Regenerate.
533 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define.
534 * emulparams/elf32bmipn32-defs.sh (EXTRA_EM_FILE): Likewise.
535 * emultempl/irix.em: Include emultempl/mipself.em.
536 * emultempl/mipself.em: New file.
537
538 2006-07-26 Alan Modra <amodra@bigpond.net.au>
539
540 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
541 layout happens before segment map. Don't do segment map on
542 relocatable link.
543
544 2006-07-26 Alan Modra <amodra@bigpond.net.au>
545
546 * ldexp.c (fold_name <LOADADDR>): Use the lma.
547 * ldlang.h (lang_memory_region_type): Delete old_length. Add
548 last_os.
549 * ldlang.c (lang_memory_region_lookup): Init new field.
550 (lang_reset_memory_regions): Reset new field.
551 (lang_insert_orphan): Don't set load_base.
552 (lang_leave_overlay): Likewise.
553 (lang_size_sections_1): Delete unnecessary code setting lma_region
554 to region. Correct lma region check.
555 (lang_do_assignments_1): Rename output_section_statement parm
556 to current_os. Set lma from previous section in region.
557
558 * ldlang.c: Formatting.
559
560 2006-07-25 Bob Wilson <bob.wilson@acm.org>
561
562 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
563 Set discarded section's output_section to bfd_abs_section_ptr.
564
565 2006-07-26 Alan Modra <amodra@bigpond.net.au>
566
567 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
568 earlier.
569
570 2006-07-24 Bob Wilson <bob.wilson@acm.org>
571
572 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
573 in dep_sec_name for null terminator. Make sure dep_sec_name has a
574 ".t" linkonce tag.
575
576 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
577
578 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME):
579 Set for *-*-solaris2*.
580
581 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
582
583 * ld.texinfo: Fix spelling mistakes.
584 * ldint.texinfo: Likewise.
585
586 2006-07-23 Sonal Santan <sonal.santan@xilinx.com>
587
588 * ldlang.c (lang_section_bst): New structure for sorting sections
589 by name.
590 (wild_sort_fast): New function: Insert a section into a binary
591 search tree.
592 (output_section_callback_fast): New function: Store a section in
593 BST.
594 (output_section_callback_tree_to_list): New function: Convert a
595 BST into a list.
596 (analyze_walk_wild_section_handler): Initialize handler_data
597 elements.
598 (wild): If the data is sorted by name use the BST method to sort
599 the names.
600
601 2006-07-19 Alan Modra <amodra@bigpond.net.au>
602
603 * ld.h (handle_asneeded_cref): Declare.
604 * ldcref.c: Include objalloc.h.
605 (old_table, old_count, old_tab, alloc_mark): New variables.
606 (tabsize, entsize, refsize, old_symcount): Likewise.
607 (add_cref): Use bfd_hash_allocate for refs.
608 (handle_asneeded_cref): New function.
609 * ldmain.c (notice): Call handle_asneeded_cref for NULL name.
610
611 2006-07-14 Michael Wetherell <mike.wetherell@ntlworld.com>
612
613 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Correct
614 typo setting targ_extra_libpath.
615
616 2006-07-10 Jakub Jelinek <jakub@redhat.com>
617
618 * scripttempl/elf.sc: Add .gnu.hash section.
619 * emultempl/elf32.em (OPTION_HASH_STYLE): Define.
620 (gld${EMULATION_NAME}_add_options): Register --hash-style option.
621 (gld${EMULATION_NAME}_handle_option): Handle it.
622 (gld${EMULATION_NAME}_list_options): Document it.
623 * ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
624 * ld.texinfo: Document --hash-style option.
625
626 2006-07-10 Nick Clifton <nickc@redhat.com>
627
628 * po/zh_TW.po: New Chinese (traditional) translation.
629 * configure.in (ALL_LINGUAS): Add zh_TW.
630 * configure: Regenerate.
631
632 2006-07-07 Nick Clifton <nickc@redhat.com>
633
634 PR ld/2874
635 * ld.texinfo: Remove "Using LD" from the title since it is
636 redundant.
637
638 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>
639
640 PR ld/2877
641 * ld.texinfo: Fix spelling mistakes.
642
643 2006-06-27 Pedro Alves <pedro_alves@portugalmail.pt>
644 Nick Clifton <nickc@redhat.com>
645
646 * emultempl/pe.em (gld_$_open_dynamic_archive): Compute maximum
647 length of format strings in the libname_fmt[] array, rather than
648 relying upon a statically chosen value. Adjust xmalloc call to
649 use this longest length.
650
651 2006-06-27 Nick Clifton <nickc@redhat.com>
652
653 * ld.texinfo (-rpath-link): Clarify distinction between -rpath and
654 -rpath-link.
655
656 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
657
658 * configure.tgt (i[3-7]86-*-solaris2*, i[3-7]86-*-solaris*): Set
659 targ_extra_libpath.
660
661 2006-06-23 Pedro Alves <pedro_alves@portugalmail.pt>
662
663 * pe-dll.c (pe_details_type): Add new pointer for symbols list
664 autofilter.
665 (autofilter_symbollist): Split into autofilter_symbollist_generic
666 and autofilter_symbollist_i386.
667 (pe_detail_list): Add autofilter_symbollist_i386 to i386 case and
668 autofilter_symbollist_generic for all the others.
669 (autofilter_symbolprefixlist): Moved _fmode, _impure_ptr, cygwin_attach_dll,
670 cygwin_premain0, cygwin_premain1, cygwin_premain2, cygwin_premain3, environ,
671 into autofilter_symbollist_i386.
672 (auto_export): Get autofilter_symbollist from pe_details.
673
674 2006-06-22 Nick Clifton <nickc@redhat.com>
675
676 PR ld/2757
677 * emultempl/pe.em (gld_$_after_open): When reporting non PE format
678 output files mention the file name and the fact that it is an
679 output file.
680
681 2006-06-22 Danny Smith <dannysmith@users.sourceforge.net>
682
683 * emultempl/pe.em (gld_${EMULATION_NAME}_open_dynamic_archive):
684 Restructure. Add native "%s.lib" format to search list
685 * ld.texinfo (node WIN32): Update documentation on dynamic lib
686 search order. Add another reason for using import libs.
687
688 2006-06-21 Mark Shinwell <shinwell@codesourcery.com>
689
690 * ldlang.c (lang_insert_orphan): Correctly handle the case where
691 the section is to end up after the section currently at the end
692 of the list in output_bfd.
693
694 2006-06-21 Hans-Peter Nilsson <hp@bitrange.com>
695
696 * emultempl/mmo.em: Improve comments. Explain why there's
697 ELF-stuff here.
698
699 2006-06-21 Alan Modra <amodra@bigpond.net.au>
700
701 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Limit
702 loop to ten iterations. Throw away any previous linker generated
703 segment map.
704 * ldlang.c (lang_phdr_list): Make global.
705 * ldlang.h (lang_phdr_list): Declare.
706 * Makefile.am (ELF_GEN_DEPS): Define. Use in emul deps.
707 * Makefile.in: Regenerate.
708
709 2006-06-20 Alan Modra <amodra@bigpond.net.au>
710
711 * Makefile.am (ELF_DEPS): Define. Use in emul file deps. Fix
712 many ELF emul file deps that incorrectly said they needed elf32.em
713 instead of generic.em. Add genelf.em as required.
714 * Makefile.in: Regenerate.
715 * ldlang.c (lang_process): Call ldemul_finish before
716 lang_check_section_addresses.
717 * emulparams/arcelf.sh: Generic elf target needs genelf.
718 * emulparams/d30v_e.sh: Likewise.
719 * emulparams/d30v_o.sh: Likewise.
720 * emulparams/d30velf.sh: Likewise.
721 * emulparams/elf32_dlx.sh: Likewise.
722 * emulparams/elf32_i860.sh: Likewise.
723 * emulparams/elf32fr30.sh: Likewise.
724 * emulparams/elf32frv.sh: Likewise.
725 * emulparams/elf32iq10.sh: Likewise.
726 * emulparams/elf32iq2000.sh: Likewise.
727 * emulparams/elf32mt.sh: Likewise.
728 * emulparams/mn10200.sh: Likewise.
729 * emulparams/or32.sh: Likewise.
730 * emulparams/or32elf.sh: Likewise.
731 * emulparams/pjelf.sh: Likewise.
732 * emulparams/msp430all.sh: Likewise. Extract common entries.
733 * emulparams/pjlelf.sh: Include pjelf.sh.
734 * emulparams/elf32frvfd.sh (EXTRA_EM_FILE): Unset.
735 * emulparams/mn10300.sh (EXTRA_EM_FILE): Unset.
736 * emultempl/elf-generic.em: New file.
737 * emultempl/genelf.em: New file.
738 * emultempl/elf32.em: Include elf-generic.em.
739 (gld${EMULATION_NAME}_layout_sections_again): Delete.
740 (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_map_segments.
741 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
742 (gld${EMULATION_NAME}_finish): Rename from hppaelf_finish. Call
743 gld${EMULATION_NAME}_map_segments.
744 (LDEMUL_FINISH): Update.
745 * emultempl/mmo.em: Correct comment. Include elf-bfd.h and
746 source elf-generic.em.
747 (mmo_finish): Call gld${EMULATION_NAME}_map_segments.
748 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
749 (gld${EMULATION_NAME}_finish): Rename from ppc_finish. Call
750 gld${EMULATION_NAME}_map_segments.
751 (LDEMUL_FINISH): Update.
752
753 2006-06-19 Alan Modra <amodra@bigpond.net.au>
754
755 * ldexp.c (fold_name): Adjust bfd_sizeof_headers call.
756
757 2006-06-14 Kevin F. Quinn <kevquinn@gentoo.org>
758
759 * ld.texinfo: Document new -z lazy option.
760 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
761 new option.
762 (gld${EMULATION_NAME}_list_options): Update help text.
763
764 2006-06-12 Fred Fish <fnf@specifix.com>
765
766 * emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
767 ".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
768 generated by mips gcc.
769
770 2006-06-12 Thiemo Seufer <ths@mips.com>
771
772 * emulparams/elf64bmip.sh, emulparams/elf64btsmip.sh (COMMONPAGESIZE):
773 Define.
774
775 2006-06-09 Alan Modra <amodra@bigpond.net.au>
776
777 * ldlang.h (lang_input_statement_type): Use bitfields for booleans.
778 * ldlang.c (struct out_section_hash_entry): Rename from
779 output_statement_hash_entry. Delete output_section_statement_type
780 entry. Add statement_union_type entry. Adjust all users.
781 (output_section_statement_table): Rename from output_statement_table.
782 Adjust all users.
783 (output_section_statement_newfunc): Rename from
784 output_statement_newfunc. Adjust all users.
785 (output_section_statement_table_init): Rename from
786 output_statement_table_init. Adjust all users.
787 (output_section_statement_table_free): Rename from
788 output_statement_table_free. Adjust all users.
789
790 2006-06-07 Joseph S. Myers <joseph@codesourcery.com>
791
792 * po/Make-in (pdf, ps): New dummy targets.
793
794 2006-06-07 Alan Modra <amodra@bigpond.net.au>
795
796 * ldlang.h (enum section_type): Delete dsect_section, copy_section,
797 info_section and overlay_section. Add noalloc_section.
798 * ldlang.c (lang_add_section): Adjust.
799 * ldgram.y (type): Adjust.
800
801 2006-06-06 Alan Modra <amodra@bigpond.net.au>
802
803 * ldlang.c (init_os): Whitespace.
804 (map_input_to_output_sections): Don't init_os for lang_input_section.
805 (print_all_symbols): Remove forward declaration. Convert to ISO C.
806
807 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
808
809 * po/Make-in (top_builddir): Define.
810
811 2006-06-05 Alan Modra <amodra@bigpond.net.au>
812
813 * ldexp.c (exp_get_abs_int): Make error message the same as
814 others emitted in this file.
815
816 2006-06-05 Alan Modra <amodra@bigpond.net.au>
817
818 * config.in: Regenerate.
819
820 2006-06-05 Alan Modra <amodra@bigpond.net.au>
821
822 * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
823
824 2006-06-03 Alan Modra <amodra@bigpond.net.au>
825
826 * emultempl/elf32.em (global_found): Make it a pointer.
827 (stat_needed, try_needed): Adjust.
828 (check_needed): Don't skip non-loaded as-needed entries. Only
829 consider entries with both filename and the_bfd non-null.
830 (after_open): Try loading non-loaded as-needed libs to satisfy
831 DT_NEEDED libs.
832
833 2006-06-02 Joseph S. Myers <joseph@codesourcery.com>
834
835 * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty.
836 * Makefile.in: Regenerate.
837
838 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
839
840 * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
841 and LIBINTL_DEP everywhere.
842 (INTLLIBS): Remove.
843 (INCLUDES): Use @INCINTL@.
844 * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
845 Remove local code for po/Makefile.
846 * Makefile.in, configure: Regenerated.
847
848 2006-05-30 H.J. Lu <hongjiu.lu@intel.com>
849
850 * emulparams/arcelf.sh (MAXPAGESIZE): Changed to
851 "CONSTANT (MAXPAGESIZE)".
852 * emulparams/armelf_nbsd.sh: Likewise.
853 * emulparams/armelf_vxworks.sh: Likewise.
854 * emulparams/armnto.sh: Likewise.
855 * emulparams/armsymbian.sh: Likewise.
856 * emulparams/crislinux.sh: Likewise.
857 * emulparams/elf32_i860.sh: Likewise.
858 * emulparams/elf32_i960.sh: Likewise.
859 * emulparams/elf32am33lin.sh: Likewise.
860 * emulparams/elf32bfinfd.sh: Likewise.
861 * emulparams/elf32bmipn32-defs.sh: Likewise.
862 * emulparams/elf32frvfd.sh: Likewise.
863 * emulparams/elf32i370.sh: Likewise.
864 * emulparams/elf32lppcnto.sh: Likewise.
865 * emulparams/elf32mcore.sh: Likewise.
866 * emulparams/elf32openrisc.sh: Likewise.
867 * emulparams/elf32ppcnto.sh: Likewise.
868 * emulparams/elf32ppcwindiss.sh: Likewise.
869 * emulparams/elf32vax.sh: Likewise.
870 * emulparams/elf32xc16x.sh: Likewise.
871 * emulparams/elf32xc16xl.sh: Likewise.
872 * emulparams/elf32xc16xs.sh: Likewise.
873 * emulparams/elf64_aix.sh: Likewise.
874 * emulparams/elf64hppa.sh: Likewise.
875 * emulparams/elf64mmix.sh: Likewise.
876 * emulparams/elf_i386_be.sh: Likewise.
877 * emulparams/elf_i386_chaos.sh: Likewise.
878 * emulparams/elf_i386_ldso.sh: Likewise.
879 * emulparams/hppa64linux.sh: Likewise.
880 * emulparams/hppalinux.sh: Likewise.
881 * emulparams/hppaobsd.sh: Likewise.
882 * emulparams/i386lynx.sh: Likewise.
883 * emulparams/i386moss.sh: Likewise.
884 * emulparams/i386nto.sh: Likewise.
885 * emulparams/i386nw.sh: Likewise.
886 * emulparams/m32relf_linux.sh: Likewise.
887 * emulparams/m68kpsos.sh: Likewise.
888 * emulparams/or32elf.sh: Likewise.
889 * emulparams/pjelf.sh: Likewise.
890 * emulparams/pjlelf.sh: Likewise.
891 * emulparams/ppclynx.sh: Likewise.
892 * emulparams/ppcnw.sh: Likewise.
893 * emulparams/shelf32_nbsd.sh : Likewise.
894 * emulparams/shelf_nbsd.sh: Likewise.
895 * emulparams/shelf_nto.sh: Likewise.
896 * emulparams/shlelf_nto.sh: Likewise.
897 * emulparams/xtensa-config.sh: Likewise.
898
899 * emulparams/armelf_linux.sh (MAXPAGESIZE): Changed to
900 "CONSTANT (MAXPAGESIZE)".
901 (COMMONPAGESIZE): Changed to "CONSTANT (COMMONPAGESIZE)".
902 * emulparams/elf32_sparc.sh: Likewise.
903 * emulparams/elf32bmip.sh: Likewise.
904 * emulparams/elf32ppccommon.sh: Likewise.
905 * emulparams/elf64_ia64.sh: Likewise.
906 * emulparams/elf64_s390.sh: Likewise.
907 * emulparams/elf64_sparc.sh: Likewise.
908 * emulparams/elf64alpha.sh: Likewise.
909 * emulparams/elf64ppc.sh: Likewise.
910 * emulparams/elf_i386.sh: Likewise.
911 * emulparams/elf_i386_vxworks.sh: Likewise.
912 * emulparams/elf_s390.sh: Likewise.
913 * emulparams/elf_x86_64.sh: Likewise.
914 * emulparams/shlelf32_linux.sh: Likewise.
915 * emulparams/shlelf_linux.sh: Likewise.
916
917 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Changed to
918 "CONSTANT (COMMONPAGESIZE)".
919 * emulparams/elf32btsmipn32.sh: Likewise.
920
921 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
922 "-z max-page-size=" and "-z common-page-size=".
923 (gld${EMULATION_NAME}_list_options): Likewise.
924
925 * ld.h (ld_config_type): Add maxpagesize and commonpagesize.
926
927 * ld.texinfo: Document "-z max-page-size=" and
928 "-z common-page-size=".
929
930 * ldexp.c (exp_print_token): Handle CONSTANT.
931 (fold_name): Likewise.
932 * ldgram.y: Likewise.
933 * ldlex.l: Likewise.
934
935 * ldmain.c (main): Initiliaze config.maxpagesize and
936 config.commonpagesize. Call bfd_emul_set_maxpagesize if
937 config.maxpagesize isn't 0. Call bfd_emul_set_commonpagesize if
938 config.commonpagesize config.maxpagesize isn't 0.
939
940 2006-05-30 Nick Clifton <nickc@redhat.com>
941
942 * po/es.po: Updated Spanish translation.
943
944 2006-05-25 H.J. Lu <hongjiu.lu@intel.com>
945
946 * emulparams/elf_x86_64.sh (MAXPAGESIZE): Updated to 0x200000.
947
948 2006-05-24 H.J. Lu <hongjiu.lu@intel.com>
949
950 PR ld/1485
951 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit
952 bfd. Support 64bit host for --enable-targets=all.
953 * configure: Regenerated.
954
955 2006-05-24 Nick Clifton <nickc@redhat.com>
956
957 * po/vi.po: Updated Vietnamese translation.
958
959 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de>
960
961 * configure.tgt: Add avr6 to emulation list.
962 * Makefile.am: Add eavr6.o and corresponding rule.
963 * Makefile.in: Regenerate.
964 * emulparams/avr6.sh: New file.
965 * emulparams/avrX.sh (TEMPLATE_NAME): Use elf32 instead of generic
966 for target option support.
967 (EXTRA_EM_FILE): Add reference to new em template file avrelf.
968 * scripttempl/avr.sc: Add ".trampolines" section.
969 * emultempl/avrelf.em: Add new file for target specific options.
970
971 2006-05-22 Nick Clifton <nickc@redhat.com>
972
973 * scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
974
975 2006-05-19 Alan Modra <amodra@bigpond.net.au>
976
977 * ldlang.c (lang_size_sections_1): Don't check mem regions for
978 os->ignored sections.
979
980 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
981
982 * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
983 before redoing one_lang_size_sections_pass.
984
985 2006-05-11 Carlos O'Donell <carlos@codesourcery.com>
986
987 * ld.texinfo: Rename "Index" to "LD Index"
988
989 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt>
990
991 * pe-dll.c (autofilter_symbollist): Add Dllmain,
992 DllMainCRTStartup, _DllMainCRTStartup and .text.
993 (autofilter_liblist): Add libcegcc.
994 (autofilter_symbolprefixlist): Add __imp_ and .idata$.
995 (generate_reloc): Do not skip sections without a SEC_LOAD flag,
996 they can still contain relocs that need processing.
997 Skip the .idata$6 section.
998 (jmp_arm_bytes): New array: Contains byte codes for an ARM jump.
999 (make_one): Use the new array.
1000 (make_import_fixup_entry): Use .idata$2 instead of .idata$3.
1001 * emultempl/pe.em (MajorSubsystemVersion): Set to 3 for armpe.
1002
1003 2006-05-05 Alan Modra <amodra@bigpond.net.au>
1004
1005 * ld.texinfo: Document PowerPC and PowerPC64 options.
1006 * gen-doc.texi: Enable.
1007
1008 2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1009
1010 * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty.
1011 (TEXI2POD): Use AM_MAKEINFOFLAGS.
1012 (configdoc.texi): Don't set top_srcdir.
1013 * ld.texinfo: Don't use top_srcdir.
1014 * aclocal.m4, Makefile.in: Regenerated.
1015
1016 2006-04-19 Alan Modra <amodra@bigpond.net.au>
1017
1018 * ldlang.c (wild): Tidy default_common_section loop.
1019 (print_input_section): Format.
1020
1021 * configure: Regenerate.
1022
1023 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1024
1025 * po/POTFILES.in: Regenerated.
1026
1027 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1028
1029 * config.in: Regenerated.
1030
1031 2006-04-14 David Heine <dlheine@tensilica.com>
1032 Bob Wilson <bob.wilson@acm.org>
1033
1034 * emultempl/xtensaelf.em (elf_xtensa_before_allocation): Call new
1035 function to strip inconsistent linkonce sections.
1036 (input_section_linked_worker, input_section_linked): New.
1037 (is_inconsistent_linkonce_section): New.
1038 (xtensa_strip_inconsistent_linkonce_sections): New.
1039
1040 2006-04-11 Diego Pettenò <flameeyes@gentoo.org>
1041
1042 * emultempl/elf32.em: Add support for elf-hints.h on FreeBSD
1043 and Dragonfly targets.
1044 * configure.in (AC_CHECK_HEADERS): Add elf-hints.h.
1045 * Makefile.am (HFILES): Add elf-hints-local.h.
1046 * elf-hints-local.h: New file.
1047 * Makefile.in: Regenerate.
1048 * configure: Regenerate.
1049
1050 2006-04-07 Bernhard Fischer <aldot@gcc.gnu.org>
1051
1052 * ld.texinfo: Fix typo in documentation of --check-sections.
1053
1054 2006-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1055
1056 * ldlang.c (load_symbols): Set as_needed and add_needed according
1057 to the corresponding script's fields while processing it.
1058
1059 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
1060
1061 * Makefile.am: Add install-html, install-html-am, and
1062 install-html-recursive targets.
1063 * Makefile.in: Regenerate.
1064 * configure.in: AC_SUBST datarootdir, docdir, htmldir.
1065 * configure: Regenerate.
1066 * po/Make-in: Add install-html target.
1067
1068 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
1069
1070 * emultempl/ia64elf.em: Set link_info.relax_pass to 2. Remove
1071 link_info.need_relax_finalize.
1072
1073 * ldlang.c (relax_sections): New.
1074 (lang_process): Use. Call relax_sections link_info.relax_pass
1075 times.
1076
1077 * ldmain.c (main): Set link_info.relax_pass to 1. Remove
1078 link_info.need_relax_finalize.
1079
1080 2006-04-05 Alan Modra <amodra@bigpond.net.au>
1081
1082 * Makefile.am (GENSCRIPTS): Pass prefix.
1083 * Makefile.in: Regenerate.
1084 * genscripts.sh: Adjust for extra parameter.
1085 * emultempl/elf32.em (parse_ld_so_conf): Return true iff file
1086 exists.
1087 (check_ld_so_conf): Use ${prefix}/etc/ld.so.conf if it exists.
1088 * NEWS: Update.
1089
1090 2006-04-05 Richard Sandiford <richard@codesourcery.com>
1091 Daniel Jacobowitz <dan@codesourcery.com>
1092
1093 * configure.tgt (sparc*-*-vxworks*): New stanza.
1094 * emulparams/elf32_sparc_vxworks.sh: New file.
1095 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
1096 (eelf32_sparc_vxworks.c): New rule.
1097 * Makefile.in: Regenerate.
1098
1099 2006-04-04 Eric Botcazou <ebotcazou@adacore.com>
1100
1101 * ldlang.c (lang_map): Print the list of discarded input sections.
1102 (print_input_section): Change parameter and print zero-sized sections.
1103 (print_statement): Adjust call to print_input_section.
1104
1105 2006-04-01 Danny Smith <dannysmith@users.sourceforge.net>
1106
1107 * deffilep.y (def_image_name): If LIBRARY or NAME statement
1108 specifies an empty string, retain the name specified on command
1109 line.
1110 * ld.texinfo: Document above.
1111
1112 2006-03-31 Jakub Jelinek <jakub@redhat.com>
1113
1114 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
1115 bfd_find_nearest_line succeeded for %C or %D, but filename
1116 is NULL, print section+offset at the end.
1117
1118 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
1119
1120 * emulparams/elf32bfinfd.sh: New file.
1121 * emultempl/bfin.em: Delete.
1122 * emulparams/bfin.sh: Lose reference to bfin.em.
1123 * Makefile.am (eelf32bfin.c): Likewise.
1124 (eelf32bfinfd.c): New.
1125 * Makefile.in: Regenerate.
1126 * configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
1127 targ_extra_emuls.
1128
1129 2006-03-22 Richard Sandiford <richard@codesourcery.com>
1130 Daniel Jacobowitz <dan@codesourcery.com>
1131 Phil Edwards <phil@codesourcery.com>
1132 Zack Weinberg <zack@codesourcery.com>
1133 Mark Mitchell <mark@codesourcery.com>
1134 Nathan Sidwell <nathan@codesourcery.com>
1135
1136 * configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
1137 separate VxWorks emulations.
1138 * emulparams/elf32ebmipvxworks.sh: New file.
1139 * emulparams/elf32elmipvxworks.sh: New file.
1140 * Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
1141 eelf32elmipvxworks.o.
1142 (eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
1143 * Makefile.in: Regenerate.
1144
1145 2006-03-16 Alan Modra <amodra@bigpond.net.au>
1146
1147 PR 2434
1148 * ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
1149 * ldlang.c (output_statement_table_init, lang_init): Likewise.
1150 * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
1151 (undefined_symbol): Likewise.
1152
1153 2006-03-07 Richard Sandiford <richard@codesourcery.com>
1154 Daniel Jacobowitz <dan@codesourcery.com>
1155 Zack Weinberg <zack@codesourcery.com>
1156 Nathan Sidwell <nathan@codesourcery.com>
1157 Paul Brook <paul@codesourcery.com>
1158 Ricardo Anguiano <anguiano@codesourcery.com>
1159 Phil Edwards <phil@codesourcery.com>
1160
1161 * emulparams/armelf_vxworks.sh: Include vxworks.sh.
1162 (MAXPAGESIZE): Define.
1163 * emulparams/vxworks.sh: Undefine EMBEDDED.
1164 * Makefile.am (earmelf_vxworks.c): Depend on vxworks.sh and vxworks.em.
1165 * Makefile.in: Regenerate.
1166
1167 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
1168
1169 * scripttempl/avr.sc: Add *(.jumptables) *(.lowtext) sections.
1170 Add KEEP() directives.
1171 Add *(.data*) *(.rodata) and *(.rodata*) and *(.bss*) to .data and
1172 .bss output sections.
1173
1174 2006-03-03 Richard Sandiford <richard@codesourcery.com>
1175
1176 * emulparams/vxworks.sh (VXWORKS_BASE_EM_FILE): New variable.
1177 (EXTRA_EM_FILE): Define.
1178 * emultempl/vxworks.em: New file.
1179 * ld.texinfo (--force-dynamic): Document.
1180 * Makefile.am (eelf32ppcvxworks.cm, eelf_i386_vxworks.c): Depend
1181 on vxworks.em.
1182 * Makefile.in: Regenerate.
1183
1184 2006-03-02 Richard Sandiford <richard@codesourcery.com>
1185
1186 * emulparams/elf32ppccommon.sh: New file, extracted from...
1187 * emulparams/elf32ppc.sh: ...here.
1188 * emulparams/elf32ppcvxworks.sh: Include elf32ppccommon.sh
1189 instead of elf32ppc.sh.
1190 (BSS_PLT): Remove override.
1191 * Makefile.am (eelf32lppc.c): Depend on elf32ppccommons.h.
1192 (eelf32lppcnto.c, eelf32lppcsim.c, eelf32ppcnto.c): Likewise.
1193 (eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppcsimm): Likewise.
1194 (eelf32ppclinux.c): Likewise.
1195 (eelf32ppcvxworks.c): Likewise. Add missing vxworks.sh dependency.
1196 * Makefile.in: Regenerate.
1197
1198 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
1199
1200 * Makefile.am: Add html target.
1201 * Makefile.in: Regenerate.
1202 * po/Make-in: Add html target.
1203
1204 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
1205 Anil Paranjape <anilp1@kpitcummins.com>
1206 Shilin Shakti <shilins@kpitcummins.com>
1207
1208 * scripttemp/elf32xc16x.sc: Default linker script for tiny model.
1209 * scripttemp/elf32xc16xl.sc: Default linker script for large model.
1210 * scripttemp/elf32xc16xs.sc: Default linker script for small model.
1211 * emulparams/elf32xc16x.sh: Emulation script for tiny model.
1212 * emulparams/elf32xc16xl.sh: Emulation script for large model.
1213 * emulparams/elf32xc16xs.sh: Emulation script for small model.
1214 * Makefile.am: Add entry to make xc16x target.
1215 * Makefile.in: Regenerate.
1216 * configure.tgt: Specify default and other emulation parameters
1217 for xc16x.
1218 * NEWS: Announce the support for the new target.
1219
1220 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1221
1222 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1223 Use the traditional target.
1224
1225 2006-02-13 Joseph S. Myers <joseph@codesourcery.com>
1226
1227 * configure.tgt (arm*b-*-linux-gnueabi): Change to
1228 arm*b-*-linux-*eabi.
1229 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1230
1231 2006-02-08 H.J. Lu <hongjiu.lu@intel.com>
1232
1233 PR ld/2290
1234 * NEWS: Updated for the Linux linker search order change.
1235
1236 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1237 gld${EMULATION_NAME}_check_ld_so_conf before checking default
1238 search directories for DT_NEEDED entries.
1239
1240 2006-02-07 Paul Brook <paul@codesourcery.com>
1241
1242 * emultempl/armelf.em: Include elf/arm.h.
1243 (arm_elf_finish): Set low address bit if enty point is a Thumb
1244 function.
1245
1246 2006-02-01 Danny Smith <dannysmith@users.sourceforge.net>
1247
1248 * deffilep.y (def_image_name): If the image name does not have
1249 a suffix, append the default.
1250 * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
1251
1252 2006-01-31 Danny Smith dannysmith@users.sourceforge.net
1253
1254 * NEWS: Mention support for forward exports in PE-COFF dll's.
1255 * ld.texinfo: Expand documentation of EXPORT statements in
1256 PE-COFF .def files.
1257
1258 2006-01-31 Filip Navara <navaraf@reactos.com>
1259
1260 * deffile.h (struct def_file_export): Add field flag_forward.
1261 * pe-dll.c (process_def_file): Check for forward exports.
1262 (generate_edata): Generate forward export symbols.
1263 (fill_edata): Emit them.
1264
1265 * pe-dll.c (process_def_file): Don't crash on malformed
1266 fastcall symbol names in .def file.
1267
1268 2006-01-30 Nick Clifton <nickc@redhat.com>
1269
1270 * po/vi.po: Updated Vietnamese translation.
1271
1272 2006-01-27 Yitzchak Scott-Thoennes <sthoenna@efn.org>
1273
1274 * pe-dll.c (pe_dll_generate_implib): Issue "Creating library
1275 file:" as informational message, not a warning.
1276
1277 2006-01-18 Roger Sayle <roger@eyesopen.com>
1278
1279 * emultempl/irix.em: Use lbasename instead of basename.
1280
1281 2006-01-16 Nick Clifton <nickc@redhat.com>
1282
1283 * po/zh_CN.po: New Chinese (simplified) translation.
1284 * configure.in (ALL_LINGUAS): Add "zh_CH".
1285 * configure: Regenerate.
1286
1287 2006-01-16 Bernhard Fischer <aldot@gcc.gnu.org>
1288
1289 * ld.texinfo (Options): Fix typo.
1290
1291 For older changes see ChangeLog-2005
1292 \f
1293 Local Variables:
1294 mode: change-log
1295 left-margin: 8
1296 fill-column: 74
1297 version-control: never
1298 End: