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