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