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