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