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