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