ld/
[external/binutils.git] / ld / ChangeLog
1 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
4         --sort-section name|alignment.
5
6         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
7         --sort-section name|alignment.
8
9         * ld.h (sort_type): New enum.
10         (wildcard_spec): Change the type of `sorted' to sort_type.
11
12         * ldgram.y (SORT): Removed.
13         (SORT_BY_NAME): Added.
14         (SORT_BY_ALIGNMENT): Added.
15         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
16         SORT_BY_ALIGNMENT.
17         (input_section_spec_no_keep): Updated `sorted'.
18         (statement): Replace SORT with SORT_BY_NAME.
19
20         * ldlang.c (compare_section): New function to compare 2
21         sections with different sorting schemes.
22         (wild_sort): Updated. Use compare_section.
23         (update_wild_statements): New function.
24         (lang_process): Call update_wild_statements before
25         map_input_to_output_sections.
26
27         * ldlex.l (SORT_BY_NAME): New.
28         (SORT_BY_ALIGNMENT): New.
29         (SORT): Return SORT_BY_NAME.
30
31         * ldmain.c (sort_section): New. Defined.
32         (main): Initialize it to none.
33
34         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
35         (ld_options): Add an entry for OPTION_SORT_SECTION.
36         (parse_args): Handle OPTION_SORT_SECTION.
37
38         * mri.c (mri_draw_tree): Updated `sorted'.
39
40 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
41
42         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
43         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
44         argument.
45         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
46         and . as second argument.
47         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
48         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
49         (fold_binary): Add it here.  Insert padding to make relro_end
50         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
51         exp_dataseg_relro_adjust phase just use previously computed
52         exp_data_seg.base.
53         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
54         relro_adjust here.  Call lang_size_sections_1 once more if there
55         was too big padding at DATA_SEGMENT_RELRO_END.
56         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
57
58 2004-10-01  Paul Brook  <paul@codesourcery.com>
59
60         * emulparams/armelf.sh: Add unwinding table sections.
61
62 2004-09-30  Filip Navara  <navaraf@reactos.com>
63
64         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
65         correct base address for position independant executables.
66         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
67         executables as DLLs.
68
69 2004-09-30  Paul Brook  <paul@codesourcery.com>
70
71         * ld.texinfo: Document --target2=abs.
72         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
73
74 2004-09-29  Nick Clifton  <nickc@redhat.com>
75
76         * scripttempl/xstormy16.sc: Only perform the assignments to the
77         ROM region when not performing a relocatable link.  The ROM region
78         does not start at address 0, but the sections will.
79         * Makefile.am: Fix linker script dependency for the generation of
80         eelf32xstormy16.c.
81         * Makefile.in: Regenerate.
82
83 2004-09-18  Filip Navara  <navaraf@reactos.com>
84
85         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
86         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
87         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
88         TARGET_PAGE_SIZE.
89         * scripttempl/pe.sc: Make the virtual address and file offset synced if
90         the alignment is lower than the target page size.
91
92 2004-09-27  Filip Navara  <navaraf@reactos.com>
93
94         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
95         def_file_parse to handle pe_def_file if NULL and prevent crash with
96         invalid .def files.
97
98 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
99
100         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
101         --emit-stub-syms automatically when --emit-relocs.
102
103 2004-09-24  Paul Brook  <paul@codeosurcery.com>
104
105         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
106         .fini_array sections.
107
108 2004-09-19  Andreas Schwab  <schwab@suse.de>
109
110         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
111         base so that relro end is suitably aligned.
112
113 2004-09-17  Paul Brook  <paul@codesourcery.com>
114
115         * ld.texinfo: Rename arm-specific section.  Document --target*
116         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
117         * emulparams/armelf_linux.sh: Ditto.
118         * emulparams/armelf_nbsd.sh: Ditto.
119         * emultempl/armelf.em: Set default for TARGET2_TYPE.
120         (target2_type): New variable.
121         (arm_elf_before_allocation): Don't pass target1_type.
122         (arm_elf_create_output_section_statements): New function.
123         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
124         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
125         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
126         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
127         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
128         argument to bfd_elf32_arm_process_before_allocation.
129
130 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
131
132         * ldexp.c (fold_name): Update u.undef.next refs.
133         * emultempl/pe.em: Likewise.
134         * emultempl/sunos.em: Likewise.
135
136 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
137
138         * Makefile.am: Run "make dep-am".
139         * Makefile.in: Regenerate.
140         * config.in: Regenerate.
141         * configure: Regenerate.
142         * aclocal.m4: Regenerate.
143         * po/ld.pot: Regenerate.
144
145 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
146
147         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
148         (.fini): Likewise.
149         (.jcr): Likewise.
150
151 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
152
153         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
154         to bfd_elf32_arm_process_before_allocation call.
155
156 2004-09-13  Paul Brook  <paul@codesourcery.com>
157
158         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
159         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
160
161 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
162
163         * configure: Regenerated with autconfig 2.13.
164
165 2004-09-07  Andreas Schwab  <schwab@suse.de>
166
167         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
168         alignment before adjusting DATA_SEGMENT_RELRO_END.
169
170 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
171
172         * emulparams/armsymbian.sh: Use armbpabi script.
173         * scripttempl/armbpabi.sc: New script.
174
175 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
176
177         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
178         (earmsymbian.c): New target.
179         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
180         * Makefile.in: Regenerated.
181         * aclocal.m4: Likewise.
182         * configure: Likewise.
183         * emulparams/armsymbian.sh: New file.
184
185 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
186
187         * scripttempl/elf32crx.sc: Edit file with comments.
188         (.init): Add new section.
189         (.fini): Likewise.
190         (.ctor): Control the linkage order.
191         (.dtor): Likewise.
192
193 2004-08-27  Nick Clifton  <nickc@redhat.com>
194
195         * emultempl/pe.em (after_open): Do not assume that either bfd is
196         an archive.
197
198 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
199
200         * ldlang.c (lang_init): Don't compare with TRUE.
201
202 2004-08-25  Dmitry Diky  <diwil@spec.ru>
203
204         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
205         * scripttempl/elf32msp430.sc: Add .profiler section definition.
206
207 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
208
209         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
210
211 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
212
213         * configure.tgt (arm*-*-symbianelf*): New target.
214         (arm*-*-eabi*): Likewise.
215
216 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
217
218         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
219         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
220         (OPTION_NON_OVERLAPPING_OPD): Define.
221         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
222         --non-overlapping-opd option.
223
224 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
225
226         PR 338
227         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
228         was already on the undefs list.
229
230 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
231
232         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
233         prefix the symbol field too.
234
235 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
236
237         * ldmain.c (link_callbacks): Remove "error_handler".
238         * ldmisc.c: Include elf-bfd.h.
239         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
240         bfd_get_section_indent.
241         (error_handler): Delete.
242         * ldmisc.h (error_handler): Delete declaration.
243
244 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
245
246         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
247         ppc64_elf_restore_symbols.
248
249 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
250
251         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
252         .toc is too large on relocatable linking.
253
254 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
255
256         * emultempl/ppc64elf.em (ppc_after_open): Delete.
257         (LDEMUL_AFTER_OPEN): Don't define.
258
259 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
260
261         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
262
263 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
264
265         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
266         on power of 2.
267
268 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
269
270         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
271
272 2004-07-26  Dmitry Diky  <diwil@spec.ru>
273
274         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
275         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
276         msp430xG439.
277         * configure.tgt: Likewise.
278         * emulparams/msp430all.sh: Likewise.
279         * Makefile.in: Regenerate.
280
281 2004-07-23  Nick Clifton  <nickc@redhat.com>
282
283         * emultempl/elf32.em (_place_orphan): Use an already existing
284         section name if that section does not have any flags set.
285
286 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
287
288         * ldlang.c (already_linked_hash_entry): Removed.
289         (already_linked): Likewise.
290         (already_linked_table): Likewise.
291         (section_already_linked): Call bfd_section_already_linked.
292         (lang_process): Replace already_linked_table_init with
293         bfd_section_already_linked_table_init and check return. Replace
294         already_linked_table_free with bfd_section_already_linked_table_free.
295
296 2004-07-21  Nick Clifton  <nickc@redhat.com>
297
298         * ldlang.c (init_os): Make sure that the newly allocated userdata
299         structure is zeroed out.
300
301 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
302
303         * NEWS: Mention the new --add-needed/--no-add-needed and
304         --as-needed/--no-as-needed options.
305
306 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
307
308         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
309         check the add_needed field.
310         (dt_needed): New struct.
311         (gld${EMULATION_NAME}_try_needed): Change the first argument
312         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
313         bit in the file where the DT_NEEDED entry comes from.
314         (gld${EMULATION_NAME}_search_needed): Change the second
315         argument to a pointer to struct dt_needed.
316         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
317         (gld${EMULATION_NAME}_after_open): Likewise.
318
319         * ld.texinfo: Add --add-needed document.
320         * ldlang.c (new_afile): Set p->add_needed.
321         * ldlang.h (lang_input_statement_type): Add add_needed field.
322         * ldmain.h (add_needed): Declare.
323         * ldmain.c (add_needed): New global var.
324         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
325         OPTION_NO_ADD_NEEDED.
326         (ld_options): Likewise.
327         (parse_args): Handle them.
328
329 2004-07-13  Christof Petig  <christof@petig-baender.de>
330
331         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
332         for endian-ness of extracted addend.
333
334 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
335
336         * pe-dll.c (auto_export):  Filter on just the import prefix,
337         "_imp_", not "_imp__".
338
339 2004-07-09  Nick Clifton  <nickc@redhat.com>
340
341         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
342
343 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
344
345         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
346         (eelf32crx.c): New target.
347         * Makefile.in: Regenerate.
348         * configure.tgt: Handle crx-*-elf*.
349         * emulparams/elf32crx.sh: New file.
350         * emultempl/crxelf.em: New file.
351         * scripttempl/elf32crx.sc: New file.
352         * NEWS: Mention new target.
353
354 2004-07-06  Nick Clifton  <nickc@redhat.com>
355
356         * Makefile.am: Add eshlsymbian.c.
357         * Makefile.in: Regenerate.
358         * configure.tgt: Add sh*-symbian-elf target.
359         * emulparams/shlsymbian.sh: New file.  Configure the
360         sh-symbian-elf linker scripts.
361         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
362         template for the sh-symbian-elf target.
363
364 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
365
366         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
367         * emulparams/hppalinux.sh: Likewise.
368         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
369         data segment and PLT_BEFORE_GOT is defined.
370
371 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
372
373         * ld.texinfo (WIN32): Document PE weak symbols.
374
375 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
376
377         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
378
379 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
380
381         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
382         the section.
383
384 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
385
386         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
387         size in rawsize.
388
389 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
390
391         * ldlang.c (print_output_section_statement): Don't print size before
392         relaxation.
393         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
394
395         * ldexp.c (fold_name): .. See below.
396         * ldlang.c (section_already_linked, print_output_section_statement,
397         print_input_section, insert_pad, size_input_section,
398         lang_check_section_addresses, lang_size_sections_1,
399         lang_size_sections, lang_do_assignments_1, lang_set_startof,
400         lang_one_common, lang_reset_memory_regions, lang_process,
401         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
402         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
403         * pe-dll.c (process_def_file, generate_reloc): ..
404         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
405         gld${EMULATION_NAME}_before_allocation): ..
406         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
407         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
408         sh64_elf_${EMULATION_NAME}_after_allocation): ..
409         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
410         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
411         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
412         "size" instead of "_raw_size" and "_cooked_size".  Expand
413         bfd_section_size macro invocations.
414
415 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
416
417         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
418         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
419         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
420         ___crt_xt_end__.
421         (.tls): Define ___tls_start__ and ___tls_end__.
422
423 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
424
425         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
426
427 2004-06-18  Adam Nemet  <anemet@lnxw.com>
428
429         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
430         * configure: Regenerate.
431
432 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
433
434         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
435         .gcc_except_table output sections lost accidentally with
436         -z relro patch.
437
438 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
439
440         * ldwrite.c (build_link_order): Use bfd_get_section_size
441         instead of bfd_get_section_size_before_reloc or _raw_size.
442         * pe-dll.c (process_def_file): Likewise.
443
444 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
445
446         From Richard Wirth <r.wirth@wirthware.de>
447         * ldlang.c (lang_finish): Don't free lang_definedness_table.
448
449 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
450
451         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
452         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
453
454 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
455
456         * testsuite/ld-sh/arch/arch.exp: New test script.
457         * testsuite/ld-sh/arch/arch_expected.txt: New file.
458         * testsuite/ld-sh/arch/sh.s: New file.
459         * testsuite/ld-sh/arch/sh2.s: New file.
460         * testsuite/ld-sh/arch/sh-dsp.s: New file.
461         * testsuite/ld-sh/arch/sh2e.s: New file.
462         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
463         * testsuite/ld-sh/arch/sh3.s: New file.
464         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
465         * testsuite/ld-sh/arch/sh3e.s: New file.
466         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
467         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
468         * testsuite/ld-sh/arch/sh4.s: New file.
469         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
470         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
471         * testsuite/ld-sh/arch/sh4a.s: New file.
472
473 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
474
475         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
476         throughout file.
477         * lexsup.c: Formatting.  Wrap long lines.
478         * ldwrite.c: Update copyright date.
479
480         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
481         (output_section_callback): Nor SEC_KEEP here.
482         (gc_section_callback): Twiddle SEC_EXCLUDE here.
483         (lang_gc_wild): Delete.  Fold into..
484         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
485         collecting.
486         (lang_process): Always call lang_gc_sections.
487         (lang_place_orphans): Handle SEC_EXCLUDE sections.
488         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
489         SEC_EXCLUDE code.
490
491 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
492
493         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
494         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
495         * ldlang.c (lang_add_section): Likewise.
496
497 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
498
499         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
500         sections when doing a final link.  Clear SEC_EXCLUDE when doing
501         a relocable link, except for SEC_DEBUGGING sections.
502         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
503         same condition here to drop SEC_EXCLUDE orphan sections.
504
505 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
506
507         * ldlang.c (lang_process): Call bfd_merge_sections later, and
508         only when not a relocatable link.
509         (print_input_section): Handle SEC_EXCLUDE sections.
510         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
511         (lang_do_assignments_1): Likewise.
512         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
513         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
514         * emultempl/hppaelf.em (build_section_lists): Likewise.
515         * emultempl/ppc64elf.em (build_toc_list): Likewise.
516         (build_section_lists): Likewise.
517
518 2004-05-23  Andreas Schwab  <schwab@suse.de>
519
520         * ld.texinfo (Options): Fix typo in last change.
521
522 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
523
524         * ld.h (ld_config_type): Add new field: hash_table_size.
525         * ldmain.c: Initialise the new field to zero.  If it is non-zero
526         after parsing the linker's command line call
527         bfd_hash_set_default_size.
528         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
529         (ld_options): Add hash-size.
530         (parse_args): Parse --hash-size option.  Allow
531         --reduce-memory-overheads to set the default hash table size as
532         well.
533         * ld.texinfo: Document the new switch.  Also mention that
534         --reduce-memory-overheads can affect the hash table size.
535         * NEWS: Mention the new feature.
536
537 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
538
539         * NEWS: Mention new linker map file generation and the
540         --reduce-memory-overheads option.
541         * ld.texinfo: Document --reduce-memory-overheads option.
542         * ld.h (map_symbol_def): New struct.
543         (struct user_section_struct, section_userdata_type): Rename to:
544         (struct lean_user_section_struct, lean_section_userdata_type).
545         (struct fat_user_section_struct, fat_section_userdata_type): New.
546         (SECTION_USERDATA_SIZE): Define.
547         (args_type): New member reduce_memory_overheads.
548         * ldlang.c (map_obstack): New static variable.
549         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
550         (lang_map): Unless command_line.reduce_memory_overheads is set,
551         initialize lists of defined symbols for each section.
552         (print_input_section): Unless command_line.reduce_memory_overheads
553         is set, use print_all_symbols.
554         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
555         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
556         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
557         (ld_options): Add entry for --reduce-memory-overheads.
558         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
559
560 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
561
562         * ldgram.y (sect_constraint): New.
563         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
564         (section): Add sect_constraint.  Pass additional argument
565         to lang_enter_output_section_statement.
566         * mri.c (mri_draw_tree): Pass additional argument to
567         lang_enter_output_section_statement.
568         * emultempl/pe.em (place_orphan): Likewise.
569         (output_prev_sec_find): Disregard output section statements with
570         constraint == -1.
571         * emultempl/mmo.em (output_prev_sec_find): Likewise.
572         (mmo_place_orphan): Pass additional argument to
573         lang_enter_output_section_statement.
574         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
575         statements with constraint == -1.
576         (place_orphan): Pass additional argument to
577         lang_enter_output_section_statement.
578         * ldlang.c (lang_enter_overlay_section): Likewise.
579         (lang_output_section_find_1): New.
580         (lang_output_section_find): Use it.
581         (lang_output_section_statement_lookup_1): New.
582         (lang_output_section_statement_lookup): Use it.
583         (check_section_callback, check_input_sections): New.
584         (map_input_to_output_sections): Check if all input sections
585         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
586         (strip_excluded_output_sections): Disregard output section statements
587         with constraint == -1.
588         (lang_record_phdrs): Likewise.
589         (lang_enter_output_section_statement): Add constraint argument.
590         Use lang_output_section_statement_lookup_1.
591         * ldlang.h (lang_output_section_statement_type): Add constraint
592         and all_input_readonly fields.
593         (lang_enter_output_section_statement): Adjust prototype.
594         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
595         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
596         segment if all input sections are readonly.
597
598 2004-05-19  Adam Nemet  <anemet@lnxw.com>
599
600         * scripttempl/i386lynx.sc: Remove file.
601
602 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
603
604         * ld.texinfo (Output Section Address): Correct subsection name.
605
606 2004-05-17  Adam Nemet  <anemet@lnxw.com>
607
608         * configure.tgt (powerpc-*-lynxos* case): New case.
609         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
610         * emulparams/ppclynx.sh: New file.
611         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
612         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
613         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
614         (eppclynx.c): New rule.
615         * Makefile.in: Regenerate.
616
617 2004-05-13  Joel Sherrill <joel@oarcorp.com>
618
619         * configure.tgt (or32-*-rtems*): Switch to elf and
620         support versioned targets.
621
622 2004-05-13  Nick Clifton  <nickc@redhat.com>
623
624         * po/fr.po: Updated French translation.
625
626 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
627
628         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
629         for binaries, -shared and -pie.
630         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
631         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
632         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
633         (OTHER_RELRO_SECTIONS): ... this.
634         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
635         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
636         -z relro and -z norelro.
637         (gld${EMULATION_NAME}_list_options): Add it to usage.
638         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
639         -z relro scripts when appropriate.
640         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
641         Create separate .got.plt section if SEPARATE_GOTPLT.
642         Move sections which are only written during relocation handling
643         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
644         before .data.  Add DATA_SEGMENT_RELRO_END directive.
645         Include OTHER_RELRO_SECTIONS.
646         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
647         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
648         (fold_unary): Likewise.
649         (fold_binary): Handle -z relro.
650         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
651         exp_dataseg_relro_adjust phases.  Add relro_end field.
652         * ldmain.c (main): Initialize link_info.relro to FALSE.
653         * ldlang.c (lang_size_sections): Handle -z relro.
654
655 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
656
657         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
658
659 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
660
661         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
662         before printing it with %W.
663
664 2004-05-07  Brian Ford  <ford@vss.fsi.com>
665             DJ Delorie  <dj@redhat.com>
666
667         * emultempl/pe.em (real_flags): New static.
668         (OPTION_LARGE_ADDRESS_AWARE): New define.
669         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
670         (gld_${EMULATION_NAME}_list_options): Likewise.
671         (gld${EMULATION_NAME}_handle_option): Likewise.
672         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
673         * ld.texinfo: Document it.
674         * NEWS: Mention it.
675
676 2004-05-07  Brian Ford  <ford@vss.fsi.com>
677
678         * NEWS: Mention DWARF 2 support for i386pe.
679
680 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
681
682         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
683         elf32-frvfdpic.
684
685 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
686
687         * ldlang.c (unique_section_p): Pass section parm, return true on
688         group sections.
689         (output_section_callback): Adjust.
690         * ldlang.h (unique_section_p): Update prototype.
691         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
692
693 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
694
695         * ld.texinfo (--gc-sections): Remove restriction for
696         dynamic linking.
697
698 2004-04-29  Brian Ford  <ford@vss.fsi.com>
699
700         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
701         for DWARF 2/3.  Update stab section's syntax.
702
703 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
704
705         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
706         (fill_edata): Correct pointer arithmetic.
707
708 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
709
710         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
711         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
712         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
713         (EXTRA_EM_FILE): Use mipsecoff.em
714         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
715         (EXTRA_EM_FILE): Use mipsecoff.em
716         * emultempl/mipsecoff.em: Restructure to be included as an
717         extra emulation file.
718         (check_sections, gld${EMULATION_NAME}_after_open)
719         (gld${EMULATION_NAME}_after_allocation)
720         (gld${EMULATION_NAME}_get_script)
721         (ld_${EMULATION_NAME}_emulation): Remove
722         (gld${EMULATION_NAME}_before_parse): Rename to...
723         (mipsecoff_before_parse): This.
724         (LDEMUL_BEFORE_PARSE): Define.
725         * emultempl/mipself.em: Remove file.
726         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
727         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
728         these symbols.
729         * Makefile.am: Remove dependencies on emultempl/mipself.em.
730         * Makefile.in: Regenerate.
731
732 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
733
734         * ld.texinfo (synthesizing on H8/300): Information about linker
735         relaxation support for bit manipulation instructions and system
736         control instructions is added.
737
738 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
739
740         * NEWS: Mention change in DEFINED semantics.
741
742 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
743
744         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
745         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
746         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
747
748 2004-04-21  Ben Elliston  <bje@au.ibm.com>
749
750         * ld.texinfo (Simple Example): Add missing punctuation.
751
752 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
753
754         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
755
756 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
757
758         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
759         specially.
760
761 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
762
763         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
764         with default priority. Likewise for dtors.
765
766 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
767
768         * configure.host: Remove mips*-dec-bsd* target.
769         * configure.tgt: Likewise.
770
771 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
772
773         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
774         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
775         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
776         * emultempl/irix.em: New file.
777         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
778         dependencies.
779         * Makefile.in: Regenerate.
780
781 2004-04-01  Paul Brook  <paul@codesourcery.com>
782
783         * emultempl/armelf.em (byteswap_code): Add.
784         (arm_elf_before_allocation): Pass extra parameter.
785         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
786         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
787         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
788         * emultempl/armelf_oabi.em: Pass extra parameter.
789         * ld.texinfo: Document --be8.
790
791 2004-03-30  Stan Shebs  <shebs@apple.com>
792
793         Remove long-obsolete MPW support.
794         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
795         * Makefile.am (mpw): Remove file-presynthesizing actions.
796         * Makefile.in: Likewise.
797         * ldfile.c (slash): Remove MPW case.
798         * ldlex.l [MPW]: Remove unused definition.
799
800 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
801
802         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
803         (eelf32cr16c.c): New target.
804         * Makefile.in: Regenerate.
805         * configure.tgt: Handle cr16c-*-elf*.
806         * emulparams/elf32cr16c.sh: New file.
807         * scripttempl/elfcr16c.sc: Likewise
808         * NEWS: Mention support for new target.
809
810 2004-03-30  Nick Clifton  <nickc@redhat.com>
811
812         * po/sv.po: Updated Swedish translation.
813
814 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
815
816         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
817         * emultempl/hppaelf.em: Likewise.
818         * emultempl/ppc64elf.em: Likewise.
819         * emultempl/sh64elf.em: Likewise.
820
821 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
822
823         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
824         size_dynamic_sections call.
825
826 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
827
828         PR 51.
829         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
830         link_info.wrap_char.
831
832 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
833
834         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
835         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
836
837 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
838
839         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
840
841 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
842
843         * config.in: Regenerate.
844         * po/ld.pot: Regenerate.
845
846 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
847
848         * ld.texinfo: Add --as-needed doco.
849         * ldmain.c (as_needed): New global var.
850         * ldmain.h (as_needed): Declare.
851         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
852         OPTION_NO_AS_NEEDED.
853         (ld_options): Likewise.
854         (parse_args): Handle them.
855         * ldlang.h (lang_input_statement_type): Add as_needed field.
856         * ldlang.c (new_afile): Set p->as_needed.
857         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
858         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
859         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
860
861         * ldlang.c (open_input_bfds): Remove useless cast.
862         (lang_do_assignments_1): Likewise.
863         (lang_for_each_input_section): Delete.
864
865 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
866
867         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
868
869 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
870
871         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
872         private when building implib.
873
874 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
875
876         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
877         SEC_THREAD_LOCAL.
878         (IGNORE_SECTION): Ignore .tbss sections too.
879         (lang_size_sections_1): .tbss sections do not advance dot.
880
881 2004-03-01  Andreas Schwab  <schwab@suse.de>
882
883         * ld.texinfo (Options): Fix example for --wrap.
884
885 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
886
887         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
888         not NULL.
889
890 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
891
892         * ldlang.c (lang_check): Use %P, not %E, in error message.
893
894 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
895
896         * ldlang.h (struct lang_output_section_state): Change processed
897         field's type.
898         * ldexp.c (check, invalid): Remove.
899         (fold_name): Move valid_p assignments. Create undefined symbol
900         when needed. Directly exampine section's processd flag.
901         * ldlang.c (lang_output_section_statement_lookup): Adjust
902         processed field init.
903         (lang_size_sections_1): Allow LOADADDR when determining section's
904         VMA. Adjust error message. Fold data statement's expr.
905         (lang_size_sections): Correctly increment lang_statement_iteration.
906
907 2004-02-23  Alan Modra <amodra@bigpond.net.au>
908
909         * ldexp.c (fold_tree): Follow indirect symbols.
910
911 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
912
913         * ldgram.y (exp): Add two operand ALIGN.
914         * ldexp.c (fold_binary): Add ALIGN_K case.
915         * ld.texinfo (ALIGN): Document two operand version.
916
917 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
918
919         * ldlang.c (map_input_to_output_sections): Initialize sections
920         mentioned in a data statement expression.
921         (lang_do_assignments_1): Add data statement's expression's
922         section's vma.
923
924 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
925
926         * ldgram.y (statement_anywhere): Add assert rule.
927         * ldlang.c (exp_init_os): Add assert case.
928
929 2004-02-14  Andrew Cagney  <cagney@redhat.com>
930
931         * ldmain.c (remove_output): Call bfd_cache_close.
932
933 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
934
935         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
936         .MIPS.content* and .MIPS.events* sections.
937
938 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
939
940         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
941         .note.gnu.arm.ident to after allocated sections.  Mark its
942         address as 0.
943
944 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
945
946         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
947         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
948         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
949         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
950         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
951
952 2004-02-05  Nick Clifton  <nickc@redhat.com>
953
954         * emultempl/pe.em (_after_open): Fix typo in previous delta.
955
956 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
957
958         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
959
960 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
961
962         * genscripts.sh: Fix typo.
963
964         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
965
966 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
967
968         * emulparams/elf64_ia64.sh: Put .rela.opd into
969         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
970
971 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
972
973         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
974         * ld.texinfo (--omagic): Note that writable text section
975         does not conform to published PE-COFF specs.
976         (--enable-auto-import): Likewise.
977
978 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
979
980         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
981
982 2004-01-13  Nick Clifton  <nickc@redhat.com>
983
984         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
985         which if true will prevent the LMA region being used as a
986         replacement for a default VMA region.
987         (lang_leave_output_section_statement): Pass extra parameter.
988         (lang_leave_overlay): Likewise.
989         * ld.texinfo (Output Section LMA): Document that the LMA
990         region can be set to the VMA region if no VMA has been set.
991         * ldlang.h (struct lang_output_section_phdr_list): Create a
992         typedef for this type.  Minor formatting fixes.
993
994 2004-01-13  Nick Clifton  <nickc@redhat.com>
995
996         * ldlang.c (lang_size_sections_1): If dot is advanced, then
997         assume that the section should be allocated.
998
999 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1000
1001         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1002         sections.  Do ignore SEC_NEVER_LOAD sections.
1003         (lang_size_sections_1): Remove test made redundant with the above.
1004
1005 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1006
1007         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1008         program_header_size.
1009
1010 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1011
1012         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1013         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1014         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1015         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1016         (MAXPAGESIZE): Set to 64Kb.
1017         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1018         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1019         * emulparams/elf32frv.sh (NOP): Set.
1020         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1021         * configure.tgt: Add frv-*-*linux*.
1022         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1023         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1024         (eelf32frvfd.c): New.
1025         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1026         * emulparams/elf32frv.sh: Reverted previous two patches.
1027         * emulparams/elf32frvfd.sh: New.
1028         * Makefile.in: Rebuilt.
1029         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1030         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1031         .rofixup.got to .rofixup.
1032         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1033         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1034         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1035
1036 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1037
1038         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1039         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1040
1041 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1042
1043         * ldexp.c (align_n): Make static.
1044         * ldexp.h (align_n): Delete declaration.
1045         * ldlang.h (lang_enter_output_section_statement): Remove
1046         block_value param.
1047         * ldlang.c (lang_enter_output_section_statement): Likewise.
1048         (TO_ADDR, TO_SIZE): Define.
1049         (opb_shift): New var.
1050         (init_opb): New function.
1051         (print_input_section): Call init_opb and use TO_ADDR.
1052         (print_data_statement, print_reloc_statement): Likewise.
1053         (print_padding_statement): Likewise.
1054         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1055         (lang_check_section_addresses): Likewise.
1056         (lang_size_sections_1): Likewise.
1057         (lang_do_assignments_1): Likewise.
1058         (lang_set_startof): Likewise.
1059         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1060         (lang_process): Call init_opb.
1061         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1062         (lang_enter_overlay_section): Adjust
1063         lang_enter_output_section_statement call.
1064         * ldgram.y: Likewise.
1065         * mri.c (mri_draw_tree): Likewise.
1066         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1067         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1068         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1069
1070         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1071         * ldfile.h (ldfile_set_output_arch): Ditto.
1072         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1073         ldfile_set_output_arch.
1074         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1075         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1076         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1077         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1078         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1079         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1080         * ldgram.y: Adjust ldfile_set_output_arch call.
1081         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1082         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1083         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1084         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1085         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1086         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1087         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1088
1089 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1090
1091         * configure.tgt: Add m68k-uClinux target.
1092
1093 For older changes see ChangeLog-0203
1094 \f
1095 Local Variables:
1096 mode: change-log
1097 left-margin: 8
1098 fill-column: 74
1099 version-control: never
1100 End: