OSDN Git Service

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