2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
[binutils-gdb.git] / ld / ChangeLog
1 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR 992
4 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
5 section for etree_assign, etree_provide and etree_provided.
6 Call fold_binary on etree_binary.
7
8 * ldlang.c (lang_mark_used_section_1): Handle load base.
9
10 2005-06-03 Alan Modra <amodra@bigpond.net.au>
11
12 * ldmain.c (link_callbacks): Add einfo.
13 (add_archive_element): Use passed info, not link_info.
14 (constructor_callback): Likewise.
15 (reloc_overflow): Don't handle null bfd specially.
16 (reloc_dangerous, unattached_reloc): Likewise.
17 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
18 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
19
20 2005-06-02 Alan Modra <amodra@bigpond.net.au>
21
22 * ldexp.h (etree_value_type): Use "asection *" in place of
23 "struct lang_output_section_statement_struct *" for "section".
24 (exp_fold_tree): Likewise.
25 (exp_mark_used_section): Likewise.
26 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
27 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
28 exp_mark_used_section): Likewise for "current_section" param.
29 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
30 exp_get_abs_int): Adjust for above changes.
31 * ldlang.c (lang_mark_used_section_1, print_assignment,
32 lang_size_sections_1, lang_do_assignments_1): Likewise.
33 * ldexp.c (fold_name): Init entire result struct.
34
35 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
36
37 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
38
39 2005-05-31 Zack Weinberg <zack@codesourcery.com>
40
41 * ldlang.c (entry_symbol_default): New file-scope global.
42 (lang_finish): Use it, not a hardwired "start".
43 (lang_default_entry): Set it.
44 * ldlang.h: Declare lang_default_entry.
45 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
46 not lang_add_entry, to override default entry point symbol.
47
48 2005-05-29 Richard Henderson <rth@redhat.com>
49
50 * emulparams/elf64alpha.sh (PLT): New.
51 (TEXT_PLT): New.
52 * emultempl/alphaelf.em (disable_relaxation): New.
53 (limit_32bit): Rename from elf64alpha_32bit; update all users.
54 (elf64_alpha_use_secureplt): Declare.
55 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
56 (alpha_after_open): New.
57 (alpha_before_allocation): New.
58 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
59 (PARSE_AND_LIST_LONGOPTS): Include them.
60 (PARSE_AND_LIST_OPTIONS): Likewise.
61 (PARSE_AND_LIST_ARGS_CASES): Likewise.
62 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
63 * scripttempl/elf.sc (TEXT_PLT): New.
64 (PLT): Use it.
65
66 2005-05-27 Andreas Schwab <schwab@suse.de>
67
68 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
69
70 2005-05-24 Alan Modra <amodra@bigpond.net.au>
71
72 * emultempl/ppc32elf.em (after_allocation): Don't call
73 ppc_elf_set_sdata_syms when relocatable.
74
75 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
76
77 * Makefile.am (ld.1): Revert the last 2 changes.
78 (info-recursive): Depend on ld.1.
79 * Makefile.in: Regenerated.
80
81 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
82
83 * Makefile.am (ld.1): Depend on "info" instead of
84 "configdoc.texi ldver.texi".
85 * Makefile.in: Regenerated.
86
87 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
88
89 * Makefile.am (ld.1): Depend on "info".
90 * Makefile.in: Regenerated.
91
92 2005-05-19 Zack Weinberg <zack@codesourcery.com>
93
94 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
95 * Makefile.in: Regenerate.
96
97 2005-05-17 Zack Weinberg <zack@codesourcery.com>
98
99 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
100
101 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
102
103 * Makefile.am (ldver.texi): Don't use $<.
104 * Makefile.in: Regenerated.
105
106 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
107
108 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
109 $(srcdir) before $(BFDDIR)/doc.
110 * Makefile.in: Regenerated.
111
112 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR 797
115 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
116 take take a bfd_boolean, mark_used. Ignore assert failure if
117 mark_used is TRUE.
118 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
119 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
120 mark_used and pass down.
121 (fold_unary): Likewise.
122 (fold_binary): Likewise.
123 (fold_trinary): Likewise.
124 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
125 (exp_trinop): Likewise.
126 (exp_unop): Likewise.
127 (exp_nameop): Likewise.
128 (exp_get_vma): Likewise.
129 (exp_get_fill): Likewise.
130 (exp_get_abs_int): Likewise.
131 (fold_name): Likewise. Set SEC_KEEP in output section flags.
132 (exp_mark_used_section): New.
133
134 * ldexp.h (exp_mark_used_section): New.
135
136 * ldlang.c (lang_output_section_statement_lookup_1): Set the
137 ignored field to FALSE.
138 (lang_mark_used_section_1): New.
139 (lang_mark_used_section): Call lang_mark_used_section_1.
140 (strip_excluded_output_sections): Call lang_mark_used_section
141 and check for unused sections.
142 (lang_size_sections_1): Skip an output section if it should
143 be ignored.
144 (lang_do_assignments_1): Likewise.
145 (lang_process): Don't call lang_mark_used_section here.
146
147 * ldlang.h (lang_output_section_statement_type): Change
148 all_input_readonly to bitfield. Add ignored.
149
150 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
151 Peter S. Mazinger" <ps.m@gmx.net>
152
153 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
154 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
155
156 2005-05-17 Julian Brown <julian@codesourcery.com>
157
158 * ldlang.c (print_assignment): Do not rely upon a valid result
159 having a section associated with it.
160
161 2005-05-17 Nick Clifton <nickc@redhat.com>
162
163 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
164 see if the same value is being used on the rhs as on the lhs.
165 (print_assignment): Call scan_for_self_assignment and if it
166 returns true, do no display the result of the computation but
167 instead just the final value of the symbol on the lhs.
168 * ld.texinfo: Document this behaviour and provide an example of
169 when it will happen.
170
171 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
172
173 * Makefile.am (AM_MAKEINFOFLAGS): Define.
174 (TEXI2DVI): Define.
175 (ldver.texi): Depend on distributed files instead of built files.
176 (ld.info): Include $(srcdir) in the rule target. Remove actions.
177 (ld.dvi): Remove actions.
178 (MAINTAINERCLEANFILES): Add configdoc.texi.
179 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
180 (install-data-local): Renamed from install.
181 (Makefile): Remove explicit dependency.
182 * acinclude.m4: Remove obsolete code.
183 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
184 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
185
186 2005-05-11 Bob Wilson <bob.wilson@acm.org>
187
188 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
189 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
190
191 2005-05-11 Alan Modra <amodra@bigpond.net.au>
192
193 * ldgram.y: Add SPECIAL token.
194 (sect_constraint): Handle SPECIAL.
195 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
196 (map_input_to_output_sections): Likewise.
197 * ldlex.l (SPECIAL): Define.
198 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
199 GOT, PLT, GOTPLT): Define.
200 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
201 (ppc_after_open): New function.
202 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
203 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
204 (PARSE_AND_LIST_OPTIONS): Document them.
205 (PARSE_AND_LIST_ARGS_CASES): Handle them.
206 (LDEMUL_AFTER_OPEN): Define.
207 * scripttempl/elf.sc (PLT): Don't override existing define.
208 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
209 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
210
211 2005-05-10 Alan Modra <amodra@bigpond.net.au>
212
213 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
214 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
215 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
216 DATA_SEGMENT_RELRO_END in script.
217
218 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
219
220 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
221 Don't use a removed section.
222
223 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
224
225 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
226 is defined in the ABS section.
227
228 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
229
230 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
231 Put back !link_info.relocatable.
232
233 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
234
235 PR 878
236 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
237 Just check link_info.executable.
238
239 2005-05-06 Nick Clifton <nickc@redhat.com>
240
241 * Update the address and phone number of the FSF organization in
242 the GPL notices in the following files:
243 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
244 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
245 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
246 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
247 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
248 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
249 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
250 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
251 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
252 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
253 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
254 emultempl/m68kcoff.em, emultempl/m68kelf.em,
255 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
256 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
257 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
258 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
259 emultempl/vanilla.em, emultempl/xtensaelf.em
260
261 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
262
263 * scripttempl/elf.sc: Document the usage of __bss_start.
264
265 2005-05-05 Paul Brook <paul@codesourcery.com>
266
267 * Makefile.am: Add eelf_i386_vxworks.
268 * Makefile.in: Regenerate.
269 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
270 * emulparams/elf_i386_vxworks.sh: New file.
271 * emulparams/vxworks.sh: New file.
272 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
273
274 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
275
276 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
277 Call _bfd_elf_provide_section_bound_symbols.
278
279 2005-05-04 Alan Modra <amodra@bigpond.net.au>
280
281 * ldemul.c: Include bfdlink.h.
282 (ldemul_before_allocation): Assume before_allocation is non-zero.
283 (before_allocation_default): Call strip_excluded_output_sections.
284 * ldlang.c (stripped_excluded_sections): New variable.
285 (lang_add_section): Build input section list for each output
286 section, attached via map_head and map_tail pointers.
287 (strip_excluded_output_sections): Make global. Traverse the
288 input section lists to find which output sections can go. Clear
289 link_order pointers and set stripped_excluded_sections.
290 (lang_process): Call strip_excluded_output_sections.
291 * ldlang.h (strip_excluded_output_sections): Declare.
292 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
293 * emultempl/aix.em (before_allocation): Call
294 strip_excluded_output_sections.
295 * emultempl/armcoff.em (before_allocation): Likewise.
296 * emultempl/beos.em (before_allocation): Likewise.
297 * emultempl/linux.em (before_allocation): Likewise.
298 * emultempl/pe.em (before_allocation): Likewise.
299 * emultempl/sunos.em (before_allocation): Likewise.
300 * emultempl/elf32.em (before_allocation): Likewise. Call
301 bfd_elf_size_dynsym_hash_dynstr too.
302 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
303 (ld_lnk960): Use before_allocation_default.
304
305 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
306
307 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
308 Updated for bfd_section_list_remove change.
309 * ldlang.c (lang_insert_orphan): Likewise.
310 (strip_excluded_output_sections): Likewise.
311 (sort_sections_by_lma): New.
312 (lang_check_section_addresses): Sort the sections before
313 checking addresses.
314
315 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
316
317 * configure.tgt: Add h8300*-*-rtemscoff.
318 Switch h8300*-*-rtems* to elf.
319
320 2005-04-29 Ben Elliston <bje@au.ibm.com>
321
322 * ldgram.y (lang_memory_region_type): Make static.
323 (ldgram_want_filename): Likewise.
324 * ldemul.c (ld_emulation): Make static.
325 * ldfile.h (ldfile_find_command_file): Remove extern.
326 * ldfile.c (ldfile_find_command_file): Make static.
327 * ldlang.h (unique_section_list): Remove extern declaration.
328 * ldlang.c (unique_section_list): Make static.
329 * mri.h (symbol_truncate): Remove extern declaration.
330 * mri.c (symbol_truncate): Make static.
331 (order, only_load, address, alias): Likewise.
332 (alignment, subalignment): Likewise.
333
334 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
335
336 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
337 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
338 last SEC_ALLOC section if such a section doesn't exist.
339
340 2005-04-24 Mark Kettenis <kettenis@gnu.org>
341
342 * configure.host: Add *-*-openbsd support.
343
344 2005-04-15 Julian Brown <julian@codesourcery.com>
345
346 * ld.texinfo: Document --use-blx.
347 * emultempl/armelf.em (use_blx): New variable.
348 (arm_elf_create_output_section_statements): Communicate value of
349 use_blx to bfd.
350 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
351 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
352 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
353
354 2005-04-14 Alan Modra <amodra@bigpond.net.au>
355
356 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
357 * configure.in: Include ../bfd/warning.m4 contents.
358 * Makefile.in: Regenerate.
359 * configure: Regenerate.
360
361 2005-04-12 Alan Modra <amodra@bigpond.net.au>
362
363 * Makefile.am: Run "make dep-am".
364 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
365 * Makefile.in: Regenerate.
366 * config.in: Regenerate.
367
368 2005-04-11 Alan Modra <amodra@bigpond.net.au>
369
370 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
371 as_needed libs that were not needed.
372 (gld${EMULATION_NAME}_check_needed): Likewise.
373
374 2005-04-07 Nick Clifton <nickc@redhat.com>
375
376 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
377 ldfile.h can use the lang_input_statement type.
378
379 2005-04-06 Jakub Jelinek <jakub@redhat.com>
380
381 * ldlang.c: Formatting.
382 (walk_wild_consider_section): Remember return value from wildcardp.
383 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
384 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
385
386 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
387
388 * ld.h (lean_section_userdata_type): Remove.
389 (fat_section_userdata_type): Remove file field.
390 (SECTION_USERDATA_SIZE): Remove.
391 * ldlang.c (init_os): Eliminate initialization of unused
392 lean_section_userdata_type.
393
394 * ldlang.h (callback_t, walk_wild_section_handler_t): New
395 typedefs.
396 (struct lang_wild_statement_struct): Add walk_wild_section_handler
397 and handler_data fields.
398 * ldlang.c (callback_t): Removed.
399 (walk_wild_consider_section, walk_wild_section_general,
400 section_iterator_callback, find_section, is_simple_wild,
401 match_simple_wild, walk_wild_section_specs1_wild0,
402 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
403 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
404 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
405 functions.
406 (lang_add_wild): Call analyze_walk_wild_section_handler.
407 (walk_wild_section): Renamed to walk_wild_section_general and
408 created a wrapper function.
409 (section_iterator_callback_data): New typedef.
410
411 2005-04-04 Nick Clifton <nickc@redhat.com>
412
413 * configure.in: Add a check for <unistd.h> providing a prototype
414 for getopt() which is compatible with the one in
415 include/getopt.h. If so then define HAVE_DECL_GETOPT.
416 * configure: Regenerate.
417 * config.in (HAVE_DECL_GETOPT): Add.
418 * ldemul.c: Include config.h
419 * lexsup.c: Likewise.
420 * emultempl/elf32.sc: Likewise.
421
422 2005-03-29 Alan Modra <amodra@bigpond.net.au>
423
424 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
425 New function, extracted from static void gld${EMULATION_NAME}_finish.
426 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
427 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
428 * emultempl/ppc64elf.em: Revert last change.
429 (ppc_layout_sections_again): Use
430 gld${EMULATION_NAME}_layout_sections_again.
431 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
432 gld${EMULATION_NAME}_strip_empty_sections and
433 gld${EMULATION_NAME}_provide_init_fini_syms.
434 * emultempl/hppaelf.em: Similarly.
435
436 2005-03-29 Alan Modra <amodra@bigpond.net.au>
437
438 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
439 (ppc_finish): Don't call bfd_elf_discard_info.
440 * emultempl/hppaelf.em: Similarly.
441
442 2005-03-24 Nick Clifton <nickc@redhat.com>
443
444 * po/fr.po: Updated French translation.
445
446 2005-03-23 Mike Frysinger <vapier@gentoo.org>
447 Nick Clifton <nickc@redhat.com>
448
449 * configure.host: Accept any C library to accompany a GNU Linux
450 implementation, not just the GNU C library.
451 * configure.tgt: Likewise.
452 * emultempl/elf32.em: Likewise.
453
454 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
455
456 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
457 (gld${EMULATION_NAME}_finish): Call
458 gld${EMULATION_NAME}_provide_bound_symbols to provide
459 __preinit_array_start, __preinit_array_end, __init_array_start,
460 __init_array_end, __fini_array_start and __fini_array_end.
461
462 * scripttempl/elf.sc: Don't provide __preinit_array_start,
463 __preinit_array_end, __init_array_start, __init_array_end,
464 __fini_array_start nor __fini_array_end.
465
466 2005-03-23 Alan Modra <amodra@bigpond.net.au>
467
468 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
469 SEC_EXCLUDE on .gnu.warning sections.
470
471 2005-03-22 Alan Modra <amodra@bigpond.net.au>
472
473 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
474
475 2005-03-21 Alan Modra <amodra@bigpond.net.au>
476
477 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
478 function.
479 (LDEMUL_AFTER_ALLOCATION): Define.
480
481 2005-03-21 Alan Modra <amodra@bigpond.net.au>
482
483 * emultempl/ppc64elf.em (ppc_finish): Rename from
484 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
485 (LDEMUL_FINISH): Update.
486 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
487 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
488
489 2005-03-18 Julian Brown <julian@codesourcery.com>
490
491 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
492 .rel.fini_array.
493 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
494 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
495
496 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
497
498 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
499 bfd_section when removing unused empty output sections for
500 non-relocatable link.
501
502 2005-03-19 Alan Modra <amodra@bigpond.net.au>
503
504 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
505 traversing the bfd section list to find pointer to new section.
506
507 2005-03-18 Alan Modra <amodra@bigpond.net.au>
508
509 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
510 input sections into .sdata and .sbss output respectively.
511
512 2005-03-16 David Heine <dlheine@tensilica.com>
513 Bob Wilson <bob.wilson@acm.org>
514
515 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
516 (lang_check_section_addresses): Ignore zero size sections here.
517
518 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
519
520 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
521 unused empty output sections for non-relocatable link.
522
523 * ld.h (args_type): Remove gc_sections.
524
525 * ldlang.c (lang_mark_used_section): New.
526 (lang_gc_sections): Use link_info.gc_sections instead of
527 command_line.gc_sections.
528 * ldmain.c (main): Likewise.
529 * lexsup.c (parse_args): Likewise.
530 * ldlang.c (lang_process): Call lang_mark_used_section.
531
532 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
533
534 2005-03-16 Nick Clifton <nickc@redhat.com>
535 Ben Elliston <bje@au.ibm.com>
536
537 * configure.in (werror): New switch: Add -Werror to the
538 compiler command line. Enabled by default. Disable via
539 --disable-werror.
540 * configure: Regenerate.
541
542 2005-03-16 Alan Modra <amodra@bigpond.net.au>
543
544 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
545 (OTHER_RELRO_SECTIONS): Set this instead.
546
547 2005-03-15 Nick Clifton <nickc@redhat.com>
548
549 * NEWS: Add cutoff for changes in 2.16 release.
550
551 2005-03-15 Mikkel Krautz <krautz@gmail.com>
552
553 * configure.tgt (x86_64-elf): Add target.
554
555 2005-03-15 Alan Modra <amodra@bigpond.net.au>
556
557 * po/es.po: Commit new Spanish translation.
558
559 2005-03-14 Alan Modra <amodra@bigpond.net.au>
560
561 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
562 Tidy etree_assert case.
563
564 2005-03-14 Alan Modra <amodra@bigpond.net.au>
565
566 * po/tr.po: Commit new Turkish translation.
567
568 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
569
570 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
571 * Makefile.in: Regenerated.
572 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
573
574 2005-03-07 Nick Clifton <nickc@redhat.com>
575
576 * po/fr.po: Updated translation.
577
578 2005-03-05 Alan Modra <amodra@bigpond.net.au>
579
580 * po/ld.pot: Regenerate.
581
582 2005-03-02 Jan Beulich <jbeulich@novell.com>
583
584 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
585 * pe-dll.c (pe_dll_generate_implib): Likewise.
586
587 2005-02-24 Ben Elliston <bje@au.ibm.com>
588
589 * ldfile.c: Remove GNU960 conditional code.
590 * emultempl/gld960.em: Likewise.
591 * emultempl/gld960c.em: Likewise.
592 * emultempl/lnk960.em: Likewise.
593
594 2005-02-24 Nick Clifton <nickc@redhat.com>
595
596 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
597 empty string from calls to concat.
598
599 2005-02-23 Nick Clifton <nickc@redhat.com>
600
601 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
602 arguments passed to concat() with a NULL.
603
604 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
605 define types needed by ldfile.h
606
607 2005-02-23 Alan Modra <amodra@bigpond.net.au>
608
609 * pe-dll.c: Warning fixes.
610 * emultempl/sunos.em: Likewise.
611
612 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
613
614 * ldlang.c (section_already_linked): Don't call
615 bfd_section_already_linked for dynamic objects.
616
617 2005-02-22 Alan Modra <amodra@bigpond.net.au>
618
619 * ldexp.c: Warning fixes.
620 * ldwrite.c: Likewise.
621 * emultempl/elf32.em: Likewise.
622
623 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
624
625 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
626 tic54x input only.
627 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
628 and ECOFF output only.
629
630 2005-02-21 Alan Modra <amodra@bigpond.net.au>
631
632 * config.in: Regenerate.
633 * configure: Regenerate.
634
635 2005-02-17 Zack Weinberg <zack@codesourcery.com>
636
637 * ldexp.c (assigning_to_dot): New global flag.
638 (fold_name): If assigning_to_dot is true, object immediately to
639 an undefined symbol.
640 (exp_fold_tree): Set and clear assigning_to_dot around the
641 recursive call to exp_fold_tree to process the right-hand side
642 of an assignment to the location counter.
643
644 2005-02-17 Paul Brook <paul@codesourcery.com>
645
646 * scripttempl/armbpabi.sc: Add dummy name to version block.
647
648 2005-02-17 Alan Modra <amodra@bigpond.net.au>
649
650 * ldexp.c (new_abs): Init new.str.
651
652 2005-02-15 Mark Mitchell <mark@codesourcery.com>
653
654 * configure.in (AC_CHECK_FUNCS): Add glob.
655 * configure: Regenerated.
656 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
657 not defined.
658 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
659 if HAVE_GLOB is not defined.
660
661 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
662
663 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
664 lib_path if NATIVE is yes.
665
666 2005-02-16 Alan Modra <amodra@bigpond.net.au>
667
668 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
669 an error creating fake bfd fatal.
670 (ppc_before_allocation): Continue on after errors.
671 (gld${EMULATION_NAME}_finish): Likewise.
672
673 2005-02-15 Nick Clifton <nickc@redhat.com>
674
675 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
676 not declared. It is not used and its presence causes a compile
677 time warning.
678
679 2005-02-11 Zack Weinberg <zack@codesourcery.com>
680
681 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
682 If st.st_ino is zero, do not treat the library as a duplicate.
683
684 2005-02-10 Jakub Jelinek <jakub@redhat.com>
685
686 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
687 Set BFD_LINKER_CREATED on the stubs bfd.
688 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
689 Likewise.
690
691 2005-02-08 Mark Mitchell <mark@codesourcery.com>
692
693 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
694 local.
695 (Image$$ER_RO$$Base): Define whenever RELOCATING.
696 (Image$$ER_RO$$Limit): Likewise.
697 (SHT$$INIT_ARRAY$$Base): Likewise.
698 (SHT$$INIT_ARRAY$$Limit): Likeise.
699
700 2005-02-10 Ben Elliston <bje@au.ibm.com>
701
702 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
703
704 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
705
706 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
707 to include o32 and n64 emulations.
708 (mips64*-*-linux-gnu*): Likewise.
709
710 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
711
712 * ldmain.c (warning_callback, warning_find_reloc): Prepend
713 "warning: " to warning messages.
714
715 2005-02-04 Alan Modra <amodra@bigpond.net.au>
716
717 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
718 look up symbol for etree_provide here.
719
720 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
721
722 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
723
724 2005-02-01 Edward Welbourne <eddy@opera.com>
725 Nick Clifton <nickc@redhat.com>
726
727 * ld.texinfo (Source Code Reference): New node describing how to
728 access linker script defined variables from source code.
729
730 2005-02-01 Alan Modra <amodra@bigpond.net.au>
731
732 * ld.texinfo: Clarify --as-needed operation.
733
734 2005-01-31 Andrew Cagney <cagney@gnu.org>
735
736 * configure: Regenerate to track ../gettext.m4.
737
738 2005-01-31 Nick Clifton <nickc@redhat.com>
739
740 * ldver.c (ldversion): Bump reported copyright date to 2005.
741
742 2005-01-31 Nick Clifton <nickc@redhat.com>
743
744 * configure.tgt: Remove obsolete targets m68k-lynxos and
745 sparc-lynxos.
746
747 2005-01-28 Julian Brown <julian@codesourcery.com>
748
749 * emultempl/armelf.em (fix_v4bx): New variable.
750 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
751 value to bfd.
752 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
753 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
754 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
755 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
756 * NEWS: Mention --fix-v4bx.
757 * ld.texinfo: Document --fix-v4bx.
758
759 2005-01-25 Mark Mitchell <mark@codesourcery.com>
760
761 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
762 as to include .ARM.exidx$${Base,Limit}.
763 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
764 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
765 Put .init_array, .fini_array, etc. into the read-only data
766 segment.
767
768 2005-01-25 Alan Modra <amodra@bigpond.net.au>
769
770 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
771 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
772 only needed by an as-needed lib that didn't get linked.
773
774 2005-01-23 Alan Modra <amodra@bigpond.net.au>
775
776 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
777 __DTOR_LIST__ description.
778
779 2005-01-23 Alan Modra <amodra@bigpond.net.au>
780
781 * ld.texinfo (Location Counter <dot outside sections>): Document
782 effects of orphan section placement, and ". = ." workaround.
783 * Makefile.in: Regenerate.
784
785 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
786
787 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
788 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
789
790 2005-01-21 Jakub Jelinek <jakub@redhat.com>
791
792 * ldgram.y (AS_NEEDED): New token.
793 (input_list): Handle AS_NEEDED ( input_list ).
794 * ldlex.l (AS_NEEDED): Add.
795 * ld.texinfo: Document AS_NEEDED ().
796 * NEWS: Mention AS_NEEDED ().
797
798 2005-01-21 Ben Elliston <bje@au.ibm.com>
799
800 * ldlang.c (lang_reasonable_defaults): Remove.
801 (lang_process): Don't call lang_reasonable_defaults.
802
803 * ldexp.c (exp_assop): Remove #if 0'd code.
804 (exp_print_tree): Likewise.
805 * ldlang.c (lang_memory_region_lookup): Likewise.
806 (open_output): Likewise.
807 (lang_do_assignments_1): Likewise.
808 (lang_place_orphans): Likewise.
809 (lang_enter_output_section_statement): Likewise.
810 (lang_reasonable_defaults): Likewise.
811 * ldlang.h (struct lang_input_statement_struct): Likewise.
812 * mri.c (mri_draw_tree): Likewise.
813 (mri_load): Likewise.
814 * pe-dll.c (generate_reloc): Likewise.
815 (make_import_fixup_entry): Likewise.
816 (pe_as16): Likewise.
817 * emultempl/beos.em (set_pe_subsystem): Likewise.
818 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
819 * emultempl/pe.em: Likewise.
820 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
821
822 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
823
824 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
825 (earmelfb_linux_eabi.c): New target.
826 * Makefile.in: Regenerated.
827 * configure.tgt (arm*b-*-linux-gnueabi): New target.
828 * emulparams/armelfb_linux_eabi.sh: New file.
829
830 2005-01-20 Nick Hudson <skrll@netbsd.org>
831
832 PR ld/676
833 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
834 Handle bfd_elf32_hppa_nbsd_vec.
835
836 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
837
838 * ldmain.h (ld_sysroot): Change type to a constant string.
839 * ldmain.c (ld_sysroot): Likewise.
840 (get_relative_sysroot, get_sysroot): New functions, adding command-line
841 support for changing the sysroot.
842 (main): Call the new functions.
843 * lexsup.c (OPTION_SYSROOT): New.
844 (ld_options): Add --sysroot.
845 (parse_args): Add a dummy handler for it.
846 * ld.texinfo (--sysroot): Document.
847 * NEWS: Mention the new --sysroot option.
848
849 2005-01-18 Alan Modra <amodra@bigpond.net.au>
850
851 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
852 (lang_place_orphans): Don't abort on just_syms_flag, instead call
853 bfd_link_just_syms.
854
855 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
856
857 * defilep.y (def_name, def_library): Combine into...
858 (def_image_name): New function. Strip name to basename,
859 with warning.
860
861 2005-01-12 Mark Kettenis <kettenis@gnu.org>
862
863 * configure.in: Be sure to invoke config.sub using the shell.
864 * configure: Regenerate.
865
866 2005-01-11 Alan Modra <amodra@bigpond.net.au>
867
868 * configure.host: Correct sed patterns for last change.
869
870 2005-01-10 Nick Clifton <nickc@redhat.com>
871
872 PR binutils/609
873 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
874 to determine whether config.make_executable should be set to FALSE in
875 conjunction with config.fatal_warnings.
876 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
877 (einfo): Pass TRUE as the extra argument.
878
879 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
880
881 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
882 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
883 (ia64-*-aix): Delete - this target is obsolete, and would be
884 broken by this patch.
885
886 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
887
888 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
889 (sparc64-sun-solaris2*): New host.
890
891 2005-01-06 Paul Brook <paul@codesourcery.com>
892
893 * Makefie.am: Add earmelf_vxworks.
894 * Makefile.in: Regenerate.
895 * configure.tgt: Make arm-*-vxworks a separate case.
896 * emulparams/armelf_vxworks.sh: New function.
897
898 2005-01-06 Alan Modra <amodra@bigpond.net.au>
899
900 * emultempl/ppc64elf.em (no_multi_toc): New var.
901 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
902 (OPTION_NO_MULTI_TOC): Define.
903 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
904 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
905
906 2005-01-05 Nick Clifton <nickc@redhat.com>
907
908 PR binutils/614
909 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
910 Standard's specification for parsable error messages.
911
912 2005-01-04 Paul Brook <paul@codesourcery.com>
913
914 * Makefile.am: Correct dependency for earmsymbian.c.
915 * Makefile.in: Regenerate.
916
917 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
918
919 * emultempl/pe.em (set_pe_subsystem): Change second arg to
920 lang_add_entry to FALSE.
921
922 2004-12-23 Nick Clifton <nickc@redhat.com>
923
924 PR 600
925 * emulparams/shelf.sh (.stack): Increase stack start address to
926 0x300000.
927
928 2004-12-20 Nick Clifton <nickc@redhat.com>
929
930 * ldmain.c (main): Issue an error message if -static and -shared
931 are used together.
932
933 2004-12-17 Jakub Jelinek <jakub@redhat.com>
934
935 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
936 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
937 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
938 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
939 PT_GNU_RELRO segment end.
940
941 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
942
943 * configure.tgt: Add s390x-ibm-tpf support.
944
945 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
946
947 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
948 BFD.
949
950 2004-12-07 Ben Elliston <bje@gnu.org>
951
952 * ldemul.h: Forward declare struct option.
953
954 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
955
956 * scripttempl/pe.sc (.data): Add .jcr subsection.
957
958 2004-11-30 Paul Brook <paul@codesourcery.com>
959
960 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
961
962 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
963
964 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
965 * Makefile.in: Regenerate.
966
967 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
968
969 * emultempl/pe.em: Add --subsystem:xbox as well as
970 --subsystem:%d.
971 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
972 and numeric subsystems.
973
974 2004-11-24 Alan Modra <amodra@bigpond.net.au>
975
976 * ldexp.c (fold_name): Correct PR 338 fix.
977
978 2004-11-19 Mark Mitchell <mark@codesourcery.com>
979
980 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
981 (earmelf_linux_eabi.c): New target.
982 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
983 * emulparams/armelf_linux_eabi.sh: New file.
984 * Makefile.in: Regenerated.
985
986 2004-11-19 Nick Clifton <nickc@redhat.com>
987
988 PR 518
989 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
990 LENGTH fields in the MEMORY command, to explicitly state that
991 symbols cannot be used in their expressions.
992
993 2004-11-19 Jon Beniston <jon@beniston.com>
994
995 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
996 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
997 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
998 which return the length and origin of a memory.
999 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1000 * NEWS: Mention support for ORIGIN and LENGTH operators.
1001
1002 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1003
1004 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1005 a dynamic object for stubs.
1006
1007 2004-11-04 Paul Brook <paul@codesourcery.com>
1008
1009 * ld.texinfo: Document --default-imported-symver.
1010 * ldmain.c (main): Set link_info.default_imported_symver.
1011 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1012 (ld_options): Add --default-imported-symver.
1013 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1014
1015 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1016 Vineet Sharma <vineets@noida.hcltech.com>
1017
1018 * Makefile.am: Add entries for new maxq-coff target.
1019 * Makefile.in: Regenerate.
1020 * configure.tgt: Add support for maxq.
1021 * emulparams/maxqcoff.sh: New File.
1022 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1023 * NEWS: Mention the new target.
1024
1025 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1026
1027 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1028 (earmelf_oabi.c): Remove rule.
1029 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1030 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1031 * Makefile.in: Regenerated.
1032
1033 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1034
1035 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1036 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1037 (FINI_START): Ditto.
1038 (INIT_END): Remove emitted "jump [sp+]".
1039 (FINI_END): Ditto.
1040
1041 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1042
1043 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1044 (no_opd_opt, no_toc_opt): New static vars.
1045 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1046 ppc64_elf_edit_toc.
1047 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1048 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1049 (PARSE_AND_LIST_OPTIONS): Describe new options.
1050 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1051
1052 2004-10-27 Nick Clifton <nickc@redhat.com>
1053
1054 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1055 parameter to invocation of lang_section_start.
1056 * emultempl/aix.em (_handle_option): Likewise.
1057
1058 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1059 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1060 * Makefile.in: Regenerate.
1061
1062 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1063
1064 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1065 __exidx_{start,end} when not relocating.
1066
1067 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1068
1069 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1070 * ldexp.h (segment_type): New type.
1071 (segments): New variable.
1072 * ldexp.c (segments): New variable.
1073 (exp_print_token): Handle SEGMENT_START.
1074 (fold_binary): Likewise.
1075 * ldgram.y (SEGMENT_START): Declare it as a token.
1076 (exp): Handle SEGMENT_START.
1077 * ldlang.h (lang_address_statement_type): Add segment field.
1078 (lang_section_start): Change prototype.
1079 * ldlang.c (map_input_to_output_sections): Do not process section
1080 assignments if a corresponding SEGMENT_START has already been
1081 seen.
1082 (lang_section_start): Add segment parameter.
1083 * ldlex.l (SEGMENT_START): Add it.
1084 * lexsup.c (seg_segment_start): New function.
1085 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1086 * ld.texinfo (SEGMENT_START): Document it.
1087 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1088 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1089 base addresses. Do not map relocations.
1090 * NEWS: Mention SEGMENT_START.
1091
1092 2004-10-26 Paul Brook <paul@codesourcery.com>
1093
1094 * ld.texinfo: Document --default-symver.
1095 * ldmain.c (main): Set link_info.create_default_symver.
1096 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1097 (ld_options): Add default-symver.
1098 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1099
1100 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1101
1102 * pe-dll.c (process_def_file): Don't export all symbols by default if
1103 building a position-independent executable.
1104
1105 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1106
1107 PR 463
1108 * ldmain.c (reloc_overflow): Accept a pointer to struct
1109 bfd_link_hash_entry. Report symbol location for relocation
1110 overflow.
1111
1112 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 * genscripts.sh (libpath.exp): Really generate for first
1115 emulation only.
1116
1117 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1118
1119 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1120 comparison and replacement of filenames.
1121
1122 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1123
1124 PR 459
1125 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1126 option on linker script as the one for linker script.
1127
1128 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1129
1130 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1131 (check_excluded_libs): New.
1132 (load_symbols): Call check_excluded_libs.
1133 * ldlang.h (add_excluded_libs): New prototype.
1134 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1135 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1136 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1137 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1138 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1139
1140 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1141
1142 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1143 failing link script assert.
1144
1145 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1146
1147 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1148
1149 PR 445
1150 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1151 (SMALL_DATA_DTOR): Set.
1152 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1153 (SMALL_DATA_DTOR): Unset.
1154 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1155 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1156 .data.
1157
1158 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1159
1160 PR 63
1161 * ldlang.h (lang_output_section_statement_type): Make "next" a
1162 struct lang_output_section_statement_struct *.
1163 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1164 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1165 * ldlang.c (lang_output_section_find_1): Adjust for changed
1166 output_section_statement "next".
1167 (strip_excluded_output_sections): Likewise.
1168 (lang_record_phdrs): Likewise.
1169 (lang_output_section_find_by_flags): New function.
1170 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1171 (lang_insert_orphan): New function. Tail end of elf32.em's
1172 place_orphan merged with that from pe.em. Allow bfd_section to
1173 be placed first. New heuristic for placing new output section
1174 statement in existing script, and accompanying split of __start
1175 symbol alignment into a separate assignment to dot.
1176 (lang_add_section): Consistently use output->bfd_section rather than
1177 an alias, section->output_section.
1178 (map_input_to_output_sections): Rename overly long arg. Move
1179 initialization of data_statement output section to here..
1180 (lang_check_section_addresses): ..from here.
1181 (print_assignment): Correct printing of etree_assert.
1182 (print_all_symbols): Don't bomb if userdata is NULL.
1183 (IGNORE_SECTION): Rearrange.
1184 * emultempl/elf32.em (output_rel_find): Adjust interator.
1185 (output_prev_sec_find): Delete.
1186 (struct orphan_save): Delete.
1187 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1188 flags without creating a duplicate output section statement.
1189 Revise code holding history of various orphan section placements.
1190 Allow orphan sections to place before script specified output
1191 sections. Call lang_output_section_find_by_flags when placement
1192 by name fails. Use lang_insert_orphan.
1193 * emultempl/mmo.em (output_prev_sec_find): Delete.
1194 (struct orphan_save): Delete.
1195 (mmo_place_orphan): Revise code holding history of orphan placement.
1196 Allow orphans to place before existing output sections. Use
1197 lang_insert_orphan.
1198 * emultempl/pe.em (output_prev_sec_find): Delete.
1199 (struct orphan_save): Delete.
1200 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1201 lang_insert_orphan.
1202
1203 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1204
1205 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1206 loadable segment.
1207
1208 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1209
1210 PR 44
1211 * ldcref.c (check_section_sym_xref): Delete.
1212 (check_local_sym_xref): New function.
1213 (check_nocrossrefs): Adjust call.
1214 * emultempl/pe.em (struct orphan_save): Add os_tail.
1215 (place_orphan): Backport assorted fixes from elf32.em.
1216
1217 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1218
1219 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1220
1221 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1222
1223 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1224 getline for portability.
1225
1226 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1227 (gld${EMULATION_NAME}_parse_ld_so_conf,
1228 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1229 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1230
1231 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1232
1233 PR 423
1234 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1235 rejected when linking statically.
1236
1237 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1238
1239 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1240
1241 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1242
1243 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1244 assembler-generated longcall sequences. Describe new --size-opt
1245 option.
1246 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1247 * emultempl/xtensaelf.em (remove_section,
1248 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1249 elf_xtensa_after_open): New.
1250 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1251 OPTION_NO_LITERAL_MOVEMENT): Define.
1252 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1253 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1254 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1255 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1256 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1257 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1258 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1259 * Makefile.am (eelf32xtensa.c): Update dependencies.
1260 * Makefile.in: Regenerate.
1261
1262 2004-10-07 Jeff Baker <jbaker@qnx.com>
1263
1264 * lexsup.c: Handle --warn-shared-textrel option.
1265 (ld_options): Restore alpha sorting of options.
1266 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1267 * ld.texinfo: Add documentation for --warn-shared-textrel.
1268 * NEWS: Added mention of --warn-shared-textrel option.
1269
1270 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1271
1272 * emultempl/crxelf.em (disable_relaxation): Add.
1273 (crxelf_before_allocation): Enable --relax option by default.
1274 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1275 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1276 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1277
1278 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1279
1280 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1281 --sort-section name|alignment.
1282
1283 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1284 --sort-section name|alignment.
1285
1286 * ld.h (sort_type): New enum.
1287 (wildcard_spec): Change the type of `sorted' to sort_type.
1288
1289 * ldgram.y (SORT): Removed.
1290 (SORT_BY_NAME): Added.
1291 (SORT_BY_ALIGNMENT): Added.
1292 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1293 SORT_BY_ALIGNMENT.
1294 (input_section_spec_no_keep): Updated `sorted'.
1295 (statement): Replace SORT with SORT_BY_NAME.
1296
1297 * ldlang.c (compare_section): New function to compare 2
1298 sections with different sorting schemes.
1299 (wild_sort): Updated. Use compare_section.
1300 (update_wild_statements): New function.
1301 (lang_process): Call update_wild_statements before
1302 map_input_to_output_sections.
1303
1304 * ldlex.l (SORT_BY_NAME): New.
1305 (SORT_BY_ALIGNMENT): New.
1306 (SORT): Return SORT_BY_NAME.
1307
1308 * ldmain.c (sort_section): New. Defined.
1309 (main): Initialize it to none.
1310
1311 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1312 (ld_options): Add an entry for OPTION_SORT_SECTION.
1313 (parse_args): Handle OPTION_SORT_SECTION.
1314
1315 * mri.c (mri_draw_tree): Updated `sorted'.
1316
1317 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1318
1319 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1320 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1321 argument.
1322 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1323 and . as second argument.
1324 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1325 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1326 (fold_binary): Add it here. Insert padding to make relro_end
1327 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1328 exp_dataseg_relro_adjust phase just use previously computed
1329 exp_data_seg.base.
1330 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1331 relro_adjust here. Call lang_size_sections_1 once more if there
1332 was too big padding at DATA_SEGMENT_RELRO_END.
1333 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1334
1335 2004-10-01 Paul Brook <paul@codesourcery.com>
1336
1337 * emulparams/armelf.sh: Add unwinding table sections.
1338
1339 2004-09-30 Filip Navara <navaraf@reactos.com>
1340
1341 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1342 correct base address for position independant executables.
1343 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1344 executables as DLLs.
1345
1346 2004-09-30 Paul Brook <paul@codesourcery.com>
1347
1348 * ld.texinfo: Document --target2=abs.
1349 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1350
1351 2004-09-29 Nick Clifton <nickc@redhat.com>
1352
1353 * scripttempl/xstormy16.sc: Only perform the assignments to the
1354 ROM region when not performing a relocatable link. The ROM region
1355 does not start at address 0, but the sections will.
1356 * Makefile.am: Fix linker script dependency for the generation of
1357 eelf32xstormy16.c.
1358 * Makefile.in: Regenerate.
1359
1360 2004-09-18 Filip Navara <navaraf@reactos.com>
1361
1362 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1363 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1364 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1365 TARGET_PAGE_SIZE.
1366 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1367 the alignment is lower than the target page size.
1368
1369 2004-09-27 Filip Navara <navaraf@reactos.com>
1370
1371 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1372 def_file_parse to handle pe_def_file if NULL and prevent crash with
1373 invalid .def files.
1374
1375 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1376
1377 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1378 --emit-stub-syms automatically when --emit-relocs.
1379
1380 2004-09-24 Paul Brook <paul@codeosurcery.com>
1381
1382 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1383 .fini_array sections.
1384
1385 2004-09-19 Andreas Schwab <schwab@suse.de>
1386
1387 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1388 base so that relro end is suitably aligned.
1389
1390 2004-09-17 Paul Brook <paul@codesourcery.com>
1391
1392 * ld.texinfo: Rename arm-specific section. Document --target*
1393 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1394 * emulparams/armelf_linux.sh: Ditto.
1395 * emulparams/armelf_nbsd.sh: Ditto.
1396 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1397 (target2_type): New variable.
1398 (arm_elf_before_allocation): Don't pass target1_type.
1399 (arm_elf_create_output_section_statements): New function.
1400 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1401 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1402 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1403 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1404 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1405 argument to bfd_elf32_arm_process_before_allocation.
1406
1407 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1408
1409 * ldexp.c (fold_name): Update u.undef.next refs.
1410 * emultempl/pe.em: Likewise.
1411 * emultempl/sunos.em: Likewise.
1412
1413 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1414
1415 * Makefile.am: Run "make dep-am".
1416 * Makefile.in: Regenerate.
1417 * config.in: Regenerate.
1418 * configure: Regenerate.
1419 * aclocal.m4: Regenerate.
1420 * po/ld.pot: Regenerate.
1421
1422 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1423
1424 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1425 (.fini): Likewise.
1426 (.jcr): Likewise.
1427
1428 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1429
1430 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1431 to bfd_elf32_arm_process_before_allocation call.
1432
1433 2004-09-13 Paul Brook <paul@codesourcery.com>
1434
1435 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1436 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1437
1438 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1439
1440 * configure: Regenerated with autconfig 2.13.
1441
1442 2004-09-07 Andreas Schwab <schwab@suse.de>
1443
1444 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1445 alignment before adjusting DATA_SEGMENT_RELRO_END.
1446
1447 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1448
1449 * emulparams/armsymbian.sh: Use armbpabi script.
1450 * scripttempl/armbpabi.sc: New script.
1451
1452 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1453
1454 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1455 (earmsymbian.c): New target.
1456 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1457 * Makefile.in: Regenerated.
1458 * aclocal.m4: Likewise.
1459 * configure: Likewise.
1460 * emulparams/armsymbian.sh: New file.
1461
1462 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1463
1464 * scripttempl/elf32crx.sc: Edit file with comments.
1465 (.init): Add new section.
1466 (.fini): Likewise.
1467 (.ctor): Control the linkage order.
1468 (.dtor): Likewise.
1469
1470 2004-08-27 Nick Clifton <nickc@redhat.com>
1471
1472 * emultempl/pe.em (after_open): Do not assume that either bfd is
1473 an archive.
1474
1475 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1476
1477 * ldlang.c (lang_init): Don't compare with TRUE.
1478
1479 2004-08-25 Dmitry Diky <diwil@spec.ru>
1480
1481 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1482 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1483
1484 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1485
1486 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1487
1488 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1489
1490 * configure.tgt (arm*-*-symbianelf*): New target.
1491 (arm*-*-eabi*): Likewise.
1492
1493 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1494
1495 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1496 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1497 (OPTION_NON_OVERLAPPING_OPD): Define.
1498 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1499 --non-overlapping-opd option.
1500
1501 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1502
1503 PR 338
1504 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1505 was already on the undefs list.
1506
1507 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1508
1509 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1510 prefix the symbol field too.
1511
1512 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1513
1514 * ldmain.c (link_callbacks): Remove "error_handler".
1515 * ldmisc.c: Include elf-bfd.h.
1516 (vfinfo): Sort comment. Handle %A. Use %A instead of
1517 bfd_get_section_indent.
1518 (error_handler): Delete.
1519 * ldmisc.h (error_handler): Delete declaration.
1520
1521 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1522
1523 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1524 ppc64_elf_restore_symbols.
1525
1526 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1527
1528 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1529 .toc is too large on relocatable linking.
1530
1531 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1532
1533 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1534 (LDEMUL_AFTER_OPEN): Don't define.
1535
1536 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1537
1538 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1539
1540 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1541
1542 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1543 on power of 2.
1544
1545 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1546
1547 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1548
1549 2004-07-26 Dmitry Diky <diwil@spec.ru>
1550
1551 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1552 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1553 msp430xG439.
1554 * configure.tgt: Likewise.
1555 * emulparams/msp430all.sh: Likewise.
1556 * Makefile.in: Regenerate.
1557
1558 2004-07-23 Nick Clifton <nickc@redhat.com>
1559
1560 * emultempl/elf32.em (_place_orphan): Use an already existing
1561 section name if that section does not have any flags set.
1562
1563 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1564
1565 * ldlang.c (already_linked_hash_entry): Removed.
1566 (already_linked): Likewise.
1567 (already_linked_table): Likewise.
1568 (section_already_linked): Call bfd_section_already_linked.
1569 (lang_process): Replace already_linked_table_init with
1570 bfd_section_already_linked_table_init and check return. Replace
1571 already_linked_table_free with bfd_section_already_linked_table_free.
1572
1573 2004-07-21 Nick Clifton <nickc@redhat.com>
1574
1575 * ldlang.c (init_os): Make sure that the newly allocated userdata
1576 structure is zeroed out.
1577
1578 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1579
1580 * NEWS: Mention the new --add-needed/--no-add-needed and
1581 --as-needed/--no-as-needed options.
1582
1583 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1584
1585 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1586 check the add_needed field.
1587 (dt_needed): New struct.
1588 (gld${EMULATION_NAME}_try_needed): Change the first argument
1589 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1590 bit in the file where the DT_NEEDED entry comes from.
1591 (gld${EMULATION_NAME}_search_needed): Change the second
1592 argument to a pointer to struct dt_needed.
1593 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1594 (gld${EMULATION_NAME}_after_open): Likewise.
1595
1596 * ld.texinfo: Add --add-needed document.
1597 * ldlang.c (new_afile): Set p->add_needed.
1598 * ldlang.h (lang_input_statement_type): Add add_needed field.
1599 * ldmain.h (add_needed): Declare.
1600 * ldmain.c (add_needed): New global var.
1601 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1602 OPTION_NO_ADD_NEEDED.
1603 (ld_options): Likewise.
1604 (parse_args): Handle them.
1605
1606 2004-07-13 Christof Petig <christof@petig-baender.de>
1607
1608 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1609 for endian-ness of extracted addend.
1610
1611 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1612
1613 * pe-dll.c (auto_export): Filter on just the import prefix,
1614 "_imp_", not "_imp__".
1615
1616 2004-07-09 Nick Clifton <nickc@redhat.com>
1617
1618 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1619
1620 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1621
1622 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1623 (eelf32crx.c): New target.
1624 * Makefile.in: Regenerate.
1625 * configure.tgt: Handle crx-*-elf*.
1626 * emulparams/elf32crx.sh: New file.
1627 * emultempl/crxelf.em: New file.
1628 * scripttempl/elf32crx.sc: New file.
1629 * NEWS: Mention new target.
1630
1631 2004-07-06 Nick Clifton <nickc@redhat.com>
1632
1633 * Makefile.am: Add eshlsymbian.c.
1634 * Makefile.in: Regenerate.
1635 * configure.tgt: Add sh*-symbian-elf target.
1636 * emulparams/shlsymbian.sh: New file. Configure the
1637 sh-symbian-elf linker scripts.
1638 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1639 template for the sh-symbian-elf target.
1640
1641 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1642
1643 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1644 * emulparams/hppalinux.sh: Likewise.
1645 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1646 data segment and PLT_BEFORE_GOT is defined.
1647
1648 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1649
1650 * ld.texinfo (WIN32): Document PE weak symbols.
1651
1652 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1653
1654 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1655
1656 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1657
1658 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1659 the section.
1660
1661 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1662
1663 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1664 size in rawsize.
1665
1666 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1667
1668 * ldlang.c (print_output_section_statement): Don't print size before
1669 relaxation.
1670 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1671
1672 * ldexp.c (fold_name): .. See below.
1673 * ldlang.c (section_already_linked, print_output_section_statement,
1674 print_input_section, insert_pad, size_input_section,
1675 lang_check_section_addresses, lang_size_sections_1,
1676 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1677 lang_one_common, lang_reset_memory_regions, lang_process,
1678 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1679 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1680 * pe-dll.c (process_def_file, generate_reloc): ..
1681 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1682 gld${EMULATION_NAME}_before_allocation): ..
1683 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1684 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1685 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1686 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1687 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1688 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1689 "size" instead of "_raw_size" and "_cooked_size". Expand
1690 bfd_section_size macro invocations.
1691
1692 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1693
1694 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1695 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1696 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1697 ___crt_xt_end__.
1698 (.tls): Define ___tls_start__ and ___tls_end__.
1699
1700 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1701
1702 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1703
1704 2004-06-18 Adam Nemet <anemet@lnxw.com>
1705
1706 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1707 * configure: Regenerate.
1708
1709 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1710
1711 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1712 .gcc_except_table output sections lost accidentally with
1713 -z relro patch.
1714
1715 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1716
1717 * ldwrite.c (build_link_order): Use bfd_get_section_size
1718 instead of bfd_get_section_size_before_reloc or _raw_size.
1719 * pe-dll.c (process_def_file): Likewise.
1720
1721 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1722
1723 From Richard Wirth <r.wirth@wirthware.de>
1724 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1725
1726 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1727
1728 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1729 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1730
1731 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1732
1733 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1734 throughout file.
1735 * lexsup.c: Formatting. Wrap long lines.
1736 * ldwrite.c: Update copyright date.
1737
1738 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1739 (output_section_callback): Nor SEC_KEEP here.
1740 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1741 (lang_gc_wild): Delete. Fold into..
1742 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1743 collecting.
1744 (lang_process): Always call lang_gc_sections.
1745 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1746 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1747 SEC_EXCLUDE code.
1748
1749 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1750
1751 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1752 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1753 * ldlang.c (lang_add_section): Likewise.
1754
1755 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1756
1757 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1758 sections when doing a final link. Clear SEC_EXCLUDE when doing
1759 a relocable link, except for SEC_DEBUGGING sections.
1760 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1761 same condition here to drop SEC_EXCLUDE orphan sections.
1762
1763 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1764
1765 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1766 only when not a relocatable link.
1767 (print_input_section): Handle SEC_EXCLUDE sections.
1768 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1769 (lang_do_assignments_1): Likewise.
1770 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1771 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1772 * emultempl/hppaelf.em (build_section_lists): Likewise.
1773 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1774 (build_section_lists): Likewise.
1775
1776 2004-05-23 Andreas Schwab <schwab@suse.de>
1777
1778 * ld.texinfo (Options): Fix typo in last change.
1779
1780 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1781
1782 * ld.h (ld_config_type): Add new field: hash_table_size.
1783 * ldmain.c: Initialise the new field to zero. If it is non-zero
1784 after parsing the linker's command line call
1785 bfd_hash_set_default_size.
1786 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1787 (ld_options): Add hash-size.
1788 (parse_args): Parse --hash-size option. Allow
1789 --reduce-memory-overheads to set the default hash table size as
1790 well.
1791 * ld.texinfo: Document the new switch. Also mention that
1792 --reduce-memory-overheads can affect the hash table size.
1793 * NEWS: Mention the new feature.
1794
1795 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1796
1797 * NEWS: Mention new linker map file generation and the
1798 --reduce-memory-overheads option.
1799 * ld.texinfo: Document --reduce-memory-overheads option.
1800 * ld.h (map_symbol_def): New struct.
1801 (struct user_section_struct, section_userdata_type): Rename to:
1802 (struct lean_user_section_struct, lean_section_userdata_type).
1803 (struct fat_user_section_struct, fat_section_userdata_type): New.
1804 (SECTION_USERDATA_SIZE): Define.
1805 (args_type): New member reduce_memory_overheads.
1806 * ldlang.c (map_obstack): New static variable.
1807 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1808 (lang_map): Unless command_line.reduce_memory_overheads is set,
1809 initialize lists of defined symbols for each section.
1810 (print_input_section): Unless command_line.reduce_memory_overheads
1811 is set, use print_all_symbols.
1812 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1813 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1814 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1815 (ld_options): Add entry for --reduce-memory-overheads.
1816 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1817
1818 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1819
1820 * ldgram.y (sect_constraint): New.
1821 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1822 (section): Add sect_constraint. Pass additional argument
1823 to lang_enter_output_section_statement.
1824 * mri.c (mri_draw_tree): Pass additional argument to
1825 lang_enter_output_section_statement.
1826 * emultempl/pe.em (place_orphan): Likewise.
1827 (output_prev_sec_find): Disregard output section statements with
1828 constraint == -1.
1829 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1830 (mmo_place_orphan): Pass additional argument to
1831 lang_enter_output_section_statement.
1832 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1833 statements with constraint == -1.
1834 (place_orphan): Pass additional argument to
1835 lang_enter_output_section_statement.
1836 * ldlang.c (lang_enter_overlay_section): Likewise.
1837 (lang_output_section_find_1): New.
1838 (lang_output_section_find): Use it.
1839 (lang_output_section_statement_lookup_1): New.
1840 (lang_output_section_statement_lookup): Use it.
1841 (check_section_callback, check_input_sections): New.
1842 (map_input_to_output_sections): Check if all input sections
1843 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1844 (strip_excluded_output_sections): Disregard output section statements
1845 with constraint == -1.
1846 (lang_record_phdrs): Likewise.
1847 (lang_enter_output_section_statement): Add constraint argument.
1848 Use lang_output_section_statement_lookup_1.
1849 * ldlang.h (lang_output_section_statement_type): Add constraint
1850 and all_input_readonly fields.
1851 (lang_enter_output_section_statement): Adjust prototype.
1852 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1853 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1854 segment if all input sections are readonly.
1855
1856 2004-05-19 Adam Nemet <anemet@lnxw.com>
1857
1858 * scripttempl/i386lynx.sc: Remove file.
1859
1860 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1861
1862 * ld.texinfo (Output Section Address): Correct subsection name.
1863
1864 2004-05-17 Adam Nemet <anemet@lnxw.com>
1865
1866 * configure.tgt (powerpc-*-lynxos* case): New case.
1867 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1868 * emulparams/ppclynx.sh: New file.
1869 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1870 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1871 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1872 (eppclynx.c): New rule.
1873 * Makefile.in: Regenerate.
1874
1875 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1876
1877 * configure.tgt (or32-*-rtems*): Switch to elf and
1878 support versioned targets.
1879
1880 2004-05-13 Nick Clifton <nickc@redhat.com>
1881
1882 * po/fr.po: Updated French translation.
1883
1884 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1885
1886 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1887 for binaries, -shared and -pie.
1888 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1889 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1890 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1891 (OTHER_RELRO_SECTIONS): ... this.
1892 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1893 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1894 -z relro and -z norelro.
1895 (gld${EMULATION_NAME}_list_options): Add it to usage.
1896 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1897 -z relro scripts when appropriate.
1898 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1899 Create separate .got.plt section if SEPARATE_GOTPLT.
1900 Move sections which are only written during relocation handling
1901 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1902 before .data. Add DATA_SEGMENT_RELRO_END directive.
1903 Include OTHER_RELRO_SECTIONS.
1904 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1905 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1906 (fold_unary): Likewise.
1907 (fold_binary): Handle -z relro.
1908 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1909 exp_dataseg_relro_adjust phases. Add relro_end field.
1910 * ldmain.c (main): Initialize link_info.relro to FALSE.
1911 * ldlang.c (lang_size_sections): Handle -z relro.
1912
1913 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1914
1915 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1916
1917 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1918
1919 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1920 before printing it with %W.
1921
1922 2004-05-07 Brian Ford <ford@vss.fsi.com>
1923 DJ Delorie <dj@redhat.com>
1924
1925 * emultempl/pe.em (real_flags): New static.
1926 (OPTION_LARGE_ADDRESS_AWARE): New define.
1927 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1928 (gld_${EMULATION_NAME}_list_options): Likewise.
1929 (gld${EMULATION_NAME}_handle_option): Likewise.
1930 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1931 * ld.texinfo: Document it.
1932 * NEWS: Mention it.
1933
1934 2004-05-07 Brian Ford <ford@vss.fsi.com>
1935
1936 * NEWS: Mention DWARF 2 support for i386pe.
1937
1938 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1939
1940 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1941 elf32-frvfdpic.
1942
1943 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1944
1945 * ldlang.c (unique_section_p): Pass section parm, return true on
1946 group sections.
1947 (output_section_callback): Adjust.
1948 * ldlang.h (unique_section_p): Update prototype.
1949 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1950
1951 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1952
1953 * ld.texinfo (--gc-sections): Remove restriction for
1954 dynamic linking.
1955
1956 2004-04-29 Brian Ford <ford@vss.fsi.com>
1957
1958 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1959 for DWARF 2/3. Update stab section's syntax.
1960
1961 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1962
1963 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1964 (fill_edata): Correct pointer arithmetic.
1965
1966 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1967
1968 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1969 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1970 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1971 (EXTRA_EM_FILE): Use mipsecoff.em
1972 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1973 (EXTRA_EM_FILE): Use mipsecoff.em
1974 * emultempl/mipsecoff.em: Restructure to be included as an
1975 extra emulation file.
1976 (check_sections, gld${EMULATION_NAME}_after_open)
1977 (gld${EMULATION_NAME}_after_allocation)
1978 (gld${EMULATION_NAME}_get_script)
1979 (ld_${EMULATION_NAME}_emulation): Remove
1980 (gld${EMULATION_NAME}_before_parse): Rename to...
1981 (mipsecoff_before_parse): This.
1982 (LDEMUL_BEFORE_PARSE): Define.
1983 * emultempl/mipself.em: Remove file.
1984 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1985 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1986 these symbols.
1987 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1988 * Makefile.in: Regenerate.
1989
1990 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1991
1992 * ld.texinfo (synthesizing on H8/300): Information about linker
1993 relaxation support for bit manipulation instructions and system
1994 control instructions is added.
1995
1996 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1997
1998 * NEWS: Mention change in DEFINED semantics.
1999
2000 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2001
2002 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2003 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2004 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2005
2006 2004-04-21 Ben Elliston <bje@au.ibm.com>
2007
2008 * ld.texinfo (Simple Example): Add missing punctuation.
2009
2010 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2011
2012 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2013
2014 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2015
2016 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2017 specially.
2018
2019 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2020
2021 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2022 with default priority. Likewise for dtors.
2023
2024 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2025
2026 * configure.host: Remove mips*-dec-bsd* target.
2027 * configure.tgt: Likewise.
2028
2029 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2030
2031 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2032 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2033 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2034 * emultempl/irix.em: New file.
2035 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2036 dependencies.
2037 * Makefile.in: Regenerate.
2038
2039 2004-04-01 Paul Brook <paul@codesourcery.com>
2040
2041 * emultempl/armelf.em (byteswap_code): Add.
2042 (arm_elf_before_allocation): Pass extra parameter.
2043 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2044 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2045 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2046 * emultempl/armelf_oabi.em: Pass extra parameter.
2047 * ld.texinfo: Document --be8.
2048
2049 2004-03-30 Stan Shebs <shebs@apple.com>
2050
2051 Remove long-obsolete MPW support.
2052 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2053 * Makefile.am (mpw): Remove file-presynthesizing actions.
2054 * Makefile.in: Likewise.
2055 * ldfile.c (slash): Remove MPW case.
2056 * ldlex.l [MPW]: Remove unused definition.
2057
2058 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2059
2060 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2061 (eelf32cr16c.c): New target.
2062 * Makefile.in: Regenerate.
2063 * configure.tgt: Handle cr16c-*-elf*.
2064 * emulparams/elf32cr16c.sh: New file.
2065 * scripttempl/elfcr16c.sc: Likewise
2066 * NEWS: Mention support for new target.
2067
2068 2004-03-30 Nick Clifton <nickc@redhat.com>
2069
2070 * po/sv.po: Updated Swedish translation.
2071
2072 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2073
2074 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2075 * emultempl/hppaelf.em: Likewise.
2076 * emultempl/ppc64elf.em: Likewise.
2077 * emultempl/sh64elf.em: Likewise.
2078
2079 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2080
2081 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2082 size_dynamic_sections call.
2083
2084 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2085
2086 PR 51.
2087 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2088 link_info.wrap_char.
2089
2090 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2091
2092 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2093 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2094
2095 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2096
2097 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2098
2099 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2100
2101 * config.in: Regenerate.
2102 * po/ld.pot: Regenerate.
2103
2104 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2105
2106 * ld.texinfo: Add --as-needed doco.
2107 * ldmain.c (as_needed): New global var.
2108 * ldmain.h (as_needed): Declare.
2109 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2110 OPTION_NO_AS_NEEDED.
2111 (ld_options): Likewise.
2112 (parse_args): Handle them.
2113 * ldlang.h (lang_input_statement_type): Add as_needed field.
2114 * ldlang.c (new_afile): Set p->as_needed.
2115 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2116 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2117 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2118
2119 * ldlang.c (open_input_bfds): Remove useless cast.
2120 (lang_do_assignments_1): Likewise.
2121 (lang_for_each_input_section): Delete.
2122
2123 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2124
2125 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2126
2127 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2128
2129 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2130 private when building implib.
2131
2132 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2133
2134 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2135 SEC_THREAD_LOCAL.
2136 (IGNORE_SECTION): Ignore .tbss sections too.
2137 (lang_size_sections_1): .tbss sections do not advance dot.
2138
2139 2004-03-01 Andreas Schwab <schwab@suse.de>
2140
2141 * ld.texinfo (Options): Fix example for --wrap.
2142
2143 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2144
2145 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2146 not NULL.
2147
2148 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2149
2150 * ldlang.c (lang_check): Use %P, not %E, in error message.
2151
2152 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2153
2154 * ldlang.h (struct lang_output_section_state): Change processed
2155 field's type.
2156 * ldexp.c (check, invalid): Remove.
2157 (fold_name): Move valid_p assignments. Create undefined symbol
2158 when needed. Directly exampine section's processd flag.
2159 * ldlang.c (lang_output_section_statement_lookup): Adjust
2160 processed field init.
2161 (lang_size_sections_1): Allow LOADADDR when determining section's
2162 VMA. Adjust error message. Fold data statement's expr.
2163 (lang_size_sections): Correctly increment lang_statement_iteration.
2164
2165 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2166
2167 * ldexp.c (fold_tree): Follow indirect symbols.
2168
2169 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2170
2171 * ldgram.y (exp): Add two operand ALIGN.
2172 * ldexp.c (fold_binary): Add ALIGN_K case.
2173 * ld.texinfo (ALIGN): Document two operand version.
2174
2175 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2176
2177 * ldlang.c (map_input_to_output_sections): Initialize sections
2178 mentioned in a data statement expression.
2179 (lang_do_assignments_1): Add data statement's expression's
2180 section's vma.
2181
2182 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2183
2184 * ldgram.y (statement_anywhere): Add assert rule.
2185 * ldlang.c (exp_init_os): Add assert case.
2186
2187 2004-02-14 Andrew Cagney <cagney@redhat.com>
2188
2189 * ldmain.c (remove_output): Call bfd_cache_close.
2190
2191 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2192
2193 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2194 .MIPS.content* and .MIPS.events* sections.
2195
2196 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2197
2198 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2199 .note.gnu.arm.ident to after allocated sections. Mark its
2200 address as 0.
2201
2202 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2203
2204 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2205 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2206 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2207 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2208 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2209
2210 2004-02-05 Nick Clifton <nickc@redhat.com>
2211
2212 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2213
2214 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2215
2216 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2217
2218 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2219
2220 * genscripts.sh: Fix typo.
2221
2222 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2223
2224 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2225
2226 * emulparams/elf64_ia64.sh: Put .rela.opd into
2227 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2228
2229 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2230
2231 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2232 * ld.texinfo (--omagic): Note that writable text section
2233 does not conform to published PE-COFF specs.
2234 (--enable-auto-import): Likewise.
2235
2236 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2237
2238 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2239
2240 2004-01-13 Nick Clifton <nickc@redhat.com>
2241
2242 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2243 which if true will prevent the LMA region being used as a
2244 replacement for a default VMA region.
2245 (lang_leave_output_section_statement): Pass extra parameter.
2246 (lang_leave_overlay): Likewise.
2247 * ld.texinfo (Output Section LMA): Document that the LMA
2248 region can be set to the VMA region if no VMA has been set.
2249 * ldlang.h (struct lang_output_section_phdr_list): Create a
2250 typedef for this type. Minor formatting fixes.
2251
2252 2004-01-13 Nick Clifton <nickc@redhat.com>
2253
2254 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2255 assume that the section should be allocated.
2256
2257 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2258
2259 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2260 sections. Do ignore SEC_NEVER_LOAD sections.
2261 (lang_size_sections_1): Remove test made redundant with the above.
2262
2263 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2264
2265 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2266 program_header_size.
2267
2268 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2269
2270 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2271 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2272 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2273 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2274 (MAXPAGESIZE): Set to 64Kb.
2275 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2276 __ROFIXUP_END__. Don't map .rofixup.got any more.
2277 * emulparams/elf32frv.sh (NOP): Set.
2278 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2279 * configure.tgt: Add frv-*-*linux*.
2280 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2281 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2282 (eelf32frvfd.c): New.
2283 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2284 * emulparams/elf32frv.sh: Reverted previous two patches.
2285 * emulparams/elf32frvfd.sh: New.
2286 * Makefile.in: Rebuilt.
2287 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2288 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2289 .rofixup.got to .rofixup.
2290 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2291 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2292 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2293
2294 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2295
2296 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2297 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2298
2299 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2300
2301 * ldexp.c (align_n): Make static.
2302 * ldexp.h (align_n): Delete declaration.
2303 * ldlang.h (lang_enter_output_section_statement): Remove
2304 block_value param.
2305 * ldlang.c (lang_enter_output_section_statement): Likewise.
2306 (TO_ADDR, TO_SIZE): Define.
2307 (opb_shift): New var.
2308 (init_opb): New function.
2309 (print_input_section): Call init_opb and use TO_ADDR.
2310 (print_data_statement, print_reloc_statement): Likewise.
2311 (print_padding_statement): Likewise.
2312 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2313 (lang_check_section_addresses): Likewise.
2314 (lang_size_sections_1): Likewise.
2315 (lang_do_assignments_1): Likewise.
2316 (lang_set_startof): Likewise.
2317 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2318 (lang_process): Call init_opb.
2319 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2320 (lang_enter_overlay_section): Adjust
2321 lang_enter_output_section_statement call.
2322 * ldgram.y: Likewise.
2323 * mri.c (mri_draw_tree): Likewise.
2324 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2325 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2326 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2327
2328 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2329 * ldfile.h (ldfile_set_output_arch): Ditto.
2330 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2331 ldfile_set_output_arch.
2332 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2333 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2334 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2335 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2336 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2337 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2338 * ldgram.y: Adjust ldfile_set_output_arch call.
2339 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2340 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2341 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2342 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2343 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2344 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2345 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2346
2347 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2348
2349 * configure.tgt: Add m68k-uClinux target.
2350
2351 For older changes see ChangeLog-0203
2352 \f
2353 Local Variables:
2354 mode: change-log
2355 left-margin: 8
2356 fill-column: 74
2357 version-control: never
2358 End: