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