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