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