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