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