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