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