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