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