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