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