* emultempl/mmo.em (mmo_after_open): Don't call
[binutils.git] / ld / ChangeLog
CommitLineData
1c5e6447
HPN
12002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2
3 * emultempl/mmo.em (mmo_after_open): Don't call
4 _bfd_mmix_check_all_relocs when producing ELF output.
5
8bb57516
RH
62002-02-15 Richard Henderson <rth@redhat.com>
7
8 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
9 definition. Emit a unop+nop pair.
10
49fda6c8
HPN
112002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
12
83c2d653
HPN
13 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
14 for presence of .MMIX.reg_contents.linker_allocated before early
15 exit.
16
49fda6c8
HPN
17 * NEWS: Mention support for MMIX.
18
2c382fb6
AM
192002-02-15 Alan Modra <amodra@bigpond.net.au>
20
21 Support arbitrary length fill patterns.
a139d329
AM
22 * ld.texinfo (Output Section Fill): Describe fill expressions.
23 (FILL): Refer to the above.
2c382fb6
AM
24 * ldexp.h (etree_value_type): Add "str" field.
25 (union etree_union): Add "str" to "value" struct.
26 (exp_bigintop): Declare.
27 (exp_get_fill): Declare.
28 * ldexp.c: Include "safe-ctype.h".
29 (exp_intop): Set value.str to NULL.
30 (exp_bigintop): New function.
31 (new_rel): Pass in "str", and set new.str from it.
32 (new_rel_from_section): Set new.str to NULL.
33 (fold_name): Adjust calls to new_rel.
34 (exp_fold_tree): Likewise.
35 (exp_get_fill): New function.
36 * ldgram.y (struct big_int bigint, fill_type *fill): New.
37 (INT): Returns a "bigint". Adjust all code handling INTs.
38 (fill_opt): Returns a "fill".
39 (fill_exp): Split out of fill_opt, use for FILL.
40 * ldlang.h (struct _fill_type): New.
41 (fill_type): Move typedef to ldexp.h.
42 (lang_output_section_statement_type): "fill" is now a pointer.
43 (lang_fill_statement_type): Likewise.
44 (lang_padding_statement_type): Likewise.
45 (lang_add_fill): Now takes a "fill_type *" param.
46 (lang_leave_output_section_statement): Likewise.
47 (lang_do_assignments): Likewise.
48 (lang_size_sections): Likewise.
49 (lang_leave_overlay_section): Likewise.
50 (lang_leave_overlay): Likewise.
51 * ldlang.c: Include ldgram.h after ldexp.h.
52 (lang_output_section_statement_lookup): Adjust for fill_type change.
53 (print_fill_statement): Likewise.
54 (print_padding_statement): Likewise.
55 (insert_pad): Now takes a "fill_type *" arg.
56 (size_input_section): Likewise.
57 (lang_size_sections_1): Likewise.
58 (lang_size_sections): Likewise.
59 (lang_do_assignments): Likewise.
60 (lang_add_fill): Likewise.
61 (lang_leave_output_section_statement): Likewise.
62 (lang_leave_overlay_section): Likewise.
63 (lang_leave_overlay): Likewise.
64 Adjust all callers of the above function.
65 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
66 starting with "0X" as well as "0x". Return bigint.str for hex
67 numbers starting with "0x" or "0X", zero bigint.str otherwise.
68 Always use base 16 for numbers starting with "$".
69 * ldmain.c: Include ldgram.h after ldexp.h.
70 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
71 of bfd_fill_link_order.
72 * pe-dll.c: Adjust lang_do_assignments calls.
73 * emultempl/elf32.em: Likewise.
74 * emultempl/hppaelf.em: Likewise.
75 * emultempl/ppc64elf.em: Likewise.
76 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
77 lang_add_assignment call.
78 * emultempl/pe.em: Likewise.
79
313e35ee
AM
802002-02-14 Phil Edwards <pme@gcc.gnu.org>
81
a139d329 82 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
83 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
84 the pattern in question is not a regexp.
85 * ldlang.c: Likewise.
86 * ldlang.h: Likewise.
87 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
88
2d20f7bf
JJ
892002-02-12 Jakub Jelinek <jakub@redhat.com>
90
91 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
92 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
93 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
94 * ldexp.c (exp_data_seg): New variable.
95 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
96 (fold_binary): Handle DATA_SEGMENT_ALIGN.
97 (exp_fold_tree): Handle DATA_SEGMENT_END.
98 Pass allocation_done when recursing instead of hardcoding
99 lang_allocating_phase_enum.
100 * ldexp.h (exp_data_seg): New.
101 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
102 (lang_size_sections): New.
103 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
104 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
105 if COMMONPAGESIZE is defined.
106 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
107 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
108 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
109 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
110 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
111 libraries only.
112
06880219
AM
1132002-02-11 Alan Modra <amodra@bigpond.net.au>
114
115 * Makefile.in: Regenerate.
116
37b0ac0f
DJ
1172002-02-10 Daniel Jacobowitz <drow@mvista.com>
118
119 * lexsup.c: Remove strtoul declaration.
120
4e5bae56
DJ
1212002-02-10 Daniel Jacobowitz <drow@mvista.com>
122
123 * ldmain.c: Add prototype for main ().
124 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
125 * emultempl/lnk960.em (lnk960_choose_target): Function should
126 take two arguments.
127
1e281515
AM
1282002-02-10 Alan Modra <amodra@bigpond.net.au>
129
130 * ldlang.c (entry_section): New initialised variable.
131 (lang_finish): Use it.
132 * ldlang.h (entry_section): Declare.
133 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
134 entry_section to ".opd".
135
f92d92ff 1362002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
137
138 * ld.texinfo (Options): Add back in -nostdlib documentation,
139 which had been inadvertently removed.
140
74c44237
HPN
1412002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
142
143 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
144 register section vma to a sane value after emitting error. Make
145 fatal conditions cause program exit when emitting message.
146
5e37cc46
NC
1472002-02-08 Ivan Guzvinec <ivang@opencores.org>
148
149 * configure.tgt: Add or32-*-rtems target.
150
2d92cb7d
AO
1512002-02-08 Alexandre Oliva <aoliva@redhat.com>
152
153 Contribute sh64-elf.
154 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
155 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
156 in OTHER_RELOCATABLE_SECTIONS.
157 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
158 * emulparams/shelf32.sh (STACK_ADDR): Define.
159 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
160 (OTHER_SECTIONS): this. Removed stack settings.
161 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
162 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
163 2001-03-12 DJ Delorie <dj@redhat.com>
164 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
165 relaxing if any shmedia or mixed sections are found.
166 2001-03-07 DJ Delorie <dj@redhat.com>
167 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
168 einfo. Gracefully decline to output to non-elf formats.
169 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
170 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
171 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
172 * emulparams/shelf32.sh: Ditto.
173 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
174 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
175 comment.
176 2001-01-10 Ben Elliston <bje@redhat.com>
177 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
178 non-portable shell constructs. From Hans-Peter Nilsson.
179 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
180 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
181 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
182 dependencies to the shell script include chain.
183 * Makefile.in: Regenerate.
184 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
185 * emultempl/sh64elf.em: Update and tweak comments.
186 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
187 make a .cranges section SEC_IN_MEMORY.
188 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
189 * emultempl/sh64elf.em
190 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
191 .cranges section found to be necessary; continue and set stored
192 section contents flags for sections with non-mixed contents.
193 Use a struct sh64_section_data container and sh64_elf_section_data
194 to store contents-type flags.
195 Remove unused update of "isec".
196 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
197 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
198 access contents-type flags. Assert that the associated container
199 is initialized. Use that container, not elf_gp_size, to hold size
200 of linker-generated cranges contents.
201 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
202 * emultempl/sh64elf.em
203 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
204 there's already a .cranges section. When section flag difference
205 is found, don't NULL-check cranges a second time. Tweak comments.
206 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
207 merging, not max size, as size of ld-generated .cranges contents.
208 Don't set ELF section flags in output section. When checking for
209 needed .cranges descriptors, don't use a variable; compare
210 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
211 comments.
212 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
213 * emultempl/sh64elf.em: New file.
214 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
215 * Makefile.in: Regenerate.
216 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
217 (OTHER_RELOCATING_SECTIONS): Ditto.
218 (EXTRA_EM_FILE): New, set to sh64elf if not set.
219 * emulparams/shlelf32.sh: Stub out all settings except
220 OUTPUT_FORMAT. Source shelf32.sh.
221 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
222 OTHER_RELOCATING_SECTIONS.
223 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
224 * emulparams/shlelf64.sh: Stub out all settings except
225 OUTPUT_FORMAT. Source shelf64.sh.
226 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
227 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
228 .cranges section.
229 (DATA_START_SYMBOLS): Define, provide ___data.
230 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
231 for consecutive .data section.
232 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
233 section after .data section.
234 * emulparams/shlelf64.sh: Ditto.
235 * emulparams/shelf32.sh: Ditto.
236 (ALIGNMENT): Define to 8.
237 * emulparams/shelf32.sh: Ditto.
238 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
239 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
240 built-in linker scripts.
241 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
242 * emulparams/shlelf64.sh: New.
243 * emulparams/shelf64.sh: New.
244 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
245 targ_extra_emuls.
246 * Makefile.am: Add support for shlelf64 and shelf64.
247 * Makefile.in: Regenerate.
248 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
249 * configure.tgt (sh64-*-elf*): Add shelf as default.
250 Add shlelf to targ_extra_emuls.
251 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
252 * emulparams/shelf32.sh: New file.
253 * emulparams/shlelf32.sh: New file.
254 * Makefile.am: Add support for shlelf32 and shelf32.
255 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
256 * Makefile.in: Regenerate.
257
e3dc8847
HPN
2582002-02-05 Hans-Peter Nilsson <hp@axis.com>
259
260 * ldlang.c (lang_reset_memory_regions): Rename from
261 reset_memory_regions. Change all callers. Make public.
262 * ldlang.h (lang_reset_memory_regions): Prototype.
263 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
264 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
265 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
266 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 267
8017dbcb
HPN
2682002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
269
270 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
271 arithmetic when checking for too many global registers.
272
006336b8
JT
2732002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
274
275 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
276 (ehppanbsd.c): New rule.
277 * Makefile.in: Regenerate.
278 * configure.tgt (hppa*-*-netbsd*): New target.
279 * emulparams/hppalinux.sh: Add comment to check other files
280 that source this file it is modified, and list which
281 files that do.
282 * emulparams/hppanbsd.sh: New file.
283
da1f2fec
GK
2842002-02-01 Geoffrey Keating <geoffk@redhat.com>
285
286 * scripttempl/xstormy16.sc: Don't allocate extra space for the
287 stack.
288
48fa4a5d
HPN
2892002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
290
291 Support on-demand global register allocation from
292 R_MMIX_BASE_PLUS_OFFSET relocs.
293 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
294 mmix_set_reg_section_vma. Call
295 _bfd_mmix_finalize_linker_allocated_gregs.
296 (mmix_before_allocation): New function.
297 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
298 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
299 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
300 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
301 before .MMIX.reg_contents.
302 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
303 (mmo_after_open): New function.
304 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
305 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
306 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
307
3b16e843
NC
3082002-01-31 Ivan Guzvinec <ivang@opencores.org>
309
310 * emulparams/or32.sh: New file.
311 * emulparams/or32elf.sh: New file.
312 * scripttempl/or32.sc: New file.
313 * configure.tgt : Add support for or32.
314 * configure: Regenerate
315 * Makefile.am: Add support for or32.
316 * Makefile.in: Regenerate.
317 * NEWS: Mention support for or32.
318 * po/ld.pot: Regenerate.
319
f744d540 3202002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 321 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
322
323 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
324 * emultempl/mipself.em: New file to handle MIPS ELF embedded
325 reloc creation (ld --embedded-relocs).
326
4867be41
DJ
3272002-01-27 Daniel Jacobowitz <drow@mvista.com>
328
329 * configure: Regenerated.
330
cd8e197b
HPN
3312002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
332
333 * Makefile.am (install): Depend on install-info.
334 * Makefile.in: Regenerate.
335
9cb61eab
AM
3362002-01-26 Christian Rose <menthos@menthos.com>
337
338 * ldmain.c (main): Use full sentences to ease translation.
339
1caa7b23
NC
3402002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
341
342 * po/fr.po: Updated version.
343
1ddbd152
NC
3442002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
345
346 * po/es.po: Updated version.
347
1e84433f
AJ
3482002-01-25 Andreas Jaeger <aj@suse.de>
349
350 * ldlex.l (yy_input): Correct error check.
351
6d39955e
AM
3522002-01-25 Alan Modra <amodra@bigpond.net.au>
353
354 * ldmisc.c (demangle): Put back dots when string not demangled.
355
a9ed1e1b
RH
3562002-01-22 Richard Henderson <rth@redhat.com>
357
358 * emulparams/elf64alpha.sh (NOP): Use unop.
359
968ec2b9
AJ
3602002-01-21 Andreas Jaeger <aj@suse.de>
361
362 * ldlex.l: Use fread instead of read.
363
9596feea
JT
3642002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
365
366 * configure.tgt (ia64-*-netbsd*): New target.
367
493a6d47
L
3682002-01-21 H.J. Lu <hjl@gnu.org>
369
370 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
371 0.
372 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
373
2a538ba5
AJ
3742002-01-18 Andreas Jaeger <aj@suse.de>
375
376 * ldver.c (ldversion): Update year.
377
328577ad
NC
3782002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
379
380 * po/ld.pot: Regenerate.
381
1f808cd5
AM
3822002-01-16 Alan Modra <amodra@bigpond.net.au>
383
384 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
385 * Makefile.in: Regenerate.
386 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
387 * emultempl/ppc64elf.em: New file.
388
335c5610
DD
3892002-01-15 DJ Delorie <dj@redhat.com>
390
391 * scripttempl/pe.sc: Add support for constructor priorities.
392
c40bbade
DC
3932002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
394
395 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
396 * emulparams/avr23xx.sh: Likewise.
397 * emulparams/avr4433.sh: Likewise.
398 * emulparams/avr44x4.sh: Likewise.
399 * emulparams/avr85xx.sh: Likewise.
400 * emulparams/avrmega103.sh: Likewise.
401 * emulparams/avrmega161.sh: Likewise.
402 * emulparams/avrmega603.sh: Likewise.
403 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
404
34efb449
AO
4052002-01-08 Alexandre Oliva <aoliva@redhat.com>
406
407 * ldlang.c (walk_wild_section): Exclude object file if enclosing
408 archive is excluded.
409
8d05742f
JT
4102002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
411
412 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 413 (eshelf_nbsd.c): New rule.
8d05742f
JT
414 (eshlelf_nbsd.c): New rule.
415 * Makefile.in: Regenerate.
416 * configure.tgt (sh*le-*-netbsdelf*): New target.
417 (sh*-*-netbsdelf*): New target.
418 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
419 * ld/emulparams/shelf_nbsd.sh: New emulation.
420 * ld/emulparams/shlelf_nbsd.sh: New emulation.
421
be2d1673
NC
4222002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
423
424 * po/es.po: New file: Spanish translation.
425 * configure.in (ALL_LINGUAS): Add es.
426 * configure: Regenerate.
427
dbab7a7b
NC
4282002-01-06 John Marshall <jmarshall@acm.org>
429
430 * ld.texinfo: Note that --emit-relocs is currently only
431 implemented for ELF.
432
3dfe7a8c
AM
4332002-01-05 Alan Modra <amodra@bigpond.net.au>
434
435 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
436 of bfd_section_list_remove and bfd_section_list_insert macros.
437 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
438 * emultempl/mmo.em (mmo_place_orphan): Likewise.
439
8a8b2d4b
AJ
4402002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
441
442 * configure.tgt (x86_64-*-netbsd*): New target.
443
9a4c7f16
TR
4442001-12-21 Tom Rix <trix@redhat.com>
445
8a8b2d4b 446 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
447 For -binitfini support.
448 * emultempl/aix.em (gld*_before_parse): Fix comment.
449 * emultempl/aix.em (gld*_parse_args): Fix comment.
450
3695c299
AM
4512001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
452
cf86e6df
AM
453 * configure.tgt (mips*-dec-netbsd*): Delete alias for
454 mips*el-*-netbsd*.
455 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
456
3695c299
AM
457 * configure.tgt (arm-*-netbsdelf*): Add target.
458 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
459 * emulparams/armelf_nbsd.sh: Added.
460 * Makefile.am: Add rules for earmelf_nbsd.
461 * Makefile.in: Regenerate.
462
97cb79ae
AJ
4632001-12-19 Andreas Jaeger <aj@suse.de>,
464 Susanne Oberhauser <froh@suse.de>
465
466 * configure.host: Add rules for x86_64-*linux-gnu. Change
467 s390x-linux entry to use gcc to report configuration, replace gcc
468 with $CC in s390-linux
469
9d201f2f
AJ
4702001-12-19 Andreas Jaeger <aj@suse.de>
471
472 * ld.texinfo (VERSION): Fix markup.
473
0b69cd08
MG
4742001-12-18 matthew green <mrg@eterna.com.au>
475
476 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
477 (m68kelfnbsd.c): New rule.
478 * Makefile.in: Regenerate.
479 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
480 (m68*-*-netbsd*4k*): .. this.
481 (m68*-*-netbsdelf*): New target.
482 (m68*-*-netbsd*): Also include ELF support.
483 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
484 * emulparams/m68kelfnbsd.sh: New emulation.
485
6b9b879a
JJ
4862001-12-18 Jakub Jelinek <jakub@redhat.com>
487
488 * ldgram.y (vers_node): Support anonymous version tags.
489 * ldlang.c (lang_register_vers_node): Ensure anonymous version
490 tag is not defined together with non-anonymous versions.
491 * ld.texinfo: Document it.
492
9fc877ed
NC
4932001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
494
495 * po/tr.po: New file: Turkish translation.
496 * configure.in (ALL_LINGUAS): Add tr.
497 * configure: Regenerate.
498
fc18a3f3
RH
4992001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
500
501 * Makefile.am: Add rules for eelf64alpha_nbsd.
502 * Makefile.in: Regenerate.
503 * configure.tgt (alpha*-*-netbsd*): Set
504 targ_emul to elf64alpha_nbsd.
505 * emulparams/elf64alpha_nbsd.sh: Added.
506
76f63e91
AM
5072001-12-17 Alan Modra <amodra@bigpond.net.au>
508
509 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
510 section_tail when fiddling with section list.
511 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
512 broken into separate strings to make translation easier.
513 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
514 fiddling with section list.
515 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
516
d03b89bd
HPN
5172001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
518
519 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
520
320fec9a
AM
5212001-12-15 Alan Modra <amodra@bigpond.net.au>
522
523 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
524
65765700
JJ
5252001-12-13 Jakub Jelinek <jakub@redhat.com>
526
527 * emultempl/elf32.em (finish): Supply output_bfd
528 to bfd_elf*_discard_info.
529 (OPTION_EH_FRAME_HDR): Define.
530 (longopts): Add --eh-frame-hdr.
531 (parse_args): Handle it.
532 (list_options): Add --eh-frame-hdr to help.
533 * emultempl/hppaelf.em (finish): Supply output_bfd
534 to bfd_elf*_discard_info.
535 * scripttempl/elf.sc (.eh_frame_hdr): Add.
536
89894c62
AM
5372001-12-13 Alan Modra <amodra@bigpond.net.au>
538
539 * lexsup.c (parse_args): Don't pass shortopts to second call to
540 getopt functions. Restore optind rather than decrementing before
541 second call. Remove errind as it now duplicates last_optind.
542
583f1926
CF
5432001-12-11 Christopher Faylor <cgf@redhat.com>
544
545 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
546
93fbbb04
GK
5472001-12-07 Geoffrey Keating <geoffk@redhat.com>
548 Richard Henderson <rth@redhat.com>
549
550 * Makefile.am: Add support for xstormy16.
551 * configure.tgt: Add support for xstormy16.
552 * Makefile.in: Regenerate.
553 * emulparams/elf32xstormy16.sh: New file.
554 * scripttempl/xstormy16.sc: New file.
555
583f1926
CF
5562001-10-01 Christopher Faylor <cgf@cygnus.com>
557
fc18a3f3
RH
558 * Makefile.in (LIB_PATH): Make configurable.
559 (GENSCRIPTS): Set LIB_PATH in environment.
560 * configure.in: Substitute LIB_PATH.
561 * configure: Regenerate.
562 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
563 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 564
ff291a48
NC
5652001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
566
567 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
568 describing the -N option so that it is easier to translate into
569 foreign languages.
570
e3c8793a
NC
5712001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
572
573 * emultempl/pe.em (..._list_options): Replace multiple fprintf
574 statements describing a single option with a single, newline
575 escaped fprintf. This allows better translation into other
576 languages.
9d201f2f 577
fc18a3f3
RH
578 * ldmain.c (add_archive_element): Combine multiple strings
579 into a single string to permit better translation into other
580 languages.
e3c8793a 581
f2eab0af
TR
5822001-12-05 Tom Rix <trix@redhat.com>
583
584 * Makefile.am: Remove eaixppc64.
9d201f2f 585 * Makefile.in: Regenerate.
f2eab0af 586
249172c3
TR
5872001-12-04 Tom Rix <trix@redhat.com>
588
9d201f2f 589 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
590 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
591 warning.
592 (gld*_read_file): Fix typo.
593 (change_symbol_mode): Add prototype.
594 (is_syscall): Same.
9d201f2f 595
249172c3
TR
596 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
597 * emulparams/aixrs6.sh : Same.
598 * emulparams/ppcmacos.sh : Same.
599 * emulparams/aixppc64.sh : Delete file.
600 * emultempl/aix.em : Formatting changes.
601
5b5cd1b0
HPN
6022001-12-04 Hans-Peter Nilsson <hp@axis.com>
603
604 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
605 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
606 __Sbss.
607 (OTHER_END_SYMBOLS): Fix formatting.
608 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
609 (OTHER_END_SYMBOLS): Fix formatting.
610
7cecdbff
AM
6112001-12-04 Alan Modra <amodra@bigpond.net.au>
612
613 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
614
742aeb63 6152001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 616
742aeb63 617 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 618 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
619 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
620 (ldemul_default_target): Same.
621 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
622 * emultempl/gld960c.em (gld960_choose_target): Same.
623 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
624 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
625 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
626 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 627 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
628 -b32 and -b64.
629
48459341
L
6302001-11-27 H.J. Lu <hjl@gnu.org>
631
632 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
633 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
634 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
635 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
636 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
637 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
638 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
639 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
640
7cecdbff 641 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
642 is not empty.
643 (SDATA): Likewise.
644 (REL_SDATA): Likewise.
645 (REL_SBSS): Likewise.
646 (REL_SDATA2): Likewise.
647 (REL_SBSS2): Likewise.
648 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
649 (SDATA2): Likewise.
650
ecfdd20c
SC
6512001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
652
653 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
654 destructor in rom.
7cecdbff 655 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 656
da54c6eb
L
6572001-11-22 H.J. Lu <hjl@gnu.org>
658
659 * Makefile.in: Regenerated with automake based on automake
660 1.4-8 in RedHat 7.1.
661
465bc359
AM
6622001-11-22 Alan Modra <amodra@bigpond.net.au>
663
664 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
665 (config.status): Delete rule.
666 Add extra dependencies to cover sourced emulparams files.
667 * Makefile.in: Regenerate.
668
669 * scripttempl/elf.sc: Order <section>, <section>.* and
670 corresponding linkonce sections as seen in input files.
671 Formatting fixes. Zero vma of all sections if not relocating.
672 (STACK): Define and insert if STACK_ADDR defined.
673 (OTHER_RELOCATING_SECTIONS): Delete.
674 (OTHER_END_SYMBOLS): Define.
675 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
676 (OTHER_READWRITE_SECTIONS): Likewise.
677 (OTHER_GOT_SECTIONS): Likewise.
678 (OTHER_SDATA_SECTIONS): Likewise.
679 (OTHER_BSS_SECTIONS): Likewise.
680 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
681 (OTHER_READWRITE_SECTIONS): Likewise.
682 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
683 (OTHER_READWRITE_SECTIONS): Likewise
684
685 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
686 (STACK_ADDR): Define.
687 * emulparams/armelf_oabi.sh: As for armelf.sh.
688 * emulparams/elf32mcore.sh: As for armelf.sh.
689 * emulparams/h8300elf.sh: As for armelf.sh.
690 * emulparams/mn10200.sh: As for armelf.sh.
691 * emulparams/shelf.sh: As for armelf.sh.
692
693 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
694 (OTHER_END_SYMBOLS): Define.
695 * emulparams/m32relf.sh: As for elf32fr30.sh.
696 * emulparams/h8300helf.sh: As for elf32fr30.sh.
697 * emulparams/h8300self.sh: As for elf32fr30.sh.
698
699 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
700 defines with RELOCATING test.
701 (OTHER_SDATA_SECTIONS): Likewise.
702 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
703 (OTHER_END_SYMBOLS): ..this.
704 * emulparams/crislinux.sh: As for criself.sh.
705
706 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
707 if not relocating.
708 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
709 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
710 normal and linkonce sections as seen in input files.
711 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
712 (TEXT_DYNAMIC): Likewise.
713 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
714 (OTHER_SDATA_SECTIONS): Likewise.
715 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
716 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
717 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
718 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
719 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
720 (OTHER_PLT_RELOC_SECTIONS): Likewise.
721 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
722 sections as seen in input files.
723 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
724 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
725 if not relocating.
726 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
727 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
728 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
729 (OTHER_SECTIONS): Instead, use this..
730 (OTHER_END_SYMBOLS): ..and this.
731
732 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
733 * emulparams/elf32bsmip.sh: Likewise.
734 * emulparams/elf32btsmip.sh: Likewise.
735 * emulparams/elf32ebmip.sh: Likewise.
736 * emulparams/elf32lmip.sh: Likewise.
737 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
738 * emulparams/elf32lsmip.sh: Likewise.
739 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
740 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
741 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
742 * emulparams/elf64btsmip.sh: Likewise.
743 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
744 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
745 * emulparams/elf32ppclinux.sh: Likewise.
746 * emulparams/elf32ppcsim.sh: Likewise.
747 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
748 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
749 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
750 * emulparams/h8300self.sh: Likewise.
751 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
752 * emulparams/sh.sh: Comment.
753 * emulparams/shl.sh: Source sh.sh, remove duplicates.
754 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
755 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
756
abc6ab0a
AM
7572001-11-21 David Heine <dlheine@tensilica.com>
758 Alan Modra <amodra@bigpond.net.au>
759
760 * ldlang.c (map_input_to_output_sections): Replace "break"
761 accidentally removed with 2001-08-03 change.
762 (lang_gc_sections_1): Likewise.
763
2181f54f
AM
7642001-11-21 Alan Modra <amodra@bigpond.net.au>
765
766 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
767
ca0b5847
AM
7682001-11-20 Angela Marie Thomas <angela@redhat.com>
769
770 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
771 of false when calling lang_size_sections.
772 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 773
c56feb2b
AM
7742001-11-15 Alan Modra <amodra@bigpond.net.au>
775
776 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
777 function when LDEMUL_FINISH isn't set to the same name. Don't
778 call ${LDEMUL_FINISH}.
779 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
780 * emultempl/armelf.em (arm_elf_finish): Call
781 gld${EMULATION_NAME}_finish.
782 * emultempl/hppaelf.em (hppaelf_finish): Rename to
783 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
784 hppaelf_layout_sections_again if necessary.
785 (need_laying_out): New var.
786 (hppaelf_layaout_sections_again): Rename to
787 hppaelf_layout_sections_again. Clear need_laying_out.
788 (PARSE_AND_LIST_OPTIONS): Format text.
789
a48ca7f2
L
7902001-11-14 H.J. Lu <hjl@gnu.org>
791
792 * emultempl/armelf.em (arm_elf_finish): Renamed from
793 gld${EMULATION_NAME}_finish.
794 (LDEMUL_FINISH): Set to arm_elf_finish.
795
73d074b4
DJ
7962001-11-14 Daniel Jacobowitz <drow@mvista.com>
797
798 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
799 (struct ld_emulation_xfer_struct): Use it.
800
3b16e843 8012001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 802
465bc359 803 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
804 additional symbols referenced by newer crt0.o files from HP.
805
f11b7027
NC
8062001-11-12 Anthony Green <green@redhat.com>
807
808 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
809
3bf2994f
AM
8102001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
811
812 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
813 * Makefile.in: Regenerate.
814
ff5dcc92
SC
8152001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
816
817 * ld.texinfo: Use @command for commands, @option for options.
818 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
819 the page man title.
820 * Makefile.in: Rebuild.
821
9fb9af6e
CD
8222001-11-04 Chris Demetriou <cgd@broadcom.com>
823
824 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
825 Add support for targets.
2181f54f 826
3c62831e
NC
8272001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
828
829 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
830 * configure: Regernate.
831 * po/fr.po: New file.
832 * po/sv.po: New file.
833
3a9091c4
NC
8342001-11-01 NIIBE Yutaka <gniibe@m17n.org>
835
836 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
837 as little endian default and to support big endian.
2181f54f 838
361b220e
CD
8392001-11-01 Chris Demetriou <cgd@broadcom.com>
840
841 * ld.texinfo (Options): Document new option, -nostdlib.
842 * lexsup.c (OPTION_NOSTDLIB): New definition.
843 (ld_options): Add entry for "nostdlib".
844 (parse_args): Handle OPTIONS_NOSTDLIB.
845 * ldfile.c (ldfile_add_library_path): Don't add directories
846 to the search path if they weren't specified on the command line
847 and -nostdlib was specified.
848 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
849
210a7bd1
NC
8502001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
851
852 * lexsup.c (parse_args): Prevent infinite parsing loop when
853 "-rpath.a" is specified on the command line.
854 Replace calls to fprintf with calls to einfo.
855
114283d8
NC
8562001-10-31 John Marshall <jmarshall@acm.org>
857
858 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
859 appear only once across all the linker scripts involved in a link
860 invocation no longer applies. Make the documentation reflect
861 that.
862
7649aa50
NC
8632001-10-31 NIIBE Yutaka <gniibe@m17n.org>
864
865 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
866 targets.
867 (sh-*-linux*): Added targ_extra_libpath.
868
6e814ff8
AM
8692001-10-31 David Heine <dlheine@tensilica.com>
870
871 * ldlang.c (lang_size_sections): Keep a valid output_offset field
872 for padding statements.
873
3c3bdf30
NC
8742001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
875
876 * configure.tgt (mmix-*-*): New target.
877 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
878 Add dependencies to match.
879 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
880 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
881 scripttempl/mmo.sc: New files.
882 * gen-doc.texi: @set MMIX.
883 * ld.texinfo: Ditto.
6e814ff8 884 [MMIX] Add MMIX node.
3c3bdf30
NC
885 * Makefile.in: Regenerate.
886
ca0c1d3e
KH
8872001-10-29 Kazu Hirata <kazu@hxi.com>
888
889 * ldlang.c: Fix a comment typo.
890
1a3d33ce
AM
8912001-10-23 Alan Modra <amodra@bigpond.net.au>
892
893 * configure.host: Move alpha*-*-linux-gnu* entry to generic
894 entries, and match *-*-linux*.
895
b47c4208
AM
8962001-10-20 Alan Modra <amodra@bigpond.net.au>
897
898 * ldgram.y (mri_script_command): Surround processing of INCLUDE
899 with ldlex_script, ldlex_popstate.
900 (ifile_p1): Likewise.
901 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
902 correct slot.
903 (lex_push_file): Save current lineno to lineno_stack. Set lineno
904 to 1. Don't BEGIN(SCRIPT).
905 (lex_redirect): Similarly.
906 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
907
fd521b47
NC
9082001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
909
910 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
911 __EH_FRAME_END__ and accept eh frames into data section.
912 Add ctor and dtor sections.
913
59d28a94
DD
9142001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
915
916 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
917 (auto-export): Fix indentation.
918
663dd378
DD
9192001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
920
921 * pe-dll.c (autofilter_objectlist): Add startup objects
922 for profiling.
923 (auto-export): Constify char * p.
6e814ff8 924 Extract file basename and use strcmp rather than ststr
663dd378
DD
925 for object lookup.
926
31d677f9
CD
9272001-10-18 Chris Demetriou <cgd@broadcom.com>
928
929 * ldmain.c (get_emulation): Improve comment about the handling
930 of -mipsN options.
931
aa200fe8
AM
9322001-10-17 Alan Modra <amodra@bigpond.net.au>
933
934 * po/POTFILES.in: Regenerate.
935
146e7110
AM
9362001-10-16 Vassili Karpov <malc@pulsesoft.com>
937
938 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
939 -z nocopyreloc and -z nocombreloc usage strings.
940
b4330e85
NC
9412001-10-12 Vassili Karpov <malc@pulsesoft.com>
942
146e7110 943 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
944 in usage.
945
5af8a2fb
NC
9462001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
947
948 * scripttempl/armaout.sc: Place .bss section after end of aligned
949 data section to match behaviour of aout code in constructrion of
950 header.
951
5b784096
DD
9522001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
953
954 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
955 startup files for mingw32 dlls to list.
956
61585df2
CD
9572001-10-10 Chris Demetriou <cgd@broadcom.com>
958
959 * emultempl/elf32.em: Fix shell 'if' usage for portability.
960
45cf6f3e
AH
9612001-10-08 Aldy Hernandez <aldyh@redhat.com>
962
963 * configure.tgt (targ): Add arm9e-*-elf.
964
e24d7c12
L
9652001-10-05 H.J. Lu <hjl@gnu.org>
966
967 * genscripts.sh: Fix a typo in the last change.
968
ec38dd05
JJ
9692001-10-05 Jakub Jelinek <jakub@redhat.com>
970
971 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
972 -z nocombreloc in usage.
973
cedd6b0d
JB
9742001-10-03 Jim Blandy <jimb@redhat.com>
975
976 * genscripts.sh: Include a comment at the top of each generated
977 script, explaining its purpose.
978
8bd621d8
AM
9792001-10-03 Vassili Karpov <malc@pulsesoft.com>
980
981 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
982 * NEWS: Mention -z nocopyreloc.
983 * ld.texinfo (Options): Describe nocopyreloc.
984
fcd8210c
AM
9852001-10-03 Alan Modra <amodra@bigpond.net.au>
986
987 * configure: Regenerate.
988
d32820f2
AM
9892001-10-02 Alan Modra <amodra@bigpond.net.au>
990
991 * ldver.h (ld_program_version): Remove declaration.
992 * lexsup.c (parse_args): Move printing of copyright message..
993 * ldver.c (ldversion): .. to here.
994 Use BFD_VERSION_STRING in place of BFD_VERSION.
995 (ld_program_version): Remove.
996 * Makefile.am (Makefile): Depend on bfd/configure.in.
997 Run "make dep-am".
998 * Makefile.in: Regenerate.
999
af46bcdc
HPN
10002001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1001
1002 * Makefile.am: Update dependencies with "make dep-am".
1003 * Makefile.in: Regenerate.
1004
4818e05f 10052001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1006
4818e05f
AM
1007 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1008 * lexsup.c: Add --no-define-common commandline option.
1009 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1010 * ldlex.l: Likewise.
1011 * ld.h: Add command_line.inhibit_common_definition.
1012 * ldmain.c (main): Initialize.
1013 * ld.texinfo: Document.
862517b6 1014
d5e0ebeb
AM
10152001-09-26 Alan Modra <amodra@bigpond.net.au>
1016
1017 * ldmisc.c (USE_STDARG): Remove.
1018 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1019 (einfo): Likewise.
1020 (minfo): Likewise.
1021 (lfinfo): Likewise.
1022
1023 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1024 declarations. Update copyright.
1025
2f8d8971
NC
10262001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1027
85c77458
NC
1028 * pe-dll.c: Remove obsoleted declaration of
1029 pe_get_data_import_dll_name.
1030 (pe_create_import_fixup): Fix thinko.
1031
2f8d8971
NC
1032 * ld.texinfo(enable-auto-import): Clarify the explanation.
1033
10342001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1035
1036 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1037 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1038 DLL_SUPPORT controlled code.
1039
72358f65 10402001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1041
72358f65
NC
1042 * emultempl/pe.em(pe_data_import_dll): Make static.
1043 (pe_get_data_import_dll_name): New accessor function.
146e7110 1044 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1045 pe_get_data_import_dll_name() from pe.em, instead of
1046 directly accessing pe_data_import_dll variable from pe.em.
1047
3882b010
L
10482001-09-18 Bruno Haible <haible@clisp.cons.org>
1049
1050 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1051 (def_file_add_directive): Use ISSPACE instead of isspace.
1052 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1053 isdigit/isxdigit/isalpha/isalnum.
1054 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1055 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1056 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1057 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1058 isalnum.
1059 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1060 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1061 isupper/tolower.
1062 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1063 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1064 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1065 (ctor_prio): Use ISDIGIT instead of isdigit.
1066 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1067 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1068 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1069 isupper/tolower.
1070 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1071 (stricpy): Use TOLOWER instead of isupper/tolower.
1072 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1073 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1074 (lex_warn_invalid): Use ISPRINT instead of isprint.
1075 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1076 (main): For gettext, also set the LC_CTYPE locate facet.
1077 (add_keepsyms_file): Use ISSPACE instead of isspace.
1078 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1079 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1080 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1081 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1082 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1083 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1084 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1085 (quoteput): Use ISSPACE instead of isspace.
1086 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1087 instead of isalnum.
1088
db09f25b
AM
10892001-09-18 Alan Modra <amodra@bigpond.net.au>
1090
1091 * deffilep.y (def_stash_module): Constify "name" param.
1092
1093 * pe-dll.c: Replace CONST with const throughout.
1094 (quick_symbol): Constify "n1", "n2", "n3" params.
1095 (make_singleton_name_thunk): Constify "import" param. Make
1096 "buffer_len" a size_t.
1097 (make_import_fixup_entry): Constify "name", "fixup_name",
1098 "dll_symname" params.
1099 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1100 (pe_get32): Likewise.
1101 (pe_implied_import_dll): Likewise.
1102
1103 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1104 (sort_by_section_name): Likewise.
1105
1106 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1107 (make_import_fixup): Cast printf arg, rel->address to long rather
1108 than int.
1109 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1110
74699268
AM
11112001-09-15 Alan Modra <amodra@bigpond.net.au>
1112
1113 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1114 defines BufferSize. Increase buffer size by one.
1115
775cabad
NC
11162001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1117
1118 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1119
056a1d49
NC
11202001-09-14 Kevin Lo <kevlo@openbsd.org>
1121
1122 * configure.tgt: Add arm-openbsd target.
1123
a7d792bb
L
11242001-09-12 H.J. Lu <hjl@gnu.org>
1125
1126 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1127 eelf64lppc.o to ...
1128 (ALL_64_EMULATIONS): Here.
1129 * Makefile.in: Regenerated.
1130
0d888aac
CW
11312001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1132
1133 * emultempl/pe.em(make_import_fixup): change signature to
1134 take asection as well as arelec; we need this for proper
146e7110 1135 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1136 there is no attempt to add a constant addend to the reloc;
1137 otherwise, report error condition.
1138 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1139 since final argument is a pointer to make_import_fixup().
1140 Change call to cb() to match make_import_fixup() signature.
1141 (make_import_fixup_mark): make buffer_len unsigned.
1142 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1143
11442001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1145
1146 * ld.texinfo: add verbose documentation for auto-import
146e7110 1147 direct-addressing workaround, to compliment the terse
0d888aac
CW
1148 error message.
1149
cedacdc0
CM
11502001-09-12 Andrew MacLeod <amacleod@redhat.com>
1151
146e7110 1152 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1153
3b16e843 11542001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1155
1156 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1157 * emulparams/h8300self.sh: Similarly.
1158
559e4713
NC
11592001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1160
1161 * ld.texinfo (Options, --stack): Correct default value for stack
1162 reserve.
1163
1fdf0249
TR
11642001-09-05 Tom Rix <trix@redhat.com>
1165
1166 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1167
9b5799b8
AJ
11682001-09-03 Andreas Jaeger <aj@suse.de>
1169
1170 * emultempl/beos.em: Declare prototypes for comparions functions,
1171 adjust definitions.
1172
48f6162b
AJ
11732001-09-02 Andreas Jaeger <aj@suse.de>
1174
1175 * emultempl/aix.em: Add missing prototype.
1176 * emultempl/lnk960.em: Likewise.
1177 * emultempl/vanilla.em: Likewise.
1178 * emultempl/armcoff.em: Likewise.
1179 * emultempl/armelf_oabi.em: Likewise.
1180 * emultempl/beos.em: Likewise.
1181 * emultempl/gld960c.em: Likewise.
1182 * emultempl/gld960.em: Likewise.
1183
1184 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1185 for prototype declaration.
1186
39e5585e
EC
11872001-08-31 Eric Christopher <echristo@redhat.com>
1188 Jason Eckhardt <jle@redhat.com>
1189
1190 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1191
3fc90ddb
AJ
11922001-08-31 Andreas Jaeger <aj@suse.de>
1193
1194 * emultempl/pe.em: Add missing prototypes.
1195 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1196 pe_find_data_imports.
1197 (pr_sym): Add unused attribute.
1198
d43ded80
PB
11992001-08-29 Joel Sherrill <joel@OARcorp.com>
1200
39e5585e 1201 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1202 default from coff to elf.
1203
3946dd2f
JL
12042001-08-29 Jeff Law <law@redhat.com>
1205
1206 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1207 ARCH specification.
1208 * emulparams/h8300self.sh: Similarly.
1209
3b16e843 12102001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1211
1212 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1213 eh8300self.o .
1214 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1215 * configure.tgt (h8300-*-elf*): New case.
1216 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1217 * emulparams/h8300self.sh: New file.
1218 * Makefile.in: Regenerated.
1219
70d0c6e9
NC
12202001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1221
1222 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1223 with macro name.
1224
5c67d4bb
AM
12252001-08-27 Linus Nordberg <linus@swox.com>
1226 Alan Modra <amodra@bigpond.net.au>
1227
1228 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1229 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1230 Run "make dep-am"
1231 * Makefile.in: Regenerate.
1232 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1233 entries to correct alphabetical position.
1234 * emulparams/elf64ppc.sh: New.
1235 * emulparams/elf64lppc.sh: New.
1236
08131015
NC
12372001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1238
1239 * ldmain.c (main): Declare BSIZE as static.
1240
db6751f2
JJ
12412001-08-23 Jakub Jelinek <jakub@redhat.com>
1242
1243 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1244 into .rel.dyn resp. .rela.dyn if combreloc.
1245 (get_script): If .x linker script is equal to .xn, only put it
1246 once into the binary.
1247 Add .xc and .xsc scripts.
1248 (parse_args): Handle -z combreloc and -z nocombreloc.
1249 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1250 For .xc and .xsc scripts put all .rel* or .rela* input sections
1251 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1252 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1253 is elf.
1254 Strip trailing whitespace from script.
1255 Generate .xc and .xsc scripts if requested.
1256 * ldmain.c (main): Initialize link_info.combreloc and
1257 link_info.spare_dynamic_tags.
1258 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1259 (ld_options): Add --spare-dynamic-tags option.
1260 (parse_args): Likewise.
1261 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1262 * ldint.texinfo: Document .xc and .xsc linker scripts.
1263 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1264
63d069c0
L
12652001-08-22 H.J. Lu <hjl@gnu.org>
1266
1267 * emulparams/elf32fr30.sh: Add a newline.
1268
948f9114
AJ
12692001-08-21 Andreas Jaeger <aj@suse.de>
1270
1271 * deffilep.y: Add missing prototypes.
1272 * pe-dll.c: Likewise.
1273
ae7fb08f
AM
12742001-08-20 Alan Modra <amodra@bigpond.net.au>
1275
2af02257
AM
1276 * ldlang.c (insert_pad): Fix typos in last patch.
1277
1278 * ldlang.c: When traversing lang_statement_union_type lists,
1279 consistently use "header.next" rather than "next".
1280 * mpw-eppcmac.c: Likewise.
1281 * emultempl/beos.em: Likewise.
1282 * emultempl/hppaelf.em: Likewise.
1283 * emultempl/pe.em: Likewise.
1284 * ldlang.h (union lang_statement_union): Remove "next" field.
1285
c0c330a7
AM
1286 * ldlang.c (insert_pad): Use offsetof macro.
1287 (lang_size_sections): Always neuter padding statements.
1288 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1289
ae7fb08f
AM
1290 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1291 passed to lang_size_sections.
1292 (pe_exe_fill_sections): Likewise.
1293 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1294 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1295
fab80407
AM
12962001-08-18 Alan Modra <amodra@bigpond.net.au>
1297
1298 * emultempl/aix.em: Formatting fixes.
1299
b3327aad
AM
13002001-08-18 Alan Modra <amodra@bigpond.net.au>
1301
1302 * ldlang.c (insert_pad): Make use of an existing pad statement if
1303 available. Move code calculating alignment, adjusting section
1304 alignment power, and adjusting dot to ..
1305 (size_input_section): .. here. Remove unused relax param.
1306 (lang_size_sections): Change boolean `relax' param to boolean *.
1307 Adjust call to size_input_section. Make use of insert_pad to
1308 place pad after the assignment statement. If relaxing, zap
1309 padding statements.
1310 (reset_memory_regions): Reset output_bfd section sizes too.
1311 (relax_again): Move to..
1312 (lang_process): ..here. Adjust call to lang_size_sections, and
1313 remove duplicated code.
1314 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1315
563e308f
AM
13162001-08-17 Alan Modra <amodra@bigpond.net.au>
1317
1318 * ld.texinfo: Document that fill values now use the four least
1319 significant bytes.
1320 * emulparams/elf32fr30.sh (NOP): Update.
1321 * emulparams/elf32mcore.sh: Likewise.
1322 * emulparams/elf64_s390.sh: Likewise.
1323 * emulparams/elf_i386.sh: Likewise.
1324 * emulparams/elf_i386_be.sh: Likewise.
1325 * emulparams/elf_i386_chaos.sh: Likewise.
1326 * emulparams/elf_i386_ldso.sh: Likewise.
1327 * emulparams/elf_s390.sh: Likewise.
1328 * emulparams/elf_x86_64.sh: Likewise.
1329 * emulparams/i386moss.sh: Likewise.
1330 * emulparams/i386nw.sh: Likewise.
1331 * emulparams/m68kelf.sh: Likewise.
1332 * scripttempl/elf.sc: Update NOP comment.
1333 * scripttempl/elfi370.sc: Likewise.
1334 * scripttempl/elfm68hc11.sc: Likewise.
1335 * scripttempl/elfm68hc12.sc: Likewise.
1336 * scripttempl/nw.sc: Likewise.
1337
b90e1c6f
TR
13382001-08-15 Tom Rix <trix@redhat.com>
1339
1340 * ldgram.y (saved_script_handle): Initialize to NULL.
1341 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1342
39dcfe18
AM
13432001-08-14 Alan Modra <amodra@bigpond.net.au>
1344
cde43e70
AM
1345 * emultempl/elf32.em: Formatting fixes.
1346 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1347 looking at sec->owner.
1348 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1349 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1350 unused code, and reorganize orphan section placement code.
1351
39dcfe18
AM
1352 * ldlang.c (wild_doit): Rename to lang_add_section.
1353 * ldlang.h: Here too.
1354 * mpw-elfmips.c: And here.
1355 * emultempl/beos.em: And here.
1356 * emultempl/elf32.em: And here.
1357 * emultempl/hppaelf.em: And here.
1358 * emultempl/pe.em: And here.
1359
908d20b3
RH
13602001-08-13 Richard Henderson <rth@redhat.com>
1361
1362 * emultempl/needrelax.em: New file.
1363 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1364 * Makefile.am (eelf64_ia64.c): Depend on it.
1365 * Makefile.in: Rebuild.
1366
0f33d40b
AM
13672001-08-13 Alan Modra <amodra@bigpond.net.au>
1368
22af9fd3
AM
1369 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1370 output_section is set non-NULL.
1371
0f33d40b
AM
1372 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1373 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1374 needlessly create an output_section_statement. Treat a correctly
1375 named output_section_statement with NULL bfd_section as compatible.
1376
55ab6103
HPN
13772001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1378
1379 * emultempl/generic.em: Support EXTRA_EM_FILE.
1380 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1381 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1382 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1383 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1384 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1385 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1386 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1387 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1388 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1389 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1390
24098abb
RH
13912001-08-12 Richard Henderson <rth@redhat.com>
1392
1393 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1394 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1395 scripttempl/v850.sc: Keep .jcr data.
1396
b9a8de1e 13972001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1398 Andrew Haley <aph@cambridge.redhat.com>
1399 Nick Clifton <nickc@redhat.com>
b9a8de1e 1400
146e7110 1401 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1402 Change type to file handle.
1403 * ld.h (had_script): Rename and retype.
1404 * ldfile.c (ldfile_open_command_file): Save the file handle
1405 used in saved_script_handle.
1406 * lexsup.c (parse_args): Do not allow -c option to alter
1407 saved_script_handle.
1408 * ldmain.c (main): Print out the linker script used if
1409 --verbose is given. Check saved_script_handle to obtain the
1410 external linker script used, or if NULL, dump the builtin
1411 script.
1412 * ld.texinfo: Document that --verbose now dumps the linker
1413 script used, regardless of whether it was an internal or an
1414 external script.
1415
0218d1e4
AJ
14162001-08-10 Andreas Jaeger <aj@suse.de>
1417
1418 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1419 to build warnings.
1420 * configure: Regenerate.
1421
5253f23b
AM
14222001-08-09 Alan Modra <amodra@bigpond.net.au>
1423
73810896
AM
1424 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1425
5253f23b
AM
1426 * scripttempl/elf.sc: Move non-text .dynamic section before
1427 .plt/.got/.sdata* group.
1428 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1429 (OTHER_SDATA_SECTIONS): Add.
1430 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1431 OTHER_GOT_SECTIONS.
1432 * emulparams/crislinux.sh: Likewise.
1433 * emulparams/elf32b4300.sh: Likewise.
1434 * emulparams/elf32bmip.sh: Likewise.
1435 * emulparams/elf32bmipn32.sh: Likewise.
1436 * emulparams/elf32bsmip.sh: Likewise.
1437 * emulparams/elf32btsmip.sh: Likewise.
1438 * emulparams/elf32ebmip.sh: Likewise.
1439 * emulparams/elf32elmip.sh: Likewise.
1440 * emulparams/elf32l4300.sh: Likewise.
1441 * emulparams/elf32lmip.sh: Likewise.
1442 * emulparams/elf32lsmip.sh: Likewise.
1443 * emulparams/elf32ltsmip.sh: Likewise.
1444 * emulparams/elf64bmip.sh: Likewise.
1445 * emulparams/elf64btsmip.sh: Likewise.
1446 * emulparams/elf64ltsmip.sh: Likewise.
1447
179c732c
AM
14482001-08-08 Alan Modra <amodra@bigpond.net.au>
1449
1450 * genscripts.sh: Source the emulparams script before each output
1451 script is generated so that variables like `RELOCATING' may affect
1452 variables defined in the emulparams script.
1453
3fd36710
AM
14542001-08-04 Alan Modra <amodra@bigpond.net.au>
1455
20713691
AM
1456 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1457 order.
1458
3fd36710
AM
1459 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1460 ie. iterate over wild_statement.section_list.
1461 (gld${EMULATION_NAME}_place_orphan): Likewise.
1462
de0b1853
SC
14632001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1464
1465 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1466 .fini[0-4] sections used by _exit
1467 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1468 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1469 * scripttempl/elfm68hc11.sc: Likewise.
1470
ff7e6f88
L
14712001-08-03 H.J. Lu <hjl@gnu.org>
1472
1473 * emultempl/beos.em (init): Add the missing initialization.
1474
b6bf44ba
AM
14752001-08-03 Alan Modra <amodra@bigpond.net.au>
1476
1477 * ld.texinfo (Input Section Basics): Clarify ordering of output
1478 sections.
1479 * ldlang.c (callback_t): Add wildcard_list param.
1480 (walk_wild_section): Remove "section" param. Rewrite for
1481 lang_wild_statement_type change. Remove unique_section_p test.
1482 (walk_wild_file): Remove "section" param.
1483 (walk_wild): Remove "section" and "file" params.
1484 (lang_gc_wild): Likewise.
1485 (wild): Likewise. Modify for lang_wild_statement_type change.
1486 (wild_sort): Likewise. Add "sec" param.
1487 (gc_section_callback): Likewise.
1488 (output_section_callback): Likewise. Do unique_section_p test.
1489 (map_input_to_output_sections): Modify call to wild.
1490 (lang_gc_sections_1): Likewise.
1491 (print_wild_statement): Modify for lang_wild_statement_type
1492 change.
1493 (lang_add_wild): Replace filename, filenames_sorted param with
1494 filespec. Replace section_name, sections_sorted,
1495 exclude_filename_list with section_list.
1496 * ldlang.h (lang_add_wild): Here too.
1497 (lang_wild_statement_type): Replace section_name, sections_sorted,
1498 and exclude_filename_list with section_list.
1499 * ldgram.y (current_file): Delete.
1500 (%union): Add wildcard_list.
1501 (file_NAME_list): Set type to wildcard_list. Build a linked list
1502 rather than calling lang_add_wild for each entry.
1503 (input_section_spec_no_keep): Call lang_add_wild here instead.
1504 * ld.h (struct wildcard_list): Declare.
1505 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1506
b044cda1
CW
15072001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1508
1509 * ldmain.c (main): initialize link_info.pei386_auto_import
1510 * pe-dll.c: new tables for auto-export filtering
1511 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 1512 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
1513 "by hand".
1514
15152001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1516
b6bf44ba
AM
1517 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1518 static variable current_sec (static struct sec *). Add
b044cda1 1519 forward declaration for add_bfd_to_link.
b6bf44ba
AM
1520 (process_def_file): Don't export undefined symbols. Do not
1521 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
1522 with new API.
1523 (pe_walk_relocs_of_symbol): New function.
1524 (generate_reloc): add optional extra debugging
b6bf44ba 1525 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 1526 line in output
b6bf44ba 1527 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
1528 (DATA auto-import support).
1529 (make_singleton_name_thunk): New function.
1530 (make_import_fixup_mark): New function.
1531 (make_import_fixup_entry): New function.
1532 (pe_create_import_fixup): New function.
b6bf44ba 1533 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 1534 char *.
b6bf44ba
AM
1535 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1536 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1537 pe_create_import_fixup.
1538 * emultempl/pe.em: add new options --enable-auto-import,
1539 --disable-auto-import, and --enable-extra-pe-debug.
1540 (make_import_fixup): New function.
1541 (pe_find_data_imports): New function.
1542 (pr_sym): New function.
b6bf44ba 1543 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1544 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1545 CODE.
1546
15472001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 1548
b044cda1
CW
1549 * ld.texinfo: add additional documentation for
1550 --export-all-symbols. Document --out-implib,
1551 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
1552 --dll-search-prefix, --enable-auto-import, and
1553 --disable-auto-import.
b044cda1
CW
1554 * ldint.texinfo: Add detailed documentation on auto-import
1555 implementation.
1556
156e34dd
NC
15572001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1558
1559 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1560 example.
1561
d6231427
AM
15622001-07-24 Alan Modra <amodra@bigpond.net.au>
1563
1564 * Makefile.am: Update dependencies with "make dep-am".
1565 * Makefile.in: Regenerate
1566
e14ec88b
AM
15672001-07-23 Alan Modra <amodra@bigpond.net.au>
1568
1569 * ldcref.c (check_section_sym_xref): New function.
1570 (check_nocrossrefs): Call it.
1571 (check_nocrossref): Interate over h->refs here instead of..
1572 (check_refs): ..here. Pass in the symbol name, section, and bfd
1573 rather than hash_entry pointers.
1574 (struct check_refs_info): Keep symbol name rather than hash entry.
1575 Remove "same".
1576 (check_reloc_refs): Tweak for above changes in check_refs_info.
1577 Only report references to section syms when symname is NULL to
1578 prevent duplicate messages for the same reloc.
1579
1b577b00
NC
15802001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1581
c7d701b0
NC
1582 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1583 available. Do not print NULL trees.
1584 (exp_print_token): Print unknown tokens with values > 126 as
1585 decimal values not ASCII characters.
1586
1545243b
NC
1587 * ldlang.c (lang_leave_overlay): If a region is specified assign
1588 it to all sections inside the overlay unless they have been
1589 assigned to the own, non-default, memory region.
1590
1b577b00
NC
1591 * README: Add header for consistency with other README files.
1592
5030876b
L
15932001-07-14 H.J. Lu <hjl@gnu.org>
1594
1595 * emultempl/elf32.em (output_prev_sec_find): Never return
1596 bfd_abs_section_ptr, bfd_com_section_ptr nor
1597 bfd_und_section_ptr.
1598
18c7a9a5
NC
15992001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1600
22af9fd3 1601 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1602 elf32.em.
1603 * Makefile.in: Regenerate.
1604
9ffecff1
MG
16052001-07-14 matthew green <mrg@eterna.com.au>
1606
1607 * configure.tgt (i386-*-netbsdelf*): New target.
1608 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1609
95500e1c
JJ
16102001-07-13 Jakub Jelinek <jakub@redhat.com>
1611
1612 * emultempl/elf32.em (output_prev_sec_find): New.
1613 (place_orphan): Use it.
1614
e97cb84f
L
16152001-07-11 H.J. Lu <hjl@gnu.org>
1616
1617 * ldmain.c (main): Fix typos in the last change.
1618
7333607e
JJ
16192001-07-11 Jakub Jelinek <jakub@redhat.com>
1620
1621 * ldmain.c (main): Disallow -F and -f without -shared.
1622
d29d80f2
NC
16232001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1624
1625 * emultempl/pe.em (after_open): Check for the output_bfd not
1626 having any coff_data structure allocated to it.
1627
c2a1a436
DB
16282001-07-09 David O'Brien <obrien@FreeBSD.org>
1629
1630 * emultempl/elf32.em: Do not assuming that contents of the buffer
1631 returned from basename function will remain unchanged accross other
1632 function calls.
1633
63653551
L
16342001-07-03 H.J. Lu <hjl@gnu.org>
1635
1636 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1637 2001-07-03. It creates dynamic entries even for static binaries.
1638
d303a449
L
16392001-07-03 Jakub Jelinek <jakub@redhat.com>
1640
1641 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1642 (DYNAMIC): Use it to reserve few dynamic entries for
1643 post-linking tools.
1644
9f22353f
AM
16452001-06-27 Alan Modra <amodra@bigpond.net.au>
1646
1647 * emulparams/hppa64linux.sh: New file.
1648 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1649 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1650 (ehppa64linux.c): Add rule to make it.
1651 Run "make dep-am".
1652 * Makefile.in: Regenerate.
1653
62bf86b4
HPN
16542001-06-21 Hans-Peter Nilsson <hp@axis.com>
1655
1656 * ld.texinfo (Options, -r): Mention restrictions when using
1657 different object formats.
1658
429d935d
HPN
16592001-06-19 Hans-Peter Nilsson <hp@axis.com>
1660
1661 * ldlang.c (lang_check): Emit fatal error if relocatable link
1662 between different object flavours with relocations in input.
1663
cb840a31
L
16642001-06-19 H.J. Lu <hjl@gnu.org>
1665
1666 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1667 (--version-script): Mention the language support.
1668
9bf03acc
L
16692001-06-19 H.J. Lu <hjl@gnu.org>
1670
1671 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1672
c45021f2
NC
16732001-06-18 H.J. Lu <hjl@gnu.org>
1674
b6bf44ba
AM
1675 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1676 (diststuff): Add $(MANS).
1677 * Makefile.in: Regenerated.
c45021f2 1678
b6bf44ba 1679 * ld.1: Removed.
c45021f2 1680
6caa99ab
HPN
16812001-06-18 Hans-Peter Nilsson <hp@axis.com>
1682
605d9b3a
HPN
1683 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1684 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1685 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1686 * ld.h (args_type): Remove member export_dynamic. All users
1687 changed to use struct bfd_link_info member.
1688
6caa99ab
HPN
1689 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1690 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1691 * Makefile.in: Regenerate.
1692
6f9efd97
L
16932001-06-18 H.J. Lu <hjl@gnu.org>
1694
1695 * ldlang.c (init_os): Add the newline to the einfo call.
1696 (lang_check): Likewise.
1697 (lang_do_version_exports_section): Likewise.
1698
5af9fd8b
L
16992001-06-15 H.J. Lu <hjl@gnu.org>
1700
1701 * lexsup.c (parse_args); Save optind to report unrecognized
1702 option.
1703
2a096f04
HPN
17042001-06-15 Hans-Peter Nilsson <hp@axis.com>
1705
7e66c3f5
HPN
1706 * ldlang.c (lang_check): Emit fatal error if relocatable link
1707 between different object flavours.
1708
2a096f04
HPN
1709 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1710 Set new link_info member export_dynamic.
1711 * ldmain.c (main): Initialize new link_info member export_dynamic.
1712
6770ec8c
NC
17132001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1714
1715 * ldlang.c (walk_wild): Only call walk_wild_file if
1716 lookup_name returns something.
b6bf44ba 1717 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 1718 (load_symbols): Change to a boolean function.
b6bf44ba 1719 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
1720 executable.
1721
8529105a
AM
17222001-06-08 Alan Modra <amodra@bigpond.net.au>
1723
1724 * ldlang.c (record_bfd_errors): Remove.
1725
1726 * emultempl/aix.em: Fix copyright dates.
1727
8f3aa7a0
AJ
17282001-06-07 Andreas Jaeger <aj@suse.de>
1729
1730 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1731 (TEXT_START_ADDR): Likewise.
1732
3277f888
AM
17332001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1734
1735 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1736
3763134d
DD
17372001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1738
1739 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1740
5929ebc0
L
17412001-05-31 H.J. Lu <hjl@gnu.org>
1742
1743 * ldlang.c (open_input_bfds): Don't change the bfd error
1744 handler whilst loading symbols.
1745
c04a062d
NC
17462001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1747
1748 * configure.tgt: Remove i370-mvs architecture, it is not currently
1749 supported.
1750
96fcab3e
L
17512001-05-25 H.J. Lu <hjl@gnu.org>
1752
1753 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1754 like emulparams/aixppc.sh.
1755
db8d4f23
L
17562001-05-25 H.J. Lu <hjl@gnu.org>
1757
1758 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1759 setting of output_filename after bfd_scan_arch.
1760 * emultempl/pe.em: Likewise.
1761
5f642101
L
17622001-05-25 H.J. Lu <hjl@gnu.org>
1763
1764 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1765 like emulparams/aixppc.sh.
1766
1767 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1768 instead of ${srcdir}/emultempl/stringify.sed.
1769
64e9ece0
TW
17702001-05-25 Timothy Wall <twall@oculustech.com>
1771
1772 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 1773 output.
64e9ece0 1774
c709b096
AM
17752001-05-25 Alan Modra <amodra@one.net.au>
1776
1777 * configure.host: Replace linuxoldld with linux*oldld.
1778 * configure.tgt: Likewise.
1779
6cbdcc6f
L
17802001-05-24 H.J. Lu <hjl@gnu.org>
1781
1782 * emultempl/stringify.sed: Removed again.
1783
86af25fe
L
17842001-05-24 H.J. Lu <hjl@gnu.org>
1785
1786 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1787 (gld${EMULATION_NAME}_before_parse): Initialize
1788 ldfile_output_architecture, ldfile_output_machine and
1789 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1790 * emultempl/beos.em: Likewise.
1791 * emultempl/elf32.em: Likewise.
1792 * emultempl/linux.em: Likewise.
1793 * emultempl/mipsecoff.em: Likewise.
1794 * emultempl/pe.em: Likewise.
1795 * emultempl/sunos.em: Likewise.
1796
3b1b01cf
TR
17972001-05-24 Tom Rix <trix@redhat.com>
1798
8f3aa7a0 1799 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
1800 udate import file format.
1801 (change_symbol_mode) New, same
1802 (is_syscall) New, same
1803 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1804 * emulparams/aixppc64.sh : same
1805 * emulparams/aixrs6.sh : same
1806 * emulparams/ppcmacos.sh : same
1807 * emultempl/aix.em : use strtoull to parse options
1808 * Makefile.am : add eaixppc64 emulation for xcoff64
1809 * Makefile.in : same
1810 * configure.tgt : same
1811
1812 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 1813 default data section offset to 0x20000000
3b1b01cf 1814 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 1815 loader and debug sections use the currect section offset.
3b1b01cf
TR
1816
1817 * emultempl/aix.em : Add xcoff64 support
1818 Add -binitfini support
8f3aa7a0 1819 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 1820 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 1821 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
1822 sections
1823
1824 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 1825
57e6abd2
AO
18262001-05-23 Alexandre Oliva <aoliva@redhat.com>
1827
1828 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1829 variable to avoid non-portable shell construct.
1830
d1cf510e
NC
18312001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1832
1833 * ldmain.c (get_emulation): Add -mips5 command line argument.
1834
506eee22
NC
18352001-05-22 Alexandre Oliva <aoliva@redhat.com>
1836
1837 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1838 (ELF_INTERPRETER_NAME): Define it.
1839 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1840 it.
1841 * configure.tgt (targ_emul, targ_extra_emuls)
1842 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1843 as primary, elf_i386 as extra.
1844 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1845 (eelf_i386_ldso.c): New rule.
1846 * Makefile.in: Rebuilt.
1847
18482001-05-22 Nick Clifton <nickc@redhat.com>
1849
1850 * lexsup.c (ld_options): Allow -I to be an alias for
1851 --dynamic-linker. This is for Solaris compatability.
1852 * ld.texinfo: Document that -I can be used.
1853 * ld.1: Regenerate.
1854
d1778b88
AM
18552001-05-16 Alan Modra <amodra@one.net.au>
1856
1857 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1858 whether an input section is the first one assigned to an output
1859 section.
1860 Assorted formatting fixes.
1861
02649152
DD
18622001-05-14 DJ Delorie <dj@delorie.com>
1863
1864 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1865 * Makefile.in: Ditto.
1866
579f31ac
JJ
18672001-05-11 Jakub Jelinek <jakub@redhat.com>
1868
1869 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1870 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1871 output sections.
1872 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1873
8550eb6e
JJ
18742001-05-11 Jakub Jelinek <jakub@redhat.com>
1875
1876 * ldlang.c (lang_process): Call bfd_merge_sections.
1877
8e5a525c
AM
18782001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1879
1880 * ldgram.y: Fix typo.
1881
1c9acd94
L
18822001-05-03 H.J. Lu <hjl@gnu.org>
1883
1884 * emultempl/elf32.em: Include "libiberty.h".
1885 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1886 basename of the bfd filename.
1887 (gld${EMULATION_NAME}_stat_needed): Likewise.
1888 (gld${EMULATION_NAME}_try_needed): Likewise.
1889 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1890
14fe918e
L
18912001-05-02 H.J. Lu <hjl@gnu.org>
1892
1893 * emultempl/pe.em: Include <ctype.h>.
1894
c7e40348
NC
18952001-05-02 Johan Rydberg <jrydberg@opencores.org>
1896
b6bf44ba 1897 * emulparams/elf32openrisc.sh: New file.
c7e40348 1898
b6bf44ba
AM
1899 * Makefile.am: Add OpenRISC target.
1900 * Makefile.in: Regenerated.
c7e40348 1901
b6bf44ba 1902 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
1903
19042001-05-02 Nick Clifton <nickc@redhat.com>
1905
1906 * emultempl/aix.em: Replace buystring with xstrdup.
1907 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 1908
d1b2b2dc
L
19092001-05-02 H.J. Lu <hjl@gnu.org>
1910
1911 * ldfile.c: Include "libiberty.h".
1912 * ldlex.l: Likewise.
1913
1914 * ldmisc.c (buystring): Removed.
1915 * ldmisc.h: Likewise.
1916
1917 * ldfile.c: Replace buystring with xstrdup.
1918 * ldlang.c: Likewise.
1919 * ldlex.l: Likewise.
1920 * ldmain.c: Likewise.
1921 * ldmisc.c: Likewise.
1922 * lexsup.c: Likewise.
1923 * mpw-eppcmac.c: Likewise.
1924
35714f2a
AJ
19252001-04-30 Andreas Jaeger <aj@suse.de>
1926
1927 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1928
884fb58e
NC
19292001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1930
b6bf44ba
AM
1931 * ldlang.c (load_symbols): Give emulation a chance
1932 to process unrecognized file before fatal error is
1933 reported, not after.
884fb58e 1934
87748b32
NC
19352001-04-27 Sean McNeil <sean@mcneil.com>
1936
1937 * configure.tgt: Add arm-vxworks target.
1938 * scripttempl/armcoff.sc: Support .text or .data as a section name
1939 prefix.
1940 Define _etext.
35714f2a 1941
7ce691ae
C
19422001-04-13 J.T. Conklin <jtc@redback.com>
1943
1944 * ld.texinfo: Document --fatal-warnings.
1945 * ld.1: Regenerate.
1946
1947 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 1948 warnings have been turned into errors.
7ce691ae
C
1949 * lexsup.c (OPTION_WARN_FATAL): Define.
1950 (ld_options): Entry for --fatal-warnings.
1951 (parse_args): Handle OPTION_WARN_FATAL.
1952 * ld.h (ld_config_type): Add fatal_warnings field.
1953
f5fa8ca2
JJ
19542001-04-13 Jakub Jelinek <jakub@redhat.com>
1955
1956 * ldmain.c (main): Default to discard_sec_merge.
1957 * lexsup.c (OPTION_DISCARD_NONE): Define.
1958 (ld_options): Add --discard-none.
1959 (parse_args): Handle OPTION_DISCARD_NONE.
1960 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1961 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1962 all its input sections match.
1963
fdec3cfc
L
19642001-04-05 Steven J. Hill <sjhill@cotw.com>
1965
1966 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1967 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1968 (eelf32ltsmip.c): New target.
1969 (eelf64btsmip.c): Likewise.
1970 (eelf64ltsmip.c): Likewise.
1971 * Makefile.in: Regenerated.
1972
1973 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1974 target.
1975 (mips*-*-linux-gnu*): Likewise.
1976
1977 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1978 MIPS taget.
35714f2a 1979 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
1980 target.
1981 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1982 endian target.
1983
589bad82
HPN
19842001-04-05 Hans-Peter Nilsson <hp@axis.com>
1985
1986 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1987 correct value of __Stext here.
1988 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1989 .startup section.
1990
1991 * emulparams/crislinux.sh: Remove FIXME.
1992
94202e16
AM
19932001-04-02 Alan Modra <alan@linuxcare.com.au>
1994
1995 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1996 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1997
1268a053
HPN
19982001-03-27 Hans-Peter Nilsson <hp@axis.com>
1999
2000 * configure.tgt (cris-*-*): Change default emulation to criself.
2001 (cris-*-*aout*): New rule.
2002
d85e9ff7
AM
20032001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2004
2005 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2006 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2007
0879a67a
AJ
20082001-03-26 Andreas Jaeger <aj@suse.de>
2009
2010 * ld.texinfo (Overview): Fix syntax in texi code.
2011
0285c67d
NC
20122001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2013
2014 * ld.texinfo: Put @c man indications to generate the ld man page.
2015 When generating man, define all the variables. Define SEEALSO
2016 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2017 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2018 (ld.1): Generate from ld.texinfo.
2019 * Makefile.in: Regenerate.
2020
c20ec07b
NC
20212001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2022
2023 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2024 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2025
cc5ce052
UD
20262001-03-17 Ulrich Drepper <drepper@redhat.com>
2027
2028 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2029 is an absolute path look only for this file and not along the path.
2030
a1ab1d2a
UD
20312001-03-17 Ulrich Drepper <drepper@redhat.com>
2032
2033 * emultempl/elf32.em (OPTION_GROUP): New macro.
2034 Add new option Bgroup to longopts.
2035 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2036 (gld*_list_options): Add -Bgroup and -z defs.
2037 * ld.1: Document -Bgroup and -z defs.
2038 * ld.texinfo: Likewise.
2039
788fca5a
MM
20402001-03-07 Michael Meissner <meissner@redhat.com>
2041
2042 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2043 with sections created by -fdata-sections.
2044 (.dynbss,.bss): Ditto.
2045
1c7566d1
AM
20462001-03-05 Alan Modra <alan@linuxcare.com.au>
2047
2048 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2049 after_allocation_default, not gld..._before_allocation.
2050
27b7e12d
AM
20512001-02-27 Alan Modra <alan@linuxcare.com.au>
2052
2053 * configure.in (BFD_VERSION): New.
2054 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2055 * configure: Regenerate.
2056 * Makefile.am: Run "make dep-am"
2057 * Makefile.in: Regenerate.
2058
2bc551c7
TW
20592001-02-26 Timothy Wall <twall@cygnus.com>
2060
2061 * emulparams/elf64_aix.sh: Add additional read-only sections;
2062 uncomment lines which are now required.
2063
1276aefa
NC
20642001-02-26 H.J. Lu <hjl@gnu.org>
2065
2066 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2067 that problems can be caught whilst loading symbols.
2068 (record_bfd_errors): New function: Report BFD errors and mark
2069 the executable output as being invalid.
1276aefa 2070
41c49998
TW
20712001-02-22 Timothy Wall <twall@cygnus.com>
2072
2073 * configure.host: Add configuration for ia64-*-aix*.
2074 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2075 Add dependencies for eelf64_aix.c.
2076 * Makefile.in: Regenerate.
2077 * configure.tgt: Add ia64-*-aix* mapping.
2078 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2079 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2080 AIX-specific test.
2081
78f85fd7
L
20822001-02-20 H.J. Lu <hjl@gnu.org>
2083
2084 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2085 false if we found the file.
2086
1ac7e077 20872001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2088
2089 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2090 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2091
e135f41b
NC
20922001-02-18 lars brinkhoff <lars@nocrew.org>
2093
2094 * Makefile.am: Add PDP-11 target.
2095 * configure.tgt: Likewise.
2096 * emulparams/pdp11.sh: New file.
2097
a842aceb
DB
20982001-02-17 David O'Brien <obrien@FreeBSD.org>
2099
2100 * configure.host: Add a generic FreeBSD configuration entry such that
2101 all [modern] FreeBSD systems on all platforms will look the same.
2102
24174db0
L
21032001-02-14 H.J. Lu <hjl@gnu.org>
2104
2105 * configure.tgt: Remove mention of earmelf_linux26.
2106
30c3c13a
RH
21072001-02-13 Richard Henderson <rth@redhat.com>
2108
2109 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2110
b46a87b1
L
21112001-02-13 H.J. Lu <hjl@gnu.org>
2112
2113 * ldexp.h (node_type): Add etree_provided.
2114 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2115 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2116 for etree_provided.
b46a87b1
L
2117 (exp_print_tree): Handle etree_provided.
2118 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2119 etree_provided.
2120
f3988fd9
RH
21212001-02-09 David Mosberger <davidm@hpl.hp.com>
2122
2123 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2124 .IA_64.unwind.* pattern to unwind table section and
2125 .IA_64.unwind_info* pattern to unwind info section.
2126
a85d7ed0
NC
21272001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2128
2129 * Makefile.am: Add linux target for S/390.
2130 * Makefile.in: Likewise.
2131 * configure.host: Likewise.
2132 * configure.tgt: Likewise.
2133 * emulparams/elf64_s390.sh: New file.
2134 * emulparams/elf_s390.sh: New file.
2135
780248c4
JJ
21362001-02-09 Jakub Jelinek <jakub@redhat.com>
2137
2138 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2139 targ_extra_libpath.
2140 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2141
0e2534bd
PB
21422001-02-06 Philip Blundell <philb@gnu.org>
2143
2144 * Makefile.am: Remove mention of earmelf_linux26.
2145 * Makefile.in: Regenerate.
2146
46c1ea57
PB
21472001-02-04 Philip Blundell <philb@gnu.org>
2148
2149 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2150 * emulparams/armelf_linux26.sh: Delete.
2151 * configure.tgt: Remove mention of armelf_linux26 emulation.
2152
0088edd2
NC
21532001-02-01 Nick Clifton <nickc@redhat.com>
2154
2155 * ld.1: Replace occurances of -oformat with --oformat.
2156
02aa14fb
AM
21572001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2158
2159 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2160 load_base is specified.
2161
f813923c
HPN
21622001-01-24 Hans-Peter Nilsson <hp@axis.com>
2163
2164 * emultempl/elf32.em: Correct spelling in comments and listed
2165 options.
2166
c1eb1488
AM
21672001-01-23 Alan Modra <alan@linuxcare.com.au>
2168
2169 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2170 default for the first section of a group of overlay sections.
2171
d9fc3714
AM
21722001-01-22 Alan Modra <alan@linuxcare.com.au>
2173
2174 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2175 * Makefile.in: Regenerate.
2176 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2177 Check for null tool_dir.
2178
6be0ca94
JW
21792001-01-16 Jim Wilson <wilson@redhat.com>
2180
2181 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2182 and IA_64.unwind.info.
2183
b9247304
L
21842001-01-16 H.J. Lu <hjl@gnu.org>
2185
2186 * ldlang.c (lang_check): Merge the private data only if the
2187 input file has contents.
2188
577a0623
AM
21892001-01-14 Alan Modra <alan@linuxcare.com.au>
2190
d952f17a
AM
2191 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2192
ffd6e9de
AM
2193 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2194 enabling search for libmilli. On a relocatable link, make .text
2195 sections unique.
2196 (LDEMUL_AFTER_PARSE): Define.
2197 (hppaelf_finish): Correct spelling of relocatable in comments.
2198
577a0623
AM
2199 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2200 rummage through the script for sections on the unique list.
2201 Correct length of strncmp for ".note".
2202 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2203
2204 * ldlang.c (unique_section_list): New var.
2205 (unique_section_p): New function.
2206 (walk_wild_section): Don't match sections on unique_section_list.
2207 (lang_add_unique): New function.
ffd6e9de 2208 Correct spelling of relocatable in comments.
577a0623
AM
2209
2210 * ldlang.h (struct unique_sections): Declare.
2211 (unique_section_list): Declare.
2212 (unique_section_p): Declare.
2213 (lang_add_unique): Declare.
2214
2215 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2216 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2217
2218 * ld.texinfo (--unique): Update.
2219
b7ed8fad
NC
22202001-01-13 Nick Clifton <nickc@redhat.com>
2221
2222 * lexsup.c (parse_args): Remove spurious white space.
2223
d0398d6a
NC
22242001-01-12 Nick Clifton <nickc@redhat.com>
2225
2226 * lexsup.c (parse_args): Update copyright date.
2227
350fdb00
PB
22282001-01-12 Philip Blundell <pb@futuretv.com>
2229
2230 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2231
60c6797e
KH
22322001-01-10 Kazu Hirata <kazu@hxi.com>
2233
2234 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2235 * scripttempl/h8300h.sc: Fix formatting.
2236 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2237 * scripttempl/h8500.sc: Likewise.
2238 * scripttempl/h8500b.sc: Likewise.
2239 * scripttempl/h8500c.sc: Likewise.
2240 * scripttempl/h8500m.sc: Likewise.
2241 * scripttempl/h8500s.sc: Likewise.
60c6797e 2242
482e8b32
DB
22432000-01-07 David O'Brien <obrien@BSDi.com>
2244
2245 * emultempl/elf32.em: Only perform Linux ld hints processing when
2246 targeting Linux.
2247
d7ed7ca6
PB
22482001-01-07 Philip Blundell <philb@gnu.org>
2249
2250 * ld.texinfo (Bug Reporting): Update email address for reports.
2251
0fc3347a
NC
22522000-12-31 Nick Clifton <nickc@redhat.com>
2253
2254 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2255 options by checking for a return value of '?' not -1.
2256
e4897a32
NC
22572000-12-28 Nick Clifton <nickc@redhat.com>
2258
2259 * lexsup.c (struct ld_option): Add new enum value:
2260 EXACTLY_TWO_DASHES.
2261 (ld_options[]): Change -omagic, -output and -oformat options
2262 to be EXACTLY_TWO_DASHES.
2263 (OUTPUT_COUNT): Use ARRAY_SIZE.
2264 (parse_args): Change parameter 'argc' to unsigned.
2265 Place EXACTLY_TWO_DASHES options into new really_longopts
2266 array.
2267 If getopt_long_only fails, try calling getopt_long using the
2268 really_longopts array.
2269 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2270 TWO_DASHES options.
2271
2272 * ldlex.h: Fix prototype of parse_args.
2273
2274 * ld.texinfo: Document that long options starting with 'o'
2275 must be preceeded by two dashes. Change example of a single
2276 dashed long option from -oformat to -trace-symbol.
2277
1122a5fc
NC
22782000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2279
2280 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2281 (longopts[]): New --no-default-excludes option.
2282 (gld_${EMULATION_NAME}_list_options): Document.
2283 (gld_${EMULATION_NAME}_parse_args): Handle.
2284
037849a9
NC
22852000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2286
2287 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2288 whitespace, it breaks the K&R C preprocessor.
2289
7ec229ce
DD
22902000-12-11 DJ Delorie <dj@redhat.com>
2291
2292 * ld.texinfo: Add notes about --whole-archive and gcc.
2293
b79e8c78
NC
22942000-11-18 Fred Fish <fnf@be.com>
2295
2296 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2297 (ld_options): Entry for --allow-shlib-undefined.
2298 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2299 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2300 to false.
2301 * ld.texinfo: Document new command line switch.
d952f17a 2302
9a8e2505
GK
23032000-12-12 Geoffrey Keating <geoffk@redhat.com>
2304
2305 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2306 .fixup is actually read/write.
2307 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2308 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2309 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2310
3b16e843 23112000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2312
2313 * NEWS: Add note about x86_64 architecture.
2314
93b63cd3
DD
23152000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2316
2317 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2318 Set DWARF2 sections to a VMA of zero.
2319
24f6971a
NC
23202000-12-01 Joel Sherrill <joel@OARcorp.com>
2321
d952f17a 2322 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2323 New targets.
2324 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2325 (sparc*-*-rtems*): Switched from a.out to ELF.
2326
2be3aa03
NC
23272000-11-30 Jan Hubicka <jh@suse.cz>
2328
2329 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2330 (eelf_x86_64.c): New.
2331 * Makefile.in: Regenerate.
2332 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2333 * emulparams/elf_x86_64.sh: New.
2334
8c899858
HPN
23352000-11-30 Hans-Peter Nilsson <hp@axis.com>
2336
2337 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2338 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2339
2340 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2341 merging non-a.out sections into CONSTRUCTING.
2342
e47b9e39
NC
23432000-11-28 Nick Clifton <nickc@redhat.com>
2344
2345 * ld.1 (COPYING): Mention that the GNU Free Documentation
2346 License is present in the sources, but not the output, and
2347 also available from the GNU website.
2348 (GNU Free Documentation License): Comment out this section.
2349
ad95f82a
DB
23502000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2351
2352 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2353 does not use them.
2354
fd89e65f
DB
23552000-11-25 David O'Brien <obrien@FreeBSD.org>
2356
2357 * ld.1: Remove old date so it does not give the impression the manpage
2358 is way out of date.
2359
077b8428
NC
23602000-11-24 Nick Clifton <nickc@redhat.com>
2361
2362 * configure.tgt (xscale-coff): Add target.
2363 (xscale-elf): Add target.
2364
49425d28
NC
23652000-11-24 Fred Fish <fnf@be.com>
2366
d952f17a
AM
2367 * ldmain.c (main): Remove redundant init of config.make_executable
2368 to true.
49425d28 2369
d3480244
RH
23702000-11-15 Richard Henderson <rth@redhat.com>
2371
2372 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2373
1ce7de8b
KH
23742000-11-14 Kazu Hirata <kazu@hxi.com>
2375
2376 * scripttempl/h8300.sc: Fix formatting.
2377 * scripttempl/h8300h.sc: Likewise.
2378 * scripttempl/h8300s.sc: Likewise.
2379
3b16e843 23802000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2381
2382 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2383
2e418547
PB
23842000-11-09 Philip Blundell <pb@futuretv.com>
2385
2386 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2387 around orphan sections whose names can be represented in C.
2388
c940e6fc
JW
23892000-11-07 Jim Wilson <wilson@redhat.com>
2390
2391 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2392 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2393
704c465c
NC
23942000-11-06 Nick Clifton <nickc@redhat.com>
2395
2396 * ld.texinfo: Add GNU Free Documentation License.
2397 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2398 * ld.1: Add GNU Free Documentation License.
704c465c 2399
dca7760f
AM
24002000-11-05 Alan Modra <alan@linuxcare.com.au>
2401
2402 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2403 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2404
2405 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2406 Move 2000-11-02 Makefile.in changes to this file.
2407 * Makefile.in: Regenerate.
2408
40a633d5
NC
24092000-11-03 Nick Clifton <nickc@redhat.com>
2410
2411 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2412 constructors and destructors.
2413 * scripttempl/h8300h.sc: Ditto.
2414 * scripttempl/h8300s.sc: Ditto.
2415 * scripttempl/h8500.sc: Ditto.
2416 * scripttempl/h8500b.sc: Ditto.
2417 * scripttempl/h8500c.sc: Ditto.
2418 * scripttempl/h8500m.sc: Ditto.
2419 * scripttempl/h8500s.sc: Ditto.
2420 * scripttempl/v850.sc: Ditto.
2421 * scripttempl/w65.sc: Ditto.
2422 * scripttempl/z8000.sc: Ditto.
2423
59ff2774
NC
24242000-11-02 Per Lundberg <plundis@chaosdev.org>
2425
2426 * Makefile.in (e_i386_chaos.c): New rule.
2427 (ALL_EMULATIONS): Added e_i386_chaos.o.
2428 * emulparams/elf_i386_chaos.sh: New file.
2429 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2430
645571e1
JJ
24312000-10-20 Jakub Jelinek <jakub@redhat.com>
2432
2433 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2434 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2435 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2436 library path suffix.
2437 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2438
c5975a45
HPN
24392000-10-18 Hans-Peter Nilsson <hp@axis.com>
2440
2441 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2442 for consecutive sections.
2443
ea20a7da
CC
24442000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2445
d952f17a
AM
2446 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2447 options.
2448 * ld.texinfo: Added notes about this new option.
ea20a7da 2449
6e45556a
NC
24502000-10-16 Nick Clifton <nickc@redhat.com>
2451
2452 * emultempl/pe.em (_after_open): Add tests of return values from
2453 bfd functions. Emit appropriate error messages if necessary.
2454
b9a69188
NC
24552000-10-13 Nick Clifton <nickc@redhat.com>
2456
2457 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
2458 local variables - they are not used, but leave in the call to
2459 bfd_canonicalize_symtab.
b9a69188
NC
2460 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2461 pe_dll_search_prefix.
2462
627427de 24632000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 2464
627427de
DD
2465 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2466 (longopts): New --dll-search-prefix option.
2467 (gld_${EMULATION_NAME}_list_options): Document.
2468 (gld_${EMULATION_NAME}_parse_args): Handle.
2469 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2470 dynamically, search for a dll named '<prefix><basename>.dll'
2471 in preference to 'lib<basename>.dll' if --dll-search-prefix
2472 is specified.
2473
24376d1b
AM
24742000-10-12 Alan Modra <alan@linuxcare.com.au>
2475
2476 * ldlang.c (section_already_linked): Set kept_section instead of
2477 sec->comdat->sec.
2478
e47d05ad
KH
24792000-10-10 Kazu Hirata <kazu@hxi.com>
2480
2481 * deffile.h: Fix formatting.
2482 * lexsup.c: Likewise.
2483 * mri.c: Likewise.
2484
23a87948
DD
24852000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2486
2487 * pe-dll.c (make_one): Do not generate code thunk for DATA
2488 exports.
2489 (process_def_file): deduce DATA flag for auto-export sumbols.
2490
86b1cc60
KH
24912000-10-09 Kazu Hirata <kazu@hxi.com>
2492
89cdebba
KH
2493 * ld.h: Fix formatting.
2494 * ldcref.c: Likewise.
2495 * ldctor.h: Likewise.
2496 * ldemul.c: Likewise.
2497 * ldemul.h: Likewise.
2498 * ldexp.c: Likewise.
2499 * ldexp.h: Likewise.
2500 * ldfile.c: Likewise.
2501 * ldfile.h: Likewise.
2502 * ldlang.c: Likewise.
2503 * ldlang.h: Likewise.
2504 * ldmain.c: Likewise.
7bfd51a3
KH
2505 * pe-dll.c: Likewise.
2506
2507 * pe-dll.c: Revert some formatting fixes.
86b1cc60 2508
d643799d
KH
25092000-10-08 Kazu Hirata <kazu@hxi.com>
2510
2511 * pe-dll.c: Fix formatting.
2512
08da4cac
KH
25132000-10-05 Kazu Hirata <kazu@hxi.com>
2514
2515 * ldlang.c: Fix formatting.
2516
c2a94a7a
DD
25172000-10-03 DJ Delorie <dj@redhat.com>
2518
2519 * pe-dll.c (fill_edata): initialize entire block
2520 (make_one): fill in correct section.
2521
8c95a62e
KH
25222000-10-03 Kazu Hirata <kazu@hxi.com>
2523
2524 * ldexp.c: Fix formatting.
2525
486e80e2
DD
25262000-10-02 DJ Delorie <dj@redhat.com>
2527
2528 * emultempl/pe.em (gld_*_after_open): detect case where there two
2529 import libraries for same dll; rename one to ensure proper link
2530 order.
2531
2532 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2533 typo
2534 (generate_edata): fix typo
2535
24dd9f75
HPN
25362000-09-29 Hans-Peter Nilsson <hp@axis.com>
2537
2538 * scripttempl/crisaout.sc (ENTRY): Now __start.
2539 (.text): Add default setting for __start.
2540 Remove CONSTRUCTORS handling.
2541 (/DISCARD/): Add .gnu.warning.*.
2542 * emulparams/crislinux.sh (ENTRY): Now __start.
2543 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2544 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2545 (ENTRY): Now __start.
2546 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2547 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2548
4de2d33d
KH
25492000-09-29 Kazu Hirata <kazu@hxi.com>
2550
5cc18311
KH
2551 * deffile.h: Fix formatting.
2552 * ld.h: Likewise.
2553 * ldcref.c: Likewise.
4de2d33d 2554 * ldctor.c: Likewise.
5cc18311 2555 * ldctor.h: Likewise.
4de2d33d 2556 * ldemul.c: Likewise.
5cc18311 2557 * ldemul.h: Likewise.
4de2d33d 2558 * ldexp.c: Likewise.
5cc18311 2559 * ldexp.h: Likewise.
4de2d33d 2560 * ldfile.c: Likewise.
5cc18311 2561 * ldfile.h: Likewise.
4de2d33d 2562 * ldlang.c: Likewise.
5cc18311
KH
2563 * ldlang.h: Likewise.
2564 * lexsup.c: Likewise.
2565 * mri.c: Likewise.
2566 * pe-dll.c: Likewise.
4de2d33d 2567
45b1f63c
DD
25682000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2569
2570 * pe-dll.c (process_def_file): Uninitialized data wasn't
2571 exported with --export-all-symbols switch.
d952f17a 2572
45b1f63c
DD
25732000-09-28 DJ Delorie <dj@redhat.com>
2574
2575 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2576 noname work properly.
2577
47d89dba
AM
25782000-09-28 Alan Modra <alan@linuxcare.com.au>
2579
2580 * ld.texinfo (HPPA ELF32): New section.
2581
2582 * emultempl/hppaelf.em (group_size): New.
2583 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2584 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2585 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2586 options to prevent abbreviations matching.
2587 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2588 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2589
36bdbeec
NC
25902000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2591
2592 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2593 on the m68*-*-elf target. Make it support COFF input objects.
2594
6d5e62f8
KH
25952000-09-21 Kazu Hirata <kazu@hxi.com>
2596
2597 * ldmain.c: Fix formatting.
2598 * ldmisc.c: Likewise.
2599 * ldver.c: Likewise.
2600 * ldwrite.c: Likewise.
2601
e2eb67d9
AM
26022000-09-21 Alan Modra <alan@linuxcare.com.au>
2603
2604 * ldwrite.c (clone_section): Silence gcc warnings.
2605
b3ea3584
AM
26062000-09-20 Alan Modra <alan@linuxcare.com.au>
2607
2608 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2609 out of memory failure.
2610
2611 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2612 (clone_section): Handle out of memory failures. Rename var to
2613 avoid c++ reserved word.
2614
25f72752
AM
26152000-09-18 Alan Modra <alan@linuxcare.com.au>
2616
2617 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2618 stub_name param to stub_sec_name.
2619 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2620
0752970e
NC
26212000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2622
2623 * emultempl/m68kelf.em: New file.
2624 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2625 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2626 * Makefile.in: Regenerate.
2627
92b7e9d8
AM
26282000-09-15 Alan Modra <alan@linuxcare.com.au>
2629
2630 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2631 only as needed.
2632
9b14b192
NC
26332000-09-13 Nick Clifton <nickc@redhat.com>
2634
2635 * ldmain.c (multiple_definition): Disable relaxation if
2636 multiple symbol definitions are encountered - otherwise the
2637 linker could abort with an assertion failure.
2638
891fa266
NC
26392000-09-10 Nick Clifton <nickc@redhat.com>
2640
2641 * mri.c: Fix formatting.
2642
5d64ca4e
L
26432000-09-07 H.J. Lu <hjl@gnu.org>
2644
2645 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2646 * configure: Rebuild.
2647
dd94604f
L
26482000-09-07 H.J. Lu <hjl@gnu.org>
2649
2650 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2651 * Makefile.in: Rebuild.
2652
71bfc0ae
AM
26532000-09-07 Alan Modra <alan@linuxcare.com.au>
2654
2655 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2656 broken list handling. Create __start_SECNAME and __stop_SECNAME
2657 when no place-holder. Add some comments. Test both SEC_CODE and
2658 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 2659 Handle case where no output section statement created.
71bfc0ae 2660
4a428502
AO
26612000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2662
2663 * configure.tgt (sh-*-linux*): Added.
2664 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2665 * Makefile.in: Rebuilt.
2666 * emulparams/shelf_linux.sh: New file.
2667 * emulparams/shlelf_linux.sh: New file.
2668
f9989030
AM
26692000-09-06 Alan Modra <alan@linuxcare.com.au>
2670
2671 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2672 try shuffling sections when the orphan happens to be the place
2673 holder. Keep count of unique section names generated so we speed
2674 the search for a new name.
2675
58cccadb
AO
26762000-09-06 Alexandre Oliva <aoliva@redhat.com>
2677
2678 * configure: Rebuilt with new libtool.m4.
2679
5b343f5a
NC
26802000-09-05 Nick Clifton <nickc@redhat.com>
2681
2682 * Makefile.in: Regenerate.
2683 * aclocal.m4: Regenerate.
2684 * configure: Regenerate.
2685 * config.in: Regenerate.
2686 * po/ld.pot: Regenerate.
2687
2688 * ldint.texinfo: Remove CVS revision marker - it foils local
2689 comparisons.
2690
2691 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 2692
a854a4a7
AM
26932000-09-05 Alan Modra <alan@linuxcare.com.au>
2694
3231d22e
AM
2695 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2696 to stub section flags.
2697 (hppa_for_each_input_file_wrapper): New.
2698 (hppa_lang_for_each_input_file): New.
2699 (lang_for_each_input_file): Define to call above.
2700 (multi_subspace): New.
2701 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2702 (PARSE_AND_LIST_PROLOGUE): Define.
2703 (PARSE_AND_LIST_LONGOPTS): Define.
2704 (PARSE_AND_LIST_OPTIONS): Define.
2705 (PARSE_AND_LIST_ARGS_CASES): Define.
2706 (hppaelf_finish): Call elf32_hppa_set_gp.
2707 (hppaelf_set_output_arch): Remove.
2708 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2709
2710 * emulparams/hppalinux.sh (ELFSIZE): Define.
2711 (MACHINE): Define.
2712 (OTHER_READONLY_SECTIONS): Define.
2713 (DATA_PLT): Define.
2714 (GENERATE_SHLIB_SCRIPT): Define.
2715
5f992e62
AM
2716 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2717 to const throughout. Change `void *' to `PTR' throughout.
2718 (lang_memory_default): Function is local to file, add `static'.
2719
2720 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2721 (ehppalinux.c): Likewise.
2722 (earmelf.c): Likewise.
2723 (earmelf_linux.c): Likewise.
2724 (earmelf_linux26.c): Likewise.
2725 * Makefile.in: Regenerate.
2726
a854a4a7
AM
2727 * ld.h (ld_config_type): Add unique_orphan_sections.
2728 * lexsup.c (OPTION_UNIQUE): Define.
2729 (ld_options): Add "--unique".
2730 (parse_args): Handle it.
2731 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2732 search for an existing output section if unique_orphan_sections is
2733 set. Make use of bfd_get_unique_section_name rather than
2734 duplicating code here.
2735 * ld.texinfo: Describe --unique.
2736
2737 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2738 optional arg to split-by-file.
2739 (parse_args): Handle them.
2740 * ld.texinfo: Update description of these options.
2741 * ldwrite.c (clone_section): Pass in the section name. Replace
2742 local code with bfd_get_unique_section_name.
2743 (split_sections): Tidy code and comments. Use a list traversal
2744 more appropriate to the list construction. Handle cooked section
2745 sizes. Split when split_by_reloc reached rather than exceeded.
2746 Track section size and split when split_by_file reached. Fix
2747 link_order_tail (even though it's not used).
2748 (ldwrite): Modify condition for calling split_sections to suit
2749 changed split_by_reloc and split_by_file.
2750 * ldmain.c (main): Init config.split_by_reloc and
2751 config.split_by_file to -1.
2752 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2753 Change split_by_file to bfd_size_type.
2754
18e03609
NC
27552000-09-02 Nick Clifton <nickc@redhat.com>
2756
2757 * configure.in: Increase version number to 2.10.91.
2758 * NEWS: Mention new ability to support removal of duplicate DWARF2
2759 debug information.
2760 * configure: Regenerate.
2761 * aclocal.m4: Regenerate.
2762 * config.in: Regenerate.
2763
3a9d486c
NC
27642000-09-02 Daniel Berlin <dberlin@redhat.com>
2765
2766 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2767 sections.
a2b64bed 2768 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
2769 * scripttempl/elfd10v.sc: Ditto.
2770 * scripttempl/elfd30v.sc: Ditto.
2771 * scripttempl/elfi370.sc: Ditto.
2772 * scripttempl/elfm68hc11.sc: Ditto.
2773 * scripttempl/elfm68hc12.sc: Ditto.
2774 * scripttempl/elfi386beos.sc: Ditto.
2775 * scripttempl/v850.sc: Ditto.
50bbae35 2776
ac48eca1
AO
27772000-08-31 Alexandre Oliva <aoliva@redhat.com>
2778
2779 * acinclude.m4: Include libtool and gettext macros from the
2780 top level.
2781 * aclocal.m4, configure: Rebuilt.
2782
c13b1b77
NC
27832000-08-25 Nick Clifton <nickc@redhat.com>
2784
2785 * ldlang.c (open_output): When choosing the target for a
2786 particular endianness, do nothing if the target is not
2787 supported.
2788
dcb0bd0e
L
27892000-08-25 H.J. Lu <hjl@gnu.org>
2790
2791 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2792 check -rpath nor LD_RUN_PATH for cross link.
2793 * ld.texinfo: Document the change.
2794
5bcac8a4
HPN
27952000-08-24 Hans-Peter Nilsson <hp@axis.com>
2796
2797 * NEWS: Mention support for CRIS.
2798
6dd8c765
L
27992000-08-23 H.J. Lu <hjl@gnu.org>
2800
2801 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2802 the current runpath list from bfd_elf_get_runpath_list ()
2803 before search.
2804
ec4eb78a
L
28052000-08-22 H.J. Lu <hjl@gnu.org>
2806
2807 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2808 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2809 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2810 trace_file_tries is non-zero.
2811 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2812 if trace_file_tries is non-zero.
2813
2814 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 2815 * NEWS: Mention it.
ec4eb78a 2816
22b36938
JE
28172000-08-14 Jason Eckhardt <jle@cygnus.com>
2818
2819 * NEWS: Mention i860 support.
2820
d73e9da0
AS
28212000-08-14 Andreas Schwab <schwab@suse.de>
2822
2823 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 2824 syntax.
d73e9da0 2825
9ac4db9c
GK
28262000-08-10 Geoff Keating <geoffk@cygnus.com>
2827
2828 * scripttempl/elf.sc: Add a comment giving the correspondence
2829 between sections, per-datum sections, and linkonce sections. Make
2830 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2831 .sbss2.
2832
165589e4
JE
28332000-08-10 Jason Eckhardt <jle@cygnus.com>
2834
2835 * emulparams/elf32_i860.sh: New file.
2836 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2837 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2838 (eelf32_i860.c): New rule.
2839 * Makefile.in: Regenerate.
2840
345a835d
NC
28412000-08-10 Nick Clifton <nickc@cygnus.com>
2842
2843 * emulparams/mipspe.sh (ENTRY): Add definition.
2844
e374f1d9
NC
28452000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2846
2847 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2848 in error message.
2849
236d5abf
NC
28502000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2851
2852 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2853 the final size of .bss section.
2854 * scripttempl/elfm68hc12.sc: Likewise.
2855
4b209b22
AM
28562000-08-04 Alan Modra <alan@linuxcare.com.au>
2857
2858 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2859 gld${EMULATION_NAME}_parse_args for consistency. Combine
2860 lastoptind and prevoptind vars, and keep track of last optind.
2861 (gld_${EMULATION_NAME}_list_options): Rename to
2862 gld${EMULATION_NAME}_list_options.
2863
28423a68
AM
28642000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2865
2866 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2867 (i586-sco-sysv5uw7.1.0).
2868
b2009ff7
L
28692000-07-27 H.J. Lu <hjl@gnu.org>
2870
2871 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2872 (PARSE_AND_LIST_PROLOGUE): New.
2873 (PARSE_AND_LIST_LONGOPTS): Likewise.
2874 (PARSE_AND_LIST_OPTIONS): Likewise.
2875 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2876 (PARSE_AND_LIST_EPILOGUE): Likewise.
2877
04925e1e
AM
28782000-07-28 Alan Modra <alan@linuxcare.com.au>
2879
41392f03
AM
2880 * emultempl/armelf.em: Elide functions common to elf32.em,
2881 ie. most of the file.
2882 (arm_elf_after_open): New. Do arm specific things then call
2883 gld${EMULATION_NAME}_after_open.
2884 (arm_elf_before_allocation): New. Call
2885 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2886 (PARSE_AND_LIST_PROLOGUE): Define.
2887 (PARSE_AND_LIST_SHORTOPTS): Define.
2888 (PARSE_AND_LIST_LONGOPTS): Define.
2889 (PARSE_AND_LIST_OPTIONS): Define.
2890 (PARSE_AND_LIST_ARGS_CASES): Define.
2891 (LDEMUL_AFTER_OPEN): Define.
2892 (LDEMUL_BEFORE_ALLOCATION): Define.
2893 (LDEMUL_BEFORE_PARSE): Define.
2894 (LDEMUL_FINISH): Define.
2895
2896 * emultempl/hppaelf.em: Similarly zap most of this file.
2897 (hppaelf_add_stub_section): Prototype.
2898 (hppaelf_layaout_sections_again): Prototype.
2899 (hook_in_stub): Prototype.
2900 (LDEMUL_SET_OUTPUT_ARCH): Define.
2901 (LDEMUL_FINISH): Define.
2902 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2903
2904 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2905 (EXTRA_EM_FILE): New.
2906 * emulparams/armelf_linux.sh: Likewise.
2907 * emulparams/armelf_linux26.sh: Likewise.
2908 * emulparams/hppalinux.sh: Likewise.
2909 * emulparams/hppaelf.sh: Likewise.
2910 (NOP): Define.
2911
2912 * emultempl/elf32.em: Fix formatting.
2913 (EXTRA_EM_FILE): Source it.
2914 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2915 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2916 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2917 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2918 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2919 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2920 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2921 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2922 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2923 allow functions in this file to be overridden.
2924 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2925
2926 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2927
04925e1e
AM
2928 * emultempl/elf32.em: Reorganize file.
2929
88cdf297
NC
29302000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2931
2932 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2933 specific option to fit 64-bit executable in the lower
2934 31-bit address range. This is done by changing start
2935 address of .interp (the very first section of executable)
2936 and then setting EF_ALPHA_32BIT elf header flag.
2937
20bccb34
NC
29382000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2939
2940 * emultempl/m68kcoff.em: New file.
2941 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2942 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2943 generic.em.
2944 * Makefile.in: Regenerate.
2945
699845ef
L
29462000-07-20 H.J. Lu <hjl@gnu.org>
2947
2948 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2949 and "disable-new-dtags" to stop getopt from treating -d/-e as
2950 abbreviations for these options.
2951
6c1439be
L
29522000-07-20 H.J. Lu <hjl@gnu.org>
2953
2954 * ld.texinfo: Add documentation for --disable-new-dtags and
2955 --enable-new-dtags.
2956
2957 * ldmain.c (main): Initialize link_info.new_dtags to false.
2958
2959 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2960 --disable-new-dtags and --enable-new-dtags.
2961 (gld_${EMULATION_NAME}_list_options): Likewise.
2962
28c309a2
NC
29632000-07-05 Kenneth Block <krblock@computer.org>
2964
a2b64bed
NC
2965 * lexsup.c: Add optional style to demangle switch
2966 * ld.texinfo: Document optional style to demangle switch.
50bbae35 2967
9d06555c
HPN
29682000-07-20 Hans-Peter Nilsson <hp@axis.com>
2969
2970 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2971 ecrislinux.o.
2972 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2973 Regenerate dependencies.
2974 * Makefile.in: Rebuild.
2975 * configure.tgt (cris-*-*): New target.
2976 * emulparams/crisaout.sh, emulparams/criself.sh,
2977 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2978 * po/POTFILES.in, po/ld.pot: Regenerate.
2979
19e3be22
L
29802000-07-20 H.J. Lu <hjl@gnu.org>
2981
2982 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2983 Print out ignored -z options.
2984
e0ee487b
L
29852000-07-19 H.J. Lu <hjl@gnu.org>
2986
19e3be22
L
2987 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2988 (PARSE_AND_LIST_PROLOGUE): New.
2989 (PARSE_AND_LIST_LONGOPTS): Likewise.
2990 (PARSE_AND_LIST_OPTIONS): Likewise.
2991 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2992
2993 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2994
2995 * lexsup.c (ld_options): Comment out 'z'.
2996 (parse_args): Likewise.
2997
2998 * emultempl/elf32.em: Include "elf/common.h".
2999 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3000 options.
3001 (gld_${EMULATION_NAME}_list_options): Likewise.
3002
3003 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3004
49e56c49
L
30052000-07-19 H.J. Lu <hjl@gnu.org>
3006
3007 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3008 bfd_elf_set_dt_needed_soname ().
3009
9d68bc82
DD
30102000-07-18 DJ Delorie <dj@cygnus.com>
3011
3012 * pe-dll.c (pe_dll_id_target): check object target name also
3013
53db15ed
HPN
30142000-07-18 Hans-Peter Nilsson <hp@axis.com>
3015
3016 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3017 ${INIT_END} if relocating.
3018 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3019
0ad8cf4c
DD
30202000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3021
a2b64bed 3022 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3023 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3024 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3025 errors introduced by the old dynamic lib search order.
3026
874c8c99
DD
30272000-07-17 DJ Delorie <dj@cygnus.com>
3028
3029 * pe-dll.c (process_def_file): auto-export data items also
3030 (pe_process_import_defs): also see if _imp_ form needed
3031
5b4cf3f4
DD
30322000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3033
3034 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3035 for dll import libraries
3036
062739d1
NC
30372000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3038
3039 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3040 gcc 2.95.2 and later.
062739d1 3041
1c64c4ed
NC
30422000-07-11 Kazu Hirata <kazu@hxi.com>
3043
50bbae35
AM
3044 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3045 message.
1c64c4ed 3046
b71e2778
AM
30472000-07-10 Alan Modra <alan@linuxcare.com.au>
3048
3049 * ldemul.h (struct lang_input_statement_struct): Remove forward
3050 declaration.
3051 (struct search_dirs): Likewise.
3052 * ldfile.h (struct lang_input_statement_struct): Likewise.
3053 Protect file from multiple inclusion.
3054 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3055 declaration from macro to file scope.
3056
3057 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3058 * ldgram.y: Likewise here.
3059 * ldlang.c: And here.
3060 * ldmain.c: And here.
3061 * mpw-elfmips.c: And here.
3062 * mpw-eppcmac.c: And here.
3063 * emultempl/aix.em: And here.
3064 * emultempl/armcoff.em: And here.
3065 * emultempl/armelf.em: And here.
3066 * emultempl/armelf_oabi.em: And here.
3067 * emultempl/beos.em: And here.
3068 * emultempl/elf32.em: And here.
3069 * emultempl/hppaelf.em: And here.
3070 * emultempl/linux.em: And here.
3071 * emultempl/lnk960.em: And here.
3072 * emultempl/pe.em: And here.
3073 * emultempl/sunos.em: And here.
3074 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3075 * mpw-idtmips.c: Ditto.
3076 * emultempl/generic.em: Ditto.
3077 * emultempl/gld960.em: Ditto.
3078 * emultempl/gld960c.em: Ditto.
3079 * emultempl/mipsecoff.em: Ditto.
3080 * emultempl/ticoff.em: Ditto.
3081 * emultempl/vanilla.em: Ditto.
3082
3083 * pe-dll.c: Include ldfile.h
3084 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3085
3086 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3087 arguments to bfd_elf32_size_dynamic_sections call.
3088 (gldelf32ebmip_place_orphan): Add missing arguments to
3089 lang_leave_output_section_statement call.
3090
2ef53d66
L
30912000-07-10 H.J. Lu <hjl@gnu.org>
3092
3093 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3094 DLL_SUPPORT.
3095 (strhash): Likewise.
3096 (compute_dll_image_base): Likewise.
3097 (pe_undef_found_sym): Likewise.
3098 (pe_undef_cdecl_match): Likewise.
3099 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3100 argument "arch" with ATTRIBUTE_UNUSED.
3101
9a8cbb09
AM
31022000-07-10 Alan Modra <alan@linuxcare.com.au>
3103
3104 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3105
3106 From Ryan Bradetich <rbradetich@uswest.net>
3107 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3108
4900fc06
AM
31092000-07-09 Alan Modra <alan@linuxcare.com.au>
3110
3111 Changes to create multiple linker stubs, positioned immediately
3112 before the section where they are required.
3113 * emultempl/hppaelf.em: Include elf32-hppa.h.
3114 (stub_sec, file_chain): Delete.
3115 (hppaelf_create_output_section_statements): Don't make a stub
3116 section here.
3117 (hook_stub_info): New struct.
3118 (hook_in_stub): New function.
3119 (hppaelf_add_stub_section): New function.
3120 (hppaelf_finish): Do nothing for relocateable links. Modify the
3121 call to elf32_hppa_size_stubs. Move code for updating section
3122 layout from here...
3123 (hppaelf_layaout_sections_again): ..to here, a new function.
3124
3125 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3126 broken list handling. Pass in a pointer to the list.
3127 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3128 for above changes.
3129 (hppaelf_before_parse): Prototype.
3130 (hppaelf_set_output_arch): Prototype.
3131 (hppaelf_create_output_section_statements): Prototype.
3132 (hppaelf_delete_padding_statements): Prototype.
3133 (hppaelf_finish): Prototype.
3134
3135 Merge from elf32.em
3136 * emultempl/hppaelf.em: Include ctype.h.
3137 (struct orphan_save): New.
3138 (gld${EMULATION_NAME}_place_orphan): New.
3139 (output_rel_find): New.
3140 (hppaelf_get_script): Update from elf32.em.
3141 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3142 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3143 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3144
3145 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3146 ehppalinux.o, sort it. Regenerate dependencies.
3147 (ehppalinux.c): Depend on hppaelf.em
3148 * Makefile.in: Regenerate.
3149
3150 * configure.tgt: targ_emul=hppalinux for hppa*linux
3151
3152 * emulparams/hppalinux.sh: New.
3153 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3154
227aeb07
AM
31552000-07-08 Alan Modra <alan@linuxcare.com.au>
3156
3157 * lexsup.c (parse_args): Copy section name.
3158
28609fd4 31592000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3160
2ef53d66 3161 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3162 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3163 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3164 static lib (libfoo.a) if none of the above are found.
3165
5f577f7d
DD
31662000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3167
50bbae35 3168 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3169 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3170 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3171 (gld_${EMULATION_NAME}_parse): Handle.
3172 (strhash): New static function.
50bbae35 3173 (compute_dll_image_base): New static function.
5f577f7d
DD
3174 (gld_${EMULATION_NAME}_set_symbols): Use.
3175
9a8cbb09 31762000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3177
3178 * MAINTAINERS: new
3179
3548145d 31802000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3181
3182 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3183 * emulparams/elf32btsmip.sh: New file.
3184 * Makefile.am: Add traditional mips target.
3185 * Makefile.in: Rebuild.
3186
67798033
L
31872000-07-01 H.J. Lu <hjl@gnu.org>
3188
3189 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3190 automake to use YLWRAP.
3191 * Makefile.in: Rebuild.
3192
0bdaf48b
AM
31932000-07-01 Alan Modra <alan@linuxcare.com.au>
3194
3195 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3196 (CLEANFILES): Add DEPA.
3197 * Makefile.in: Regenerate.
3198
c9e769c2
TW
31992000-06-30 Timothy Wall <twall@ppc>
3200
3201 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3202 the page in the upper octet of the address.
3203
65aa24b6
NC
32042000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3205
3206 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3207
4667035e
AM
32082000-06-24 Alan Modra <alan@linuxcare.com.au>
3209
3210 * NEWS: arm-elf does --gc-sections too.
3211
1581f8c9
AM
32122000-06-22 Alan Modra <alan@linuxcare.com.au>
3213
3214 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3215 find one.
3216 * Makefile.in: Regenerate.
3217
01580992
L
32182000-06-21 H.J. Lu <hjl@gnu.org>
3219
3220 * Makefile.am: Rebuild dependency.
3221 * Makefile.in: Rebuild.
3222
bbeb2e03
L
32232000-06-20 H.J. Lu <hjl@gnu.org>
3224
3225 * Makefile.am: Rebuild dependency.
3226 * Makefile.in: Rebuild.
3227
74459f0e
TW
32282000-06-20 Timothy Wall <twall@cygnus.com>
3229
3230 * scripttempl/tic54xcoff.sc: New.
3231 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3232 * gen-doc.texi: Add flag for TI COFF.
3233 * ld.texinfo: Add documentation for TI COFF handling switches.
3234 * emultempl/ticoff.em: New. TI COFF handling.
3235 * configure.tgt: Add tic54x target.
3236 * Makefile.am: Add tic54x target.
3237 * Makefile.in: Ditto.
3238
2ab47eed
AM
32392000-06-20 Alan Modra <alan@linuxcare.com.au>
3240
3241 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3242 checking for backslashes.
3243
919e4093
AM
32442000-06-19 Alan Modra <alan@linuxcare.com.au>
3245
3246 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3247
987fd5b4
AM
32482000-06-18 Alan Modra <alan@linuxcare.com.au>
3249
3250 * NEWS: Update list of targets supporting --gc-sections.
3251
3252 * scripttempl/elf.sc: KEEP .eh_frame contents.
3253 * scripttempl/elfd30v.sc: Same here.
3254
60bcf0fa
NC
32552000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3256
3257 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3258 and m68hc11 (elf).
3259 * Makefile.in: Rebuild.
3260 * configure.tgt: Recognize m68hc12 and m68hc11.
3261 * scripttempl/elfm68hc12.sc: New file.
3262 * emulparams/m68hc12elfb: New emulation.
3263 * emulparams/m68hc12elf: New emulation.
3264 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3265 (includes a memory.x script to define the ROM and RAM banks).
3266 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3267 New configuration files for support of Motorola 68hc11
3268
c7c54483
AM
32692000-06-15 Alan Modra <alan@linuxcare.com.au>
3270
3271 * ldmain.c (main): Only change SEC_READONLY for final link.
3272
bcef29e6
L
32732000-06-13 H.J. Lu <hjl@gnu.org>
3274
3275 * configure: Regenerate.
3276
946efd95
DB
32772000-06-08 David O'Brien <obrien@FreeBSD.org>
3278
3279 * configure.in (VERSION): Update to show this is the CVS mainline.
3280
57a6fd07
DB
32812000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3282
3283 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3284 input objects to be ECOFF.
3285 (check_sections): einfo takes %B, not %P, to print a BFD name.
3286
e06cae36
L
32872000-06-05 Michael Matz <matz@ifh.de>
3288
3289 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3290 version scripts.
e06cae36 3291
d952f17a 3292 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3293
2f0b56c0
DC
32942000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3295
3296 * emulparams/avr1200.sh (STACK): Define as 0.
3297 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3298 * emulparams/avr4433.sh (STACK): Likewise.
3299 * emulparams/avr44x4.sh (STACK): Likewise.
3300 * emulparams/avr85xx.sh (STACK): Likewise.
3301 * emulparams/avrmega103.sh (STACK): Likewise.
3302 * emulparams/avrmega161.sh (STACK): Likewise.
3303 * emulparams/avrmega603.sh (STACK): Likewise.
3304 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3305 (__stack): Define from ${STACK} for main().
3306
2114f57b
AM
33072000-05-26 Alan Modra <alan@linuxcare.com.au>
3308
3309 * Makefile.am: Update dependencies with "make dep-am"
3310 * Makefile.in: Regenerate.
3311
5af11cab
AM
33122000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3313
3314 * ldmain.c: Include filenames.h.
3315 (set_scripts_dir): Support backslashes in program name.
3316
1f0df59a
NC
33172000-05-22 Igor Shevlyakov <igor@windriver.com>
3318
3319 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3320 read-only, don't forget to reset SEC_READONLY because it
3321 could be already set.
1f0df59a 3322
176355da
NC
33232000-05-22 Thomas de Lellis <tdel@windriver.com>
3324
50bbae35
AM
3325 * ld.1: Add documentation for new command line option:
3326 --section-start <sectionname>=<sectionorg>
3327 This is a generic version of -Ttext etc. which accepts
3328 any section name as a parameter instead of just text/data/
3329 bss.
3330 * ld.texinfo: More docs.
3331 * NEWS: More docs.
3332 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3333 (ld_options): Add new option.
50bbae35 3334
8c5ff972
L
33352000-05-18 H.J. Lu <hjl@gnu.org>
3336
3337 * lexsup.c (parse_args): `i' == `r', not `q'.
3338
3b16e843 33392000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3340
3341 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3342
a712da20
NC
33432000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3344 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3345
a712da20
NC
3346 Add support for '-q' == '--emit-relocs' switch.
3347 * ldmain.c (main): Default to false.
3348 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3349 * NEWS: Describe the emitrelocations switch.
3350 * ld.texinfo: Describe the emitrelocations switch.
3351
690a460e
NC
33522000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3353
a2b64bed 3354 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3355 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3356 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3357 link options.
50bbae35 3358
c2f1343c
AM
33592000-05-15 David O'Brien <obrien@FreeBSD.org>
3360
3361 * lexsup.c (parse_args): Update the year in the copyright notice.
3362
897083bd
AM
33632000-05-13 Alan Modra <alan@linuxcare.com.au>
3364
3365 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3366 Replace defines with those from intl/libgettext.h to quieten gcc
3367 warnings.
3368
cd4c806a
L
33692000-05-10 H.J. Lu <hjl@gnu.org>
3370
3371 * ldlang.c (open_input_bfds): Don't load the same file within
3372 a group again if the whole archive has been loaded already.
3373
93697284
AM
33742000-05-03 Alan Modra <alan@linuxcare.com.au>
3375
3376 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3377 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3378 strtoul.
3379
3b16e843 33802000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3381
99a4150f 3382 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3383
ebd6fc29
JW
3384 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3385 host "ia64-*-linux-gnu*".
3386
a1934524
AM
33872000-04-29 Andreas Jaeger <aj@suse.de>
3388
3389 * ld.h: Correctly check GCC version.
3390
3b16e843 33912000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3392
3393 * Makefile.am: Add PA64 support. Add missing dependencies for
3394 PA32 elf support.
3395 * Makefile.in: Rebuilt.
3396 * configure.tgt: Add PA64 support (currently disabled).
3397
aea4bd9d
AM
33982000-04-25 Alan Modra <alan@linuxcare.com.au>
3399
3400 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3401 (output_rel_find): New function.
3402 (hold_section, hold_use): Delete.
3403 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3404 hold_interp): Make local to place_orphan.
3405 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3406 rather than place_section to find possible previous use of orphan.
3407 Similarly find the place-holder output sections. Use returned
3408 value from lang_enter_output_section_statement rather than calling
3409 lang_output_section_statement_lookup.
3410 * emultempl/armelf.em: Same here.
3411 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3412
3413 * ldlang.c (lang_enter_output_section_statement): Return output
3414 section statement.
3415 * ldlang.h (lang_enter_output_section_statement): Change
3416 declaration too.
3417
3418 * ldlang.h (lang_output_section_statement): Export it.
3419 * ldlang.c (lang_output_section_statement): Ditto.
3420
2b5fc1f5
NC
34212000-04-24 Nick Clifton <nickc@cygnus.com>
3422
3423 * ld.texinfo (Output Section Data): Add note that section data
3424 commands cannot appear outside of section directives.
3425
d8475ff6
JL
34262000-04-2 Matthew Green <mrg@cygnus.com>
3427
3428 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3429
3b16e843
NC
34302000-04-21 Richard Henderson <rth@cygnus.com>
3431 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
3432
3433 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3434 (eelf64_ia64.c): New rule.
3435 * Makefile.in: Rebuild.
3436 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3437 * emulparams/elf64_ia64.sh: New file.
50bbae35 3438
c9637625
RH
34392000-04-21 Richard Henderson <rth@cygnus.com>
3440
3441 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3442
28ea9521
AM
34432000-04-19 Alan Modra <alan@linuxcare.com.au>
3444
3445 * dep-in.sed: Match space at start of file name, not at end.
3446
20d04697
L
34472000-04-18 H.J. Lu <hjl@gnu.org>
3448
3449 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3450 lang_leave_output_section_statement () after calling
3451 lang_enter_output_section_statement ().
3452 * emultempl/armelf.em: Likewise.
3453
5ba47421
AM
34542000-04-18 Alan Modra <alan@linuxcare.com.au>
3455
3456 * emultempl/elf32.em (struct orphan_save): Add section field.
3457 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3458 better order, and place first orphan section as we did before the
3459 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3460 Don't call make_bfd_section here, let wild_doit do the job for us.
3461 Don't build a statement list when we'll only throw it away.
3462 * emultempl/armelf.em: Ditto.
3463 * emultempl/pe.em: Similarly.
3464
bdbe5705
GK
34652000-04-14 Geoff Keating <geoffk@cygnus.com>
3466
3467 * scripttempl/elfppc.sc: Remove.
3468 * emulparams/elf32ppc.sh: Use elf.sc.
3469 * emulparams/elf32lppc.sh: Use elf.sc.
3470 * emulparams/elf32ppclinux.sh: Use elf.sc.
3471 * emulparams/elf32ppcsim.sh: New file.
3472 * emulparams/elf32lppcsim.sh: New file.
3473 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3474 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3475 * Makefile.in: Regenerate.
3476 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3477
01cc8ff8
AM
34782000-04-14 Alan Modra <alan@linuxcare.com.au>
3479
5ba47421 3480 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 3481 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
3482 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3483 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
3484 Also set all relocateable section start addresses.
3485
6c86c541
GK
34862000-04-13 Geoff Keating <geoffk@cygnus.com>
3487
3488 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3489 Add new BSS_PLT variable for when .plt need not be contained in
3490 the file. Move _etext so that it is also after .fini, and provide
3491 both etext and _etext with a leading underscore. Mark the start
3492 and end of .sbss.
3493
6a345e87
AM
34942000-04-12 Alan Modra <alan@linuxcare.com.au>
3495
3496 * emultempl/elf32.em (struct orphan_save): New.
3497 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3498 hold_interp): Make them struct orphan_save.
3499 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3500 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3501 the end of the relevant section list. Also add associated section
3502 statements to the end of any previous orphan statements.
3503 * emultempl/armelf.em: Similarly.
3504 * emultempl/pe.em: Similarly.
3505
8be86746
AM
35062000-04-11 Alan Modra <alan@linuxcare.com.au>
3507
3508 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3509
3b16e843 35102000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 3511
a2d91340 3512 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 3513 --enable-build-warnings option.
a2d91340
AC
3514 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3515 * Makefile.in, configure: Re-generate.
3516
41b49281
AM
35172000-04-04 Alan Modra <alan@linuxcare.com.au>
3518
8ad3436c
AM
3519 * po/ld.pot: Regenerate.
3520
3521 * lexsup.c (help): Restore translated part of bug string.
3522
41b49281
AM
3523 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3524 (DEP): Quote when passing vars to sub-make. Add warning message
3525 to end.
3526 (DEP1): Rewrite for "gcc -MM".
3527 (CLEANFILES): Add DEP2.
3528 Update dependencies.
3529 * Makefile.in: Regenerate.
3530
c20f4f8c
AM
35312000-04-03 Alan Modra <alan@linuxcare.com.au>
3532
3533 * ld.h: #include "bin-bugs.h"
3534 * lexsup.c (help): Use REPORT_BUGS_TO.
3535
adde6300
AM
35362000-03-27 Denis Chertykov <denisc@overta.ru>
3537
3538 * configure.tgt (avr-*-*): New target support.
3539 * Makefile.am: Likewise.
3540 * scripttempl/elf32avr.sc: New script file.
3541 * emulparams/avr1200.sh: New file.
3542 * emulparams/avr23xx.sh: New file.
3543 * emulparams/avr4433.sh New file.
3544 * emulparams/avr44x4.sh New file.
3545 * emulparams/avr85xx.sh New file.
3546 * emulparams/avrmega103.sh New file.
3547 * emulparams/avrmega161.sh New file.
3548 * emulparams/avrmega603.sh New file.
3549 * Makefile.in: Regenerate.
3550
9282ff41
L
35512000-03-09 Andreas Jaeger <aj@suse.de>
3552
3553 * Makefile.am (check-DEJAGNU): Also unset LANG.
3554 * Makefile.in: Rebuild.
3555
a9998805
ILT
35562000-03-06 Ian Lance Taylor <ian@zembu.com>
3557
3558 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3559 archive.
3560
f9bc20e7
NC
35612000-03-02 H.J. Lu <hjl@gnu.org>
3562
3563 * emulparams/elf32mcore.sh: Include "getopt.h".
3564
4e277b38
ILT
35652000-03-01 Ian Lance Taylor <ian@zembu.com>
3566
3567 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3568
f0c87f88
NC
35692000-03-01 H.J. Lu <hjl@gnu.org>
3570
3571 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3572 * emulparams/shpe.sh: Likewise.
3573
35742000-03-01 Nick Clifton <nickc@cygnus.com>
3575
3576 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3577 to unused parameters.
3578
3579 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3580 functions only used by DLL code.
3581 (_place_orphan): Initialise 'dollar'.
3582
b6f29aaa
L
35832000-03-01 H.J. Lu <hjl@gnu.org>
3584
3585 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3586 indicate if the undefined symbol is a fatal error or not.
3587 Don't delete the output file if "fatal" is false.
3588
af28fce3
L
35892000-02-29 H.J. Lu <hjl@gnu.org>
3590
50bbae35 3591 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
3592 Set LC_COLLATE and LC_ALL to null and export them. It is for
3593 sort which expects the C locale.
3594 Add $(LIBS) to all $(HOSTING_LIBS).
3595 * Makefile.in: Rebuild.
3596
40d109bf
AM
35972000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3598
3599 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3600 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3601 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3602 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3603 find_potential_libraries.
3604
db5be682
JB
36052000-02-28 Jim Blandy <jimb@redhat.com>
3606
3607 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3608 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3609 filename, so in something like `foo, bar' the comma is considered
3610 part of the first filename, `foo,'.
3611 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3612
3558ff4c
ILT
36132000-02-27 Loren J. Rittle <ljrittle@acm.org>
3614
3615 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3616 host "i[3456]86-*-freebsdelf*".
3617
4eee2681
ILT
36182000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3619
3620 * scripttempl/i386go32.sc: Move misplaced semicolons.
3621
8d75d12d
ILT
36222000-02-25 Ian Lance Taylor <ian@zembu.com>
3623
3624 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3625 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3626 (eelf64hppa.c, ehppaelf.c): Remove targets.
3627 * Makefile.in: Rebuild.
3628
a1836d49
AO
36292000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3630
ad51fb57
AO
3631 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3632 GNU/Linux/sparc, but keep the default as 32.
3633
a1836d49
AO
3634 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3635 it default if sparcv9 or sparc64.
3636
344a211f
NC
36372000-02-24 Nick Clifton <nickc@cygnus.com>
3638
3639 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3640 * Makefile.in: Regenerate.
3641 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3642
3643 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3644 find_potential_libraries.
3645 * ldemul.c (ldemul_find_potential_libraries): New function.
3646
3647 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 3648 exported.
344a211f
NC
3649 (ldfile_open_file): Call ldemul_find_potential_libraries.
3650 * ldfile.h: Add prototype for ldfile_open_file_search.
3651
3652 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3653
3654 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3655 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3656
3657 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3658 (gld_X_find_potential_libraries): New function. Search for
3659 libraries called "*.lib".
3660
a2b64bed 3661 * scripttempl/pe.sc: Add .pdata section.
344a211f 3662
eaba1dd3
RH
36632000-02-23 Richard Henderson <rth@cygnus.com>
3664
3665 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3666 Add and use memory regions.
3667
5b93d8bb
AM
36682000-02-23 Linas Vepstas (linas@linas.org)
3669
3670 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3671
3672 * Makefile.am: Add support for Linux/IBM 370.
3673 * configure.tgt: Likewise.
3674
3675 * Makefile.in: Regenerate.
3676
f6af82bd
AM
36772000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3678
3679 * ldlang.c (print_input_section, print_data_statement,
3680 print_reloc_statement, print_padding_statement, insert_pad,
3681 size_input_section, lang_check_section_addresses,
3682 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 3683 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
3684 (lang_do_assignments): Also change `size' to unsigned.
3685
9e673ad1
RH
36862000-02-16 Richard Henderson <rth@cygnus.com>
3687
3688 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3689
562d3460
TW
36902000-02-16 Timothy Wall <twall@cygnus.com>
3691
3692 * mri.c (mri_draw_tree): Add default LMA region argument to call
3693 to lang_leave_output_section_statement.
3694 * ldlang.h: Update prototypes with LMA region arguments.
3695 * ldlang.c (lang_size_sections): Encapsulate region bounds
3696 checking in os_check_region call.
3697 (os_check_region): New function.
3698 (lang_output_section_statement_lookup): Initialize lma_region.
3699 (lang_leave_output_section_statement): Add LMA region argument.
3700 (lang_leave_overlay): Ditto.
3701 * ldgram.y: Handle LMA region syntax.
3702 * ld.texinfo (Output Section Description): Describe LMA region usage.
3703 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 3704 lma region in call to lang_leave_output_section_statement.
562d3460 3705 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 3706 lma region in call to lang_leave_output_section_statement.
562d3460 3707 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 3708 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
3709
3710
9e4ed18c
TW
37112000-02-04 Timothy Wall <twall@redhat.com>
3712
3713 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3714 octets when calculating section end addresses.
3715
32edc927
TW
37162000-02-04 Timothy Wall <twall@redhat.com>
3717
3718 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3719
4cbfc3ac
TW
37202000-02-03 Timothy Wall <twall@redhat.com>
3721
a2b64bed 3722 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 3723 octet count.
a2b64bed 3724 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
3725 print_reloc_statement, print_padding_statement): Print target
3726 address values and section sizes as bytes, not octets.
3727 (insert_pad) Calculate padding size in octets, and adjust "dot"
3728 by bytes.
3729 (size_input_section) Always adjust "dot" by bytes, not octets.
3730 (lang_check_section_addresses, lang_do_assignments) Adjust
3731 "dot" by bytes, not octets. Use the larger of the directive size
3732 or octets_per_byte for the number of octets actually allocated in
3733 the output section.
3734 (lang_set_startof) Make sure STARTOF returns a target address.
3735 (lang_one_common) Record size changes in octets.
3736 (lang_abs_symbol_at_end_of) Section end symbol's value is
3737 recorded in target bytes.
3738 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3739 to be clear about behavior when an octet is smaller than one byte.
50bbae35 3740
305c7206
AM
37412000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3742
3743 * ldcref.c (output_cref): Don't pass message strings to printf
3744 as format arg.
3745 Update copyright.
3746
3747 * ldmisc.c (vfinfo): Same here.
3748 Update copyright.
3749
e1c47aa4
AM
37502000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3751
3752 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3753 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3754 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3755 Add missing NULL initialisers, and comments.
3756
3757 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3758
13392b77
NC
37592000-01-21 Nick Clifton <nickc@cygnus.com>
3760
3761 * ldlang.c (lang_size_sections): Fix typo in comment.
3762
cce4c4c5
NC
37632000-01-18 H.J. Lu <hjl@gnu.org>
3764
3765 * ldlang.c (lang_size_sections): Also update the current
3766 address of a region if the SEC_NEVER_LOAD bit is not set.
3767
0decc840
NC
37682000-01-10 Philip Blundell <pb@futuretv.com>
3769
3770 * configure.tgt (arm*-*-conix*): New target.
3771
4e53152f
NC
37722000-01-07 Nick Clifton <nickc@cygnus.com>
3773
3774 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
3775 line switches with -Wl, (or whatever is appropriate) if it is
3776 being invoked by a comnpiler driver program.
50bbae35 3777 Fix description of the behaviour of the -n command line switch.
4e53152f 3778
3b16e843 37792000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
3780
3781 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3782 (name_list): New.
3783 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3784 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3785 (exclude_name_list): New.
3786 ldlang.c (walk_wild_section): Support list of excluded files.
3787 (print_wild_statement): Likewise.
3788 (lang_add_wild): Likewise.
3789 * ldlang.h (lang_wild_statement_type): Likewise.
3790 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 3791
5aaace27
NC
37922000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3793
870df5dc
NC
3794 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3795 (process_def_file): Use.
3796 (pe_dll_compat_implib): New variable.
3797 (make_one): Use.
50bbae35 3798
870df5dc
NC
3799 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3800 pe_dll_compat_implib.
50bbae35
AM
3801
3802 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
3803 compat-implib options.
3804 (gld_${EMULATION_NAME}_list_options): List new options.
3805 (gld_${EMULATION_NAME}_parse_args): Handle.
3806
50bbae35 3807 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 3808 dll.
50bbae35
AM
3809
3810 * deffilep.y (opt_name): Allow "." in name.
5aaace27 3811
2f6d2f85 3812For older changes see ChangeLog-9899
252b5132
RH
3813\f
3814Local Variables:
3815mode: change-log
3816left-margin: 8
3817fill-column: 74
3818version-control: never
3819End:
This page took 0.805185 seconds and 4 git commands to generate.