* MAINTAINERS (write-after-approval): Add myself.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
89894c62
AM
12001-12-13 Alan Modra <amodra@bigpond.net.au>
2
3 * lexsup.c (parse_args): Don't pass shortopts to second call to
4 getopt functions. Restore optind rather than decrementing before
5 second call. Remove errind as it now duplicates last_optind.
6
583f1926
CF
72001-12-11 Christopher Faylor <cgf@redhat.com>
8
9 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
10
93fbbb04
GK
112001-12-07 Geoffrey Keating <geoffk@redhat.com>
12 Richard Henderson <rth@redhat.com>
13
14 * Makefile.am: Add support for xstormy16.
15 * configure.tgt: Add support for xstormy16.
16 * Makefile.in: Regenerate.
17 * emulparams/elf32xstormy16.sh: New file.
18 * scripttempl/xstormy16.sc: New file.
19
583f1926
CF
202001-10-01 Christopher Faylor <cgf@cygnus.com>
21
22 * Makefile.in (LIB_PATH): Make configurable.
23 (GENSCRIPTS): Set LIB_PATH in environment.
24 * configure.in: Substitute LIB_PATH.
25 * configure: Regenerate.
26 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
27 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
28
ff291a48
NC
292001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
30
31 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
32 describing the -N option so that it is easier to translate into
33 foreign languages.
34
e3c8793a
NC
352001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
36
37 * emultempl/pe.em (..._list_options): Replace multiple fprintf
38 statements describing a single option with a single, newline
39 escaped fprintf. This allows better translation into other
40 languages.
41
42 * ldmain.c (add_archive_element): Combine multiple strings
43 into a single string to permit better translation into other
44 languages.
45
f2eab0af
TR
462001-12-05 Tom Rix <trix@redhat.com>
47
48 * Makefile.am: Remove eaixppc64.
49 * Makefile.in: Regenerate.
50
249172c3
TR
512001-12-04 Tom Rix <trix@redhat.com>
52
53 * emultempl/aix.em (choose_target): Change default target to
54 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
55 warning.
56 (gld*_read_file): Fix typo.
57 (change_symbol_mode): Add prototype.
58 (is_syscall): Same.
59
60 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
61 * emulparams/aixrs6.sh : Same.
62 * emulparams/ppcmacos.sh : Same.
63 * emulparams/aixppc64.sh : Delete file.
64 * emultempl/aix.em : Formatting changes.
65
5b5cd1b0
HPN
662001-12-04 Hans-Peter Nilsson <hp@axis.com>
67
68 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
69 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
70 __Sbss.
71 (OTHER_END_SYMBOLS): Fix formatting.
72 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
73 (OTHER_END_SYMBOLS): Fix formatting.
74
7cecdbff
AM
752001-12-04 Alan Modra <amodra@bigpond.net.au>
76
77 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
78
742aeb63 792001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 80
742aeb63 81 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 82 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
83 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
84 (ldemul_default_target): Same.
85 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
86 * emultempl/gld960c.em (gld960_choose_target): Same.
87 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
88 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
89 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
90 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 91 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
92 -b32 and -b64.
93
48459341
L
942001-11-27 H.J. Lu <hjl@gnu.org>
95
96 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
97 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
98 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
99 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
100 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
101 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
102 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
103 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
104
7cecdbff 105 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
106 is not empty.
107 (SDATA): Likewise.
108 (REL_SDATA): Likewise.
109 (REL_SBSS): Likewise.
110 (REL_SDATA2): Likewise.
111 (REL_SBSS2): Likewise.
112 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
113 (SDATA2): Likewise.
114
ecfdd20c
SC
1152001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
116
117 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
118 destructor in rom.
7cecdbff 119 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 120
da54c6eb
L
1212001-11-22 H.J. Lu <hjl@gnu.org>
122
123 * Makefile.in: Regenerated with automake based on automake
124 1.4-8 in RedHat 7.1.
125
465bc359
AM
1262001-11-22 Alan Modra <amodra@bigpond.net.au>
127
128 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
129 (config.status): Delete rule.
130 Add extra dependencies to cover sourced emulparams files.
131 * Makefile.in: Regenerate.
132
133 * scripttempl/elf.sc: Order <section>, <section>.* and
134 corresponding linkonce sections as seen in input files.
135 Formatting fixes. Zero vma of all sections if not relocating.
136 (STACK): Define and insert if STACK_ADDR defined.
137 (OTHER_RELOCATING_SECTIONS): Delete.
138 (OTHER_END_SYMBOLS): Define.
139 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
140 (OTHER_READWRITE_SECTIONS): Likewise.
141 (OTHER_GOT_SECTIONS): Likewise.
142 (OTHER_SDATA_SECTIONS): Likewise.
143 (OTHER_BSS_SECTIONS): Likewise.
144 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
145 (OTHER_READWRITE_SECTIONS): Likewise.
146 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
147 (OTHER_READWRITE_SECTIONS): Likewise
148
149 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
150 (STACK_ADDR): Define.
151 * emulparams/armelf_oabi.sh: As for armelf.sh.
152 * emulparams/elf32mcore.sh: As for armelf.sh.
153 * emulparams/h8300elf.sh: As for armelf.sh.
154 * emulparams/mn10200.sh: As for armelf.sh.
155 * emulparams/shelf.sh: As for armelf.sh.
156
157 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
158 (OTHER_END_SYMBOLS): Define.
159 * emulparams/m32relf.sh: As for elf32fr30.sh.
160 * emulparams/h8300helf.sh: As for elf32fr30.sh.
161 * emulparams/h8300self.sh: As for elf32fr30.sh.
162
163 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
164 defines with RELOCATING test.
165 (OTHER_SDATA_SECTIONS): Likewise.
166 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
167 (OTHER_END_SYMBOLS): ..this.
168 * emulparams/crislinux.sh: As for criself.sh.
169
170 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
171 if not relocating.
172 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
173 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
174 normal and linkonce sections as seen in input files.
175 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
176 (TEXT_DYNAMIC): Likewise.
177 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
178 (OTHER_SDATA_SECTIONS): Likewise.
179 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
180 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
181 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
182 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
183 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
184 (OTHER_PLT_RELOC_SECTIONS): Likewise.
185 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
186 sections as seen in input files.
187 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
188 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
189 if not relocating.
190 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
191 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
192 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
193 (OTHER_SECTIONS): Instead, use this..
194 (OTHER_END_SYMBOLS): ..and this.
195
196 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
197 * emulparams/elf32bsmip.sh: Likewise.
198 * emulparams/elf32btsmip.sh: Likewise.
199 * emulparams/elf32ebmip.sh: Likewise.
200 * emulparams/elf32lmip.sh: Likewise.
201 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
202 * emulparams/elf32lsmip.sh: Likewise.
203 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
204 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
205 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
206 * emulparams/elf64btsmip.sh: Likewise.
207 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
208 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
209 * emulparams/elf32ppclinux.sh: Likewise.
210 * emulparams/elf32ppcsim.sh: Likewise.
211 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
212 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
213 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
214 * emulparams/h8300self.sh: Likewise.
215 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
216 * emulparams/sh.sh: Comment.
217 * emulparams/shl.sh: Source sh.sh, remove duplicates.
218 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
219 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
220
abc6ab0a
AM
2212001-11-21 David Heine <dlheine@tensilica.com>
222 Alan Modra <amodra@bigpond.net.au>
223
224 * ldlang.c (map_input_to_output_sections): Replace "break"
225 accidentally removed with 2001-08-03 change.
226 (lang_gc_sections_1): Likewise.
227
2181f54f
AM
2282001-11-21 Alan Modra <amodra@bigpond.net.au>
229
230 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
231
ca0b5847
AM
2322001-11-20 Angela Marie Thomas <angela@redhat.com>
233
234 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
235 of false when calling lang_size_sections.
236 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 237
c56feb2b
AM
2382001-11-15 Alan Modra <amodra@bigpond.net.au>
239
240 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
241 function when LDEMUL_FINISH isn't set to the same name. Don't
242 call ${LDEMUL_FINISH}.
243 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
244 * emultempl/armelf.em (arm_elf_finish): Call
245 gld${EMULATION_NAME}_finish.
246 * emultempl/hppaelf.em (hppaelf_finish): Rename to
247 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
248 hppaelf_layout_sections_again if necessary.
249 (need_laying_out): New var.
250 (hppaelf_layaout_sections_again): Rename to
251 hppaelf_layout_sections_again. Clear need_laying_out.
252 (PARSE_AND_LIST_OPTIONS): Format text.
253
a48ca7f2
L
2542001-11-14 H.J. Lu <hjl@gnu.org>
255
256 * emultempl/armelf.em (arm_elf_finish): Renamed from
257 gld${EMULATION_NAME}_finish.
258 (LDEMUL_FINISH): Set to arm_elf_finish.
259
73d074b4
DJ
2602001-11-14 Daniel Jacobowitz <drow@mvista.com>
261
262 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
263 (struct ld_emulation_xfer_struct): Use it.
264
fc65c602
JL
265Tue Nov 13 11:27:14 2001 Ross Alexander <ross.alexander@uk.neceur.com>
266
465bc359 267 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
268 additional symbols referenced by newer crt0.o files from HP.
269
f11b7027
NC
2702001-11-12 Anthony Green <green@redhat.com>
271
272 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
273
3bf2994f
AM
2742001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
275
276 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
277 * Makefile.in: Regenerate.
278
ff5dcc92
SC
2792001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
280
281 * ld.texinfo: Use @command for commands, @option for options.
282 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
283 the page man title.
284 * Makefile.in: Rebuild.
285
9fb9af6e
CD
2862001-11-04 Chris Demetriou <cgd@broadcom.com>
287
288 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
289 Add support for targets.
2181f54f 290
3c62831e
NC
2912001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
292
293 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
294 * configure: Regernate.
295 * po/fr.po: New file.
296 * po/sv.po: New file.
297
3a9091c4
NC
2982001-11-01 NIIBE Yutaka <gniibe@m17n.org>
299
300 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
301 as little endian default and to support big endian.
2181f54f 302
361b220e
CD
3032001-11-01 Chris Demetriou <cgd@broadcom.com>
304
305 * ld.texinfo (Options): Document new option, -nostdlib.
306 * lexsup.c (OPTION_NOSTDLIB): New definition.
307 (ld_options): Add entry for "nostdlib".
308 (parse_args): Handle OPTIONS_NOSTDLIB.
309 * ldfile.c (ldfile_add_library_path): Don't add directories
310 to the search path if they weren't specified on the command line
311 and -nostdlib was specified.
312 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
313
210a7bd1
NC
3142001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
315
316 * lexsup.c (parse_args): Prevent infinite parsing loop when
317 "-rpath.a" is specified on the command line.
318 Replace calls to fprintf with calls to einfo.
319
114283d8
NC
3202001-10-31 John Marshall <jmarshall@acm.org>
321
322 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
323 appear only once across all the linker scripts involved in a link
324 invocation no longer applies. Make the documentation reflect
325 that.
326
7649aa50
NC
3272001-10-31 NIIBE Yutaka <gniibe@m17n.org>
328
329 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
330 targets.
331 (sh-*-linux*): Added targ_extra_libpath.
332
6e814ff8
AM
3332001-10-31 David Heine <dlheine@tensilica.com>
334
335 * ldlang.c (lang_size_sections): Keep a valid output_offset field
336 for padding statements.
337
3c3bdf30
NC
3382001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
339
340 * configure.tgt (mmix-*-*): New target.
341 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
342 Add dependencies to match.
343 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
344 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
345 scripttempl/mmo.sc: New files.
346 * gen-doc.texi: @set MMIX.
347 * ld.texinfo: Ditto.
6e814ff8 348 [MMIX] Add MMIX node.
3c3bdf30
NC
349 * Makefile.in: Regenerate.
350
ca0c1d3e
KH
3512001-10-29 Kazu Hirata <kazu@hxi.com>
352
353 * ldlang.c: Fix a comment typo.
354
1a3d33ce
AM
3552001-10-23 Alan Modra <amodra@bigpond.net.au>
356
357 * configure.host: Move alpha*-*-linux-gnu* entry to generic
358 entries, and match *-*-linux*.
359
b47c4208
AM
3602001-10-20 Alan Modra <amodra@bigpond.net.au>
361
362 * ldgram.y (mri_script_command): Surround processing of INCLUDE
363 with ldlex_script, ldlex_popstate.
364 (ifile_p1): Likewise.
365 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
366 correct slot.
367 (lex_push_file): Save current lineno to lineno_stack. Set lineno
368 to 1. Don't BEGIN(SCRIPT).
369 (lex_redirect): Similarly.
370 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
371
fd521b47
NC
3722001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
373
374 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
375 __EH_FRAME_END__ and accept eh frames into data section.
376 Add ctor and dtor sections.
377
59d28a94
DD
3782001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
379
380 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
381 (auto-export): Fix indentation.
382
663dd378
DD
3832001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
384
385 * pe-dll.c (autofilter_objectlist): Add startup objects
386 for profiling.
387 (auto-export): Constify char * p.
6e814ff8 388 Extract file basename and use strcmp rather than ststr
663dd378
DD
389 for object lookup.
390
31d677f9
CD
3912001-10-18 Chris Demetriou <cgd@broadcom.com>
392
393 * ldmain.c (get_emulation): Improve comment about the handling
394 of -mipsN options.
395
aa200fe8
AM
3962001-10-17 Alan Modra <amodra@bigpond.net.au>
397
398 * po/POTFILES.in: Regenerate.
399
146e7110
AM
4002001-10-16 Vassili Karpov <malc@pulsesoft.com>
401
402 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
403 -z nocopyreloc and -z nocombreloc usage strings.
404
b4330e85
NC
4052001-10-12 Vassili Karpov <malc@pulsesoft.com>
406
146e7110 407 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
408 in usage.
409
5af8a2fb
NC
4102001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
411
412 * scripttempl/armaout.sc: Place .bss section after end of aligned
413 data section to match behaviour of aout code in constructrion of
414 header.
415
5b784096
DD
4162001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
417
418 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
419 startup files for mingw32 dlls to list.
420
61585df2
CD
4212001-10-10 Chris Demetriou <cgd@broadcom.com>
422
423 * emultempl/elf32.em: Fix shell 'if' usage for portability.
424
45cf6f3e
AH
4252001-10-08 Aldy Hernandez <aldyh@redhat.com>
426
427 * configure.tgt (targ): Add arm9e-*-elf.
428
e24d7c12
L
4292001-10-05 H.J. Lu <hjl@gnu.org>
430
431 * genscripts.sh: Fix a typo in the last change.
432
ec38dd05
JJ
4332001-10-05 Jakub Jelinek <jakub@redhat.com>
434
435 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
436 -z nocombreloc in usage.
437
cedd6b0d
JB
4382001-10-03 Jim Blandy <jimb@redhat.com>
439
440 * genscripts.sh: Include a comment at the top of each generated
441 script, explaining its purpose.
442
8bd621d8
AM
4432001-10-03 Vassili Karpov <malc@pulsesoft.com>
444
445 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
446 * NEWS: Mention -z nocopyreloc.
447 * ld.texinfo (Options): Describe nocopyreloc.
448
fcd8210c
AM
4492001-10-03 Alan Modra <amodra@bigpond.net.au>
450
451 * configure: Regenerate.
452
d32820f2
AM
4532001-10-02 Alan Modra <amodra@bigpond.net.au>
454
455 * ldver.h (ld_program_version): Remove declaration.
456 * lexsup.c (parse_args): Move printing of copyright message..
457 * ldver.c (ldversion): .. to here.
458 Use BFD_VERSION_STRING in place of BFD_VERSION.
459 (ld_program_version): Remove.
460 * Makefile.am (Makefile): Depend on bfd/configure.in.
461 Run "make dep-am".
462 * Makefile.in: Regenerate.
463
af46bcdc
HPN
4642001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
465
466 * Makefile.am: Update dependencies with "make dep-am".
467 * Makefile.in: Regenerate.
468
4818e05f 4692001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 470
4818e05f
AM
471 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
472 * lexsup.c: Add --no-define-common commandline option.
473 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
474 * ldlex.l: Likewise.
475 * ld.h: Add command_line.inhibit_common_definition.
476 * ldmain.c (main): Initialize.
477 * ld.texinfo: Document.
862517b6 478
d5e0ebeb
AM
4792001-09-26 Alan Modra <amodra@bigpond.net.au>
480
481 * ldmisc.c (USE_STDARG): Remove.
482 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
483 (einfo): Likewise.
484 (minfo): Likewise.
485 (lfinfo): Likewise.
486
487 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
488 declarations. Update copyright.
489
2f8d8971
NC
4902001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
491
85c77458
NC
492 * pe-dll.c: Remove obsoleted declaration of
493 pe_get_data_import_dll_name.
494 (pe_create_import_fixup): Fix thinko.
495
2f8d8971
NC
496 * ld.texinfo(enable-auto-import): Clarify the explanation.
497
4982001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
499
500 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
501 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
502 DLL_SUPPORT controlled code.
503
72358f65 5042001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 505
72358f65
NC
506 * emultempl/pe.em(pe_data_import_dll): Make static.
507 (pe_get_data_import_dll_name): New accessor function.
146e7110 508 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
509 pe_get_data_import_dll_name() from pe.em, instead of
510 directly accessing pe_data_import_dll variable from pe.em.
511
3882b010
L
5122001-09-18 Bruno Haible <haible@clisp.cons.org>
513
514 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
515 (def_file_add_directive): Use ISSPACE instead of isspace.
516 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
517 isdigit/isxdigit/isalpha/isalnum.
518 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
519 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
520 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
521 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
522 isalnum.
523 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
524 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
525 isupper/tolower.
526 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
527 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
528 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
529 (ctor_prio): Use ISDIGIT instead of isdigit.
530 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
531 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
532 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
533 isupper/tolower.
534 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
535 (stricpy): Use TOLOWER instead of isupper/tolower.
536 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
537 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
538 (lex_warn_invalid): Use ISPRINT instead of isprint.
539 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
540 (main): For gettext, also set the LC_CTYPE locate facet.
541 (add_keepsyms_file): Use ISSPACE instead of isspace.
542 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
543 (is_num, parse_args): Use ISDIGIT instead of isdigit.
544 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
545 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
546 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
547 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
548 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
549 (quoteput): Use ISSPACE instead of isspace.
550 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
551 instead of isalnum.
552
db09f25b
AM
5532001-09-18 Alan Modra <amodra@bigpond.net.au>
554
555 * deffilep.y (def_stash_module): Constify "name" param.
556
557 * pe-dll.c: Replace CONST with const throughout.
558 (quick_symbol): Constify "n1", "n2", "n3" params.
559 (make_singleton_name_thunk): Constify "import" param. Make
560 "buffer_len" a size_t.
561 (make_import_fixup_entry): Constify "name", "fixup_name",
562 "dll_symname" params.
563 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
564 (pe_get32): Likewise.
565 (pe_implied_import_dll): Likewise.
566
567 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
568 (sort_by_section_name): Likewise.
569
570 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
571 (make_import_fixup): Cast printf arg, rel->address to long rather
572 than int.
573 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
574
74699268
AM
5752001-09-15 Alan Modra <amodra@bigpond.net.au>
576
577 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
578 defines BufferSize. Increase buffer size by one.
579
775cabad
NC
5802001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
581
582 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
583
056a1d49
NC
5842001-09-14 Kevin Lo <kevlo@openbsd.org>
585
586 * configure.tgt: Add arm-openbsd target.
587
a7d792bb
L
5882001-09-12 H.J. Lu <hjl@gnu.org>
589
590 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
591 eelf64lppc.o to ...
592 (ALL_64_EMULATIONS): Here.
593 * Makefile.in: Regenerated.
594
0d888aac
CW
5952001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
596
597 * emultempl/pe.em(make_import_fixup): change signature to
598 take asection as well as arelec; we need this for proper
146e7110 599 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
600 there is no attempt to add a constant addend to the reloc;
601 otherwise, report error condition.
602 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
603 since final argument is a pointer to make_import_fixup().
604 Change call to cb() to match make_import_fixup() signature.
605 (make_import_fixup_mark): make buffer_len unsigned.
606 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
607
6082001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
609
610 * ld.texinfo: add verbose documentation for auto-import
146e7110 611 direct-addressing workaround, to compliment the terse
0d888aac
CW
612 error message.
613
cedacdc0
CM
6142001-09-12 Andrew MacLeod <amacleod@redhat.com>
615
146e7110 616 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 617
38be0bb1
JL
618Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
619
620 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
621 * emulparams/h8300self.sh: Similarly.
622
559e4713
NC
6232001-09-05 Danny Smith <dannysmith@users.souceforge.net>
624
625 * ld.texinfo (Options, --stack): Correct default value for stack
626 reserve.
627
1fdf0249
TR
6282001-09-05 Tom Rix <trix@redhat.com>
629
630 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 631
9b5799b8
AJ
6322001-09-03 Andreas Jaeger <aj@suse.de>
633
634 * emultempl/beos.em: Declare prototypes for comparions functions,
635 adjust definitions.
636
48f6162b
AJ
6372001-09-02 Andreas Jaeger <aj@suse.de>
638
639 * emultempl/aix.em: Add missing prototype.
640 * emultempl/lnk960.em: Likewise.
641 * emultempl/vanilla.em: Likewise.
642 * emultempl/armcoff.em: Likewise.
643 * emultempl/armelf_oabi.em: Likewise.
644 * emultempl/beos.em: Likewise.
645 * emultempl/gld960c.em: Likewise.
646 * emultempl/gld960.em: Likewise.
647
648 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
649 for prototype declaration.
650
39e5585e
EC
6512001-08-31 Eric Christopher <echristo@redhat.com>
652 Jason Eckhardt <jle@redhat.com>
653
654 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
655
3fc90ddb
AJ
6562001-08-31 Andreas Jaeger <aj@suse.de>
657
658 * emultempl/pe.em: Add missing prototypes.
659 (gld_${EMULATION_NAME}_after_open): Remove extra args to
660 pe_find_data_imports.
661 (pr_sym): Add unused attribute.
662
d43ded80
PB
6632001-08-29 Joel Sherrill <joel@OARcorp.com>
664
39e5585e 665 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
666 default from coff to elf.
667
3946dd2f
JL
6682001-08-29 Jeff Law <law@redhat.com>
669
670 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
671 ARCH specification.
672 * emulparams/h8300self.sh: Similarly.
673
674Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
675
676 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
677 eh8300self.o .
678 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
679 * configure.tgt (h8300-*-elf*): New case.
680 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
681 * emulparams/h8300self.sh: New file.
682 * Makefile.in: Regenerated.
683
70d0c6e9
NC
6842001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
685
686 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
687 with macro name.
688
5c67d4bb
AM
6892001-08-27 Linus Nordberg <linus@swox.com>
690 Alan Modra <amodra@bigpond.net.au>
691
692 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
693 (eelf64ppc.c, eelf64lppc.c): Add make targets.
694 Run "make dep-am"
695 * Makefile.in: Regenerate.
696 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
697 entries to correct alphabetical position.
698 * emulparams/elf64ppc.sh: New.
699 * emulparams/elf64lppc.sh: New.
700
08131015
NC
7012001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
702
703 * ldmain.c (main): Declare BSIZE as static.
704
db6751f2
JJ
7052001-08-23 Jakub Jelinek <jakub@redhat.com>
706
707 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
708 into .rel.dyn resp. .rela.dyn if combreloc.
709 (get_script): If .x linker script is equal to .xn, only put it
710 once into the binary.
711 Add .xc and .xsc scripts.
712 (parse_args): Handle -z combreloc and -z nocombreloc.
713 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
714 For .xc and .xsc scripts put all .rel* or .rela* input sections
715 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
716 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
717 is elf.
718 Strip trailing whitespace from script.
719 Generate .xc and .xsc scripts if requested.
720 * ldmain.c (main): Initialize link_info.combreloc and
721 link_info.spare_dynamic_tags.
722 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
723 (ld_options): Add --spare-dynamic-tags option.
724 (parse_args): Likewise.
725 * ld.texinfo: Document -z combreloc and -z nocombreloc.
726 * ldint.texinfo: Document .xc and .xsc linker scripts.
727 * NEWS: Add notes about -z combreloc and SHF_MERGE.
728
63d069c0
L
7292001-08-22 H.J. Lu <hjl@gnu.org>
730
731 * emulparams/elf32fr30.sh: Add a newline.
732
948f9114
AJ
7332001-08-21 Andreas Jaeger <aj@suse.de>
734
735 * deffilep.y: Add missing prototypes.
736 * pe-dll.c: Likewise.
737
ae7fb08f
AM
7382001-08-20 Alan Modra <amodra@bigpond.net.au>
739
2af02257
AM
740 * ldlang.c (insert_pad): Fix typos in last patch.
741
742 * ldlang.c: When traversing lang_statement_union_type lists,
743 consistently use "header.next" rather than "next".
744 * mpw-eppcmac.c: Likewise.
745 * emultempl/beos.em: Likewise.
746 * emultempl/hppaelf.em: Likewise.
747 * emultempl/pe.em: Likewise.
748 * ldlang.h (union lang_statement_union): Remove "next" field.
749
c0c330a7
AM
750 * ldlang.c (insert_pad): Use offsetof macro.
751 (lang_size_sections): Always neuter padding statements.
752 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
753
ae7fb08f
AM
754 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
755 passed to lang_size_sections.
756 (pe_exe_fill_sections): Likewise.
757 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
758 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
759
fab80407
AM
7602001-08-18 Alan Modra <amodra@bigpond.net.au>
761
762 * emultempl/aix.em: Formatting fixes.
763
b3327aad
AM
7642001-08-18 Alan Modra <amodra@bigpond.net.au>
765
766 * ldlang.c (insert_pad): Make use of an existing pad statement if
767 available. Move code calculating alignment, adjusting section
768 alignment power, and adjusting dot to ..
769 (size_input_section): .. here. Remove unused relax param.
770 (lang_size_sections): Change boolean `relax' param to boolean *.
771 Adjust call to size_input_section. Make use of insert_pad to
772 place pad after the assignment statement. If relaxing, zap
773 padding statements.
774 (reset_memory_regions): Reset output_bfd section sizes too.
775 (relax_again): Move to..
776 (lang_process): ..here. Adjust call to lang_size_sections, and
777 remove duplicated code.
778 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
779
563e308f
AM
7802001-08-17 Alan Modra <amodra@bigpond.net.au>
781
782 * ld.texinfo: Document that fill values now use the four least
783 significant bytes.
784 * emulparams/elf32fr30.sh (NOP): Update.
785 * emulparams/elf32mcore.sh: Likewise.
786 * emulparams/elf64_s390.sh: Likewise.
787 * emulparams/elf_i386.sh: Likewise.
788 * emulparams/elf_i386_be.sh: Likewise.
789 * emulparams/elf_i386_chaos.sh: Likewise.
790 * emulparams/elf_i386_ldso.sh: Likewise.
791 * emulparams/elf_s390.sh: Likewise.
792 * emulparams/elf_x86_64.sh: Likewise.
793 * emulparams/i386moss.sh: Likewise.
794 * emulparams/i386nw.sh: Likewise.
795 * emulparams/m68kelf.sh: Likewise.
796 * scripttempl/elf.sc: Update NOP comment.
797 * scripttempl/elfi370.sc: Likewise.
798 * scripttempl/elfm68hc11.sc: Likewise.
799 * scripttempl/elfm68hc12.sc: Likewise.
800 * scripttempl/nw.sc: Likewise.
801
b90e1c6f
TR
8022001-08-15 Tom Rix <trix@redhat.com>
803
804 * ldgram.y (saved_script_handle): Initialize to NULL.
805 * ldmain.c (main): Change check on saved_script_handle.
948f9114 806
39dcfe18
AM
8072001-08-14 Alan Modra <amodra@bigpond.net.au>
808
cde43e70
AM
809 * emultempl/elf32.em: Formatting fixes.
810 (output_prev_sec_find): Test for bfd_ind_section too; do so by
811 looking at sec->owner.
812 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
813 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
814 unused code, and reorganize orphan section placement code.
815
39dcfe18
AM
816 * ldlang.c (wild_doit): Rename to lang_add_section.
817 * ldlang.h: Here too.
818 * mpw-elfmips.c: And here.
819 * emultempl/beos.em: And here.
820 * emultempl/elf32.em: And here.
821 * emultempl/hppaelf.em: And here.
822 * emultempl/pe.em: And here.
823
908d20b3
RH
8242001-08-13 Richard Henderson <rth@redhat.com>
825
826 * emultempl/needrelax.em: New file.
827 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
828 * Makefile.am (eelf64_ia64.c): Depend on it.
829 * Makefile.in: Rebuild.
830
0f33d40b
AM
8312001-08-13 Alan Modra <amodra@bigpond.net.au>
832
22af9fd3
AM
833 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
834 output_section is set non-NULL.
835
0f33d40b
AM
836 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
837 `true' for SEC_EXCLUDE sections so that the generic code doesn't
838 needlessly create an output_section_statement. Treat a correctly
839 named output_section_statement with NULL bfd_section as compatible.
840
55ab6103
HPN
8412001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
842
843 * emultempl/generic.em: Support EXTRA_EM_FILE.
844 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
845 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
846 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
847 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
848 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
849 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
850 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
851 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
852 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
853 LDEMUL_FIND_POTENTIAL_LIBRARIES.
854
24098abb
RH
8552001-08-12 Richard Henderson <rth@redhat.com>
856
857 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
858 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
859 scripttempl/v850.sc: Keep .jcr data.
860
b9a8de1e 8612001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
862 Andrew Haley <aph@cambridge.redhat.com>
863 Nick Clifton <nickc@redhat.com>
b9a8de1e 864
146e7110 865 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
866 Change type to file handle.
867 * ld.h (had_script): Rename and retype.
868 * ldfile.c (ldfile_open_command_file): Save the file handle
869 used in saved_script_handle.
870 * lexsup.c (parse_args): Do not allow -c option to alter
871 saved_script_handle.
872 * ldmain.c (main): Print out the linker script used if
873 --verbose is given. Check saved_script_handle to obtain the
874 external linker script used, or if NULL, dump the builtin
875 script.
876 * ld.texinfo: Document that --verbose now dumps the linker
877 script used, regardless of whether it was an internal or an
878 external script.
879
0218d1e4
AJ
8802001-08-10 Andreas Jaeger <aj@suse.de>
881
882 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
883 to build warnings.
884 * configure: Regenerate.
885
5253f23b
AM
8862001-08-09 Alan Modra <amodra@bigpond.net.au>
887
73810896
AM
888 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
889
5253f23b
AM
890 * scripttempl/elf.sc: Move non-text .dynamic section before
891 .plt/.got/.sdata* group.
892 (OTHER_GOT_SECTIONS): Move to immediately after .got.
893 (OTHER_SDATA_SECTIONS): Add.
894 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
895 OTHER_GOT_SECTIONS.
896 * emulparams/crislinux.sh: Likewise.
897 * emulparams/elf32b4300.sh: Likewise.
898 * emulparams/elf32bmip.sh: Likewise.
899 * emulparams/elf32bmipn32.sh: Likewise.
900 * emulparams/elf32bsmip.sh: Likewise.
901 * emulparams/elf32btsmip.sh: Likewise.
902 * emulparams/elf32ebmip.sh: Likewise.
903 * emulparams/elf32elmip.sh: Likewise.
904 * emulparams/elf32l4300.sh: Likewise.
905 * emulparams/elf32lmip.sh: Likewise.
906 * emulparams/elf32lsmip.sh: Likewise.
907 * emulparams/elf32ltsmip.sh: Likewise.
908 * emulparams/elf64bmip.sh: Likewise.
909 * emulparams/elf64btsmip.sh: Likewise.
910 * emulparams/elf64ltsmip.sh: Likewise.
911
179c732c
AM
9122001-08-08 Alan Modra <amodra@bigpond.net.au>
913
914 * genscripts.sh: Source the emulparams script before each output
915 script is generated so that variables like `RELOCATING' may affect
916 variables defined in the emulparams script.
917
3fd36710
AM
9182001-08-04 Alan Modra <amodra@bigpond.net.au>
919
20713691
AM
920 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
921 order.
922
3fd36710
AM
923 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
924 ie. iterate over wild_statement.section_list.
925 (gld${EMULATION_NAME}_place_orphan): Likewise.
926
de0b1853
SC
9272001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
928
929 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
930 .fini[0-4] sections used by _exit
931 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
932 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
933 * scripttempl/elfm68hc11.sc: Likewise.
934
ff7e6f88
L
9352001-08-03 H.J. Lu <hjl@gnu.org>
936
937 * emultempl/beos.em (init): Add the missing initialization.
938
b6bf44ba
AM
9392001-08-03 Alan Modra <amodra@bigpond.net.au>
940
941 * ld.texinfo (Input Section Basics): Clarify ordering of output
942 sections.
943 * ldlang.c (callback_t): Add wildcard_list param.
944 (walk_wild_section): Remove "section" param. Rewrite for
945 lang_wild_statement_type change. Remove unique_section_p test.
946 (walk_wild_file): Remove "section" param.
947 (walk_wild): Remove "section" and "file" params.
948 (lang_gc_wild): Likewise.
949 (wild): Likewise. Modify for lang_wild_statement_type change.
950 (wild_sort): Likewise. Add "sec" param.
951 (gc_section_callback): Likewise.
952 (output_section_callback): Likewise. Do unique_section_p test.
953 (map_input_to_output_sections): Modify call to wild.
954 (lang_gc_sections_1): Likewise.
955 (print_wild_statement): Modify for lang_wild_statement_type
956 change.
957 (lang_add_wild): Replace filename, filenames_sorted param with
958 filespec. Replace section_name, sections_sorted,
959 exclude_filename_list with section_list.
960 * ldlang.h (lang_add_wild): Here too.
961 (lang_wild_statement_type): Replace section_name, sections_sorted,
962 and exclude_filename_list with section_list.
963 * ldgram.y (current_file): Delete.
964 (%union): Add wildcard_list.
965 (file_NAME_list): Set type to wildcard_list. Build a linked list
966 rather than calling lang_add_wild for each entry.
967 (input_section_spec_no_keep): Call lang_add_wild here instead.
968 * ld.h (struct wildcard_list): Declare.
969 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
970
b044cda1
CW
9712001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
972
973 * ldmain.c (main): initialize link_info.pei386_auto_import
974 * pe-dll.c: new tables for auto-export filtering
975 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 976 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
977 "by hand".
978
9792001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
980
b6bf44ba
AM
981 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
982 static variable current_sec (static struct sec *). Add
b044cda1 983 forward declaration for add_bfd_to_link.
b6bf44ba
AM
984 (process_def_file): Don't export undefined symbols. Do not
985 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
986 with new API.
987 (pe_walk_relocs_of_symbol): New function.
988 (generate_reloc): add optional extra debugging
b6bf44ba 989 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 990 line in output
b6bf44ba 991 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
992 (DATA auto-import support).
993 (make_singleton_name_thunk): New function.
994 (make_import_fixup_mark): New function.
995 (make_import_fixup_entry): New function.
996 (pe_create_import_fixup): New function.
b6bf44ba 997 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 998 char *.
b6bf44ba
AM
999 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1000 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1001 pe_create_import_fixup.
1002 * emultempl/pe.em: add new options --enable-auto-import,
1003 --disable-auto-import, and --enable-extra-pe-debug.
1004 (make_import_fixup): New function.
1005 (pe_find_data_imports): New function.
1006 (pr_sym): New function.
b6bf44ba 1007 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1008 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1009 CODE.
1010
10112001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 1012
b044cda1
CW
1013 * ld.texinfo: add additional documentation for
1014 --export-all-symbols. Document --out-implib,
1015 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
1016 --dll-search-prefix, --enable-auto-import, and
1017 --disable-auto-import.
b044cda1
CW
1018 * ldint.texinfo: Add detailed documentation on auto-import
1019 implementation.
1020
156e34dd
NC
10212001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1022
1023 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1024 example.
1025
d6231427
AM
10262001-07-24 Alan Modra <amodra@bigpond.net.au>
1027
1028 * Makefile.am: Update dependencies with "make dep-am".
1029 * Makefile.in: Regenerate
1030
e14ec88b
AM
10312001-07-23 Alan Modra <amodra@bigpond.net.au>
1032
1033 * ldcref.c (check_section_sym_xref): New function.
1034 (check_nocrossrefs): Call it.
1035 (check_nocrossref): Interate over h->refs here instead of..
1036 (check_refs): ..here. Pass in the symbol name, section, and bfd
1037 rather than hash_entry pointers.
1038 (struct check_refs_info): Keep symbol name rather than hash entry.
1039 Remove "same".
1040 (check_reloc_refs): Tweak for above changes in check_refs_info.
1041 Only report references to section syms when symname is NULL to
1042 prevent duplicate messages for the same reloc.
1043
1b577b00
NC
10442001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1045
c7d701b0
NC
1046 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1047 available. Do not print NULL trees.
1048 (exp_print_token): Print unknown tokens with values > 126 as
1049 decimal values not ASCII characters.
1050
1545243b
NC
1051 * ldlang.c (lang_leave_overlay): If a region is specified assign
1052 it to all sections inside the overlay unless they have been
1053 assigned to the own, non-default, memory region.
1054
1b577b00
NC
1055 * README: Add header for consistency with other README files.
1056
5030876b
L
10572001-07-14 H.J. Lu <hjl@gnu.org>
1058
1059 * emultempl/elf32.em (output_prev_sec_find): Never return
1060 bfd_abs_section_ptr, bfd_com_section_ptr nor
1061 bfd_und_section_ptr.
1062
18c7a9a5
NC
10632001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1064
22af9fd3 1065 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1066 elf32.em.
1067 * Makefile.in: Regenerate.
1068
9ffecff1
MG
10692001-07-14 matthew green <mrg@eterna.com.au>
1070
1071 * configure.tgt (i386-*-netbsdelf*): New target.
1072 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1073
95500e1c
JJ
10742001-07-13 Jakub Jelinek <jakub@redhat.com>
1075
1076 * emultempl/elf32.em (output_prev_sec_find): New.
1077 (place_orphan): Use it.
1078
e97cb84f
L
10792001-07-11 H.J. Lu <hjl@gnu.org>
1080
1081 * ldmain.c (main): Fix typos in the last change.
1082
7333607e
JJ
10832001-07-11 Jakub Jelinek <jakub@redhat.com>
1084
1085 * ldmain.c (main): Disallow -F and -f without -shared.
1086
d29d80f2
NC
10872001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1088
1089 * emultempl/pe.em (after_open): Check for the output_bfd not
1090 having any coff_data structure allocated to it.
1091
c2a1a436
DB
10922001-07-09 David O'Brien <obrien@FreeBSD.org>
1093
1094 * emultempl/elf32.em: Do not assuming that contents of the buffer
1095 returned from basename function will remain unchanged accross other
1096 function calls.
1097
63653551
L
10982001-07-03 H.J. Lu <hjl@gnu.org>
1099
1100 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1101 2001-07-03. It creates dynamic entries even for static binaries.
1102
d303a449
L
11032001-07-03 Jakub Jelinek <jakub@redhat.com>
1104
1105 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1106 (DYNAMIC): Use it to reserve few dynamic entries for
1107 post-linking tools.
1108
9f22353f
AM
11092001-06-27 Alan Modra <amodra@bigpond.net.au>
1110
1111 * emulparams/hppa64linux.sh: New file.
1112 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1113 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1114 (ehppa64linux.c): Add rule to make it.
1115 Run "make dep-am".
1116 * Makefile.in: Regenerate.
1117
62bf86b4
HPN
11182001-06-21 Hans-Peter Nilsson <hp@axis.com>
1119
1120 * ld.texinfo (Options, -r): Mention restrictions when using
1121 different object formats.
1122
429d935d
HPN
11232001-06-19 Hans-Peter Nilsson <hp@axis.com>
1124
1125 * ldlang.c (lang_check): Emit fatal error if relocatable link
1126 between different object flavours with relocations in input.
1127
cb840a31
L
11282001-06-19 H.J. Lu <hjl@gnu.org>
1129
1130 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1131 (--version-script): Mention the language support.
1132
9bf03acc
L
11332001-06-19 H.J. Lu <hjl@gnu.org>
1134
1135 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1136
c45021f2
NC
11372001-06-18 H.J. Lu <hjl@gnu.org>
1138
b6bf44ba
AM
1139 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1140 (diststuff): Add $(MANS).
1141 * Makefile.in: Regenerated.
c45021f2 1142
b6bf44ba 1143 * ld.1: Removed.
c45021f2 1144
6caa99ab
HPN
11452001-06-18 Hans-Peter Nilsson <hp@axis.com>
1146
605d9b3a
HPN
1147 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1148 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1149 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1150 * ld.h (args_type): Remove member export_dynamic. All users
1151 changed to use struct bfd_link_info member.
1152
6caa99ab
HPN
1153 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1154 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1155 * Makefile.in: Regenerate.
1156
6f9efd97
L
11572001-06-18 H.J. Lu <hjl@gnu.org>
1158
1159 * ldlang.c (init_os): Add the newline to the einfo call.
1160 (lang_check): Likewise.
1161 (lang_do_version_exports_section): Likewise.
1162
5af9fd8b
L
11632001-06-15 H.J. Lu <hjl@gnu.org>
1164
1165 * lexsup.c (parse_args); Save optind to report unrecognized
1166 option.
1167
2a096f04
HPN
11682001-06-15 Hans-Peter Nilsson <hp@axis.com>
1169
7e66c3f5
HPN
1170 * ldlang.c (lang_check): Emit fatal error if relocatable link
1171 between different object flavours.
1172
2a096f04
HPN
1173 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1174 Set new link_info member export_dynamic.
1175 * ldmain.c (main): Initialize new link_info member export_dynamic.
1176
6770ec8c
NC
11772001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1178
1179 * ldlang.c (walk_wild): Only call walk_wild_file if
1180 lookup_name returns something.
b6bf44ba 1181 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 1182 (load_symbols): Change to a boolean function.
b6bf44ba 1183 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
1184 executable.
1185
8529105a
AM
11862001-06-08 Alan Modra <amodra@bigpond.net.au>
1187
1188 * ldlang.c (record_bfd_errors): Remove.
1189
1190 * emultempl/aix.em: Fix copyright dates.
1191
8f3aa7a0
AJ
11922001-06-07 Andreas Jaeger <aj@suse.de>
1193
1194 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1195 (TEXT_START_ADDR): Likewise.
1196
3277f888
AM
11972001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1198
1199 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1200
3763134d
DD
12012001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1202
1203 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1204
5929ebc0
L
12052001-05-31 H.J. Lu <hjl@gnu.org>
1206
1207 * ldlang.c (open_input_bfds): Don't change the bfd error
1208 handler whilst loading symbols.
1209
c04a062d
NC
12102001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1211
1212 * configure.tgt: Remove i370-mvs architecture, it is not currently
1213 supported.
1214
96fcab3e
L
12152001-05-25 H.J. Lu <hjl@gnu.org>
1216
1217 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1218 like emulparams/aixppc.sh.
1219
db8d4f23
L
12202001-05-25 H.J. Lu <hjl@gnu.org>
1221
1222 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1223 setting of output_filename after bfd_scan_arch.
1224 * emultempl/pe.em: Likewise.
1225
5f642101
L
12262001-05-25 H.J. Lu <hjl@gnu.org>
1227
1228 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1229 like emulparams/aixppc.sh.
1230
1231 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1232 instead of ${srcdir}/emultempl/stringify.sed.
1233
64e9ece0
TW
12342001-05-25 Timothy Wall <twall@oculustech.com>
1235
1236 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 1237 output.
64e9ece0 1238
c709b096
AM
12392001-05-25 Alan Modra <amodra@one.net.au>
1240
1241 * configure.host: Replace linuxoldld with linux*oldld.
1242 * configure.tgt: Likewise.
1243
6cbdcc6f
L
12442001-05-24 H.J. Lu <hjl@gnu.org>
1245
1246 * emultempl/stringify.sed: Removed again.
1247
86af25fe
L
12482001-05-24 H.J. Lu <hjl@gnu.org>
1249
1250 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1251 (gld${EMULATION_NAME}_before_parse): Initialize
1252 ldfile_output_architecture, ldfile_output_machine and
1253 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1254 * emultempl/beos.em: Likewise.
1255 * emultempl/elf32.em: Likewise.
1256 * emultempl/linux.em: Likewise.
1257 * emultempl/mipsecoff.em: Likewise.
1258 * emultempl/pe.em: Likewise.
1259 * emultempl/sunos.em: Likewise.
1260
3b1b01cf
TR
12612001-05-24 Tom Rix <trix@redhat.com>
1262
8f3aa7a0 1263 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
1264 udate import file format.
1265 (change_symbol_mode) New, same
1266 (is_syscall) New, same
1267 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1268 * emulparams/aixppc64.sh : same
1269 * emulparams/aixrs6.sh : same
1270 * emulparams/ppcmacos.sh : same
1271 * emultempl/aix.em : use strtoull to parse options
1272 * Makefile.am : add eaixppc64 emulation for xcoff64
1273 * Makefile.in : same
1274 * configure.tgt : same
1275
1276 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 1277 default data section offset to 0x20000000
3b1b01cf 1278 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 1279 loader and debug sections use the currect section offset.
3b1b01cf
TR
1280
1281 * emultempl/aix.em : Add xcoff64 support
1282 Add -binitfini support
8f3aa7a0 1283 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 1284 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 1285 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
1286 sections
1287
1288 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 1289
57e6abd2
AO
12902001-05-23 Alexandre Oliva <aoliva@redhat.com>
1291
1292 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1293 variable to avoid non-portable shell construct.
1294
d1cf510e
NC
12952001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1296
1297 * ldmain.c (get_emulation): Add -mips5 command line argument.
1298
506eee22
NC
12992001-05-22 Alexandre Oliva <aoliva@redhat.com>
1300
1301 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1302 (ELF_INTERPRETER_NAME): Define it.
1303 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1304 it.
1305 * configure.tgt (targ_emul, targ_extra_emuls)
1306 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1307 as primary, elf_i386 as extra.
1308 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1309 (eelf_i386_ldso.c): New rule.
1310 * Makefile.in: Rebuilt.
1311
13122001-05-22 Nick Clifton <nickc@redhat.com>
1313
1314 * lexsup.c (ld_options): Allow -I to be an alias for
1315 --dynamic-linker. This is for Solaris compatability.
1316 * ld.texinfo: Document that -I can be used.
1317 * ld.1: Regenerate.
1318
d1778b88
AM
13192001-05-16 Alan Modra <amodra@one.net.au>
1320
1321 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1322 whether an input section is the first one assigned to an output
1323 section.
1324 Assorted formatting fixes.
1325
02649152
DD
13262001-05-14 DJ Delorie <dj@delorie.com>
1327
1328 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1329 * Makefile.in: Ditto.
1330
579f31ac
JJ
13312001-05-11 Jakub Jelinek <jakub@redhat.com>
1332
1333 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1334 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1335 output sections.
1336 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1337
8550eb6e
JJ
13382001-05-11 Jakub Jelinek <jakub@redhat.com>
1339
1340 * ldlang.c (lang_process): Call bfd_merge_sections.
1341
8e5a525c
AM
13422001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1343
1344 * ldgram.y: Fix typo.
1345
1c9acd94
L
13462001-05-03 H.J. Lu <hjl@gnu.org>
1347
1348 * emultempl/elf32.em: Include "libiberty.h".
1349 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1350 basename of the bfd filename.
1351 (gld${EMULATION_NAME}_stat_needed): Likewise.
1352 (gld${EMULATION_NAME}_try_needed): Likewise.
1353 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1354
14fe918e
L
13552001-05-02 H.J. Lu <hjl@gnu.org>
1356
1357 * emultempl/pe.em: Include <ctype.h>.
1358
c7e40348
NC
13592001-05-02 Johan Rydberg <jrydberg@opencores.org>
1360
b6bf44ba 1361 * emulparams/elf32openrisc.sh: New file.
c7e40348 1362
b6bf44ba
AM
1363 * Makefile.am: Add OpenRISC target.
1364 * Makefile.in: Regenerated.
c7e40348 1365
b6bf44ba 1366 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
1367
13682001-05-02 Nick Clifton <nickc@redhat.com>
1369
1370 * emultempl/aix.em: Replace buystring with xstrdup.
1371 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 1372
d1b2b2dc
L
13732001-05-02 H.J. Lu <hjl@gnu.org>
1374
1375 * ldfile.c: Include "libiberty.h".
1376 * ldlex.l: Likewise.
1377
1378 * ldmisc.c (buystring): Removed.
1379 * ldmisc.h: Likewise.
1380
1381 * ldfile.c: Replace buystring with xstrdup.
1382 * ldlang.c: Likewise.
1383 * ldlex.l: Likewise.
1384 * ldmain.c: Likewise.
1385 * ldmisc.c: Likewise.
1386 * lexsup.c: Likewise.
1387 * mpw-eppcmac.c: Likewise.
1388
35714f2a
AJ
13892001-04-30 Andreas Jaeger <aj@suse.de>
1390
1391 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1392
884fb58e
NC
13932001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1394
b6bf44ba
AM
1395 * ldlang.c (load_symbols): Give emulation a chance
1396 to process unrecognized file before fatal error is
1397 reported, not after.
884fb58e 1398
87748b32
NC
13992001-04-27 Sean McNeil <sean@mcneil.com>
1400
1401 * configure.tgt: Add arm-vxworks target.
1402 * scripttempl/armcoff.sc: Support .text or .data as a section name
1403 prefix.
1404 Define _etext.
35714f2a 1405
7ce691ae
C
14062001-04-13 J.T. Conklin <jtc@redback.com>
1407
1408 * ld.texinfo: Document --fatal-warnings.
1409 * ld.1: Regenerate.
1410
1411 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 1412 warnings have been turned into errors.
7ce691ae
C
1413 * lexsup.c (OPTION_WARN_FATAL): Define.
1414 (ld_options): Entry for --fatal-warnings.
1415 (parse_args): Handle OPTION_WARN_FATAL.
1416 * ld.h (ld_config_type): Add fatal_warnings field.
1417
f5fa8ca2
JJ
14182001-04-13 Jakub Jelinek <jakub@redhat.com>
1419
1420 * ldmain.c (main): Default to discard_sec_merge.
1421 * lexsup.c (OPTION_DISCARD_NONE): Define.
1422 (ld_options): Add --discard-none.
1423 (parse_args): Handle OPTION_DISCARD_NONE.
1424 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1425 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1426 all its input sections match.
1427
fdec3cfc
L
14282001-04-05 Steven J. Hill <sjhill@cotw.com>
1429
1430 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1431 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1432 (eelf32ltsmip.c): New target.
1433 (eelf64btsmip.c): Likewise.
1434 (eelf64ltsmip.c): Likewise.
1435 * Makefile.in: Regenerated.
1436
1437 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1438 target.
1439 (mips*-*-linux-gnu*): Likewise.
1440
1441 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1442 MIPS taget.
35714f2a 1443 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
1444 target.
1445 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1446 endian target.
1447
589bad82
HPN
14482001-04-05 Hans-Peter Nilsson <hp@axis.com>
1449
1450 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1451 correct value of __Stext here.
1452 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1453 .startup section.
1454
1455 * emulparams/crislinux.sh: Remove FIXME.
1456
94202e16
AM
14572001-04-02 Alan Modra <alan@linuxcare.com.au>
1458
1459 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1460 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1461
1268a053
HPN
14622001-03-27 Hans-Peter Nilsson <hp@axis.com>
1463
1464 * configure.tgt (cris-*-*): Change default emulation to criself.
1465 (cris-*-*aout*): New rule.
1466
d85e9ff7
AM
14672001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1468
1469 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1470 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1471
0879a67a
AJ
14722001-03-26 Andreas Jaeger <aj@suse.de>
1473
1474 * ld.texinfo (Overview): Fix syntax in texi code.
1475
0285c67d
NC
14762001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1477
1478 * ld.texinfo: Put @c man indications to generate the ld man page.
1479 When generating man, define all the variables. Define SEEALSO
1480 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1481 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1482 (ld.1): Generate from ld.texinfo.
1483 * Makefile.in: Regenerate.
1484
c20ec07b
NC
14852001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1486
1487 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 1488 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 1489
cc5ce052
UD
14902001-03-17 Ulrich Drepper <drepper@redhat.com>
1491
1492 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1493 is an absolute path look only for this file and not along the path.
1494
a1ab1d2a
UD
14952001-03-17 Ulrich Drepper <drepper@redhat.com>
1496
1497 * emultempl/elf32.em (OPTION_GROUP): New macro.
1498 Add new option Bgroup to longopts.
1499 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1500 (gld*_list_options): Add -Bgroup and -z defs.
1501 * ld.1: Document -Bgroup and -z defs.
1502 * ld.texinfo: Likewise.
1503
788fca5a
MM
15042001-03-07 Michael Meissner <meissner@redhat.com>
1505
1506 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1507 with sections created by -fdata-sections.
1508 (.dynbss,.bss): Ditto.
1509
1c7566d1
AM
15102001-03-05 Alan Modra <alan@linuxcare.com.au>
1511
1512 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1513 after_allocation_default, not gld..._before_allocation.
1514
27b7e12d
AM
15152001-02-27 Alan Modra <alan@linuxcare.com.au>
1516
1517 * configure.in (BFD_VERSION): New.
1518 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1519 * configure: Regenerate.
1520 * Makefile.am: Run "make dep-am"
1521 * Makefile.in: Regenerate.
1522
2bc551c7
TW
15232001-02-26 Timothy Wall <twall@cygnus.com>
1524
1525 * emulparams/elf64_aix.sh: Add additional read-only sections;
1526 uncomment lines which are now required.
1527
1276aefa
NC
15282001-02-26 H.J. Lu <hjl@gnu.org>
1529
1530 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
1531 that problems can be caught whilst loading symbols.
1532 (record_bfd_errors): New function: Report BFD errors and mark
1533 the executable output as being invalid.
1276aefa 1534
41c49998
TW
15352001-02-22 Timothy Wall <twall@cygnus.com>
1536
1537 * configure.host: Add configuration for ia64-*-aix*.
1538 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1539 Add dependencies for eelf64_aix.c.
1540 * Makefile.in: Regenerate.
1541 * configure.tgt: Add ia64-*-aix* mapping.
1542 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 1543 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
1544 AIX-specific test.
1545
78f85fd7
L
15462001-02-20 H.J. Lu <hjl@gnu.org>
1547
1548 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1549 false if we found the file.
1550
1ac7e077 15512001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
1552
1553 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1554 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1555
e135f41b
NC
15562001-02-18 lars brinkhoff <lars@nocrew.org>
1557
1558 * Makefile.am: Add PDP-11 target.
1559 * configure.tgt: Likewise.
1560 * emulparams/pdp11.sh: New file.
1561
a842aceb
DB
15622001-02-17 David O'Brien <obrien@FreeBSD.org>
1563
1564 * configure.host: Add a generic FreeBSD configuration entry such that
1565 all [modern] FreeBSD systems on all platforms will look the same.
1566
24174db0
L
15672001-02-14 H.J. Lu <hjl@gnu.org>
1568
1569 * configure.tgt: Remove mention of earmelf_linux26.
1570
30c3c13a
RH
15712001-02-13 Richard Henderson <rth@redhat.com>
1572
1573 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1574
b46a87b1
L
15752001-02-13 H.J. Lu <hjl@gnu.org>
1576
1577 * ldexp.h (node_type): Add etree_provided.
1578 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1579 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 1580 for etree_provided.
b46a87b1
L
1581 (exp_print_tree): Handle etree_provided.
1582 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1583 etree_provided.
1584
f3988fd9
RH
15852001-02-09 David Mosberger <davidm@hpl.hp.com>
1586
1587 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1588 .IA_64.unwind.* pattern to unwind table section and
1589 .IA_64.unwind_info* pattern to unwind info section.
1590
a85d7ed0
NC
15912001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1592
1593 * Makefile.am: Add linux target for S/390.
1594 * Makefile.in: Likewise.
1595 * configure.host: Likewise.
1596 * configure.tgt: Likewise.
1597 * emulparams/elf64_s390.sh: New file.
1598 * emulparams/elf_s390.sh: New file.
1599
780248c4
JJ
16002001-02-09 Jakub Jelinek <jakub@redhat.com>
1601
1602 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1603 targ_extra_libpath.
1604 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1605
0e2534bd
PB
16062001-02-06 Philip Blundell <philb@gnu.org>
1607
1608 * Makefile.am: Remove mention of earmelf_linux26.
1609 * Makefile.in: Regenerate.
1610
46c1ea57
PB
16112001-02-04 Philip Blundell <philb@gnu.org>
1612
1613 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1614 * emulparams/armelf_linux26.sh: Delete.
1615 * configure.tgt: Remove mention of armelf_linux26 emulation.
1616
0088edd2
NC
16172001-02-01 Nick Clifton <nickc@redhat.com>
1618
1619 * ld.1: Replace occurances of -oformat with --oformat.
1620
02aa14fb
AM
16212001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1622
1623 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1624 load_base is specified.
1625
f813923c
HPN
16262001-01-24 Hans-Peter Nilsson <hp@axis.com>
1627
1628 * emultempl/elf32.em: Correct spelling in comments and listed
1629 options.
1630
c1eb1488
AM
16312001-01-23 Alan Modra <alan@linuxcare.com.au>
1632
1633 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1634 default for the first section of a group of overlay sections.
1635
d9fc3714
AM
16362001-01-22 Alan Modra <alan@linuxcare.com.au>
1637
1638 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1639 * Makefile.in: Regenerate.
1640 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1641 Check for null tool_dir.
1642
6be0ca94
JW
16432001-01-16 Jim Wilson <wilson@redhat.com>
1644
1645 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1646 and IA_64.unwind.info.
1647
b9247304
L
16482001-01-16 H.J. Lu <hjl@gnu.org>
1649
1650 * ldlang.c (lang_check): Merge the private data only if the
1651 input file has contents.
1652
577a0623
AM
16532001-01-14 Alan Modra <alan@linuxcare.com.au>
1654
d952f17a
AM
1655 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1656
ffd6e9de
AM
1657 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1658 enabling search for libmilli. On a relocatable link, make .text
1659 sections unique.
1660 (LDEMUL_AFTER_PARSE): Define.
1661 (hppaelf_finish): Correct spelling of relocatable in comments.
1662
577a0623
AM
1663 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1664 rummage through the script for sections on the unique list.
1665 Correct length of strncmp for ".note".
1666 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1667
1668 * ldlang.c (unique_section_list): New var.
1669 (unique_section_p): New function.
1670 (walk_wild_section): Don't match sections on unique_section_list.
1671 (lang_add_unique): New function.
ffd6e9de 1672 Correct spelling of relocatable in comments.
577a0623
AM
1673
1674 * ldlang.h (struct unique_sections): Declare.
1675 (unique_section_list): Declare.
1676 (unique_section_p): Declare.
1677 (lang_add_unique): Declare.
1678
1679 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1680 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1681
1682 * ld.texinfo (--unique): Update.
1683
b7ed8fad
NC
16842001-01-13 Nick Clifton <nickc@redhat.com>
1685
1686 * lexsup.c (parse_args): Remove spurious white space.
1687
d0398d6a
NC
16882001-01-12 Nick Clifton <nickc@redhat.com>
1689
1690 * lexsup.c (parse_args): Update copyright date.
1691
350fdb00
PB
16922001-01-12 Philip Blundell <pb@futuretv.com>
1693
1694 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1695
60c6797e
KH
16962001-01-10 Kazu Hirata <kazu@hxi.com>
1697
1698 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1699 * scripttempl/h8300h.sc: Fix formatting.
1700 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
1701 * scripttempl/h8500.sc: Likewise.
1702 * scripttempl/h8500b.sc: Likewise.
1703 * scripttempl/h8500c.sc: Likewise.
1704 * scripttempl/h8500m.sc: Likewise.
1705 * scripttempl/h8500s.sc: Likewise.
60c6797e 1706
482e8b32
DB
17072000-01-07 David O'Brien <obrien@BSDi.com>
1708
1709 * emultempl/elf32.em: Only perform Linux ld hints processing when
1710 targeting Linux.
1711
d7ed7ca6
PB
17122001-01-07 Philip Blundell <philb@gnu.org>
1713
1714 * ld.texinfo (Bug Reporting): Update email address for reports.
1715
0fc3347a
NC
17162000-12-31 Nick Clifton <nickc@redhat.com>
1717
1718 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1719 options by checking for a return value of '?' not -1.
1720
e4897a32
NC
17212000-12-28 Nick Clifton <nickc@redhat.com>
1722
1723 * lexsup.c (struct ld_option): Add new enum value:
1724 EXACTLY_TWO_DASHES.
1725 (ld_options[]): Change -omagic, -output and -oformat options
1726 to be EXACTLY_TWO_DASHES.
1727 (OUTPUT_COUNT): Use ARRAY_SIZE.
1728 (parse_args): Change parameter 'argc' to unsigned.
1729 Place EXACTLY_TWO_DASHES options into new really_longopts
1730 array.
1731 If getopt_long_only fails, try calling getopt_long using the
1732 really_longopts array.
1733 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1734 TWO_DASHES options.
1735
1736 * ldlex.h: Fix prototype of parse_args.
1737
1738 * ld.texinfo: Document that long options starting with 'o'
1739 must be preceeded by two dashes. Change example of a single
1740 dashed long option from -oformat to -trace-symbol.
1741
1122a5fc
NC
17422000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1743
1744 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1745 (longopts[]): New --no-default-excludes option.
1746 (gld_${EMULATION_NAME}_list_options): Document.
1747 (gld_${EMULATION_NAME}_parse_args): Handle.
1748
037849a9
NC
17492000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1750
1751 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1752 whitespace, it breaks the K&R C preprocessor.
1753
7ec229ce
DD
17542000-12-11 DJ Delorie <dj@redhat.com>
1755
1756 * ld.texinfo: Add notes about --whole-archive and gcc.
1757
b79e8c78
NC
17582000-11-18 Fred Fish <fnf@be.com>
1759
1760 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1761 (ld_options): Entry for --allow-shlib-undefined.
1762 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1763 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1764 to false.
1765 * ld.texinfo: Document new command line switch.
d952f17a 1766
9a8e2505
GK
17672000-12-12 Geoffrey Keating <geoffk@redhat.com>
1768
1769 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1770 .fixup is actually read/write.
1771 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1772 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1773 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1774
b8355149
JH
1775Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1776
1777 * NEWS: Add note about x86_64 architecture.
1778
93b63cd3
DD
17792000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1780
1781 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1782 Set DWARF2 sections to a VMA of zero.
1783
24f6971a
NC
17842000-12-01 Joel Sherrill <joel@OARcorp.com>
1785
d952f17a 1786 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
1787 New targets.
1788 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1789 (sparc*-*-rtems*): Switched from a.out to ELF.
1790
2be3aa03
NC
17912000-11-30 Jan Hubicka <jh@suse.cz>
1792
1793 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1794 (eelf_x86_64.c): New.
1795 * Makefile.in: Regenerate.
1796 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1797 * emulparams/elf_x86_64.sh: New.
1798
8c899858
HPN
17992000-11-30 Hans-Peter Nilsson <hp@axis.com>
1800
1801 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1802 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1803
1804 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1805 merging non-a.out sections into CONSTRUCTING.
1806
e47b9e39
NC
18072000-11-28 Nick Clifton <nickc@redhat.com>
1808
1809 * ld.1 (COPYING): Mention that the GNU Free Documentation
1810 License is present in the sources, but not the output, and
1811 also available from the GNU website.
1812 (GNU Free Documentation License): Comment out this section.
1813
ad95f82a
DB
18142000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1815
1816 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1817 does not use them.
1818
fd89e65f
DB
18192000-11-25 David O'Brien <obrien@FreeBSD.org>
1820
1821 * ld.1: Remove old date so it does not give the impression the manpage
1822 is way out of date.
1823
077b8428
NC
18242000-11-24 Nick Clifton <nickc@redhat.com>
1825
1826 * configure.tgt (xscale-coff): Add target.
1827 (xscale-elf): Add target.
1828
49425d28
NC
18292000-11-24 Fred Fish <fnf@be.com>
1830
d952f17a
AM
1831 * ldmain.c (main): Remove redundant init of config.make_executable
1832 to true.
49425d28 1833
d3480244
RH
18342000-11-15 Richard Henderson <rth@redhat.com>
1835
1836 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1837
1ce7de8b
KH
18382000-11-14 Kazu Hirata <kazu@hxi.com>
1839
1840 * scripttempl/h8300.sc: Fix formatting.
1841 * scripttempl/h8300h.sc: Likewise.
1842 * scripttempl/h8300s.sc: Likewise.
1843
208d5cd0
DC
1844Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1845
1846 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1847
2e418547
PB
18482000-11-09 Philip Blundell <pb@futuretv.com>
1849
1850 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1851 around orphan sections whose names can be represented in C.
1852
c940e6fc
JW
18532000-11-07 Jim Wilson <wilson@redhat.com>
1854
1855 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1856 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1857
704c465c
NC
18582000-11-06 Nick Clifton <nickc@redhat.com>
1859
1860 * ld.texinfo: Add GNU Free Documentation License.
1861 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 1862 * ld.1: Add GNU Free Documentation License.
704c465c 1863
dca7760f
AM
18642000-11-05 Alan Modra <alan@linuxcare.com.au>
1865
1866 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1867 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1868
1869 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1870 Move 2000-11-02 Makefile.in changes to this file.
1871 * Makefile.in: Regenerate.
1872
40a633d5
NC
18732000-11-03 Nick Clifton <nickc@redhat.com>
1874
1875 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1876 constructors and destructors.
1877 * scripttempl/h8300h.sc: Ditto.
1878 * scripttempl/h8300s.sc: Ditto.
1879 * scripttempl/h8500.sc: Ditto.
1880 * scripttempl/h8500b.sc: Ditto.
1881 * scripttempl/h8500c.sc: Ditto.
1882 * scripttempl/h8500m.sc: Ditto.
1883 * scripttempl/h8500s.sc: Ditto.
1884 * scripttempl/v850.sc: Ditto.
1885 * scripttempl/w65.sc: Ditto.
1886 * scripttempl/z8000.sc: Ditto.
1887
59ff2774
NC
18882000-11-02 Per Lundberg <plundis@chaosdev.org>
1889
1890 * Makefile.in (e_i386_chaos.c): New rule.
1891 (ALL_EMULATIONS): Added e_i386_chaos.o.
1892 * emulparams/elf_i386_chaos.sh: New file.
1893 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1894
645571e1
JJ
18952000-10-20 Jakub Jelinek <jakub@redhat.com>
1896
1897 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1898 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1899 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1900 library path suffix.
1901 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1902
c5975a45
HPN
19032000-10-18 Hans-Peter Nilsson <hp@axis.com>
1904
1905 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1906 for consecutive sections.
1907
ea20a7da
CC
19082000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1909
d952f17a
AM
1910 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1911 options.
1912 * ld.texinfo: Added notes about this new option.
ea20a7da 1913
6e45556a
NC
19142000-10-16 Nick Clifton <nickc@redhat.com>
1915
1916 * emultempl/pe.em (_after_open): Add tests of return values from
1917 bfd functions. Emit appropriate error messages if necessary.
1918
b9a69188
NC
19192000-10-13 Nick Clifton <nickc@redhat.com>
1920
1921 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
1922 local variables - they are not used, but leave in the call to
1923 bfd_canonicalize_symtab.
b9a69188
NC
1924 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1925 pe_dll_search_prefix.
1926
627427de 19272000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 1928
627427de
DD
1929 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1930 (longopts): New --dll-search-prefix option.
1931 (gld_${EMULATION_NAME}_list_options): Document.
1932 (gld_${EMULATION_NAME}_parse_args): Handle.
1933 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1934 dynamically, search for a dll named '<prefix><basename>.dll'
1935 in preference to 'lib<basename>.dll' if --dll-search-prefix
1936 is specified.
1937
24376d1b
AM
19382000-10-12 Alan Modra <alan@linuxcare.com.au>
1939
1940 * ldlang.c (section_already_linked): Set kept_section instead of
1941 sec->comdat->sec.
1942
e47d05ad
KH
19432000-10-10 Kazu Hirata <kazu@hxi.com>
1944
1945 * deffile.h: Fix formatting.
1946 * lexsup.c: Likewise.
1947 * mri.c: Likewise.
1948
23a87948
DD
19492000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1950
1951 * pe-dll.c (make_one): Do not generate code thunk for DATA
1952 exports.
1953 (process_def_file): deduce DATA flag for auto-export sumbols.
1954
86b1cc60
KH
19552000-10-09 Kazu Hirata <kazu@hxi.com>
1956
89cdebba
KH
1957 * ld.h: Fix formatting.
1958 * ldcref.c: Likewise.
1959 * ldctor.h: Likewise.
1960 * ldemul.c: Likewise.
1961 * ldemul.h: Likewise.
1962 * ldexp.c: Likewise.
1963 * ldexp.h: Likewise.
1964 * ldfile.c: Likewise.
1965 * ldfile.h: Likewise.
1966 * ldlang.c: Likewise.
1967 * ldlang.h: Likewise.
1968 * ldmain.c: Likewise.
7bfd51a3
KH
1969 * pe-dll.c: Likewise.
1970
1971 * pe-dll.c: Revert some formatting fixes.
86b1cc60 1972
d643799d
KH
19732000-10-08 Kazu Hirata <kazu@hxi.com>
1974
1975 * pe-dll.c: Fix formatting.
1976
08da4cac
KH
19772000-10-05 Kazu Hirata <kazu@hxi.com>
1978
1979 * ldlang.c: Fix formatting.
1980
c2a94a7a
DD
19812000-10-03 DJ Delorie <dj@redhat.com>
1982
1983 * pe-dll.c (fill_edata): initialize entire block
1984 (make_one): fill in correct section.
1985
8c95a62e
KH
19862000-10-03 Kazu Hirata <kazu@hxi.com>
1987
1988 * ldexp.c: Fix formatting.
1989
486e80e2
DD
19902000-10-02 DJ Delorie <dj@redhat.com>
1991
1992 * emultempl/pe.em (gld_*_after_open): detect case where there two
1993 import libraries for same dll; rename one to ensure proper link
1994 order.
1995
1996 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1997 typo
1998 (generate_edata): fix typo
1999
24dd9f75
HPN
20002000-09-29 Hans-Peter Nilsson <hp@axis.com>
2001
2002 * scripttempl/crisaout.sc (ENTRY): Now __start.
2003 (.text): Add default setting for __start.
2004 Remove CONSTRUCTORS handling.
2005 (/DISCARD/): Add .gnu.warning.*.
2006 * emulparams/crislinux.sh (ENTRY): Now __start.
2007 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2008 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2009 (ENTRY): Now __start.
2010 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2011 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2012
4de2d33d
KH
20132000-09-29 Kazu Hirata <kazu@hxi.com>
2014
5cc18311
KH
2015 * deffile.h: Fix formatting.
2016 * ld.h: Likewise.
2017 * ldcref.c: Likewise.
4de2d33d 2018 * ldctor.c: Likewise.
5cc18311 2019 * ldctor.h: Likewise.
4de2d33d 2020 * ldemul.c: Likewise.
5cc18311 2021 * ldemul.h: Likewise.
4de2d33d 2022 * ldexp.c: Likewise.
5cc18311 2023 * ldexp.h: Likewise.
4de2d33d 2024 * ldfile.c: Likewise.
5cc18311 2025 * ldfile.h: Likewise.
4de2d33d 2026 * ldlang.c: Likewise.
5cc18311
KH
2027 * ldlang.h: Likewise.
2028 * lexsup.c: Likewise.
2029 * mri.c: Likewise.
2030 * pe-dll.c: Likewise.
4de2d33d 2031
45b1f63c
DD
20322000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2033
2034 * pe-dll.c (process_def_file): Uninitialized data wasn't
2035 exported with --export-all-symbols switch.
d952f17a 2036
45b1f63c
DD
20372000-09-28 DJ Delorie <dj@redhat.com>
2038
2039 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2040 noname work properly.
2041
47d89dba
AM
20422000-09-28 Alan Modra <alan@linuxcare.com.au>
2043
2044 * ld.texinfo (HPPA ELF32): New section.
2045
2046 * emultempl/hppaelf.em (group_size): New.
2047 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2048 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2049 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2050 options to prevent abbreviations matching.
2051 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2052 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2053
36bdbeec
NC
20542000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2055
2056 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2057 on the m68*-*-elf target. Make it support COFF input objects.
2058
6d5e62f8
KH
20592000-09-21 Kazu Hirata <kazu@hxi.com>
2060
2061 * ldmain.c: Fix formatting.
2062 * ldmisc.c: Likewise.
2063 * ldver.c: Likewise.
2064 * ldwrite.c: Likewise.
2065
e2eb67d9
AM
20662000-09-21 Alan Modra <alan@linuxcare.com.au>
2067
2068 * ldwrite.c (clone_section): Silence gcc warnings.
2069
b3ea3584
AM
20702000-09-20 Alan Modra <alan@linuxcare.com.au>
2071
2072 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2073 out of memory failure.
2074
2075 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2076 (clone_section): Handle out of memory failures. Rename var to
2077 avoid c++ reserved word.
2078
25f72752
AM
20792000-09-18 Alan Modra <alan@linuxcare.com.au>
2080
2081 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2082 stub_name param to stub_sec_name.
2083 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2084
0752970e
NC
20852000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2086
2087 * emultempl/m68kelf.em: New file.
2088 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2089 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2090 * Makefile.in: Regenerate.
2091
92b7e9d8
AM
20922000-09-15 Alan Modra <alan@linuxcare.com.au>
2093
2094 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2095 only as needed.
2096
9b14b192
NC
20972000-09-13 Nick Clifton <nickc@redhat.com>
2098
2099 * ldmain.c (multiple_definition): Disable relaxation if
2100 multiple symbol definitions are encountered - otherwise the
2101 linker could abort with an assertion failure.
2102
891fa266
NC
21032000-09-10 Nick Clifton <nickc@redhat.com>
2104
2105 * mri.c: Fix formatting.
2106
5d64ca4e
L
21072000-09-07 H.J. Lu <hjl@gnu.org>
2108
2109 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2110 * configure: Rebuild.
2111
dd94604f
L
21122000-09-07 H.J. Lu <hjl@gnu.org>
2113
2114 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2115 * Makefile.in: Rebuild.
2116
71bfc0ae
AM
21172000-09-07 Alan Modra <alan@linuxcare.com.au>
2118
2119 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2120 broken list handling. Create __start_SECNAME and __stop_SECNAME
2121 when no place-holder. Add some comments. Test both SEC_CODE and
2122 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 2123 Handle case where no output section statement created.
71bfc0ae 2124
4a428502
AO
21252000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2126
2127 * configure.tgt (sh-*-linux*): Added.
2128 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2129 * Makefile.in: Rebuilt.
2130 * emulparams/shelf_linux.sh: New file.
2131 * emulparams/shlelf_linux.sh: New file.
2132
f9989030
AM
21332000-09-06 Alan Modra <alan@linuxcare.com.au>
2134
2135 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2136 try shuffling sections when the orphan happens to be the place
2137 holder. Keep count of unique section names generated so we speed
2138 the search for a new name.
2139
58cccadb
AO
21402000-09-06 Alexandre Oliva <aoliva@redhat.com>
2141
2142 * configure: Rebuilt with new libtool.m4.
2143
5b343f5a
NC
21442000-09-05 Nick Clifton <nickc@redhat.com>
2145
2146 * Makefile.in: Regenerate.
2147 * aclocal.m4: Regenerate.
2148 * configure: Regenerate.
2149 * config.in: Regenerate.
2150 * po/ld.pot: Regenerate.
2151
2152 * ldint.texinfo: Remove CVS revision marker - it foils local
2153 comparisons.
2154
2155 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 2156
a854a4a7
AM
21572000-09-05 Alan Modra <alan@linuxcare.com.au>
2158
3231d22e
AM
2159 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2160 to stub section flags.
2161 (hppa_for_each_input_file_wrapper): New.
2162 (hppa_lang_for_each_input_file): New.
2163 (lang_for_each_input_file): Define to call above.
2164 (multi_subspace): New.
2165 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2166 (PARSE_AND_LIST_PROLOGUE): Define.
2167 (PARSE_AND_LIST_LONGOPTS): Define.
2168 (PARSE_AND_LIST_OPTIONS): Define.
2169 (PARSE_AND_LIST_ARGS_CASES): Define.
2170 (hppaelf_finish): Call elf32_hppa_set_gp.
2171 (hppaelf_set_output_arch): Remove.
2172 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2173
2174 * emulparams/hppalinux.sh (ELFSIZE): Define.
2175 (MACHINE): Define.
2176 (OTHER_READONLY_SECTIONS): Define.
2177 (DATA_PLT): Define.
2178 (GENERATE_SHLIB_SCRIPT): Define.
2179
5f992e62
AM
2180 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2181 to const throughout. Change `void *' to `PTR' throughout.
2182 (lang_memory_default): Function is local to file, add `static'.
2183
2184 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2185 (ehppalinux.c): Likewise.
2186 (earmelf.c): Likewise.
2187 (earmelf_linux.c): Likewise.
2188 (earmelf_linux26.c): Likewise.
2189 * Makefile.in: Regenerate.
2190
a854a4a7
AM
2191 * ld.h (ld_config_type): Add unique_orphan_sections.
2192 * lexsup.c (OPTION_UNIQUE): Define.
2193 (ld_options): Add "--unique".
2194 (parse_args): Handle it.
2195 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2196 search for an existing output section if unique_orphan_sections is
2197 set. Make use of bfd_get_unique_section_name rather than
2198 duplicating code here.
2199 * ld.texinfo: Describe --unique.
2200
2201 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2202 optional arg to split-by-file.
2203 (parse_args): Handle them.
2204 * ld.texinfo: Update description of these options.
2205 * ldwrite.c (clone_section): Pass in the section name. Replace
2206 local code with bfd_get_unique_section_name.
2207 (split_sections): Tidy code and comments. Use a list traversal
2208 more appropriate to the list construction. Handle cooked section
2209 sizes. Split when split_by_reloc reached rather than exceeded.
2210 Track section size and split when split_by_file reached. Fix
2211 link_order_tail (even though it's not used).
2212 (ldwrite): Modify condition for calling split_sections to suit
2213 changed split_by_reloc and split_by_file.
2214 * ldmain.c (main): Init config.split_by_reloc and
2215 config.split_by_file to -1.
2216 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2217 Change split_by_file to bfd_size_type.
2218
18e03609
NC
22192000-09-02 Nick Clifton <nickc@redhat.com>
2220
2221 * configure.in: Increase version number to 2.10.91.
2222 * NEWS: Mention new ability to support removal of duplicate DWARF2
2223 debug information.
2224 * configure: Regenerate.
2225 * aclocal.m4: Regenerate.
2226 * config.in: Regenerate.
2227
3a9d486c
NC
22282000-09-02 Daniel Berlin <dberlin@redhat.com>
2229
2230 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2231 sections.
a2b64bed 2232 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
2233 * scripttempl/elfd10v.sc: Ditto.
2234 * scripttempl/elfd30v.sc: Ditto.
2235 * scripttempl/elfi370.sc: Ditto.
2236 * scripttempl/elfm68hc11.sc: Ditto.
2237 * scripttempl/elfm68hc12.sc: Ditto.
2238 * scripttempl/elfi386beos.sc: Ditto.
2239 * scripttempl/v850.sc: Ditto.
50bbae35 2240
ac48eca1
AO
22412000-08-31 Alexandre Oliva <aoliva@redhat.com>
2242
2243 * acinclude.m4: Include libtool and gettext macros from the
2244 top level.
2245 * aclocal.m4, configure: Rebuilt.
2246
c13b1b77
NC
22472000-08-25 Nick Clifton <nickc@redhat.com>
2248
2249 * ldlang.c (open_output): When choosing the target for a
2250 particular endianness, do nothing if the target is not
2251 supported.
2252
dcb0bd0e
L
22532000-08-25 H.J. Lu <hjl@gnu.org>
2254
2255 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2256 check -rpath nor LD_RUN_PATH for cross link.
2257 * ld.texinfo: Document the change.
2258
5bcac8a4
HPN
22592000-08-24 Hans-Peter Nilsson <hp@axis.com>
2260
2261 * NEWS: Mention support for CRIS.
2262
6dd8c765
L
22632000-08-23 H.J. Lu <hjl@gnu.org>
2264
2265 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2266 the current runpath list from bfd_elf_get_runpath_list ()
2267 before search.
2268
ec4eb78a
L
22692000-08-22 H.J. Lu <hjl@gnu.org>
2270
2271 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2272 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2273 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2274 trace_file_tries is non-zero.
2275 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2276 if trace_file_tries is non-zero.
2277
2278 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 2279 * NEWS: Mention it.
ec4eb78a 2280
22b36938
JE
22812000-08-14 Jason Eckhardt <jle@cygnus.com>
2282
2283 * NEWS: Mention i860 support.
2284
d73e9da0
AS
22852000-08-14 Andreas Schwab <schwab@suse.de>
2286
2287 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 2288 syntax.
d73e9da0 2289
9ac4db9c
GK
22902000-08-10 Geoff Keating <geoffk@cygnus.com>
2291
2292 * scripttempl/elf.sc: Add a comment giving the correspondence
2293 between sections, per-datum sections, and linkonce sections. Make
2294 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2295 .sbss2.
2296
165589e4
JE
22972000-08-10 Jason Eckhardt <jle@cygnus.com>
2298
2299 * emulparams/elf32_i860.sh: New file.
2300 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2301 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2302 (eelf32_i860.c): New rule.
2303 * Makefile.in: Regenerate.
2304
345a835d
NC
23052000-08-10 Nick Clifton <nickc@cygnus.com>
2306
2307 * emulparams/mipspe.sh (ENTRY): Add definition.
2308
e374f1d9
NC
23092000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2310
2311 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2312 in error message.
2313
236d5abf
NC
23142000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2315
2316 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2317 the final size of .bss section.
2318 * scripttempl/elfm68hc12.sc: Likewise.
2319
4b209b22
AM
23202000-08-04 Alan Modra <alan@linuxcare.com.au>
2321
2322 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2323 gld${EMULATION_NAME}_parse_args for consistency. Combine
2324 lastoptind and prevoptind vars, and keep track of last optind.
2325 (gld_${EMULATION_NAME}_list_options): Rename to
2326 gld${EMULATION_NAME}_list_options.
2327
28423a68
AM
23282000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2329
2330 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2331 (i586-sco-sysv5uw7.1.0).
2332
b2009ff7
L
23332000-07-27 H.J. Lu <hjl@gnu.org>
2334
2335 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2336 (PARSE_AND_LIST_PROLOGUE): New.
2337 (PARSE_AND_LIST_LONGOPTS): Likewise.
2338 (PARSE_AND_LIST_OPTIONS): Likewise.
2339 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2340 (PARSE_AND_LIST_EPILOGUE): Likewise.
2341
04925e1e
AM
23422000-07-28 Alan Modra <alan@linuxcare.com.au>
2343
41392f03
AM
2344 * emultempl/armelf.em: Elide functions common to elf32.em,
2345 ie. most of the file.
2346 (arm_elf_after_open): New. Do arm specific things then call
2347 gld${EMULATION_NAME}_after_open.
2348 (arm_elf_before_allocation): New. Call
2349 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2350 (PARSE_AND_LIST_PROLOGUE): Define.
2351 (PARSE_AND_LIST_SHORTOPTS): Define.
2352 (PARSE_AND_LIST_LONGOPTS): Define.
2353 (PARSE_AND_LIST_OPTIONS): Define.
2354 (PARSE_AND_LIST_ARGS_CASES): Define.
2355 (LDEMUL_AFTER_OPEN): Define.
2356 (LDEMUL_BEFORE_ALLOCATION): Define.
2357 (LDEMUL_BEFORE_PARSE): Define.
2358 (LDEMUL_FINISH): Define.
2359
2360 * emultempl/hppaelf.em: Similarly zap most of this file.
2361 (hppaelf_add_stub_section): Prototype.
2362 (hppaelf_layaout_sections_again): Prototype.
2363 (hook_in_stub): Prototype.
2364 (LDEMUL_SET_OUTPUT_ARCH): Define.
2365 (LDEMUL_FINISH): Define.
2366 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2367
2368 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2369 (EXTRA_EM_FILE): New.
2370 * emulparams/armelf_linux.sh: Likewise.
2371 * emulparams/armelf_linux26.sh: Likewise.
2372 * emulparams/hppalinux.sh: Likewise.
2373 * emulparams/hppaelf.sh: Likewise.
2374 (NOP): Define.
2375
2376 * emultempl/elf32.em: Fix formatting.
2377 (EXTRA_EM_FILE): Source it.
2378 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2379 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2380 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2381 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2382 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2383 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2384 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2385 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2386 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2387 allow functions in this file to be overridden.
2388 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2389
2390 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2391
04925e1e
AM
2392 * emultempl/elf32.em: Reorganize file.
2393
88cdf297
NC
23942000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2395
2396 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2397 specific option to fit 64-bit executable in the lower
2398 31-bit address range. This is done by changing start
2399 address of .interp (the very first section of executable)
2400 and then setting EF_ALPHA_32BIT elf header flag.
2401
20bccb34
NC
24022000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2403
2404 * emultempl/m68kcoff.em: New file.
2405 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2406 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2407 generic.em.
2408 * Makefile.in: Regenerate.
2409
699845ef
L
24102000-07-20 H.J. Lu <hjl@gnu.org>
2411
2412 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2413 and "disable-new-dtags" to stop getopt from treating -d/-e as
2414 abbreviations for these options.
2415
6c1439be
L
24162000-07-20 H.J. Lu <hjl@gnu.org>
2417
2418 * ld.texinfo: Add documentation for --disable-new-dtags and
2419 --enable-new-dtags.
2420
2421 * ldmain.c (main): Initialize link_info.new_dtags to false.
2422
2423 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2424 --disable-new-dtags and --enable-new-dtags.
2425 (gld_${EMULATION_NAME}_list_options): Likewise.
2426
28c309a2
NC
24272000-07-05 Kenneth Block <krblock@computer.org>
2428
a2b64bed
NC
2429 * lexsup.c: Add optional style to demangle switch
2430 * ld.texinfo: Document optional style to demangle switch.
50bbae35 2431
9d06555c
HPN
24322000-07-20 Hans-Peter Nilsson <hp@axis.com>
2433
2434 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2435 ecrislinux.o.
2436 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2437 Regenerate dependencies.
2438 * Makefile.in: Rebuild.
2439 * configure.tgt (cris-*-*): New target.
2440 * emulparams/crisaout.sh, emulparams/criself.sh,
2441 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2442 * po/POTFILES.in, po/ld.pot: Regenerate.
2443
19e3be22
L
24442000-07-20 H.J. Lu <hjl@gnu.org>
2445
2446 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2447 Print out ignored -z options.
2448
e0ee487b
L
24492000-07-19 H.J. Lu <hjl@gnu.org>
2450
19e3be22
L
2451 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2452 (PARSE_AND_LIST_PROLOGUE): New.
2453 (PARSE_AND_LIST_LONGOPTS): Likewise.
2454 (PARSE_AND_LIST_OPTIONS): Likewise.
2455 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2456
2457 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2458
2459 * lexsup.c (ld_options): Comment out 'z'.
2460 (parse_args): Likewise.
2461
2462 * emultempl/elf32.em: Include "elf/common.h".
2463 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2464 options.
2465 (gld_${EMULATION_NAME}_list_options): Likewise.
2466
2467 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 2468
49e56c49
L
24692000-07-19 H.J. Lu <hjl@gnu.org>
2470
2471 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2472 bfd_elf_set_dt_needed_soname ().
2473
9d68bc82
DD
24742000-07-18 DJ Delorie <dj@cygnus.com>
2475
2476 * pe-dll.c (pe_dll_id_target): check object target name also
2477
53db15ed
HPN
24782000-07-18 Hans-Peter Nilsson <hp@axis.com>
2479
2480 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2481 ${INIT_END} if relocating.
2482 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2483
0ad8cf4c
DD
24842000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2485
a2b64bed 2486 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
2487 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2488 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2489 errors introduced by the old dynamic lib search order.
2490
874c8c99
DD
24912000-07-17 DJ Delorie <dj@cygnus.com>
2492
2493 * pe-dll.c (process_def_file): auto-export data items also
2494 (pe_process_import_defs): also see if _imp_ form needed
2495
5b4cf3f4
DD
24962000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2497
2498 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2499 for dll import libraries
2500
062739d1
NC
25012000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2502
2503 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 2504 gcc 2.95.2 and later.
062739d1 2505
1c64c4ed
NC
25062000-07-11 Kazu Hirata <kazu@hxi.com>
2507
50bbae35
AM
2508 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2509 message.
1c64c4ed 2510
b71e2778
AM
25112000-07-10 Alan Modra <alan@linuxcare.com.au>
2512
2513 * ldemul.h (struct lang_input_statement_struct): Remove forward
2514 declaration.
2515 (struct search_dirs): Likewise.
2516 * ldfile.h (struct lang_input_statement_struct): Likewise.
2517 Protect file from multiple inclusion.
2518 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2519 declaration from macro to file scope.
2520
2521 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2522 * ldgram.y: Likewise here.
2523 * ldlang.c: And here.
2524 * ldmain.c: And here.
2525 * mpw-elfmips.c: And here.
2526 * mpw-eppcmac.c: And here.
2527 * emultempl/aix.em: And here.
2528 * emultempl/armcoff.em: And here.
2529 * emultempl/armelf.em: And here.
2530 * emultempl/armelf_oabi.em: And here.
2531 * emultempl/beos.em: And here.
2532 * emultempl/elf32.em: And here.
2533 * emultempl/hppaelf.em: And here.
2534 * emultempl/linux.em: And here.
2535 * emultempl/lnk960.em: And here.
2536 * emultempl/pe.em: And here.
2537 * emultempl/sunos.em: And here.
2538 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2539 * mpw-idtmips.c: Ditto.
2540 * emultempl/generic.em: Ditto.
2541 * emultempl/gld960.em: Ditto.
2542 * emultempl/gld960c.em: Ditto.
2543 * emultempl/mipsecoff.em: Ditto.
2544 * emultempl/ticoff.em: Ditto.
2545 * emultempl/vanilla.em: Ditto.
2546
2547 * pe-dll.c: Include ldfile.h
2548 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2549
2550 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2551 arguments to bfd_elf32_size_dynamic_sections call.
2552 (gldelf32ebmip_place_orphan): Add missing arguments to
2553 lang_leave_output_section_statement call.
2554
2ef53d66
L
25552000-07-10 H.J. Lu <hjl@gnu.org>
2556
2557 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2558 DLL_SUPPORT.
2559 (strhash): Likewise.
2560 (compute_dll_image_base): Likewise.
2561 (pe_undef_found_sym): Likewise.
2562 (pe_undef_cdecl_match): Likewise.
2563 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2564 argument "arch" with ATTRIBUTE_UNUSED.
2565
9a8cbb09
AM
25662000-07-10 Alan Modra <alan@linuxcare.com.au>
2567
2568 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2569
2570 From Ryan Bradetich <rbradetich@uswest.net>
2571 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 2572
4900fc06
AM
25732000-07-09 Alan Modra <alan@linuxcare.com.au>
2574
2575 Changes to create multiple linker stubs, positioned immediately
2576 before the section where they are required.
2577 * emultempl/hppaelf.em: Include elf32-hppa.h.
2578 (stub_sec, file_chain): Delete.
2579 (hppaelf_create_output_section_statements): Don't make a stub
2580 section here.
2581 (hook_stub_info): New struct.
2582 (hook_in_stub): New function.
2583 (hppaelf_add_stub_section): New function.
2584 (hppaelf_finish): Do nothing for relocateable links. Modify the
2585 call to elf32_hppa_size_stubs. Move code for updating section
2586 layout from here...
2587 (hppaelf_layaout_sections_again): ..to here, a new function.
2588
2589 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2590 broken list handling. Pass in a pointer to the list.
2591 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2592 for above changes.
2593 (hppaelf_before_parse): Prototype.
2594 (hppaelf_set_output_arch): Prototype.
2595 (hppaelf_create_output_section_statements): Prototype.
2596 (hppaelf_delete_padding_statements): Prototype.
2597 (hppaelf_finish): Prototype.
2598
2599 Merge from elf32.em
2600 * emultempl/hppaelf.em: Include ctype.h.
2601 (struct orphan_save): New.
2602 (gld${EMULATION_NAME}_place_orphan): New.
2603 (output_rel_find): New.
2604 (hppaelf_get_script): Update from elf32.em.
2605 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2606 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 2607 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
2608
2609 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2610 ehppalinux.o, sort it. Regenerate dependencies.
2611 (ehppalinux.c): Depend on hppaelf.em
2612 * Makefile.in: Regenerate.
2613
2614 * configure.tgt: targ_emul=hppalinux for hppa*linux
2615
2616 * emulparams/hppalinux.sh: New.
2617 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2618
227aeb07
AM
26192000-07-08 Alan Modra <alan@linuxcare.com.au>
2620
2621 * lexsup.c (parse_args): Copy section name.
2622
28609fd4 26232000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 2624
2ef53d66 2625 * emultempl/pe.em: institute the following search order for
602e90d3
DD
2626 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2627 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2628 static lib (libfoo.a) if none of the above are found.
2629
5f577f7d
DD
26302000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2631
50bbae35 2632 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 2633 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 2634 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
2635 (gld_${EMULATION_NAME}_parse): Handle.
2636 (strhash): New static function.
50bbae35 2637 (compute_dll_image_base): New static function.
5f577f7d
DD
2638 (gld_${EMULATION_NAME}_set_symbols): Use.
2639
9a8cbb09 26402000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
2641
2642 * MAINTAINERS: new
2643
3548145d 26442000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
2645
2646 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2647 * emulparams/elf32btsmip.sh: New file.
2648 * Makefile.am: Add traditional mips target.
2649 * Makefile.in: Rebuild.
2650
67798033
L
26512000-07-01 H.J. Lu <hjl@gnu.org>
2652
2653 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2654 automake to use YLWRAP.
2655 * Makefile.in: Rebuild.
2656
0bdaf48b
AM
26572000-07-01 Alan Modra <alan@linuxcare.com.au>
2658
2659 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2660 (CLEANFILES): Add DEPA.
2661 * Makefile.in: Regenerate.
2662
c9e769c2
TW
26632000-06-30 Timothy Wall <twall@ppc>
2664
2665 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2666 the page in the upper octet of the address.
2667
65aa24b6
NC
26682000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2669
2670 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2671
4667035e
AM
26722000-06-24 Alan Modra <alan@linuxcare.com.au>
2673
2674 * NEWS: arm-elf does --gc-sections too.
2675
1581f8c9
AM
26762000-06-22 Alan Modra <alan@linuxcare.com.au>
2677
2678 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2679 find one.
2680 * Makefile.in: Regenerate.
2681
01580992
L
26822000-06-21 H.J. Lu <hjl@gnu.org>
2683
2684 * Makefile.am: Rebuild dependency.
2685 * Makefile.in: Rebuild.
2686
bbeb2e03
L
26872000-06-20 H.J. Lu <hjl@gnu.org>
2688
2689 * Makefile.am: Rebuild dependency.
2690 * Makefile.in: Rebuild.
2691
74459f0e
TW
26922000-06-20 Timothy Wall <twall@cygnus.com>
2693
2694 * scripttempl/tic54xcoff.sc: New.
2695 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2696 * gen-doc.texi: Add flag for TI COFF.
2697 * ld.texinfo: Add documentation for TI COFF handling switches.
2698 * emultempl/ticoff.em: New. TI COFF handling.
2699 * configure.tgt: Add tic54x target.
2700 * Makefile.am: Add tic54x target.
2701 * Makefile.in: Ditto.
2702
2ab47eed
AM
27032000-06-20 Alan Modra <alan@linuxcare.com.au>
2704
2705 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2706 checking for backslashes.
2707
919e4093
AM
27082000-06-19 Alan Modra <alan@linuxcare.com.au>
2709
2710 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2711
987fd5b4
AM
27122000-06-18 Alan Modra <alan@linuxcare.com.au>
2713
2714 * NEWS: Update list of targets supporting --gc-sections.
2715
2716 * scripttempl/elf.sc: KEEP .eh_frame contents.
2717 * scripttempl/elfd30v.sc: Same here.
2718
60bcf0fa
NC
27192000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2720
2721 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2722 and m68hc11 (elf).
2723 * Makefile.in: Rebuild.
2724 * configure.tgt: Recognize m68hc12 and m68hc11.
2725 * scripttempl/elfm68hc12.sc: New file.
2726 * emulparams/m68hc12elfb: New emulation.
2727 * emulparams/m68hc12elf: New emulation.
2728 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2729 (includes a memory.x script to define the ROM and RAM banks).
2730 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2731 New configuration files for support of Motorola 68hc11
2732
c7c54483
AM
27332000-06-15 Alan Modra <alan@linuxcare.com.au>
2734
2735 * ldmain.c (main): Only change SEC_READONLY for final link.
2736
bcef29e6
L
27372000-06-13 H.J. Lu <hjl@gnu.org>
2738
2739 * configure: Regenerate.
2740
946efd95
DB
27412000-06-08 David O'Brien <obrien@FreeBSD.org>
2742
2743 * configure.in (VERSION): Update to show this is the CVS mainline.
2744
57a6fd07
DB
27452000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2746
2747 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2748 input objects to be ECOFF.
2749 (check_sections): einfo takes %B, not %P, to print a BFD name.
2750
e06cae36
L
27512000-06-05 Michael Matz <matz@ifh.de>
2752
2753 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 2754 version scripts.
e06cae36 2755
d952f17a 2756 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 2757
2f0b56c0
DC
27582000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2759
2760 * emulparams/avr1200.sh (STACK): Define as 0.
2761 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2762 * emulparams/avr4433.sh (STACK): Likewise.
2763 * emulparams/avr44x4.sh (STACK): Likewise.
2764 * emulparams/avr85xx.sh (STACK): Likewise.
2765 * emulparams/avrmega103.sh (STACK): Likewise.
2766 * emulparams/avrmega161.sh (STACK): Likewise.
2767 * emulparams/avrmega603.sh (STACK): Likewise.
2768 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2769 (__stack): Define from ${STACK} for main().
2770
2114f57b
AM
27712000-05-26 Alan Modra <alan@linuxcare.com.au>
2772
2773 * Makefile.am: Update dependencies with "make dep-am"
2774 * Makefile.in: Regenerate.
2775
5af11cab
AM
27762000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2777
2778 * ldmain.c: Include filenames.h.
2779 (set_scripts_dir): Support backslashes in program name.
2780
1f0df59a
NC
27812000-05-22 Igor Shevlyakov <igor@windriver.com>
2782
2783 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
2784 read-only, don't forget to reset SEC_READONLY because it
2785 could be already set.
1f0df59a 2786
176355da
NC
27872000-05-22 Thomas de Lellis <tdel@windriver.com>
2788
50bbae35
AM
2789 * ld.1: Add documentation for new command line option:
2790 --section-start <sectionname>=<sectionorg>
2791 This is a generic version of -Ttext etc. which accepts
2792 any section name as a parameter instead of just text/data/
2793 bss.
2794 * ld.texinfo: More docs.
2795 * NEWS: More docs.
2796 * lexsup.c: (parse_args): Recognize new command line option.
176355da 2797 (ld_options): Add new option.
50bbae35 2798
8c5ff972
L
27992000-05-18 H.J. Lu <hjl@gnu.org>
2800
2801 * lexsup.c (parse_args): `i' == `r', not `q'.
2802
0b76fe77
JL
2803Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2804
2805 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2806
a712da20
NC
28072000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2808 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 2809
a712da20
NC
2810 Add support for '-q' == '--emit-relocs' switch.
2811 * ldmain.c (main): Default to false.
2812 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2813 * NEWS: Describe the emitrelocations switch.
2814 * ld.texinfo: Describe the emitrelocations switch.
2815
690a460e
NC
28162000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2817
a2b64bed 2818 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
2819 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2820 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2821 link options.
50bbae35 2822
c2f1343c
AM
28232000-05-15 David O'Brien <obrien@FreeBSD.org>
2824
2825 * lexsup.c (parse_args): Update the year in the copyright notice.
2826
897083bd
AM
28272000-05-13 Alan Modra <alan@linuxcare.com.au>
2828
2829 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2830 Replace defines with those from intl/libgettext.h to quieten gcc
2831 warnings.
2832
cd4c806a
L
28332000-05-10 H.J. Lu <hjl@gnu.org>
2834
2835 * ldlang.c (open_input_bfds): Don't load the same file within
2836 a group again if the whole archive has been loaded already.
2837
93697284
AM
28382000-05-03 Alan Modra <alan@linuxcare.com.au>
2839
2840 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2841 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2842 strtoul.
2843
ebd6fc29
JW
2844Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2845
99a4150f 2846 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 2847
ebd6fc29
JW
2848 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2849 host "ia64-*-linux-gnu*".
2850
a1934524
AM
28512000-04-29 Andreas Jaeger <aj@suse.de>
2852
2853 * ld.h: Correctly check GCC version.
2854
730a39a0
JL
2855Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2856
2857 * Makefile.am: Add PA64 support. Add missing dependencies for
2858 PA32 elf support.
2859 * Makefile.in: Rebuilt.
2860 * configure.tgt: Add PA64 support (currently disabled).
2861
aea4bd9d
AM
28622000-04-25 Alan Modra <alan@linuxcare.com.au>
2863
2864 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2865 (output_rel_find): New function.
2866 (hold_section, hold_use): Delete.
2867 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2868 hold_interp): Make local to place_orphan.
2869 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2870 rather than place_section to find possible previous use of orphan.
2871 Similarly find the place-holder output sections. Use returned
2872 value from lang_enter_output_section_statement rather than calling
2873 lang_output_section_statement_lookup.
2874 * emultempl/armelf.em: Same here.
2875 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2876
2877 * ldlang.c (lang_enter_output_section_statement): Return output
2878 section statement.
2879 * ldlang.h (lang_enter_output_section_statement): Change
2880 declaration too.
2881
2882 * ldlang.h (lang_output_section_statement): Export it.
2883 * ldlang.c (lang_output_section_statement): Ditto.
2884
2b5fc1f5
NC
28852000-04-24 Nick Clifton <nickc@cygnus.com>
2886
2887 * ld.texinfo (Output Section Data): Add note that section data
2888 commands cannot appear outside of section directives.
2889
d8475ff6
JL
28902000-04-2 Matthew Green <mrg@cygnus.com>
2891
2892 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2893
800eeca4
JW
2894Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2895 David Mosberger <davidm@hpl.hp.com>
2896
2897 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2898 (eelf64_ia64.c): New rule.
2899 * Makefile.in: Rebuild.
2900 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2901 * emulparams/elf64_ia64.sh: New file.
50bbae35 2902
c9637625
RH
29032000-04-21 Richard Henderson <rth@cygnus.com>
2904
2905 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2906
28ea9521
AM
29072000-04-19 Alan Modra <alan@linuxcare.com.au>
2908
2909 * dep-in.sed: Match space at start of file name, not at end.
2910
20d04697
L
29112000-04-18 H.J. Lu <hjl@gnu.org>
2912
2913 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2914 lang_leave_output_section_statement () after calling
2915 lang_enter_output_section_statement ().
2916 * emultempl/armelf.em: Likewise.
2917
5ba47421
AM
29182000-04-18 Alan Modra <alan@linuxcare.com.au>
2919
2920 * emultempl/elf32.em (struct orphan_save): Add section field.
2921 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2922 better order, and place first orphan section as we did before the
2923 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2924 Don't call make_bfd_section here, let wild_doit do the job for us.
2925 Don't build a statement list when we'll only throw it away.
2926 * emultempl/armelf.em: Ditto.
2927 * emultempl/pe.em: Similarly.
2928
bdbe5705
GK
29292000-04-14 Geoff Keating <geoffk@cygnus.com>
2930
2931 * scripttempl/elfppc.sc: Remove.
2932 * emulparams/elf32ppc.sh: Use elf.sc.
2933 * emulparams/elf32lppc.sh: Use elf.sc.
2934 * emulparams/elf32ppclinux.sh: Use elf.sc.
2935 * emulparams/elf32ppcsim.sh: New file.
2936 * emulparams/elf32lppcsim.sh: New file.
2937 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2938 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2939 * Makefile.in: Regenerate.
2940 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2941
01cc8ff8
AM
29422000-04-14 Alan Modra <alan@linuxcare.com.au>
2943
5ba47421 2944 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 2945 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
2946 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2947 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
2948 Also set all relocateable section start addresses.
2949
6c86c541
GK
29502000-04-13 Geoff Keating <geoffk@cygnus.com>
2951
2952 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2953 Add new BSS_PLT variable for when .plt need not be contained in
2954 the file. Move _etext so that it is also after .fini, and provide
2955 both etext and _etext with a leading underscore. Mark the start
2956 and end of .sbss.
2957
6a345e87
AM
29582000-04-12 Alan Modra <alan@linuxcare.com.au>
2959
2960 * emultempl/elf32.em (struct orphan_save): New.
2961 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2962 hold_interp): Make them struct orphan_save.
2963 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2964 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2965 the end of the relevant section list. Also add associated section
2966 statements to the end of any previous orphan statements.
2967 * emultempl/armelf.em: Similarly.
2968 * emultempl/pe.em: Similarly.
2969
8be86746
AM
29702000-04-11 Alan Modra <alan@linuxcare.com.au>
2971
2972 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2973
a2d91340 2974Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 2975
a2d91340 2976 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 2977 --enable-build-warnings option.
a2d91340
AC
2978 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2979 * Makefile.in, configure: Re-generate.
2980
41b49281
AM
29812000-04-04 Alan Modra <alan@linuxcare.com.au>
2982
8ad3436c
AM
2983 * po/ld.pot: Regenerate.
2984
2985 * lexsup.c (help): Restore translated part of bug string.
2986
41b49281
AM
2987 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2988 (DEP): Quote when passing vars to sub-make. Add warning message
2989 to end.
2990 (DEP1): Rewrite for "gcc -MM".
2991 (CLEANFILES): Add DEP2.
2992 Update dependencies.
2993 * Makefile.in: Regenerate.
2994
c20f4f8c
AM
29952000-04-03 Alan Modra <alan@linuxcare.com.au>
2996
2997 * ld.h: #include "bin-bugs.h"
2998 * lexsup.c (help): Use REPORT_BUGS_TO.
2999
adde6300
AM
30002000-03-27 Denis Chertykov <denisc@overta.ru>
3001
3002 * configure.tgt (avr-*-*): New target support.
3003 * Makefile.am: Likewise.
3004 * scripttempl/elf32avr.sc: New script file.
3005 * emulparams/avr1200.sh: New file.
3006 * emulparams/avr23xx.sh: New file.
3007 * emulparams/avr4433.sh New file.
3008 * emulparams/avr44x4.sh New file.
3009 * emulparams/avr85xx.sh New file.
3010 * emulparams/avrmega103.sh New file.
3011 * emulparams/avrmega161.sh New file.
3012 * emulparams/avrmega603.sh New file.
3013 * Makefile.in: Regenerate.
3014
9282ff41
L
30152000-03-09 Andreas Jaeger <aj@suse.de>
3016
3017 * Makefile.am (check-DEJAGNU): Also unset LANG.
3018 * Makefile.in: Rebuild.
3019
a9998805
ILT
30202000-03-06 Ian Lance Taylor <ian@zembu.com>
3021
3022 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3023 archive.
3024
f9bc20e7
NC
30252000-03-02 H.J. Lu <hjl@gnu.org>
3026
3027 * emulparams/elf32mcore.sh: Include "getopt.h".
3028
4e277b38
ILT
30292000-03-01 Ian Lance Taylor <ian@zembu.com>
3030
3031 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3032
f0c87f88
NC
30332000-03-01 H.J. Lu <hjl@gnu.org>
3034
3035 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3036 * emulparams/shpe.sh: Likewise.
3037
30382000-03-01 Nick Clifton <nickc@cygnus.com>
3039
3040 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3041 to unused parameters.
3042
3043 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3044 functions only used by DLL code.
3045 (_place_orphan): Initialise 'dollar'.
3046
b6f29aaa
L
30472000-03-01 H.J. Lu <hjl@gnu.org>
3048
3049 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3050 indicate if the undefined symbol is a fatal error or not.
3051 Don't delete the output file if "fatal" is false.
3052
af28fce3
L
30532000-02-29 H.J. Lu <hjl@gnu.org>
3054
50bbae35 3055 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
3056 Set LC_COLLATE and LC_ALL to null and export them. It is for
3057 sort which expects the C locale.
3058 Add $(LIBS) to all $(HOSTING_LIBS).
3059 * Makefile.in: Rebuild.
3060
40d109bf
AM
30612000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3062
3063 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3064 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3065 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3066 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3067 find_potential_libraries.
3068
db5be682
JB
30692000-02-28 Jim Blandy <jimb@redhat.com>
3070
3071 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3072 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3073 filename, so in something like `foo, bar' the comma is considered
3074 part of the first filename, `foo,'.
3075 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3076
3558ff4c
ILT
30772000-02-27 Loren J. Rittle <ljrittle@acm.org>
3078
3079 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3080 host "i[3456]86-*-freebsdelf*".
3081
4eee2681
ILT
30822000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3083
3084 * scripttempl/i386go32.sc: Move misplaced semicolons.
3085
8d75d12d
ILT
30862000-02-25 Ian Lance Taylor <ian@zembu.com>
3087
3088 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3089 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3090 (eelf64hppa.c, ehppaelf.c): Remove targets.
3091 * Makefile.in: Rebuild.
3092
a1836d49
AO
30932000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3094
ad51fb57
AO
3095 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3096 GNU/Linux/sparc, but keep the default as 32.
3097
a1836d49
AO
3098 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3099 it default if sparcv9 or sparc64.
3100
344a211f
NC
31012000-02-24 Nick Clifton <nickc@cygnus.com>
3102
3103 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3104 * Makefile.in: Regenerate.
3105 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3106
3107 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3108 find_potential_libraries.
3109 * ldemul.c (ldemul_find_potential_libraries): New function.
3110
3111 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 3112 exported.
344a211f
NC
3113 (ldfile_open_file): Call ldemul_find_potential_libraries.
3114 * ldfile.h: Add prototype for ldfile_open_file_search.
3115
3116 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3117
3118 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3119 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3120
3121 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3122 (gld_X_find_potential_libraries): New function. Search for
3123 libraries called "*.lib".
3124
a2b64bed 3125 * scripttempl/pe.sc: Add .pdata section.
344a211f 3126
eaba1dd3
RH
31272000-02-23 Richard Henderson <rth@cygnus.com>
3128
3129 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3130 Add and use memory regions.
3131
5b93d8bb
AM
31322000-02-23 Linas Vepstas (linas@linas.org)
3133
3134 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3135
3136 * Makefile.am: Add support for Linux/IBM 370.
3137 * configure.tgt: Likewise.
3138
3139 * Makefile.in: Regenerate.
3140
f6af82bd
AM
31412000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3142
3143 * ldlang.c (print_input_section, print_data_statement,
3144 print_reloc_statement, print_padding_statement, insert_pad,
3145 size_input_section, lang_check_section_addresses,
3146 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 3147 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
3148 (lang_do_assignments): Also change `size' to unsigned.
3149
9e673ad1
RH
31502000-02-16 Richard Henderson <rth@cygnus.com>
3151
3152 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3153
562d3460
TW
31542000-02-16 Timothy Wall <twall@cygnus.com>
3155
3156 * mri.c (mri_draw_tree): Add default LMA region argument to call
3157 to lang_leave_output_section_statement.
3158 * ldlang.h: Update prototypes with LMA region arguments.
3159 * ldlang.c (lang_size_sections): Encapsulate region bounds
3160 checking in os_check_region call.
3161 (os_check_region): New function.
3162 (lang_output_section_statement_lookup): Initialize lma_region.
3163 (lang_leave_output_section_statement): Add LMA region argument.
3164 (lang_leave_overlay): Ditto.
3165 * ldgram.y: Handle LMA region syntax.
3166 * ld.texinfo (Output Section Description): Describe LMA region usage.
3167 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 3168 lma region in call to lang_leave_output_section_statement.
562d3460 3169 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 3170 lma region in call to lang_leave_output_section_statement.
562d3460 3171 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 3172 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
3173
3174
9e4ed18c
TW
31752000-02-04 Timothy Wall <twall@redhat.com>
3176
3177 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3178 octets when calculating section end addresses.
3179
32edc927
TW
31802000-02-04 Timothy Wall <twall@redhat.com>
3181
3182 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3183
4cbfc3ac
TW
31842000-02-03 Timothy Wall <twall@redhat.com>
3185
a2b64bed 3186 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 3187 octet count.
a2b64bed 3188 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
3189 print_reloc_statement, print_padding_statement): Print target
3190 address values and section sizes as bytes, not octets.
3191 (insert_pad) Calculate padding size in octets, and adjust "dot"
3192 by bytes.
3193 (size_input_section) Always adjust "dot" by bytes, not octets.
3194 (lang_check_section_addresses, lang_do_assignments) Adjust
3195 "dot" by bytes, not octets. Use the larger of the directive size
3196 or octets_per_byte for the number of octets actually allocated in
3197 the output section.
3198 (lang_set_startof) Make sure STARTOF returns a target address.
3199 (lang_one_common) Record size changes in octets.
3200 (lang_abs_symbol_at_end_of) Section end symbol's value is
3201 recorded in target bytes.
3202 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3203 to be clear about behavior when an octet is smaller than one byte.
50bbae35 3204
305c7206
AM
32052000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3206
3207 * ldcref.c (output_cref): Don't pass message strings to printf
3208 as format arg.
3209 Update copyright.
3210
3211 * ldmisc.c (vfinfo): Same here.
3212 Update copyright.
3213
e1c47aa4
AM
32142000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3215
3216 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3217 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3218 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3219 Add missing NULL initialisers, and comments.
3220
3221 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3222
13392b77
NC
32232000-01-21 Nick Clifton <nickc@cygnus.com>
3224
3225 * ldlang.c (lang_size_sections): Fix typo in comment.
3226
cce4c4c5
NC
32272000-01-18 H.J. Lu <hjl@gnu.org>
3228
3229 * ldlang.c (lang_size_sections): Also update the current
3230 address of a region if the SEC_NEVER_LOAD bit is not set.
3231
0decc840
NC
32322000-01-10 Philip Blundell <pb@futuretv.com>
3233
3234 * configure.tgt (arm*-*-conix*): New target.
3235
4e53152f
NC
32362000-01-07 Nick Clifton <nickc@cygnus.com>
3237
3238 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
3239 line switches with -Wl, (or whatever is appropriate) if it is
3240 being invoked by a comnpiler driver program.
50bbae35 3241 Fix description of the behaviour of the -n command line switch.
4e53152f 3242
18625d54
CM
3243Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
3244
3245 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3246 (name_list): New.
3247 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3248 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3249 (exclude_name_list): New.
3250 ldlang.c (walk_wild_section): Support list of excluded files.
3251 (print_wild_statement): Likewise.
3252 (lang_add_wild): Likewise.
3253 * ldlang.h (lang_wild_statement_type): Likewise.
3254 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 3255
5aaace27
NC
32562000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3257
870df5dc
NC
3258 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3259 (process_def_file): Use.
3260 (pe_dll_compat_implib): New variable.
3261 (make_one): Use.
50bbae35 3262
870df5dc
NC
3263 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3264 pe_dll_compat_implib.
50bbae35
AM
3265
3266 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
3267 compat-implib options.
3268 (gld_${EMULATION_NAME}_list_options): List new options.
3269 (gld_${EMULATION_NAME}_parse_args): Handle.
3270
50bbae35 3271 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 3272 dll.
50bbae35
AM
3273
3274 * deffilep.y (opt_name): Allow "." in name.
5aaace27 3275
2f6d2f85 3276For older changes see ChangeLog-9899
252b5132
RH
3277\f
3278Local Variables:
3279mode: change-log
3280left-margin: 8
3281fill-column: 74
3282version-control: never
3283End:
This page took 0.274824 seconds and 4 git commands to generate.