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