2001-10-18 Chris Demetriou <cgd@broadcom.com>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
aa200fe8
AM
12001-10-17 Alan Modra <amodra@bigpond.net.au>
2
3 * po/POTFILES.in: Regenerate.
4
146e7110
AM
52001-10-16 Vassili Karpov <malc@pulsesoft.com>
6
7 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
8 -z nocopyreloc and -z nocombreloc usage strings.
9
b4330e85
NC
102001-10-12 Vassili Karpov <malc@pulsesoft.com>
11
146e7110 12 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
13 in usage.
14
5af8a2fb
NC
152001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
16
17 * scripttempl/armaout.sc: Place .bss section after end of aligned
18 data section to match behaviour of aout code in constructrion of
19 header.
20
5b784096
DD
212001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
22
23 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
24 startup files for mingw32 dlls to list.
25
61585df2
CD
262001-10-10 Chris Demetriou <cgd@broadcom.com>
27
28 * emultempl/elf32.em: Fix shell 'if' usage for portability.
29
45cf6f3e
AH
302001-10-08 Aldy Hernandez <aldyh@redhat.com>
31
32 * configure.tgt (targ): Add arm9e-*-elf.
33
e24d7c12
L
342001-10-05 H.J. Lu <hjl@gnu.org>
35
36 * genscripts.sh: Fix a typo in the last change.
37
ec38dd05
JJ
382001-10-05 Jakub Jelinek <jakub@redhat.com>
39
40 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
41 -z nocombreloc in usage.
42
cedd6b0d
JB
432001-10-03 Jim Blandy <jimb@redhat.com>
44
45 * genscripts.sh: Include a comment at the top of each generated
46 script, explaining its purpose.
47
8bd621d8
AM
482001-10-03 Vassili Karpov <malc@pulsesoft.com>
49
50 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
51 * NEWS: Mention -z nocopyreloc.
52 * ld.texinfo (Options): Describe nocopyreloc.
53
fcd8210c
AM
542001-10-03 Alan Modra <amodra@bigpond.net.au>
55
56 * configure: Regenerate.
57
d32820f2
AM
582001-10-02 Alan Modra <amodra@bigpond.net.au>
59
60 * ldver.h (ld_program_version): Remove declaration.
61 * lexsup.c (parse_args): Move printing of copyright message..
62 * ldver.c (ldversion): .. to here.
63 Use BFD_VERSION_STRING in place of BFD_VERSION.
64 (ld_program_version): Remove.
65 * Makefile.am (Makefile): Depend on bfd/configure.in.
66 Run "make dep-am".
67 * Makefile.in: Regenerate.
68
af46bcdc
HPN
692001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
70
71 * Makefile.am: Update dependencies with "make dep-am".
72 * Makefile.in: Regenerate.
73
4818e05f 742001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 75
4818e05f
AM
76 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
77 * lexsup.c: Add --no-define-common commandline option.
78 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
79 * ldlex.l: Likewise.
80 * ld.h: Add command_line.inhibit_common_definition.
81 * ldmain.c (main): Initialize.
82 * ld.texinfo: Document.
862517b6 83
d5e0ebeb
AM
842001-09-26 Alan Modra <amodra@bigpond.net.au>
85
86 * ldmisc.c (USE_STDARG): Remove.
87 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
88 (einfo): Likewise.
89 (minfo): Likewise.
90 (lfinfo): Likewise.
91
92 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
93 declarations. Update copyright.
94
2f8d8971
NC
952001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
96
85c77458
NC
97 * pe-dll.c: Remove obsoleted declaration of
98 pe_get_data_import_dll_name.
99 (pe_create_import_fixup): Fix thinko.
100
2f8d8971
NC
101 * ld.texinfo(enable-auto-import): Clarify the explanation.
102
1032001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
104
105 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
106 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
107 DLL_SUPPORT controlled code.
108
72358f65 1092001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 110
72358f65
NC
111 * emultempl/pe.em(pe_data_import_dll): Make static.
112 (pe_get_data_import_dll_name): New accessor function.
146e7110 113 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
114 pe_get_data_import_dll_name() from pe.em, instead of
115 directly accessing pe_data_import_dll variable from pe.em.
116
3882b010
L
1172001-09-18 Bruno Haible <haible@clisp.cons.org>
118
119 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
120 (def_file_add_directive): Use ISSPACE instead of isspace.
121 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
122 isdigit/isxdigit/isalpha/isalnum.
123 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
124 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
125 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
126 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
127 isalnum.
128 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
129 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
130 isupper/tolower.
131 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
132 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
133 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
134 (ctor_prio): Use ISDIGIT instead of isdigit.
135 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
136 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
137 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
138 isupper/tolower.
139 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
140 (stricpy): Use TOLOWER instead of isupper/tolower.
141 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
142 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
143 (lex_warn_invalid): Use ISPRINT instead of isprint.
144 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
145 (main): For gettext, also set the LC_CTYPE locate facet.
146 (add_keepsyms_file): Use ISSPACE instead of isspace.
147 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
148 (is_num, parse_args): Use ISDIGIT instead of isdigit.
149 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
150 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
151 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
152 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
153 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
154 (quoteput): Use ISSPACE instead of isspace.
155 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
156 instead of isalnum.
157
db09f25b
AM
1582001-09-18 Alan Modra <amodra@bigpond.net.au>
159
160 * deffilep.y (def_stash_module): Constify "name" param.
161
162 * pe-dll.c: Replace CONST with const throughout.
163 (quick_symbol): Constify "n1", "n2", "n3" params.
164 (make_singleton_name_thunk): Constify "import" param. Make
165 "buffer_len" a size_t.
166 (make_import_fixup_entry): Constify "name", "fixup_name",
167 "dll_symname" params.
168 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
169 (pe_get32): Likewise.
170 (pe_implied_import_dll): Likewise.
171
172 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
173 (sort_by_section_name): Likewise.
174
175 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
176 (make_import_fixup): Cast printf arg, rel->address to long rather
177 than int.
178 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
179
74699268
AM
1802001-09-15 Alan Modra <amodra@bigpond.net.au>
181
182 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
183 defines BufferSize. Increase buffer size by one.
184
775cabad
NC
1852001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
186
187 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
188
056a1d49
NC
1892001-09-14 Kevin Lo <kevlo@openbsd.org>
190
191 * configure.tgt: Add arm-openbsd target.
192
a7d792bb
L
1932001-09-12 H.J. Lu <hjl@gnu.org>
194
195 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
196 eelf64lppc.o to ...
197 (ALL_64_EMULATIONS): Here.
198 * Makefile.in: Regenerated.
199
0d888aac
CW
2002001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
201
202 * emultempl/pe.em(make_import_fixup): change signature to
203 take asection as well as arelec; we need this for proper
146e7110 204 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
205 there is no attempt to add a constant addend to the reloc;
206 otherwise, report error condition.
207 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
208 since final argument is a pointer to make_import_fixup().
209 Change call to cb() to match make_import_fixup() signature.
210 (make_import_fixup_mark): make buffer_len unsigned.
211 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
212
2132001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
214
215 * ld.texinfo: add verbose documentation for auto-import
146e7110 216 direct-addressing workaround, to compliment the terse
0d888aac
CW
217 error message.
218
cedacdc0
CM
2192001-09-12 Andrew MacLeod <amacleod@redhat.com>
220
146e7110 221 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 222
38be0bb1
JL
223Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
224
225 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
226 * emulparams/h8300self.sh: Similarly.
227
559e4713
NC
2282001-09-05 Danny Smith <dannysmith@users.souceforge.net>
229
230 * ld.texinfo (Options, --stack): Correct default value for stack
231 reserve.
232
1fdf0249
TR
2332001-09-05 Tom Rix <trix@redhat.com>
234
235 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 236
9b5799b8
AJ
2372001-09-03 Andreas Jaeger <aj@suse.de>
238
239 * emultempl/beos.em: Declare prototypes for comparions functions,
240 adjust definitions.
241
48f6162b
AJ
2422001-09-02 Andreas Jaeger <aj@suse.de>
243
244 * emultempl/aix.em: Add missing prototype.
245 * emultempl/lnk960.em: Likewise.
246 * emultempl/vanilla.em: Likewise.
247 * emultempl/armcoff.em: Likewise.
248 * emultempl/armelf_oabi.em: Likewise.
249 * emultempl/beos.em: Likewise.
250 * emultempl/gld960c.em: Likewise.
251 * emultempl/gld960.em: Likewise.
252
253 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
254 for prototype declaration.
255
39e5585e
EC
2562001-08-31 Eric Christopher <echristo@redhat.com>
257 Jason Eckhardt <jle@redhat.com>
258
259 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
260
3fc90ddb
AJ
2612001-08-31 Andreas Jaeger <aj@suse.de>
262
263 * emultempl/pe.em: Add missing prototypes.
264 (gld_${EMULATION_NAME}_after_open): Remove extra args to
265 pe_find_data_imports.
266 (pr_sym): Add unused attribute.
267
d43ded80
PB
2682001-08-29 Joel Sherrill <joel@OARcorp.com>
269
39e5585e 270 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
271 default from coff to elf.
272
3946dd2f
JL
2732001-08-29 Jeff Law <law@redhat.com>
274
275 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
276 ARCH specification.
277 * emulparams/h8300self.sh: Similarly.
278
279Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
280
281 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
282 eh8300self.o .
283 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
284 * configure.tgt (h8300-*-elf*): New case.
285 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
286 * emulparams/h8300self.sh: New file.
287 * Makefile.in: Regenerated.
288
70d0c6e9
NC
2892001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
290
291 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
292 with macro name.
293
5c67d4bb
AM
2942001-08-27 Linus Nordberg <linus@swox.com>
295 Alan Modra <amodra@bigpond.net.au>
296
297 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
298 (eelf64ppc.c, eelf64lppc.c): Add make targets.
299 Run "make dep-am"
300 * Makefile.in: Regenerate.
301 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
302 entries to correct alphabetical position.
303 * emulparams/elf64ppc.sh: New.
304 * emulparams/elf64lppc.sh: New.
305
08131015
NC
3062001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
307
308 * ldmain.c (main): Declare BSIZE as static.
309
db6751f2
JJ
3102001-08-23 Jakub Jelinek <jakub@redhat.com>
311
312 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
313 into .rel.dyn resp. .rela.dyn if combreloc.
314 (get_script): If .x linker script is equal to .xn, only put it
315 once into the binary.
316 Add .xc and .xsc scripts.
317 (parse_args): Handle -z combreloc and -z nocombreloc.
318 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
319 For .xc and .xsc scripts put all .rel* or .rela* input sections
320 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
321 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
322 is elf.
323 Strip trailing whitespace from script.
324 Generate .xc and .xsc scripts if requested.
325 * ldmain.c (main): Initialize link_info.combreloc and
326 link_info.spare_dynamic_tags.
327 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
328 (ld_options): Add --spare-dynamic-tags option.
329 (parse_args): Likewise.
330 * ld.texinfo: Document -z combreloc and -z nocombreloc.
331 * ldint.texinfo: Document .xc and .xsc linker scripts.
332 * NEWS: Add notes about -z combreloc and SHF_MERGE.
333
63d069c0
L
3342001-08-22 H.J. Lu <hjl@gnu.org>
335
336 * emulparams/elf32fr30.sh: Add a newline.
337
948f9114
AJ
3382001-08-21 Andreas Jaeger <aj@suse.de>
339
340 * deffilep.y: Add missing prototypes.
341 * pe-dll.c: Likewise.
342
ae7fb08f
AM
3432001-08-20 Alan Modra <amodra@bigpond.net.au>
344
2af02257
AM
345 * ldlang.c (insert_pad): Fix typos in last patch.
346
347 * ldlang.c: When traversing lang_statement_union_type lists,
348 consistently use "header.next" rather than "next".
349 * mpw-eppcmac.c: Likewise.
350 * emultempl/beos.em: Likewise.
351 * emultempl/hppaelf.em: Likewise.
352 * emultempl/pe.em: Likewise.
353 * ldlang.h (union lang_statement_union): Remove "next" field.
354
c0c330a7
AM
355 * ldlang.c (insert_pad): Use offsetof macro.
356 (lang_size_sections): Always neuter padding statements.
357 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
358
ae7fb08f
AM
359 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
360 passed to lang_size_sections.
361 (pe_exe_fill_sections): Likewise.
362 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
363 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
364
fab80407
AM
3652001-08-18 Alan Modra <amodra@bigpond.net.au>
366
367 * emultempl/aix.em: Formatting fixes.
368
b3327aad
AM
3692001-08-18 Alan Modra <amodra@bigpond.net.au>
370
371 * ldlang.c (insert_pad): Make use of an existing pad statement if
372 available. Move code calculating alignment, adjusting section
373 alignment power, and adjusting dot to ..
374 (size_input_section): .. here. Remove unused relax param.
375 (lang_size_sections): Change boolean `relax' param to boolean *.
376 Adjust call to size_input_section. Make use of insert_pad to
377 place pad after the assignment statement. If relaxing, zap
378 padding statements.
379 (reset_memory_regions): Reset output_bfd section sizes too.
380 (relax_again): Move to..
381 (lang_process): ..here. Adjust call to lang_size_sections, and
382 remove duplicated code.
383 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
384
563e308f
AM
3852001-08-17 Alan Modra <amodra@bigpond.net.au>
386
387 * ld.texinfo: Document that fill values now use the four least
388 significant bytes.
389 * emulparams/elf32fr30.sh (NOP): Update.
390 * emulparams/elf32mcore.sh: Likewise.
391 * emulparams/elf64_s390.sh: Likewise.
392 * emulparams/elf_i386.sh: Likewise.
393 * emulparams/elf_i386_be.sh: Likewise.
394 * emulparams/elf_i386_chaos.sh: Likewise.
395 * emulparams/elf_i386_ldso.sh: Likewise.
396 * emulparams/elf_s390.sh: Likewise.
397 * emulparams/elf_x86_64.sh: Likewise.
398 * emulparams/i386moss.sh: Likewise.
399 * emulparams/i386nw.sh: Likewise.
400 * emulparams/m68kelf.sh: Likewise.
401 * scripttempl/elf.sc: Update NOP comment.
402 * scripttempl/elfi370.sc: Likewise.
403 * scripttempl/elfm68hc11.sc: Likewise.
404 * scripttempl/elfm68hc12.sc: Likewise.
405 * scripttempl/nw.sc: Likewise.
406
b90e1c6f
TR
4072001-08-15 Tom Rix <trix@redhat.com>
408
409 * ldgram.y (saved_script_handle): Initialize to NULL.
410 * ldmain.c (main): Change check on saved_script_handle.
948f9114 411
39dcfe18
AM
4122001-08-14 Alan Modra <amodra@bigpond.net.au>
413
cde43e70
AM
414 * emultempl/elf32.em: Formatting fixes.
415 (output_prev_sec_find): Test for bfd_ind_section too; do so by
416 looking at sec->owner.
417 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
418 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
419 unused code, and reorganize orphan section placement code.
420
39dcfe18
AM
421 * ldlang.c (wild_doit): Rename to lang_add_section.
422 * ldlang.h: Here too.
423 * mpw-elfmips.c: And here.
424 * emultempl/beos.em: And here.
425 * emultempl/elf32.em: And here.
426 * emultempl/hppaelf.em: And here.
427 * emultempl/pe.em: And here.
428
908d20b3
RH
4292001-08-13 Richard Henderson <rth@redhat.com>
430
431 * emultempl/needrelax.em: New file.
432 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
433 * Makefile.am (eelf64_ia64.c): Depend on it.
434 * Makefile.in: Rebuild.
435
0f33d40b
AM
4362001-08-13 Alan Modra <amodra@bigpond.net.au>
437
22af9fd3
AM
438 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
439 output_section is set non-NULL.
440
0f33d40b
AM
441 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
442 `true' for SEC_EXCLUDE sections so that the generic code doesn't
443 needlessly create an output_section_statement. Treat a correctly
444 named output_section_statement with NULL bfd_section as compatible.
445
55ab6103
HPN
4462001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
447
448 * emultempl/generic.em: Support EXTRA_EM_FILE.
449 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
450 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
451 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
452 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
453 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
454 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
455 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
456 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
457 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
458 LDEMUL_FIND_POTENTIAL_LIBRARIES.
459
24098abb
RH
4602001-08-12 Richard Henderson <rth@redhat.com>
461
462 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
463 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
464 scripttempl/v850.sc: Keep .jcr data.
465
b9a8de1e 4662001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
467 Andrew Haley <aph@cambridge.redhat.com>
468 Nick Clifton <nickc@redhat.com>
b9a8de1e 469
146e7110 470 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
471 Change type to file handle.
472 * ld.h (had_script): Rename and retype.
473 * ldfile.c (ldfile_open_command_file): Save the file handle
474 used in saved_script_handle.
475 * lexsup.c (parse_args): Do not allow -c option to alter
476 saved_script_handle.
477 * ldmain.c (main): Print out the linker script used if
478 --verbose is given. Check saved_script_handle to obtain the
479 external linker script used, or if NULL, dump the builtin
480 script.
481 * ld.texinfo: Document that --verbose now dumps the linker
482 script used, regardless of whether it was an internal or an
483 external script.
484
0218d1e4
AJ
4852001-08-10 Andreas Jaeger <aj@suse.de>
486
487 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
488 to build warnings.
489 * configure: Regenerate.
490
5253f23b
AM
4912001-08-09 Alan Modra <amodra@bigpond.net.au>
492
73810896
AM
493 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
494
5253f23b
AM
495 * scripttempl/elf.sc: Move non-text .dynamic section before
496 .plt/.got/.sdata* group.
497 (OTHER_GOT_SECTIONS): Move to immediately after .got.
498 (OTHER_SDATA_SECTIONS): Add.
499 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
500 OTHER_GOT_SECTIONS.
501 * emulparams/crislinux.sh: Likewise.
502 * emulparams/elf32b4300.sh: Likewise.
503 * emulparams/elf32bmip.sh: Likewise.
504 * emulparams/elf32bmipn32.sh: Likewise.
505 * emulparams/elf32bsmip.sh: Likewise.
506 * emulparams/elf32btsmip.sh: Likewise.
507 * emulparams/elf32ebmip.sh: Likewise.
508 * emulparams/elf32elmip.sh: Likewise.
509 * emulparams/elf32l4300.sh: Likewise.
510 * emulparams/elf32lmip.sh: Likewise.
511 * emulparams/elf32lsmip.sh: Likewise.
512 * emulparams/elf32ltsmip.sh: Likewise.
513 * emulparams/elf64bmip.sh: Likewise.
514 * emulparams/elf64btsmip.sh: Likewise.
515 * emulparams/elf64ltsmip.sh: Likewise.
516
179c732c
AM
5172001-08-08 Alan Modra <amodra@bigpond.net.au>
518
519 * genscripts.sh: Source the emulparams script before each output
520 script is generated so that variables like `RELOCATING' may affect
521 variables defined in the emulparams script.
522
3fd36710
AM
5232001-08-04 Alan Modra <amodra@bigpond.net.au>
524
20713691
AM
525 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
526 order.
527
3fd36710
AM
528 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
529 ie. iterate over wild_statement.section_list.
530 (gld${EMULATION_NAME}_place_orphan): Likewise.
531
de0b1853
SC
5322001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
533
534 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
535 .fini[0-4] sections used by _exit
536 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
537 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
538 * scripttempl/elfm68hc11.sc: Likewise.
539
ff7e6f88
L
5402001-08-03 H.J. Lu <hjl@gnu.org>
541
542 * emultempl/beos.em (init): Add the missing initialization.
543
b6bf44ba
AM
5442001-08-03 Alan Modra <amodra@bigpond.net.au>
545
546 * ld.texinfo (Input Section Basics): Clarify ordering of output
547 sections.
548 * ldlang.c (callback_t): Add wildcard_list param.
549 (walk_wild_section): Remove "section" param. Rewrite for
550 lang_wild_statement_type change. Remove unique_section_p test.
551 (walk_wild_file): Remove "section" param.
552 (walk_wild): Remove "section" and "file" params.
553 (lang_gc_wild): Likewise.
554 (wild): Likewise. Modify for lang_wild_statement_type change.
555 (wild_sort): Likewise. Add "sec" param.
556 (gc_section_callback): Likewise.
557 (output_section_callback): Likewise. Do unique_section_p test.
558 (map_input_to_output_sections): Modify call to wild.
559 (lang_gc_sections_1): Likewise.
560 (print_wild_statement): Modify for lang_wild_statement_type
561 change.
562 (lang_add_wild): Replace filename, filenames_sorted param with
563 filespec. Replace section_name, sections_sorted,
564 exclude_filename_list with section_list.
565 * ldlang.h (lang_add_wild): Here too.
566 (lang_wild_statement_type): Replace section_name, sections_sorted,
567 and exclude_filename_list with section_list.
568 * ldgram.y (current_file): Delete.
569 (%union): Add wildcard_list.
570 (file_NAME_list): Set type to wildcard_list. Build a linked list
571 rather than calling lang_add_wild for each entry.
572 (input_section_spec_no_keep): Call lang_add_wild here instead.
573 * ld.h (struct wildcard_list): Declare.
574 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
575
b044cda1
CW
5762001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
577
578 * ldmain.c (main): initialize link_info.pei386_auto_import
579 * pe-dll.c: new tables for auto-export filtering
580 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 581 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
582 "by hand".
583
5842001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
585
b6bf44ba
AM
586 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
587 static variable current_sec (static struct sec *). Add
b044cda1 588 forward declaration for add_bfd_to_link.
b6bf44ba
AM
589 (process_def_file): Don't export undefined symbols. Do not
590 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
591 with new API.
592 (pe_walk_relocs_of_symbol): New function.
593 (generate_reloc): add optional extra debugging
b6bf44ba 594 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 595 line in output
b6bf44ba 596 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
597 (DATA auto-import support).
598 (make_singleton_name_thunk): New function.
599 (make_import_fixup_mark): New function.
600 (make_import_fixup_entry): New function.
601 (pe_create_import_fixup): New function.
b6bf44ba 602 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 603 char *.
b6bf44ba
AM
604 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
605 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
606 pe_create_import_fixup.
607 * emultempl/pe.em: add new options --enable-auto-import,
608 --disable-auto-import, and --enable-extra-pe-debug.
609 (make_import_fixup): New function.
610 (pe_find_data_imports): New function.
611 (pr_sym): New function.
b6bf44ba 612 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
613 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
614 CODE.
615
6162001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 617
b044cda1
CW
618 * ld.texinfo: add additional documentation for
619 --export-all-symbols. Document --out-implib,
620 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
621 --dll-search-prefix, --enable-auto-import, and
622 --disable-auto-import.
b044cda1
CW
623 * ldint.texinfo: Add detailed documentation on auto-import
624 implementation.
625
156e34dd
NC
6262001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
627
628 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
629 example.
630
d6231427
AM
6312001-07-24 Alan Modra <amodra@bigpond.net.au>
632
633 * Makefile.am: Update dependencies with "make dep-am".
634 * Makefile.in: Regenerate
635
e14ec88b
AM
6362001-07-23 Alan Modra <amodra@bigpond.net.au>
637
638 * ldcref.c (check_section_sym_xref): New function.
639 (check_nocrossrefs): Call it.
640 (check_nocrossref): Interate over h->refs here instead of..
641 (check_refs): ..here. Pass in the symbol name, section, and bfd
642 rather than hash_entry pointers.
643 (struct check_refs_info): Keep symbol name rather than hash entry.
644 Remove "same".
645 (check_reloc_refs): Tweak for above changes in check_refs_info.
646 Only report references to section syms when symname is NULL to
647 prevent duplicate messages for the same reloc.
648
1b577b00
NC
6492001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
650
c7d701b0
NC
651 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
652 available. Do not print NULL trees.
653 (exp_print_token): Print unknown tokens with values > 126 as
654 decimal values not ASCII characters.
655
1545243b
NC
656 * ldlang.c (lang_leave_overlay): If a region is specified assign
657 it to all sections inside the overlay unless they have been
658 assigned to the own, non-default, memory region.
659
1b577b00
NC
660 * README: Add header for consistency with other README files.
661
5030876b
L
6622001-07-14 H.J. Lu <hjl@gnu.org>
663
664 * emultempl/elf32.em (output_prev_sec_find): Never return
665 bfd_abs_section_ptr, bfd_com_section_ptr nor
666 bfd_und_section_ptr.
667
18c7a9a5
NC
6682001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
669
22af9fd3 670 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
671 elf32.em.
672 * Makefile.in: Regenerate.
673
9ffecff1
MG
6742001-07-14 matthew green <mrg@eterna.com.au>
675
676 * configure.tgt (i386-*-netbsdelf*): New target.
677 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
678
95500e1c
JJ
6792001-07-13 Jakub Jelinek <jakub@redhat.com>
680
681 * emultempl/elf32.em (output_prev_sec_find): New.
682 (place_orphan): Use it.
683
e97cb84f
L
6842001-07-11 H.J. Lu <hjl@gnu.org>
685
686 * ldmain.c (main): Fix typos in the last change.
687
7333607e
JJ
6882001-07-11 Jakub Jelinek <jakub@redhat.com>
689
690 * ldmain.c (main): Disallow -F and -f without -shared.
691
d29d80f2
NC
6922001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
693
694 * emultempl/pe.em (after_open): Check for the output_bfd not
695 having any coff_data structure allocated to it.
696
c2a1a436
DB
6972001-07-09 David O'Brien <obrien@FreeBSD.org>
698
699 * emultempl/elf32.em: Do not assuming that contents of the buffer
700 returned from basename function will remain unchanged accross other
701 function calls.
702
63653551
L
7032001-07-03 H.J. Lu <hjl@gnu.org>
704
705 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
706 2001-07-03. It creates dynamic entries even for static binaries.
707
d303a449
L
7082001-07-03 Jakub Jelinek <jakub@redhat.com>
709
710 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
711 (DYNAMIC): Use it to reserve few dynamic entries for
712 post-linking tools.
713
9f22353f
AM
7142001-06-27 Alan Modra <amodra@bigpond.net.au>
715
716 * emulparams/hppa64linux.sh: New file.
717 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
718 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
719 (ehppa64linux.c): Add rule to make it.
720 Run "make dep-am".
721 * Makefile.in: Regenerate.
722
62bf86b4
HPN
7232001-06-21 Hans-Peter Nilsson <hp@axis.com>
724
725 * ld.texinfo (Options, -r): Mention restrictions when using
726 different object formats.
727
429d935d
HPN
7282001-06-19 Hans-Peter Nilsson <hp@axis.com>
729
730 * ldlang.c (lang_check): Emit fatal error if relocatable link
731 between different object flavours with relocations in input.
732
cb840a31
L
7332001-06-19 H.J. Lu <hjl@gnu.org>
734
735 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
736 (--version-script): Mention the language support.
737
9bf03acc
L
7382001-06-19 H.J. Lu <hjl@gnu.org>
739
740 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
741
c45021f2
NC
7422001-06-18 H.J. Lu <hjl@gnu.org>
743
b6bf44ba
AM
744 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
745 (diststuff): Add $(MANS).
746 * Makefile.in: Regenerated.
c45021f2 747
b6bf44ba 748 * ld.1: Removed.
c45021f2 749
6caa99ab
HPN
7502001-06-18 Hans-Peter Nilsson <hp@axis.com>
751
605d9b3a
HPN
752 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
753 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
754 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
755 * ld.h (args_type): Remove member export_dynamic. All users
756 changed to use struct bfd_link_info member.
757
6caa99ab
HPN
758 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
759 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
760 * Makefile.in: Regenerate.
761
6f9efd97
L
7622001-06-18 H.J. Lu <hjl@gnu.org>
763
764 * ldlang.c (init_os): Add the newline to the einfo call.
765 (lang_check): Likewise.
766 (lang_do_version_exports_section): Likewise.
767
5af9fd8b
L
7682001-06-15 H.J. Lu <hjl@gnu.org>
769
770 * lexsup.c (parse_args); Save optind to report unrecognized
771 option.
772
2a096f04
HPN
7732001-06-15 Hans-Peter Nilsson <hp@axis.com>
774
7e66c3f5
HPN
775 * ldlang.c (lang_check): Emit fatal error if relocatable link
776 between different object flavours.
777
2a096f04
HPN
778 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
779 Set new link_info member export_dynamic.
780 * ldmain.c (main): Initialize new link_info member export_dynamic.
781
6770ec8c
NC
7822001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
783
784 * ldlang.c (walk_wild): Only call walk_wild_file if
785 lookup_name returns something.
b6bf44ba 786 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 787 (load_symbols): Change to a boolean function.
b6bf44ba 788 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
789 executable.
790
8529105a
AM
7912001-06-08 Alan Modra <amodra@bigpond.net.au>
792
793 * ldlang.c (record_bfd_errors): Remove.
794
795 * emultempl/aix.em: Fix copyright dates.
796
8f3aa7a0
AJ
7972001-06-07 Andreas Jaeger <aj@suse.de>
798
799 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
800 (TEXT_START_ADDR): Likewise.
801
3277f888
AM
8022001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
803
804 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
805
3763134d
DD
8062001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
807
808 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
809
5929ebc0
L
8102001-05-31 H.J. Lu <hjl@gnu.org>
811
812 * ldlang.c (open_input_bfds): Don't change the bfd error
813 handler whilst loading symbols.
814
c04a062d
NC
8152001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
816
817 * configure.tgt: Remove i370-mvs architecture, it is not currently
818 supported.
819
96fcab3e
L
8202001-05-25 H.J. Lu <hjl@gnu.org>
821
822 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
823 like emulparams/aixppc.sh.
824
db8d4f23
L
8252001-05-25 H.J. Lu <hjl@gnu.org>
826
827 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
828 setting of output_filename after bfd_scan_arch.
829 * emultempl/pe.em: Likewise.
830
5f642101
L
8312001-05-25 H.J. Lu <hjl@gnu.org>
832
833 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
834 like emulparams/aixppc.sh.
835
836 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
837 instead of ${srcdir}/emultempl/stringify.sed.
838
64e9ece0
TW
8392001-05-25 Timothy Wall <twall@oculustech.com>
840
841 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 842 output.
64e9ece0 843
c709b096
AM
8442001-05-25 Alan Modra <amodra@one.net.au>
845
846 * configure.host: Replace linuxoldld with linux*oldld.
847 * configure.tgt: Likewise.
848
6cbdcc6f
L
8492001-05-24 H.J. Lu <hjl@gnu.org>
850
851 * emultempl/stringify.sed: Removed again.
852
86af25fe
L
8532001-05-24 H.J. Lu <hjl@gnu.org>
854
855 * emultempl/aix.em (OUTPUT_ARCH): Defined.
856 (gld${EMULATION_NAME}_before_parse): Initialize
857 ldfile_output_architecture, ldfile_output_machine and
858 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
859 * emultempl/beos.em: Likewise.
860 * emultempl/elf32.em: Likewise.
861 * emultempl/linux.em: Likewise.
862 * emultempl/mipsecoff.em: Likewise.
863 * emultempl/pe.em: Likewise.
864 * emultempl/sunos.em: Likewise.
865
3b1b01cf
TR
8662001-05-24 Tom Rix <trix@redhat.com>
867
8f3aa7a0 868 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
869 udate import file format.
870 (change_symbol_mode) New, same
871 (is_syscall) New, same
872 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
873 * emulparams/aixppc64.sh : same
874 * emulparams/aixrs6.sh : same
875 * emulparams/ppcmacos.sh : same
876 * emultempl/aix.em : use strtoull to parse options
877 * Makefile.am : add eaixppc64 emulation for xcoff64
878 * Makefile.in : same
879 * configure.tgt : same
880
881 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 882 default data section offset to 0x20000000
3b1b01cf 883 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 884 loader and debug sections use the currect section offset.
3b1b01cf
TR
885
886 * emultempl/aix.em : Add xcoff64 support
887 Add -binitfini support
8f3aa7a0 888 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 889 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 890 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
891 sections
892
893 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 894
57e6abd2
AO
8952001-05-23 Alexandre Oliva <aoliva@redhat.com>
896
897 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
898 variable to avoid non-portable shell construct.
899
d1cf510e
NC
9002001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
901
902 * ldmain.c (get_emulation): Add -mips5 command line argument.
903
506eee22
NC
9042001-05-22 Alexandre Oliva <aoliva@redhat.com>
905
906 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
907 (ELF_INTERPRETER_NAME): Define it.
908 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
909 it.
910 * configure.tgt (targ_emul, targ_extra_emuls)
911 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
912 as primary, elf_i386 as extra.
913 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
914 (eelf_i386_ldso.c): New rule.
915 * Makefile.in: Rebuilt.
916
9172001-05-22 Nick Clifton <nickc@redhat.com>
918
919 * lexsup.c (ld_options): Allow -I to be an alias for
920 --dynamic-linker. This is for Solaris compatability.
921 * ld.texinfo: Document that -I can be used.
922 * ld.1: Regenerate.
923
d1778b88
AM
9242001-05-16 Alan Modra <amodra@one.net.au>
925
926 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
927 whether an input section is the first one assigned to an output
928 section.
929 Assorted formatting fixes.
930
02649152
DD
9312001-05-14 DJ Delorie <dj@delorie.com>
932
933 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
934 * Makefile.in: Ditto.
935
579f31ac
JJ
9362001-05-11 Jakub Jelinek <jakub@redhat.com>
937
938 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
939 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
940 output sections.
941 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
942
8550eb6e
JJ
9432001-05-11 Jakub Jelinek <jakub@redhat.com>
944
945 * ldlang.c (lang_process): Call bfd_merge_sections.
946
8e5a525c
AM
9472001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
948
949 * ldgram.y: Fix typo.
950
1c9acd94
L
9512001-05-03 H.J. Lu <hjl@gnu.org>
952
953 * emultempl/elf32.em: Include "libiberty.h".
954 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
955 basename of the bfd filename.
956 (gld${EMULATION_NAME}_stat_needed): Likewise.
957 (gld${EMULATION_NAME}_try_needed): Likewise.
958 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
959
14fe918e
L
9602001-05-02 H.J. Lu <hjl@gnu.org>
961
962 * emultempl/pe.em: Include <ctype.h>.
963
c7e40348
NC
9642001-05-02 Johan Rydberg <jrydberg@opencores.org>
965
b6bf44ba 966 * emulparams/elf32openrisc.sh: New file.
c7e40348 967
b6bf44ba
AM
968 * Makefile.am: Add OpenRISC target.
969 * Makefile.in: Regenerated.
c7e40348 970
b6bf44ba 971 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
972
9732001-05-02 Nick Clifton <nickc@redhat.com>
974
975 * emultempl/aix.em: Replace buystring with xstrdup.
976 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 977
d1b2b2dc
L
9782001-05-02 H.J. Lu <hjl@gnu.org>
979
980 * ldfile.c: Include "libiberty.h".
981 * ldlex.l: Likewise.
982
983 * ldmisc.c (buystring): Removed.
984 * ldmisc.h: Likewise.
985
986 * ldfile.c: Replace buystring with xstrdup.
987 * ldlang.c: Likewise.
988 * ldlex.l: Likewise.
989 * ldmain.c: Likewise.
990 * ldmisc.c: Likewise.
991 * lexsup.c: Likewise.
992 * mpw-eppcmac.c: Likewise.
993
35714f2a
AJ
9942001-04-30 Andreas Jaeger <aj@suse.de>
995
996 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
997
884fb58e
NC
9982001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
999
b6bf44ba
AM
1000 * ldlang.c (load_symbols): Give emulation a chance
1001 to process unrecognized file before fatal error is
1002 reported, not after.
884fb58e 1003
87748b32
NC
10042001-04-27 Sean McNeil <sean@mcneil.com>
1005
1006 * configure.tgt: Add arm-vxworks target.
1007 * scripttempl/armcoff.sc: Support .text or .data as a section name
1008 prefix.
1009 Define _etext.
35714f2a 1010
7ce691ae
C
10112001-04-13 J.T. Conklin <jtc@redback.com>
1012
1013 * ld.texinfo: Document --fatal-warnings.
1014 * ld.1: Regenerate.
1015
1016 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 1017 warnings have been turned into errors.
7ce691ae
C
1018 * lexsup.c (OPTION_WARN_FATAL): Define.
1019 (ld_options): Entry for --fatal-warnings.
1020 (parse_args): Handle OPTION_WARN_FATAL.
1021 * ld.h (ld_config_type): Add fatal_warnings field.
1022
f5fa8ca2
JJ
10232001-04-13 Jakub Jelinek <jakub@redhat.com>
1024
1025 * ldmain.c (main): Default to discard_sec_merge.
1026 * lexsup.c (OPTION_DISCARD_NONE): Define.
1027 (ld_options): Add --discard-none.
1028 (parse_args): Handle OPTION_DISCARD_NONE.
1029 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1030 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1031 all its input sections match.
1032
fdec3cfc
L
10332001-04-05 Steven J. Hill <sjhill@cotw.com>
1034
1035 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1036 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1037 (eelf32ltsmip.c): New target.
1038 (eelf64btsmip.c): Likewise.
1039 (eelf64ltsmip.c): Likewise.
1040 * Makefile.in: Regenerated.
1041
1042 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1043 target.
1044 (mips*-*-linux-gnu*): Likewise.
1045
1046 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1047 MIPS taget.
35714f2a 1048 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
1049 target.
1050 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1051 endian target.
1052
589bad82
HPN
10532001-04-05 Hans-Peter Nilsson <hp@axis.com>
1054
1055 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1056 correct value of __Stext here.
1057 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1058 .startup section.
1059
1060 * emulparams/crislinux.sh: Remove FIXME.
1061
94202e16
AM
10622001-04-02 Alan Modra <alan@linuxcare.com.au>
1063
1064 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1065 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1066
1268a053
HPN
10672001-03-27 Hans-Peter Nilsson <hp@axis.com>
1068
1069 * configure.tgt (cris-*-*): Change default emulation to criself.
1070 (cris-*-*aout*): New rule.
1071
d85e9ff7
AM
10722001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1073
1074 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1075 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1076
0879a67a
AJ
10772001-03-26 Andreas Jaeger <aj@suse.de>
1078
1079 * ld.texinfo (Overview): Fix syntax in texi code.
1080
0285c67d
NC
10812001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1082
1083 * ld.texinfo: Put @c man indications to generate the ld man page.
1084 When generating man, define all the variables. Define SEEALSO
1085 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1086 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1087 (ld.1): Generate from ld.texinfo.
1088 * Makefile.in: Regenerate.
1089
c20ec07b
NC
10902001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1091
1092 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 1093 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 1094
cc5ce052
UD
10952001-03-17 Ulrich Drepper <drepper@redhat.com>
1096
1097 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1098 is an absolute path look only for this file and not along the path.
1099
a1ab1d2a
UD
11002001-03-17 Ulrich Drepper <drepper@redhat.com>
1101
1102 * emultempl/elf32.em (OPTION_GROUP): New macro.
1103 Add new option Bgroup to longopts.
1104 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1105 (gld*_list_options): Add -Bgroup and -z defs.
1106 * ld.1: Document -Bgroup and -z defs.
1107 * ld.texinfo: Likewise.
1108
788fca5a
MM
11092001-03-07 Michael Meissner <meissner@redhat.com>
1110
1111 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1112 with sections created by -fdata-sections.
1113 (.dynbss,.bss): Ditto.
1114
1c7566d1
AM
11152001-03-05 Alan Modra <alan@linuxcare.com.au>
1116
1117 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1118 after_allocation_default, not gld..._before_allocation.
1119
27b7e12d
AM
11202001-02-27 Alan Modra <alan@linuxcare.com.au>
1121
1122 * configure.in (BFD_VERSION): New.
1123 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1124 * configure: Regenerate.
1125 * Makefile.am: Run "make dep-am"
1126 * Makefile.in: Regenerate.
1127
2bc551c7
TW
11282001-02-26 Timothy Wall <twall@cygnus.com>
1129
1130 * emulparams/elf64_aix.sh: Add additional read-only sections;
1131 uncomment lines which are now required.
1132
1276aefa
NC
11332001-02-26 H.J. Lu <hjl@gnu.org>
1134
1135 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
1136 that problems can be caught whilst loading symbols.
1137 (record_bfd_errors): New function: Report BFD errors and mark
1138 the executable output as being invalid.
1276aefa 1139
41c49998
TW
11402001-02-22 Timothy Wall <twall@cygnus.com>
1141
1142 * configure.host: Add configuration for ia64-*-aix*.
1143 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1144 Add dependencies for eelf64_aix.c.
1145 * Makefile.in: Regenerate.
1146 * configure.tgt: Add ia64-*-aix* mapping.
1147 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 1148 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
1149 AIX-specific test.
1150
78f85fd7
L
11512001-02-20 H.J. Lu <hjl@gnu.org>
1152
1153 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1154 false if we found the file.
1155
1ac7e077 11562001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
1157
1158 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1159 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1160
e135f41b
NC
11612001-02-18 lars brinkhoff <lars@nocrew.org>
1162
1163 * Makefile.am: Add PDP-11 target.
1164 * configure.tgt: Likewise.
1165 * emulparams/pdp11.sh: New file.
1166
a842aceb
DB
11672001-02-17 David O'Brien <obrien@FreeBSD.org>
1168
1169 * configure.host: Add a generic FreeBSD configuration entry such that
1170 all [modern] FreeBSD systems on all platforms will look the same.
1171
24174db0
L
11722001-02-14 H.J. Lu <hjl@gnu.org>
1173
1174 * configure.tgt: Remove mention of earmelf_linux26.
1175
30c3c13a
RH
11762001-02-13 Richard Henderson <rth@redhat.com>
1177
1178 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1179
b46a87b1
L
11802001-02-13 H.J. Lu <hjl@gnu.org>
1181
1182 * ldexp.h (node_type): Add etree_provided.
1183 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1184 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 1185 for etree_provided.
b46a87b1
L
1186 (exp_print_tree): Handle etree_provided.
1187 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1188 etree_provided.
1189
f3988fd9
RH
11902001-02-09 David Mosberger <davidm@hpl.hp.com>
1191
1192 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1193 .IA_64.unwind.* pattern to unwind table section and
1194 .IA_64.unwind_info* pattern to unwind info section.
1195
a85d7ed0
NC
11962001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1197
1198 * Makefile.am: Add linux target for S/390.
1199 * Makefile.in: Likewise.
1200 * configure.host: Likewise.
1201 * configure.tgt: Likewise.
1202 * emulparams/elf64_s390.sh: New file.
1203 * emulparams/elf_s390.sh: New file.
1204
780248c4
JJ
12052001-02-09 Jakub Jelinek <jakub@redhat.com>
1206
1207 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1208 targ_extra_libpath.
1209 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1210
0e2534bd
PB
12112001-02-06 Philip Blundell <philb@gnu.org>
1212
1213 * Makefile.am: Remove mention of earmelf_linux26.
1214 * Makefile.in: Regenerate.
1215
46c1ea57
PB
12162001-02-04 Philip Blundell <philb@gnu.org>
1217
1218 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1219 * emulparams/armelf_linux26.sh: Delete.
1220 * configure.tgt: Remove mention of armelf_linux26 emulation.
1221
0088edd2
NC
12222001-02-01 Nick Clifton <nickc@redhat.com>
1223
1224 * ld.1: Replace occurances of -oformat with --oformat.
1225
02aa14fb
AM
12262001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1227
1228 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1229 load_base is specified.
1230
f813923c
HPN
12312001-01-24 Hans-Peter Nilsson <hp@axis.com>
1232
1233 * emultempl/elf32.em: Correct spelling in comments and listed
1234 options.
1235
c1eb1488
AM
12362001-01-23 Alan Modra <alan@linuxcare.com.au>
1237
1238 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1239 default for the first section of a group of overlay sections.
1240
d9fc3714
AM
12412001-01-22 Alan Modra <alan@linuxcare.com.au>
1242
1243 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1244 * Makefile.in: Regenerate.
1245 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1246 Check for null tool_dir.
1247
6be0ca94
JW
12482001-01-16 Jim Wilson <wilson@redhat.com>
1249
1250 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1251 and IA_64.unwind.info.
1252
b9247304
L
12532001-01-16 H.J. Lu <hjl@gnu.org>
1254
1255 * ldlang.c (lang_check): Merge the private data only if the
1256 input file has contents.
1257
577a0623
AM
12582001-01-14 Alan Modra <alan@linuxcare.com.au>
1259
d952f17a
AM
1260 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1261
ffd6e9de
AM
1262 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1263 enabling search for libmilli. On a relocatable link, make .text
1264 sections unique.
1265 (LDEMUL_AFTER_PARSE): Define.
1266 (hppaelf_finish): Correct spelling of relocatable in comments.
1267
577a0623
AM
1268 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1269 rummage through the script for sections on the unique list.
1270 Correct length of strncmp for ".note".
1271 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1272
1273 * ldlang.c (unique_section_list): New var.
1274 (unique_section_p): New function.
1275 (walk_wild_section): Don't match sections on unique_section_list.
1276 (lang_add_unique): New function.
ffd6e9de 1277 Correct spelling of relocatable in comments.
577a0623
AM
1278
1279 * ldlang.h (struct unique_sections): Declare.
1280 (unique_section_list): Declare.
1281 (unique_section_p): Declare.
1282 (lang_add_unique): Declare.
1283
1284 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1285 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1286
1287 * ld.texinfo (--unique): Update.
1288
b7ed8fad
NC
12892001-01-13 Nick Clifton <nickc@redhat.com>
1290
1291 * lexsup.c (parse_args): Remove spurious white space.
1292
d0398d6a
NC
12932001-01-12 Nick Clifton <nickc@redhat.com>
1294
1295 * lexsup.c (parse_args): Update copyright date.
1296
350fdb00
PB
12972001-01-12 Philip Blundell <pb@futuretv.com>
1298
1299 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1300
60c6797e
KH
13012001-01-10 Kazu Hirata <kazu@hxi.com>
1302
1303 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1304 * scripttempl/h8300h.sc: Fix formatting.
1305 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
1306 * scripttempl/h8500.sc: Likewise.
1307 * scripttempl/h8500b.sc: Likewise.
1308 * scripttempl/h8500c.sc: Likewise.
1309 * scripttempl/h8500m.sc: Likewise.
1310 * scripttempl/h8500s.sc: Likewise.
60c6797e 1311
482e8b32
DB
13122000-01-07 David O'Brien <obrien@BSDi.com>
1313
1314 * emultempl/elf32.em: Only perform Linux ld hints processing when
1315 targeting Linux.
1316
d7ed7ca6
PB
13172001-01-07 Philip Blundell <philb@gnu.org>
1318
1319 * ld.texinfo (Bug Reporting): Update email address for reports.
1320
0fc3347a
NC
13212000-12-31 Nick Clifton <nickc@redhat.com>
1322
1323 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1324 options by checking for a return value of '?' not -1.
1325
e4897a32
NC
13262000-12-28 Nick Clifton <nickc@redhat.com>
1327
1328 * lexsup.c (struct ld_option): Add new enum value:
1329 EXACTLY_TWO_DASHES.
1330 (ld_options[]): Change -omagic, -output and -oformat options
1331 to be EXACTLY_TWO_DASHES.
1332 (OUTPUT_COUNT): Use ARRAY_SIZE.
1333 (parse_args): Change parameter 'argc' to unsigned.
1334 Place EXACTLY_TWO_DASHES options into new really_longopts
1335 array.
1336 If getopt_long_only fails, try calling getopt_long using the
1337 really_longopts array.
1338 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1339 TWO_DASHES options.
1340
1341 * ldlex.h: Fix prototype of parse_args.
1342
1343 * ld.texinfo: Document that long options starting with 'o'
1344 must be preceeded by two dashes. Change example of a single
1345 dashed long option from -oformat to -trace-symbol.
1346
1122a5fc
NC
13472000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1348
1349 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1350 (longopts[]): New --no-default-excludes option.
1351 (gld_${EMULATION_NAME}_list_options): Document.
1352 (gld_${EMULATION_NAME}_parse_args): Handle.
1353
037849a9
NC
13542000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1355
1356 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1357 whitespace, it breaks the K&R C preprocessor.
1358
7ec229ce
DD
13592000-12-11 DJ Delorie <dj@redhat.com>
1360
1361 * ld.texinfo: Add notes about --whole-archive and gcc.
1362
b79e8c78
NC
13632000-11-18 Fred Fish <fnf@be.com>
1364
1365 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1366 (ld_options): Entry for --allow-shlib-undefined.
1367 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1368 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1369 to false.
1370 * ld.texinfo: Document new command line switch.
d952f17a 1371
9a8e2505
GK
13722000-12-12 Geoffrey Keating <geoffk@redhat.com>
1373
1374 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1375 .fixup is actually read/write.
1376 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1377 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1378 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1379
b8355149
JH
1380Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1381
1382 * NEWS: Add note about x86_64 architecture.
1383
93b63cd3
DD
13842000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1385
1386 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1387 Set DWARF2 sections to a VMA of zero.
1388
24f6971a
NC
13892000-12-01 Joel Sherrill <joel@OARcorp.com>
1390
d952f17a 1391 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
1392 New targets.
1393 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1394 (sparc*-*-rtems*): Switched from a.out to ELF.
1395
2be3aa03
NC
13962000-11-30 Jan Hubicka <jh@suse.cz>
1397
1398 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1399 (eelf_x86_64.c): New.
1400 * Makefile.in: Regenerate.
1401 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1402 * emulparams/elf_x86_64.sh: New.
1403
8c899858
HPN
14042000-11-30 Hans-Peter Nilsson <hp@axis.com>
1405
1406 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1407 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1408
1409 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1410 merging non-a.out sections into CONSTRUCTING.
1411
e47b9e39
NC
14122000-11-28 Nick Clifton <nickc@redhat.com>
1413
1414 * ld.1 (COPYING): Mention that the GNU Free Documentation
1415 License is present in the sources, but not the output, and
1416 also available from the GNU website.
1417 (GNU Free Documentation License): Comment out this section.
1418
ad95f82a
DB
14192000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1420
1421 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1422 does not use them.
1423
fd89e65f
DB
14242000-11-25 David O'Brien <obrien@FreeBSD.org>
1425
1426 * ld.1: Remove old date so it does not give the impression the manpage
1427 is way out of date.
1428
077b8428
NC
14292000-11-24 Nick Clifton <nickc@redhat.com>
1430
1431 * configure.tgt (xscale-coff): Add target.
1432 (xscale-elf): Add target.
1433
49425d28
NC
14342000-11-24 Fred Fish <fnf@be.com>
1435
d952f17a
AM
1436 * ldmain.c (main): Remove redundant init of config.make_executable
1437 to true.
49425d28 1438
d3480244
RH
14392000-11-15 Richard Henderson <rth@redhat.com>
1440
1441 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1442
1ce7de8b
KH
14432000-11-14 Kazu Hirata <kazu@hxi.com>
1444
1445 * scripttempl/h8300.sc: Fix formatting.
1446 * scripttempl/h8300h.sc: Likewise.
1447 * scripttempl/h8300s.sc: Likewise.
1448
208d5cd0
DC
1449Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1450
1451 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1452
2e418547
PB
14532000-11-09 Philip Blundell <pb@futuretv.com>
1454
1455 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1456 around orphan sections whose names can be represented in C.
1457
c940e6fc
JW
14582000-11-07 Jim Wilson <wilson@redhat.com>
1459
1460 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1461 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1462
704c465c
NC
14632000-11-06 Nick Clifton <nickc@redhat.com>
1464
1465 * ld.texinfo: Add GNU Free Documentation License.
1466 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 1467 * ld.1: Add GNU Free Documentation License.
704c465c 1468
dca7760f
AM
14692000-11-05 Alan Modra <alan@linuxcare.com.au>
1470
1471 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1472 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1473
1474 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1475 Move 2000-11-02 Makefile.in changes to this file.
1476 * Makefile.in: Regenerate.
1477
40a633d5
NC
14782000-11-03 Nick Clifton <nickc@redhat.com>
1479
1480 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1481 constructors and destructors.
1482 * scripttempl/h8300h.sc: Ditto.
1483 * scripttempl/h8300s.sc: Ditto.
1484 * scripttempl/h8500.sc: Ditto.
1485 * scripttempl/h8500b.sc: Ditto.
1486 * scripttempl/h8500c.sc: Ditto.
1487 * scripttempl/h8500m.sc: Ditto.
1488 * scripttempl/h8500s.sc: Ditto.
1489 * scripttempl/v850.sc: Ditto.
1490 * scripttempl/w65.sc: Ditto.
1491 * scripttempl/z8000.sc: Ditto.
1492
59ff2774
NC
14932000-11-02 Per Lundberg <plundis@chaosdev.org>
1494
1495 * Makefile.in (e_i386_chaos.c): New rule.
1496 (ALL_EMULATIONS): Added e_i386_chaos.o.
1497 * emulparams/elf_i386_chaos.sh: New file.
1498 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1499
645571e1
JJ
15002000-10-20 Jakub Jelinek <jakub@redhat.com>
1501
1502 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1503 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1504 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1505 library path suffix.
1506 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1507
c5975a45
HPN
15082000-10-18 Hans-Peter Nilsson <hp@axis.com>
1509
1510 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1511 for consecutive sections.
1512
ea20a7da
CC
15132000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1514
d952f17a
AM
1515 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1516 options.
1517 * ld.texinfo: Added notes about this new option.
ea20a7da 1518
6e45556a
NC
15192000-10-16 Nick Clifton <nickc@redhat.com>
1520
1521 * emultempl/pe.em (_after_open): Add tests of return values from
1522 bfd functions. Emit appropriate error messages if necessary.
1523
b9a69188
NC
15242000-10-13 Nick Clifton <nickc@redhat.com>
1525
1526 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
1527 local variables - they are not used, but leave in the call to
1528 bfd_canonicalize_symtab.
b9a69188
NC
1529 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1530 pe_dll_search_prefix.
1531
627427de 15322000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 1533
627427de
DD
1534 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1535 (longopts): New --dll-search-prefix option.
1536 (gld_${EMULATION_NAME}_list_options): Document.
1537 (gld_${EMULATION_NAME}_parse_args): Handle.
1538 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1539 dynamically, search for a dll named '<prefix><basename>.dll'
1540 in preference to 'lib<basename>.dll' if --dll-search-prefix
1541 is specified.
1542
24376d1b
AM
15432000-10-12 Alan Modra <alan@linuxcare.com.au>
1544
1545 * ldlang.c (section_already_linked): Set kept_section instead of
1546 sec->comdat->sec.
1547
e47d05ad
KH
15482000-10-10 Kazu Hirata <kazu@hxi.com>
1549
1550 * deffile.h: Fix formatting.
1551 * lexsup.c: Likewise.
1552 * mri.c: Likewise.
1553
23a87948
DD
15542000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1555
1556 * pe-dll.c (make_one): Do not generate code thunk for DATA
1557 exports.
1558 (process_def_file): deduce DATA flag for auto-export sumbols.
1559
86b1cc60
KH
15602000-10-09 Kazu Hirata <kazu@hxi.com>
1561
89cdebba
KH
1562 * ld.h: Fix formatting.
1563 * ldcref.c: Likewise.
1564 * ldctor.h: Likewise.
1565 * ldemul.c: Likewise.
1566 * ldemul.h: Likewise.
1567 * ldexp.c: Likewise.
1568 * ldexp.h: Likewise.
1569 * ldfile.c: Likewise.
1570 * ldfile.h: Likewise.
1571 * ldlang.c: Likewise.
1572 * ldlang.h: Likewise.
1573 * ldmain.c: Likewise.
7bfd51a3
KH
1574 * pe-dll.c: Likewise.
1575
1576 * pe-dll.c: Revert some formatting fixes.
86b1cc60 1577
d643799d
KH
15782000-10-08 Kazu Hirata <kazu@hxi.com>
1579
1580 * pe-dll.c: Fix formatting.
1581
08da4cac
KH
15822000-10-05 Kazu Hirata <kazu@hxi.com>
1583
1584 * ldlang.c: Fix formatting.
1585
c2a94a7a
DD
15862000-10-03 DJ Delorie <dj@redhat.com>
1587
1588 * pe-dll.c (fill_edata): initialize entire block
1589 (make_one): fill in correct section.
1590
8c95a62e
KH
15912000-10-03 Kazu Hirata <kazu@hxi.com>
1592
1593 * ldexp.c: Fix formatting.
1594
486e80e2
DD
15952000-10-02 DJ Delorie <dj@redhat.com>
1596
1597 * emultempl/pe.em (gld_*_after_open): detect case where there two
1598 import libraries for same dll; rename one to ensure proper link
1599 order.
1600
1601 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1602 typo
1603 (generate_edata): fix typo
1604
24dd9f75
HPN
16052000-09-29 Hans-Peter Nilsson <hp@axis.com>
1606
1607 * scripttempl/crisaout.sc (ENTRY): Now __start.
1608 (.text): Add default setting for __start.
1609 Remove CONSTRUCTORS handling.
1610 (/DISCARD/): Add .gnu.warning.*.
1611 * emulparams/crislinux.sh (ENTRY): Now __start.
1612 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1613 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1614 (ENTRY): Now __start.
1615 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1616 (EXECUTABLE_SYMBOLS): Add default setting for __start.
1617
4de2d33d
KH
16182000-09-29 Kazu Hirata <kazu@hxi.com>
1619
5cc18311
KH
1620 * deffile.h: Fix formatting.
1621 * ld.h: Likewise.
1622 * ldcref.c: Likewise.
4de2d33d 1623 * ldctor.c: Likewise.
5cc18311 1624 * ldctor.h: Likewise.
4de2d33d 1625 * ldemul.c: Likewise.
5cc18311 1626 * ldemul.h: Likewise.
4de2d33d 1627 * ldexp.c: Likewise.
5cc18311 1628 * ldexp.h: Likewise.
4de2d33d 1629 * ldfile.c: Likewise.
5cc18311 1630 * ldfile.h: Likewise.
4de2d33d 1631 * ldlang.c: Likewise.
5cc18311
KH
1632 * ldlang.h: Likewise.
1633 * lexsup.c: Likewise.
1634 * mri.c: Likewise.
1635 * pe-dll.c: Likewise.
4de2d33d 1636
45b1f63c
DD
16372000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1638
1639 * pe-dll.c (process_def_file): Uninitialized data wasn't
1640 exported with --export-all-symbols switch.
d952f17a 1641
45b1f63c
DD
16422000-09-28 DJ Delorie <dj@redhat.com>
1643
1644 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1645 noname work properly.
1646
47d89dba
AM
16472000-09-28 Alan Modra <alan@linuxcare.com.au>
1648
1649 * ld.texinfo (HPPA ELF32): New section.
1650
1651 * emultempl/hppaelf.em (group_size): New.
1652 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1653 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1654 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
1655 options to prevent abbreviations matching.
1656 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
1657 (PARSE_AND_LIST_ARGS_CASES): Handle it.
1658
36bdbeec
NC
16592000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1660
1661 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1662 on the m68*-*-elf target. Make it support COFF input objects.
1663
6d5e62f8
KH
16642000-09-21 Kazu Hirata <kazu@hxi.com>
1665
1666 * ldmain.c: Fix formatting.
1667 * ldmisc.c: Likewise.
1668 * ldver.c: Likewise.
1669 * ldwrite.c: Likewise.
1670
e2eb67d9
AM
16712000-09-21 Alan Modra <alan@linuxcare.com.au>
1672
1673 * ldwrite.c (clone_section): Silence gcc warnings.
1674
b3ea3584
AM
16752000-09-20 Alan Modra <alan@linuxcare.com.au>
1676
1677 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1678 out of memory failure.
1679
1680 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1681 (clone_section): Handle out of memory failures. Rename var to
1682 avoid c++ reserved word.
1683
25f72752
AM
16842000-09-18 Alan Modra <alan@linuxcare.com.au>
1685
1686 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1687 stub_name param to stub_sec_name.
1688 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1689
0752970e
NC
16902000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1691
1692 * emultempl/m68kelf.em: New file.
1693 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1694 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1695 * Makefile.in: Regenerate.
1696
92b7e9d8
AM
16972000-09-15 Alan Modra <alan@linuxcare.com.au>
1698
1699 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1700 only as needed.
1701
9b14b192
NC
17022000-09-13 Nick Clifton <nickc@redhat.com>
1703
1704 * ldmain.c (multiple_definition): Disable relaxation if
1705 multiple symbol definitions are encountered - otherwise the
1706 linker could abort with an assertion failure.
1707
891fa266
NC
17082000-09-10 Nick Clifton <nickc@redhat.com>
1709
1710 * mri.c: Fix formatting.
1711
5d64ca4e
L
17122000-09-07 H.J. Lu <hjl@gnu.org>
1713
1714 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1715 * configure: Rebuild.
1716
dd94604f
L
17172000-09-07 H.J. Lu <hjl@gnu.org>
1718
1719 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1720 * Makefile.in: Rebuild.
1721
71bfc0ae
AM
17222000-09-07 Alan Modra <alan@linuxcare.com.au>
1723
1724 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1725 broken list handling. Create __start_SECNAME and __stop_SECNAME
1726 when no place-holder. Add some comments. Test both SEC_CODE and
1727 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 1728 Handle case where no output section statement created.
71bfc0ae 1729
4a428502
AO
17302000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1731
1732 * configure.tgt (sh-*-linux*): Added.
1733 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1734 * Makefile.in: Rebuilt.
1735 * emulparams/shelf_linux.sh: New file.
1736 * emulparams/shlelf_linux.sh: New file.
1737
f9989030
AM
17382000-09-06 Alan Modra <alan@linuxcare.com.au>
1739
1740 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1741 try shuffling sections when the orphan happens to be the place
1742 holder. Keep count of unique section names generated so we speed
1743 the search for a new name.
1744
58cccadb
AO
17452000-09-06 Alexandre Oliva <aoliva@redhat.com>
1746
1747 * configure: Rebuilt with new libtool.m4.
1748
5b343f5a
NC
17492000-09-05 Nick Clifton <nickc@redhat.com>
1750
1751 * Makefile.in: Regenerate.
1752 * aclocal.m4: Regenerate.
1753 * configure: Regenerate.
1754 * config.in: Regenerate.
1755 * po/ld.pot: Regenerate.
1756
1757 * ldint.texinfo: Remove CVS revision marker - it foils local
1758 comparisons.
1759
1760 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 1761
a854a4a7
AM
17622000-09-05 Alan Modra <alan@linuxcare.com.au>
1763
3231d22e
AM
1764 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1765 to stub section flags.
1766 (hppa_for_each_input_file_wrapper): New.
1767 (hppa_lang_for_each_input_file): New.
1768 (lang_for_each_input_file): Define to call above.
1769 (multi_subspace): New.
1770 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1771 (PARSE_AND_LIST_PROLOGUE): Define.
1772 (PARSE_AND_LIST_LONGOPTS): Define.
1773 (PARSE_AND_LIST_OPTIONS): Define.
1774 (PARSE_AND_LIST_ARGS_CASES): Define.
1775 (hppaelf_finish): Call elf32_hppa_set_gp.
1776 (hppaelf_set_output_arch): Remove.
1777 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1778
1779 * emulparams/hppalinux.sh (ELFSIZE): Define.
1780 (MACHINE): Define.
1781 (OTHER_READONLY_SECTIONS): Define.
1782 (DATA_PLT): Define.
1783 (GENERATE_SHLIB_SCRIPT): Define.
1784
5f992e62
AM
1785 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1786 to const throughout. Change `void *' to `PTR' throughout.
1787 (lang_memory_default): Function is local to file, add `static'.
1788
1789 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1790 (ehppalinux.c): Likewise.
1791 (earmelf.c): Likewise.
1792 (earmelf_linux.c): Likewise.
1793 (earmelf_linux26.c): Likewise.
1794 * Makefile.in: Regenerate.
1795
a854a4a7
AM
1796 * ld.h (ld_config_type): Add unique_orphan_sections.
1797 * lexsup.c (OPTION_UNIQUE): Define.
1798 (ld_options): Add "--unique".
1799 (parse_args): Handle it.
1800 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1801 search for an existing output section if unique_orphan_sections is
1802 set. Make use of bfd_get_unique_section_name rather than
1803 duplicating code here.
1804 * ld.texinfo: Describe --unique.
1805
1806 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1807 optional arg to split-by-file.
1808 (parse_args): Handle them.
1809 * ld.texinfo: Update description of these options.
1810 * ldwrite.c (clone_section): Pass in the section name. Replace
1811 local code with bfd_get_unique_section_name.
1812 (split_sections): Tidy code and comments. Use a list traversal
1813 more appropriate to the list construction. Handle cooked section
1814 sizes. Split when split_by_reloc reached rather than exceeded.
1815 Track section size and split when split_by_file reached. Fix
1816 link_order_tail (even though it's not used).
1817 (ldwrite): Modify condition for calling split_sections to suit
1818 changed split_by_reloc and split_by_file.
1819 * ldmain.c (main): Init config.split_by_reloc and
1820 config.split_by_file to -1.
1821 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1822 Change split_by_file to bfd_size_type.
1823
18e03609
NC
18242000-09-02 Nick Clifton <nickc@redhat.com>
1825
1826 * configure.in: Increase version number to 2.10.91.
1827 * NEWS: Mention new ability to support removal of duplicate DWARF2
1828 debug information.
1829 * configure: Regenerate.
1830 * aclocal.m4: Regenerate.
1831 * config.in: Regenerate.
1832
3a9d486c
NC
18332000-09-02 Daniel Berlin <dberlin@redhat.com>
1834
1835 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1836 sections.
a2b64bed 1837 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
1838 * scripttempl/elfd10v.sc: Ditto.
1839 * scripttempl/elfd30v.sc: Ditto.
1840 * scripttempl/elfi370.sc: Ditto.
1841 * scripttempl/elfm68hc11.sc: Ditto.
1842 * scripttempl/elfm68hc12.sc: Ditto.
1843 * scripttempl/elfi386beos.sc: Ditto.
1844 * scripttempl/v850.sc: Ditto.
50bbae35 1845
ac48eca1
AO
18462000-08-31 Alexandre Oliva <aoliva@redhat.com>
1847
1848 * acinclude.m4: Include libtool and gettext macros from the
1849 top level.
1850 * aclocal.m4, configure: Rebuilt.
1851
c13b1b77
NC
18522000-08-25 Nick Clifton <nickc@redhat.com>
1853
1854 * ldlang.c (open_output): When choosing the target for a
1855 particular endianness, do nothing if the target is not
1856 supported.
1857
dcb0bd0e
L
18582000-08-25 H.J. Lu <hjl@gnu.org>
1859
1860 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1861 check -rpath nor LD_RUN_PATH for cross link.
1862 * ld.texinfo: Document the change.
1863
5bcac8a4
HPN
18642000-08-24 Hans-Peter Nilsson <hp@axis.com>
1865
1866 * NEWS: Mention support for CRIS.
1867
6dd8c765
L
18682000-08-23 H.J. Lu <hjl@gnu.org>
1869
1870 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1871 the current runpath list from bfd_elf_get_runpath_list ()
1872 before search.
1873
ec4eb78a
L
18742000-08-22 H.J. Lu <hjl@gnu.org>
1875
1876 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1877 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1878 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1879 trace_file_tries is non-zero.
1880 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1881 if trace_file_tries is non-zero.
1882
1883 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 1884 * NEWS: Mention it.
ec4eb78a 1885
22b36938
JE
18862000-08-14 Jason Eckhardt <jle@cygnus.com>
1887
1888 * NEWS: Mention i860 support.
1889
d73e9da0
AS
18902000-08-14 Andreas Schwab <schwab@suse.de>
1891
1892 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 1893 syntax.
d73e9da0 1894
9ac4db9c
GK
18952000-08-10 Geoff Keating <geoffk@cygnus.com>
1896
1897 * scripttempl/elf.sc: Add a comment giving the correspondence
1898 between sections, per-datum sections, and linkonce sections. Make
1899 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1900 .sbss2.
1901
165589e4
JE
19022000-08-10 Jason Eckhardt <jle@cygnus.com>
1903
1904 * emulparams/elf32_i860.sh: New file.
1905 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1906 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1907 (eelf32_i860.c): New rule.
1908 * Makefile.in: Regenerate.
1909
345a835d
NC
19102000-08-10 Nick Clifton <nickc@cygnus.com>
1911
1912 * emulparams/mipspe.sh (ENTRY): Add definition.
1913
e374f1d9
NC
19142000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1915
1916 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1917 in error message.
1918
236d5abf
NC
19192000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1920
1921 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1922 the final size of .bss section.
1923 * scripttempl/elfm68hc12.sc: Likewise.
1924
4b209b22
AM
19252000-08-04 Alan Modra <alan@linuxcare.com.au>
1926
1927 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1928 gld${EMULATION_NAME}_parse_args for consistency. Combine
1929 lastoptind and prevoptind vars, and keep track of last optind.
1930 (gld_${EMULATION_NAME}_list_options): Rename to
1931 gld${EMULATION_NAME}_list_options.
1932
28423a68
AM
19332000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1934
1935 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1936 (i586-sco-sysv5uw7.1.0).
1937
b2009ff7
L
19382000-07-27 H.J. Lu <hjl@gnu.org>
1939
1940 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1941 (PARSE_AND_LIST_PROLOGUE): New.
1942 (PARSE_AND_LIST_LONGOPTS): Likewise.
1943 (PARSE_AND_LIST_OPTIONS): Likewise.
1944 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1945 (PARSE_AND_LIST_EPILOGUE): Likewise.
1946
04925e1e
AM
19472000-07-28 Alan Modra <alan@linuxcare.com.au>
1948
41392f03
AM
1949 * emultempl/armelf.em: Elide functions common to elf32.em,
1950 ie. most of the file.
1951 (arm_elf_after_open): New. Do arm specific things then call
1952 gld${EMULATION_NAME}_after_open.
1953 (arm_elf_before_allocation): New. Call
1954 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1955 (PARSE_AND_LIST_PROLOGUE): Define.
1956 (PARSE_AND_LIST_SHORTOPTS): Define.
1957 (PARSE_AND_LIST_LONGOPTS): Define.
1958 (PARSE_AND_LIST_OPTIONS): Define.
1959 (PARSE_AND_LIST_ARGS_CASES): Define.
1960 (LDEMUL_AFTER_OPEN): Define.
1961 (LDEMUL_BEFORE_ALLOCATION): Define.
1962 (LDEMUL_BEFORE_PARSE): Define.
1963 (LDEMUL_FINISH): Define.
1964
1965 * emultempl/hppaelf.em: Similarly zap most of this file.
1966 (hppaelf_add_stub_section): Prototype.
1967 (hppaelf_layaout_sections_again): Prototype.
1968 (hook_in_stub): Prototype.
1969 (LDEMUL_SET_OUTPUT_ARCH): Define.
1970 (LDEMUL_FINISH): Define.
1971 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1972
1973 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1974 (EXTRA_EM_FILE): New.
1975 * emulparams/armelf_linux.sh: Likewise.
1976 * emulparams/armelf_linux26.sh: Likewise.
1977 * emulparams/hppalinux.sh: Likewise.
1978 * emulparams/hppaelf.sh: Likewise.
1979 (NOP): Define.
1980
1981 * emultempl/elf32.em: Fix formatting.
1982 (EXTRA_EM_FILE): Source it.
1983 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1984 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1985 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1986 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1987 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1988 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1989 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1990 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1991 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1992 allow functions in this file to be overridden.
1993 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1994
1995 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1996
04925e1e
AM
1997 * emultempl/elf32.em: Reorganize file.
1998
88cdf297
NC
19992000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2000
2001 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2002 specific option to fit 64-bit executable in the lower
2003 31-bit address range. This is done by changing start
2004 address of .interp (the very first section of executable)
2005 and then setting EF_ALPHA_32BIT elf header flag.
2006
20bccb34
NC
20072000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2008
2009 * emultempl/m68kcoff.em: New file.
2010 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2011 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2012 generic.em.
2013 * Makefile.in: Regenerate.
2014
699845ef
L
20152000-07-20 H.J. Lu <hjl@gnu.org>
2016
2017 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2018 and "disable-new-dtags" to stop getopt from treating -d/-e as
2019 abbreviations for these options.
2020
6c1439be
L
20212000-07-20 H.J. Lu <hjl@gnu.org>
2022
2023 * ld.texinfo: Add documentation for --disable-new-dtags and
2024 --enable-new-dtags.
2025
2026 * ldmain.c (main): Initialize link_info.new_dtags to false.
2027
2028 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2029 --disable-new-dtags and --enable-new-dtags.
2030 (gld_${EMULATION_NAME}_list_options): Likewise.
2031
28c309a2
NC
20322000-07-05 Kenneth Block <krblock@computer.org>
2033
a2b64bed
NC
2034 * lexsup.c: Add optional style to demangle switch
2035 * ld.texinfo: Document optional style to demangle switch.
50bbae35 2036
9d06555c
HPN
20372000-07-20 Hans-Peter Nilsson <hp@axis.com>
2038
2039 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2040 ecrislinux.o.
2041 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2042 Regenerate dependencies.
2043 * Makefile.in: Rebuild.
2044 * configure.tgt (cris-*-*): New target.
2045 * emulparams/crisaout.sh, emulparams/criself.sh,
2046 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2047 * po/POTFILES.in, po/ld.pot: Regenerate.
2048
19e3be22
L
20492000-07-20 H.J. Lu <hjl@gnu.org>
2050
2051 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2052 Print out ignored -z options.
2053
e0ee487b
L
20542000-07-19 H.J. Lu <hjl@gnu.org>
2055
19e3be22
L
2056 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2057 (PARSE_AND_LIST_PROLOGUE): New.
2058 (PARSE_AND_LIST_LONGOPTS): Likewise.
2059 (PARSE_AND_LIST_OPTIONS): Likewise.
2060 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2061
2062 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2063
2064 * lexsup.c (ld_options): Comment out 'z'.
2065 (parse_args): Likewise.
2066
2067 * emultempl/elf32.em: Include "elf/common.h".
2068 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2069 options.
2070 (gld_${EMULATION_NAME}_list_options): Likewise.
2071
2072 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 2073
49e56c49
L
20742000-07-19 H.J. Lu <hjl@gnu.org>
2075
2076 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2077 bfd_elf_set_dt_needed_soname ().
2078
9d68bc82
DD
20792000-07-18 DJ Delorie <dj@cygnus.com>
2080
2081 * pe-dll.c (pe_dll_id_target): check object target name also
2082
53db15ed
HPN
20832000-07-18 Hans-Peter Nilsson <hp@axis.com>
2084
2085 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2086 ${INIT_END} if relocating.
2087 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2088
0ad8cf4c
DD
20892000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2090
a2b64bed 2091 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
2092 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2093 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2094 errors introduced by the old dynamic lib search order.
2095
874c8c99
DD
20962000-07-17 DJ Delorie <dj@cygnus.com>
2097
2098 * pe-dll.c (process_def_file): auto-export data items also
2099 (pe_process_import_defs): also see if _imp_ form needed
2100
5b4cf3f4
DD
21012000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2102
2103 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2104 for dll import libraries
2105
062739d1
NC
21062000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2107
2108 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 2109 gcc 2.95.2 and later.
062739d1 2110
1c64c4ed
NC
21112000-07-11 Kazu Hirata <kazu@hxi.com>
2112
50bbae35
AM
2113 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2114 message.
1c64c4ed 2115
b71e2778
AM
21162000-07-10 Alan Modra <alan@linuxcare.com.au>
2117
2118 * ldemul.h (struct lang_input_statement_struct): Remove forward
2119 declaration.
2120 (struct search_dirs): Likewise.
2121 * ldfile.h (struct lang_input_statement_struct): Likewise.
2122 Protect file from multiple inclusion.
2123 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2124 declaration from macro to file scope.
2125
2126 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2127 * ldgram.y: Likewise here.
2128 * ldlang.c: And here.
2129 * ldmain.c: And here.
2130 * mpw-elfmips.c: And here.
2131 * mpw-eppcmac.c: And here.
2132 * emultempl/aix.em: And here.
2133 * emultempl/armcoff.em: And here.
2134 * emultempl/armelf.em: And here.
2135 * emultempl/armelf_oabi.em: And here.
2136 * emultempl/beos.em: And here.
2137 * emultempl/elf32.em: And here.
2138 * emultempl/hppaelf.em: And here.
2139 * emultempl/linux.em: And here.
2140 * emultempl/lnk960.em: And here.
2141 * emultempl/pe.em: And here.
2142 * emultempl/sunos.em: And here.
2143 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2144 * mpw-idtmips.c: Ditto.
2145 * emultempl/generic.em: Ditto.
2146 * emultempl/gld960.em: Ditto.
2147 * emultempl/gld960c.em: Ditto.
2148 * emultempl/mipsecoff.em: Ditto.
2149 * emultempl/ticoff.em: Ditto.
2150 * emultempl/vanilla.em: Ditto.
2151
2152 * pe-dll.c: Include ldfile.h
2153 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2154
2155 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2156 arguments to bfd_elf32_size_dynamic_sections call.
2157 (gldelf32ebmip_place_orphan): Add missing arguments to
2158 lang_leave_output_section_statement call.
2159
2ef53d66
L
21602000-07-10 H.J. Lu <hjl@gnu.org>
2161
2162 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2163 DLL_SUPPORT.
2164 (strhash): Likewise.
2165 (compute_dll_image_base): Likewise.
2166 (pe_undef_found_sym): Likewise.
2167 (pe_undef_cdecl_match): Likewise.
2168 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2169 argument "arch" with ATTRIBUTE_UNUSED.
2170
9a8cbb09
AM
21712000-07-10 Alan Modra <alan@linuxcare.com.au>
2172
2173 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2174
2175 From Ryan Bradetich <rbradetich@uswest.net>
2176 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 2177
4900fc06
AM
21782000-07-09 Alan Modra <alan@linuxcare.com.au>
2179
2180 Changes to create multiple linker stubs, positioned immediately
2181 before the section where they are required.
2182 * emultempl/hppaelf.em: Include elf32-hppa.h.
2183 (stub_sec, file_chain): Delete.
2184 (hppaelf_create_output_section_statements): Don't make a stub
2185 section here.
2186 (hook_stub_info): New struct.
2187 (hook_in_stub): New function.
2188 (hppaelf_add_stub_section): New function.
2189 (hppaelf_finish): Do nothing for relocateable links. Modify the
2190 call to elf32_hppa_size_stubs. Move code for updating section
2191 layout from here...
2192 (hppaelf_layaout_sections_again): ..to here, a new function.
2193
2194 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2195 broken list handling. Pass in a pointer to the list.
2196 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2197 for above changes.
2198 (hppaelf_before_parse): Prototype.
2199 (hppaelf_set_output_arch): Prototype.
2200 (hppaelf_create_output_section_statements): Prototype.
2201 (hppaelf_delete_padding_statements): Prototype.
2202 (hppaelf_finish): Prototype.
2203
2204 Merge from elf32.em
2205 * emultempl/hppaelf.em: Include ctype.h.
2206 (struct orphan_save): New.
2207 (gld${EMULATION_NAME}_place_orphan): New.
2208 (output_rel_find): New.
2209 (hppaelf_get_script): Update from elf32.em.
2210 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2211 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 2212 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
2213
2214 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2215 ehppalinux.o, sort it. Regenerate dependencies.
2216 (ehppalinux.c): Depend on hppaelf.em
2217 * Makefile.in: Regenerate.
2218
2219 * configure.tgt: targ_emul=hppalinux for hppa*linux
2220
2221 * emulparams/hppalinux.sh: New.
2222 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2223
227aeb07
AM
22242000-07-08 Alan Modra <alan@linuxcare.com.au>
2225
2226 * lexsup.c (parse_args): Copy section name.
2227
28609fd4 22282000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 2229
2ef53d66 2230 * emultempl/pe.em: institute the following search order for
602e90d3
DD
2231 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2232 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2233 static lib (libfoo.a) if none of the above are found.
2234
5f577f7d
DD
22352000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2236
50bbae35 2237 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 2238 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 2239 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
2240 (gld_${EMULATION_NAME}_parse): Handle.
2241 (strhash): New static function.
50bbae35 2242 (compute_dll_image_base): New static function.
5f577f7d
DD
2243 (gld_${EMULATION_NAME}_set_symbols): Use.
2244
9a8cbb09 22452000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
2246
2247 * MAINTAINERS: new
2248
3548145d 22492000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
2250
2251 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2252 * emulparams/elf32btsmip.sh: New file.
2253 * Makefile.am: Add traditional mips target.
2254 * Makefile.in: Rebuild.
2255
67798033
L
22562000-07-01 H.J. Lu <hjl@gnu.org>
2257
2258 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2259 automake to use YLWRAP.
2260 * Makefile.in: Rebuild.
2261
0bdaf48b
AM
22622000-07-01 Alan Modra <alan@linuxcare.com.au>
2263
2264 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2265 (CLEANFILES): Add DEPA.
2266 * Makefile.in: Regenerate.
2267
c9e769c2
TW
22682000-06-30 Timothy Wall <twall@ppc>
2269
2270 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2271 the page in the upper octet of the address.
2272
65aa24b6
NC
22732000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2274
2275 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2276
4667035e
AM
22772000-06-24 Alan Modra <alan@linuxcare.com.au>
2278
2279 * NEWS: arm-elf does --gc-sections too.
2280
1581f8c9
AM
22812000-06-22 Alan Modra <alan@linuxcare.com.au>
2282
2283 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2284 find one.
2285 * Makefile.in: Regenerate.
2286
01580992
L
22872000-06-21 H.J. Lu <hjl@gnu.org>
2288
2289 * Makefile.am: Rebuild dependency.
2290 * Makefile.in: Rebuild.
2291
bbeb2e03
L
22922000-06-20 H.J. Lu <hjl@gnu.org>
2293
2294 * Makefile.am: Rebuild dependency.
2295 * Makefile.in: Rebuild.
2296
74459f0e
TW
22972000-06-20 Timothy Wall <twall@cygnus.com>
2298
2299 * scripttempl/tic54xcoff.sc: New.
2300 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2301 * gen-doc.texi: Add flag for TI COFF.
2302 * ld.texinfo: Add documentation for TI COFF handling switches.
2303 * emultempl/ticoff.em: New. TI COFF handling.
2304 * configure.tgt: Add tic54x target.
2305 * Makefile.am: Add tic54x target.
2306 * Makefile.in: Ditto.
2307
2ab47eed
AM
23082000-06-20 Alan Modra <alan@linuxcare.com.au>
2309
2310 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2311 checking for backslashes.
2312
919e4093
AM
23132000-06-19 Alan Modra <alan@linuxcare.com.au>
2314
2315 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2316
987fd5b4
AM
23172000-06-18 Alan Modra <alan@linuxcare.com.au>
2318
2319 * NEWS: Update list of targets supporting --gc-sections.
2320
2321 * scripttempl/elf.sc: KEEP .eh_frame contents.
2322 * scripttempl/elfd30v.sc: Same here.
2323
60bcf0fa
NC
23242000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2325
2326 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2327 and m68hc11 (elf).
2328 * Makefile.in: Rebuild.
2329 * configure.tgt: Recognize m68hc12 and m68hc11.
2330 * scripttempl/elfm68hc12.sc: New file.
2331 * emulparams/m68hc12elfb: New emulation.
2332 * emulparams/m68hc12elf: New emulation.
2333 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2334 (includes a memory.x script to define the ROM and RAM banks).
2335 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2336 New configuration files for support of Motorola 68hc11
2337
c7c54483
AM
23382000-06-15 Alan Modra <alan@linuxcare.com.au>
2339
2340 * ldmain.c (main): Only change SEC_READONLY for final link.
2341
bcef29e6
L
23422000-06-13 H.J. Lu <hjl@gnu.org>
2343
2344 * configure: Regenerate.
2345
946efd95
DB
23462000-06-08 David O'Brien <obrien@FreeBSD.org>
2347
2348 * configure.in (VERSION): Update to show this is the CVS mainline.
2349
57a6fd07
DB
23502000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2351
2352 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2353 input objects to be ECOFF.
2354 (check_sections): einfo takes %B, not %P, to print a BFD name.
2355
e06cae36
L
23562000-06-05 Michael Matz <matz@ifh.de>
2357
2358 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 2359 version scripts.
e06cae36 2360
d952f17a 2361 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 2362
2f0b56c0
DC
23632000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2364
2365 * emulparams/avr1200.sh (STACK): Define as 0.
2366 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2367 * emulparams/avr4433.sh (STACK): Likewise.
2368 * emulparams/avr44x4.sh (STACK): Likewise.
2369 * emulparams/avr85xx.sh (STACK): Likewise.
2370 * emulparams/avrmega103.sh (STACK): Likewise.
2371 * emulparams/avrmega161.sh (STACK): Likewise.
2372 * emulparams/avrmega603.sh (STACK): Likewise.
2373 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2374 (__stack): Define from ${STACK} for main().
2375
2114f57b
AM
23762000-05-26 Alan Modra <alan@linuxcare.com.au>
2377
2378 * Makefile.am: Update dependencies with "make dep-am"
2379 * Makefile.in: Regenerate.
2380
5af11cab
AM
23812000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2382
2383 * ldmain.c: Include filenames.h.
2384 (set_scripts_dir): Support backslashes in program name.
2385
1f0df59a
NC
23862000-05-22 Igor Shevlyakov <igor@windriver.com>
2387
2388 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
2389 read-only, don't forget to reset SEC_READONLY because it
2390 could be already set.
1f0df59a 2391
176355da
NC
23922000-05-22 Thomas de Lellis <tdel@windriver.com>
2393
50bbae35
AM
2394 * ld.1: Add documentation for new command line option:
2395 --section-start <sectionname>=<sectionorg>
2396 This is a generic version of -Ttext etc. which accepts
2397 any section name as a parameter instead of just text/data/
2398 bss.
2399 * ld.texinfo: More docs.
2400 * NEWS: More docs.
2401 * lexsup.c: (parse_args): Recognize new command line option.
176355da 2402 (ld_options): Add new option.
50bbae35 2403
8c5ff972
L
24042000-05-18 H.J. Lu <hjl@gnu.org>
2405
2406 * lexsup.c (parse_args): `i' == `r', not `q'.
2407
0b76fe77
JL
2408Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2409
2410 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2411
a712da20
NC
24122000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2413 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 2414
a712da20
NC
2415 Add support for '-q' == '--emit-relocs' switch.
2416 * ldmain.c (main): Default to false.
2417 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2418 * NEWS: Describe the emitrelocations switch.
2419 * ld.texinfo: Describe the emitrelocations switch.
2420
690a460e
NC
24212000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2422
a2b64bed 2423 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
2424 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2425 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2426 link options.
50bbae35 2427
c2f1343c
AM
24282000-05-15 David O'Brien <obrien@FreeBSD.org>
2429
2430 * lexsup.c (parse_args): Update the year in the copyright notice.
2431
897083bd
AM
24322000-05-13 Alan Modra <alan@linuxcare.com.au>
2433
2434 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2435 Replace defines with those from intl/libgettext.h to quieten gcc
2436 warnings.
2437
cd4c806a
L
24382000-05-10 H.J. Lu <hjl@gnu.org>
2439
2440 * ldlang.c (open_input_bfds): Don't load the same file within
2441 a group again if the whole archive has been loaded already.
2442
93697284
AM
24432000-05-03 Alan Modra <alan@linuxcare.com.au>
2444
2445 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2446 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2447 strtoul.
2448
ebd6fc29
JW
2449Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2450
99a4150f 2451 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 2452
ebd6fc29
JW
2453 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2454 host "ia64-*-linux-gnu*".
2455
a1934524
AM
24562000-04-29 Andreas Jaeger <aj@suse.de>
2457
2458 * ld.h: Correctly check GCC version.
2459
730a39a0
JL
2460Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2461
2462 * Makefile.am: Add PA64 support. Add missing dependencies for
2463 PA32 elf support.
2464 * Makefile.in: Rebuilt.
2465 * configure.tgt: Add PA64 support (currently disabled).
2466
aea4bd9d
AM
24672000-04-25 Alan Modra <alan@linuxcare.com.au>
2468
2469 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2470 (output_rel_find): New function.
2471 (hold_section, hold_use): Delete.
2472 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2473 hold_interp): Make local to place_orphan.
2474 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2475 rather than place_section to find possible previous use of orphan.
2476 Similarly find the place-holder output sections. Use returned
2477 value from lang_enter_output_section_statement rather than calling
2478 lang_output_section_statement_lookup.
2479 * emultempl/armelf.em: Same here.
2480 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2481
2482 * ldlang.c (lang_enter_output_section_statement): Return output
2483 section statement.
2484 * ldlang.h (lang_enter_output_section_statement): Change
2485 declaration too.
2486
2487 * ldlang.h (lang_output_section_statement): Export it.
2488 * ldlang.c (lang_output_section_statement): Ditto.
2489
2b5fc1f5
NC
24902000-04-24 Nick Clifton <nickc@cygnus.com>
2491
2492 * ld.texinfo (Output Section Data): Add note that section data
2493 commands cannot appear outside of section directives.
2494
d8475ff6
JL
24952000-04-2 Matthew Green <mrg@cygnus.com>
2496
2497 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2498
800eeca4
JW
2499Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2500 David Mosberger <davidm@hpl.hp.com>
2501
2502 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2503 (eelf64_ia64.c): New rule.
2504 * Makefile.in: Rebuild.
2505 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2506 * emulparams/elf64_ia64.sh: New file.
50bbae35 2507
c9637625
RH
25082000-04-21 Richard Henderson <rth@cygnus.com>
2509
2510 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2511
28ea9521
AM
25122000-04-19 Alan Modra <alan@linuxcare.com.au>
2513
2514 * dep-in.sed: Match space at start of file name, not at end.
2515
20d04697
L
25162000-04-18 H.J. Lu <hjl@gnu.org>
2517
2518 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2519 lang_leave_output_section_statement () after calling
2520 lang_enter_output_section_statement ().
2521 * emultempl/armelf.em: Likewise.
2522
5ba47421
AM
25232000-04-18 Alan Modra <alan@linuxcare.com.au>
2524
2525 * emultempl/elf32.em (struct orphan_save): Add section field.
2526 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2527 better order, and place first orphan section as we did before the
2528 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2529 Don't call make_bfd_section here, let wild_doit do the job for us.
2530 Don't build a statement list when we'll only throw it away.
2531 * emultempl/armelf.em: Ditto.
2532 * emultempl/pe.em: Similarly.
2533
bdbe5705
GK
25342000-04-14 Geoff Keating <geoffk@cygnus.com>
2535
2536 * scripttempl/elfppc.sc: Remove.
2537 * emulparams/elf32ppc.sh: Use elf.sc.
2538 * emulparams/elf32lppc.sh: Use elf.sc.
2539 * emulparams/elf32ppclinux.sh: Use elf.sc.
2540 * emulparams/elf32ppcsim.sh: New file.
2541 * emulparams/elf32lppcsim.sh: New file.
2542 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2543 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2544 * Makefile.in: Regenerate.
2545 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2546
01cc8ff8
AM
25472000-04-14 Alan Modra <alan@linuxcare.com.au>
2548
5ba47421 2549 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 2550 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
2551 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2552 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
2553 Also set all relocateable section start addresses.
2554
6c86c541
GK
25552000-04-13 Geoff Keating <geoffk@cygnus.com>
2556
2557 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2558 Add new BSS_PLT variable for when .plt need not be contained in
2559 the file. Move _etext so that it is also after .fini, and provide
2560 both etext and _etext with a leading underscore. Mark the start
2561 and end of .sbss.
2562
6a345e87
AM
25632000-04-12 Alan Modra <alan@linuxcare.com.au>
2564
2565 * emultempl/elf32.em (struct orphan_save): New.
2566 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2567 hold_interp): Make them struct orphan_save.
2568 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2569 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2570 the end of the relevant section list. Also add associated section
2571 statements to the end of any previous orphan statements.
2572 * emultempl/armelf.em: Similarly.
2573 * emultempl/pe.em: Similarly.
2574
8be86746
AM
25752000-04-11 Alan Modra <alan@linuxcare.com.au>
2576
2577 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2578
a2d91340 2579Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 2580
a2d91340 2581 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 2582 --enable-build-warnings option.
a2d91340
AC
2583 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2584 * Makefile.in, configure: Re-generate.
2585
41b49281
AM
25862000-04-04 Alan Modra <alan@linuxcare.com.au>
2587
8ad3436c
AM
2588 * po/ld.pot: Regenerate.
2589
2590 * lexsup.c (help): Restore translated part of bug string.
2591
41b49281
AM
2592 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2593 (DEP): Quote when passing vars to sub-make. Add warning message
2594 to end.
2595 (DEP1): Rewrite for "gcc -MM".
2596 (CLEANFILES): Add DEP2.
2597 Update dependencies.
2598 * Makefile.in: Regenerate.
2599
c20f4f8c
AM
26002000-04-03 Alan Modra <alan@linuxcare.com.au>
2601
2602 * ld.h: #include "bin-bugs.h"
2603 * lexsup.c (help): Use REPORT_BUGS_TO.
2604
adde6300
AM
26052000-03-27 Denis Chertykov <denisc@overta.ru>
2606
2607 * configure.tgt (avr-*-*): New target support.
2608 * Makefile.am: Likewise.
2609 * scripttempl/elf32avr.sc: New script file.
2610 * emulparams/avr1200.sh: New file.
2611 * emulparams/avr23xx.sh: New file.
2612 * emulparams/avr4433.sh New file.
2613 * emulparams/avr44x4.sh New file.
2614 * emulparams/avr85xx.sh New file.
2615 * emulparams/avrmega103.sh New file.
2616 * emulparams/avrmega161.sh New file.
2617 * emulparams/avrmega603.sh New file.
2618 * Makefile.in: Regenerate.
2619
9282ff41
L
26202000-03-09 Andreas Jaeger <aj@suse.de>
2621
2622 * Makefile.am (check-DEJAGNU): Also unset LANG.
2623 * Makefile.in: Rebuild.
2624
a9998805
ILT
26252000-03-06 Ian Lance Taylor <ian@zembu.com>
2626
2627 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2628 archive.
2629
f9bc20e7
NC
26302000-03-02 H.J. Lu <hjl@gnu.org>
2631
2632 * emulparams/elf32mcore.sh: Include "getopt.h".
2633
4e277b38
ILT
26342000-03-01 Ian Lance Taylor <ian@zembu.com>
2635
2636 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2637
f0c87f88
NC
26382000-03-01 H.J. Lu <hjl@gnu.org>
2639
2640 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2641 * emulparams/shpe.sh: Likewise.
2642
26432000-03-01 Nick Clifton <nickc@cygnus.com>
2644
2645 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2646 to unused parameters.
2647
2648 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2649 functions only used by DLL code.
2650 (_place_orphan): Initialise 'dollar'.
2651
b6f29aaa
L
26522000-03-01 H.J. Lu <hjl@gnu.org>
2653
2654 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2655 indicate if the undefined symbol is a fatal error or not.
2656 Don't delete the output file if "fatal" is false.
2657
af28fce3
L
26582000-02-29 H.J. Lu <hjl@gnu.org>
2659
50bbae35 2660 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
2661 Set LC_COLLATE and LC_ALL to null and export them. It is for
2662 sort which expects the C locale.
2663 Add $(LIBS) to all $(HOSTING_LIBS).
2664 * Makefile.in: Rebuild.
2665
40d109bf
AM
26662000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
2667
2668 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2669 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2670 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2671 (ld_emulation_xfer_struct): Add missing NULL initialiser for
2672 find_potential_libraries.
2673
db5be682
JB
26742000-02-28 Jim Blandy <jimb@redhat.com>
2675
2676 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 2677 list entries; the lexer considers commas to be valid part of a
db5be682
JB
2678 filename, so in something like `foo, bar' the comma is considered
2679 part of the first filename, `foo,'.
2680 * ld.texinfo: Update section on EXCLUDE_FILE lists.
2681
3558ff4c
ILT
26822000-02-27 Loren J. Rittle <ljrittle@acm.org>
2683
2684 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2685 host "i[3456]86-*-freebsdelf*".
2686
4eee2681
ILT
26872000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
2688
2689 * scripttempl/i386go32.sc: Move misplaced semicolons.
2690
8d75d12d
ILT
26912000-02-25 Ian Lance Taylor <ian@zembu.com>
2692
2693 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2694 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2695 (eelf64hppa.c, ehppaelf.c): Remove targets.
2696 * Makefile.in: Rebuild.
2697
a1836d49
AO
26982000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2699
ad51fb57
AO
2700 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2701 GNU/Linux/sparc, but keep the default as 32.
2702
a1836d49
AO
2703 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2704 it default if sparcv9 or sparc64.
2705
344a211f
NC
27062000-02-24 Nick Clifton <nickc@cygnus.com>
2707
2708 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2709 * Makefile.in: Regenerate.
2710 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2711
2712 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2713 find_potential_libraries.
2714 * ldemul.c (ldemul_find_potential_libraries): New function.
2715
2716 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 2717 exported.
344a211f
NC
2718 (ldfile_open_file): Call ldemul_find_potential_libraries.
2719 * ldfile.h: Add prototype for ldfile_open_file_search.
2720
2721 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2722
2723 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2724 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2725
2726 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2727 (gld_X_find_potential_libraries): New function. Search for
2728 libraries called "*.lib".
2729
a2b64bed 2730 * scripttempl/pe.sc: Add .pdata section.
344a211f 2731
eaba1dd3
RH
27322000-02-23 Richard Henderson <rth@cygnus.com>
2733
2734 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2735 Add and use memory regions.
2736
5b93d8bb
AM
27372000-02-23 Linas Vepstas (linas@linas.org)
2738
2739 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2740
2741 * Makefile.am: Add support for Linux/IBM 370.
2742 * configure.tgt: Likewise.
2743
2744 * Makefile.in: Regenerate.
2745
f6af82bd
AM
27462000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2747
2748 * ldlang.c (print_input_section, print_data_statement,
2749 print_reloc_statement, print_padding_statement, insert_pad,
2750 size_input_section, lang_check_section_addresses,
2751 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 2752 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
2753 (lang_do_assignments): Also change `size' to unsigned.
2754
9e673ad1
RH
27552000-02-16 Richard Henderson <rth@cygnus.com>
2756
2757 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2758
562d3460
TW
27592000-02-16 Timothy Wall <twall@cygnus.com>
2760
2761 * mri.c (mri_draw_tree): Add default LMA region argument to call
2762 to lang_leave_output_section_statement.
2763 * ldlang.h: Update prototypes with LMA region arguments.
2764 * ldlang.c (lang_size_sections): Encapsulate region bounds
2765 checking in os_check_region call.
2766 (os_check_region): New function.
2767 (lang_output_section_statement_lookup): Initialize lma_region.
2768 (lang_leave_output_section_statement): Add LMA region argument.
2769 (lang_leave_overlay): Ditto.
2770 * ldgram.y: Handle LMA region syntax.
2771 * ld.texinfo (Output Section Description): Describe LMA region usage.
2772 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 2773 lma region in call to lang_leave_output_section_statement.
562d3460 2774 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 2775 lma region in call to lang_leave_output_section_statement.
562d3460 2776 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 2777 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
2778
2779
9e4ed18c
TW
27802000-02-04 Timothy Wall <twall@redhat.com>
2781
2782 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2783 octets when calculating section end addresses.
2784
32edc927
TW
27852000-02-04 Timothy Wall <twall@redhat.com>
2786
2787 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2788
4cbfc3ac
TW
27892000-02-03 Timothy Wall <twall@redhat.com>
2790
a2b64bed 2791 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 2792 octet count.
a2b64bed 2793 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
2794 print_reloc_statement, print_padding_statement): Print target
2795 address values and section sizes as bytes, not octets.
2796 (insert_pad) Calculate padding size in octets, and adjust "dot"
2797 by bytes.
2798 (size_input_section) Always adjust "dot" by bytes, not octets.
2799 (lang_check_section_addresses, lang_do_assignments) Adjust
2800 "dot" by bytes, not octets. Use the larger of the directive size
2801 or octets_per_byte for the number of octets actually allocated in
2802 the output section.
2803 (lang_set_startof) Make sure STARTOF returns a target address.
2804 (lang_one_common) Record size changes in octets.
2805 (lang_abs_symbol_at_end_of) Section end symbol's value is
2806 recorded in target bytes.
2807 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2808 to be clear about behavior when an octet is smaller than one byte.
50bbae35 2809
305c7206
AM
28102000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2811
2812 * ldcref.c (output_cref): Don't pass message strings to printf
2813 as format arg.
2814 Update copyright.
2815
2816 * ldmisc.c (vfinfo): Same here.
2817 Update copyright.
2818
e1c47aa4
AM
28192000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2820
2821 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2822 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2823 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2824 Add missing NULL initialisers, and comments.
2825
2826 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2827
13392b77
NC
28282000-01-21 Nick Clifton <nickc@cygnus.com>
2829
2830 * ldlang.c (lang_size_sections): Fix typo in comment.
2831
cce4c4c5
NC
28322000-01-18 H.J. Lu <hjl@gnu.org>
2833
2834 * ldlang.c (lang_size_sections): Also update the current
2835 address of a region if the SEC_NEVER_LOAD bit is not set.
2836
0decc840
NC
28372000-01-10 Philip Blundell <pb@futuretv.com>
2838
2839 * configure.tgt (arm*-*-conix*): New target.
2840
4e53152f
NC
28412000-01-07 Nick Clifton <nickc@cygnus.com>
2842
2843 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
2844 line switches with -Wl, (or whatever is appropriate) if it is
2845 being invoked by a comnpiler driver program.
50bbae35 2846 Fix description of the behaviour of the -n command line switch.
4e53152f 2847
18625d54
CM
2848Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2849
2850 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2851 (name_list): New.
2852 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2853 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2854 (exclude_name_list): New.
2855 ldlang.c (walk_wild_section): Support list of excluded files.
2856 (print_wild_statement): Likewise.
2857 (lang_add_wild): Likewise.
2858 * ldlang.h (lang_wild_statement_type): Likewise.
2859 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 2860
5aaace27
NC
28612000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2862
870df5dc
NC
2863 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2864 (process_def_file): Use.
2865 (pe_dll_compat_implib): New variable.
2866 (make_one): Use.
50bbae35 2867
870df5dc
NC
2868 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2869 pe_dll_compat_implib.
50bbae35
AM
2870
2871 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
2872 compat-implib options.
2873 (gld_${EMULATION_NAME}_list_options): List new options.
2874 (gld_${EMULATION_NAME}_parse_args): Handle.
2875
50bbae35 2876 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 2877 dll.
50bbae35
AM
2878
2879 * deffilep.y (opt_name): Allow "." in name.
5aaace27 2880
2f6d2f85 2881For older changes see ChangeLog-9899
252b5132
RH
2882\f
2883Local Variables:
2884mode: change-log
2885left-margin: 8
2886fill-column: 74
2887version-control: never
2888End:
This page took 0.260685 seconds and 4 git commands to generate.