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