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