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