* section.c (struct sec): Remove kept_section.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
862517b6
AM
12001-09-29 Alan Modra <amodra@bigpond.net.au>
2
3 * ldlang.c (section_already_linked): Remove assignment to kept_section.
4
d5e0ebeb
AM
52001-09-26 Alan Modra <amodra@bigpond.net.au>
6
7 * ldmisc.c (USE_STDARG): Remove.
8 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
9 (einfo): Likewise.
10 (minfo): Likewise.
11 (lfinfo): Likewise.
12
13 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
14 declarations. Update copyright.
15
2f8d8971
NC
162001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
17
85c77458
NC
18 * pe-dll.c: Remove obsoleted declaration of
19 pe_get_data_import_dll_name.
20 (pe_create_import_fixup): Fix thinko.
21
2f8d8971
NC
22 * ld.texinfo(enable-auto-import): Clarify the explanation.
23
242001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
25
26 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
27 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
28 DLL_SUPPORT controlled code.
29
72358f65
NC
302001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
31
32 * emultempl/pe.em(pe_data_import_dll): Make static.
33 (pe_get_data_import_dll_name): New accessor function.
34 * pe-dll.c(pe_create_import_fixup): call
35 pe_get_data_import_dll_name() from pe.em, instead of
36 directly accessing pe_data_import_dll variable from pe.em.
37
3882b010
L
382001-09-18 Bruno Haible <haible@clisp.cons.org>
39
40 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
41 (def_file_add_directive): Use ISSPACE instead of isspace.
42 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
43 isdigit/isxdigit/isalpha/isalnum.
44 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
45 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
46 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
47 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
48 isalnum.
49 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
50 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
51 isupper/tolower.
52 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
53 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
54 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
55 (ctor_prio): Use ISDIGIT instead of isdigit.
56 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
57 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
58 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
59 isupper/tolower.
60 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
61 (stricpy): Use TOLOWER instead of isupper/tolower.
62 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
63 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
64 (lex_warn_invalid): Use ISPRINT instead of isprint.
65 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
66 (main): For gettext, also set the LC_CTYPE locate facet.
67 (add_keepsyms_file): Use ISSPACE instead of isspace.
68 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
69 (is_num, parse_args): Use ISDIGIT instead of isdigit.
70 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
71 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
72 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
73 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
74 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
75 (quoteput): Use ISSPACE instead of isspace.
76 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
77 instead of isalnum.
78
db09f25b
AM
792001-09-18 Alan Modra <amodra@bigpond.net.au>
80
81 * deffilep.y (def_stash_module): Constify "name" param.
82
83 * pe-dll.c: Replace CONST with const throughout.
84 (quick_symbol): Constify "n1", "n2", "n3" params.
85 (make_singleton_name_thunk): Constify "import" param. Make
86 "buffer_len" a size_t.
87 (make_import_fixup_entry): Constify "name", "fixup_name",
88 "dll_symname" params.
89 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
90 (pe_get32): Likewise.
91 (pe_implied_import_dll): Likewise.
92
93 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
94 (sort_by_section_name): Likewise.
95
96 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
97 (make_import_fixup): Cast printf arg, rel->address to long rather
98 than int.
99 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
100
74699268
AM
1012001-09-15 Alan Modra <amodra@bigpond.net.au>
102
103 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
104 defines BufferSize. Increase buffer size by one.
105
775cabad
NC
1062001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
107
108 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
109
056a1d49
NC
1102001-09-14 Kevin Lo <kevlo@openbsd.org>
111
112 * configure.tgt: Add arm-openbsd target.
113
a7d792bb
L
1142001-09-12 H.J. Lu <hjl@gnu.org>
115
116 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
117 eelf64lppc.o to ...
118 (ALL_64_EMULATIONS): Here.
119 * Makefile.in: Regenerated.
120
0d888aac
CW
1212001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
122
123 * emultempl/pe.em(make_import_fixup): change signature to
124 take asection as well as arelec; we need this for proper
125 error reporting. Only call pe_create_import_fixup() if
126 there is no attempt to add a constant addend to the reloc;
127 otherwise, report error condition.
128 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
129 since final argument is a pointer to make_import_fixup().
130 Change call to cb() to match make_import_fixup() signature.
131 (make_import_fixup_mark): make buffer_len unsigned.
132 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
133
1342001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
135
136 * ld.texinfo: add verbose documentation for auto-import
137 direct-addressing workaround, to compliment the terse
138 error message.
139
cedacdc0
CM
1402001-09-12 Andrew MacLeod <amacleod@redhat.com>
141
142 * scripttempl/v850.sc: Add gcc_except_table sections.
143
38be0bb1
JL
144Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
145
146 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
147 * emulparams/h8300self.sh: Similarly.
148
559e4713
NC
1492001-09-05 Danny Smith <dannysmith@users.souceforge.net>
150
151 * ld.texinfo (Options, --stack): Correct default value for stack
152 reserve.
153
1fdf0249
TR
1542001-09-05 Tom Rix <trix@redhat.com>
155
156 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
157
9b5799b8
AJ
1582001-09-03 Andreas Jaeger <aj@suse.de>
159
160 * emultempl/beos.em: Declare prototypes for comparions functions,
161 adjust definitions.
162
48f6162b
AJ
1632001-09-02 Andreas Jaeger <aj@suse.de>
164
165 * emultempl/aix.em: Add missing prototype.
166 * emultempl/lnk960.em: Likewise.
167 * emultempl/vanilla.em: Likewise.
168 * emultempl/armcoff.em: Likewise.
169 * emultempl/armelf_oabi.em: Likewise.
170 * emultempl/beos.em: Likewise.
171 * emultempl/gld960c.em: Likewise.
172 * emultempl/gld960.em: Likewise.
173
174 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
175 for prototype declaration.
176
39e5585e
EC
1772001-08-31 Eric Christopher <echristo@redhat.com>
178 Jason Eckhardt <jle@redhat.com>
179
180 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
181
3fc90ddb
AJ
1822001-08-31 Andreas Jaeger <aj@suse.de>
183
184 * emultempl/pe.em: Add missing prototypes.
185 (gld_${EMULATION_NAME}_after_open): Remove extra args to
186 pe_find_data_imports.
187 (pr_sym): Add unused attribute.
188
d43ded80
PB
1892001-08-29 Joel Sherrill <joel@OARcorp.com>
190
39e5585e 191 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
192 default from coff to elf.
193
3946dd2f
JL
1942001-08-29 Jeff Law <law@redhat.com>
195
196 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
197 ARCH specification.
198 * emulparams/h8300self.sh: Similarly.
199
200Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
201
202 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
203 eh8300self.o .
204 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
205 * configure.tgt (h8300-*-elf*): New case.
206 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
207 * emulparams/h8300self.sh: New file.
208 * Makefile.in: Regenerated.
209
70d0c6e9
NC
2102001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
211
212 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
213 with macro name.
214
5c67d4bb
AM
2152001-08-27 Linus Nordberg <linus@swox.com>
216 Alan Modra <amodra@bigpond.net.au>
217
218 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
219 (eelf64ppc.c, eelf64lppc.c): Add make targets.
220 Run "make dep-am"
221 * Makefile.in: Regenerate.
222 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
223 entries to correct alphabetical position.
224 * emulparams/elf64ppc.sh: New.
225 * emulparams/elf64lppc.sh: New.
226
08131015
NC
2272001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
228
229 * ldmain.c (main): Declare BSIZE as static.
230
db6751f2
JJ
2312001-08-23 Jakub Jelinek <jakub@redhat.com>
232
233 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
234 into .rel.dyn resp. .rela.dyn if combreloc.
235 (get_script): If .x linker script is equal to .xn, only put it
236 once into the binary.
237 Add .xc and .xsc scripts.
238 (parse_args): Handle -z combreloc and -z nocombreloc.
239 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
240 For .xc and .xsc scripts put all .rel* or .rela* input sections
241 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
242 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
243 is elf.
244 Strip trailing whitespace from script.
245 Generate .xc and .xsc scripts if requested.
246 * ldmain.c (main): Initialize link_info.combreloc and
247 link_info.spare_dynamic_tags.
248 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
249 (ld_options): Add --spare-dynamic-tags option.
250 (parse_args): Likewise.
251 * ld.texinfo: Document -z combreloc and -z nocombreloc.
252 * ldint.texinfo: Document .xc and .xsc linker scripts.
253 * NEWS: Add notes about -z combreloc and SHF_MERGE.
254
63d069c0
L
2552001-08-22 H.J. Lu <hjl@gnu.org>
256
257 * emulparams/elf32fr30.sh: Add a newline.
258
948f9114
AJ
2592001-08-21 Andreas Jaeger <aj@suse.de>
260
261 * deffilep.y: Add missing prototypes.
262 * pe-dll.c: Likewise.
263
ae7fb08f
AM
2642001-08-20 Alan Modra <amodra@bigpond.net.au>
265
2af02257
AM
266 * ldlang.c (insert_pad): Fix typos in last patch.
267
268 * ldlang.c: When traversing lang_statement_union_type lists,
269 consistently use "header.next" rather than "next".
270 * mpw-eppcmac.c: Likewise.
271 * emultempl/beos.em: Likewise.
272 * emultempl/hppaelf.em: Likewise.
273 * emultempl/pe.em: Likewise.
274 * ldlang.h (union lang_statement_union): Remove "next" field.
275
c0c330a7
AM
276 * ldlang.c (insert_pad): Use offsetof macro.
277 (lang_size_sections): Always neuter padding statements.
278 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
279
ae7fb08f
AM
280 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
281 passed to lang_size_sections.
282 (pe_exe_fill_sections): Likewise.
283 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
284 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
285
fab80407
AM
2862001-08-18 Alan Modra <amodra@bigpond.net.au>
287
288 * emultempl/aix.em: Formatting fixes.
289
b3327aad
AM
2902001-08-18 Alan Modra <amodra@bigpond.net.au>
291
292 * ldlang.c (insert_pad): Make use of an existing pad statement if
293 available. Move code calculating alignment, adjusting section
294 alignment power, and adjusting dot to ..
295 (size_input_section): .. here. Remove unused relax param.
296 (lang_size_sections): Change boolean `relax' param to boolean *.
297 Adjust call to size_input_section. Make use of insert_pad to
298 place pad after the assignment statement. If relaxing, zap
299 padding statements.
300 (reset_memory_regions): Reset output_bfd section sizes too.
301 (relax_again): Move to..
302 (lang_process): ..here. Adjust call to lang_size_sections, and
303 remove duplicated code.
304 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
305
563e308f
AM
3062001-08-17 Alan Modra <amodra@bigpond.net.au>
307
308 * ld.texinfo: Document that fill values now use the four least
309 significant bytes.
310 * emulparams/elf32fr30.sh (NOP): Update.
311 * emulparams/elf32mcore.sh: Likewise.
312 * emulparams/elf64_s390.sh: Likewise.
313 * emulparams/elf_i386.sh: Likewise.
314 * emulparams/elf_i386_be.sh: Likewise.
315 * emulparams/elf_i386_chaos.sh: Likewise.
316 * emulparams/elf_i386_ldso.sh: Likewise.
317 * emulparams/elf_s390.sh: Likewise.
318 * emulparams/elf_x86_64.sh: Likewise.
319 * emulparams/i386moss.sh: Likewise.
320 * emulparams/i386nw.sh: Likewise.
321 * emulparams/m68kelf.sh: Likewise.
322 * scripttempl/elf.sc: Update NOP comment.
323 * scripttempl/elfi370.sc: Likewise.
324 * scripttempl/elfm68hc11.sc: Likewise.
325 * scripttempl/elfm68hc12.sc: Likewise.
326 * scripttempl/nw.sc: Likewise.
327
b90e1c6f
TR
3282001-08-15 Tom Rix <trix@redhat.com>
329
330 * ldgram.y (saved_script_handle): Initialize to NULL.
331 * ldmain.c (main): Change check on saved_script_handle.
948f9114 332
39dcfe18
AM
3332001-08-14 Alan Modra <amodra@bigpond.net.au>
334
cde43e70
AM
335 * emultempl/elf32.em: Formatting fixes.
336 (output_prev_sec_find): Test for bfd_ind_section too; do so by
337 looking at sec->owner.
338 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
339 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
340 unused code, and reorganize orphan section placement code.
341
39dcfe18
AM
342 * ldlang.c (wild_doit): Rename to lang_add_section.
343 * ldlang.h: Here too.
344 * mpw-elfmips.c: And here.
345 * emultempl/beos.em: And here.
346 * emultempl/elf32.em: And here.
347 * emultempl/hppaelf.em: And here.
348 * emultempl/pe.em: And here.
349
908d20b3
RH
3502001-08-13 Richard Henderson <rth@redhat.com>
351
352 * emultempl/needrelax.em: New file.
353 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
354 * Makefile.am (eelf64_ia64.c): Depend on it.
355 * Makefile.in: Rebuild.
356
0f33d40b
AM
3572001-08-13 Alan Modra <amodra@bigpond.net.au>
358
22af9fd3
AM
359 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
360 output_section is set non-NULL.
361
0f33d40b
AM
362 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
363 `true' for SEC_EXCLUDE sections so that the generic code doesn't
364 needlessly create an output_section_statement. Treat a correctly
365 named output_section_statement with NULL bfd_section as compatible.
366
55ab6103
HPN
3672001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
368
369 * emultempl/generic.em: Support EXTRA_EM_FILE.
370 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
371 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
372 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
373 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
374 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
375 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
376 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
377 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
378 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
379 LDEMUL_FIND_POTENTIAL_LIBRARIES.
380
24098abb
RH
3812001-08-12 Richard Henderson <rth@redhat.com>
382
383 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
384 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
385 scripttempl/v850.sc: Keep .jcr data.
386
b9a8de1e
NC
3872001-08-12 H.J. Lu <hjl@gnu.org>
388 Andrew Haley <aph@cambridge.redhat.com>
389 Nick Clifton <nickc@redhat.com>
390
391 * ldgram.y (had_script): Change name to saved_script_handle.
392 Change type to file handle.
393 * ld.h (had_script): Rename and retype.
394 * ldfile.c (ldfile_open_command_file): Save the file handle
395 used in saved_script_handle.
396 * lexsup.c (parse_args): Do not allow -c option to alter
397 saved_script_handle.
398 * ldmain.c (main): Print out the linker script used if
399 --verbose is given. Check saved_script_handle to obtain the
400 external linker script used, or if NULL, dump the builtin
401 script.
402 * ld.texinfo: Document that --verbose now dumps the linker
403 script used, regardless of whether it was an internal or an
404 external script.
405
0218d1e4
AJ
4062001-08-10 Andreas Jaeger <aj@suse.de>
407
408 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
409 to build warnings.
410 * configure: Regenerate.
411
5253f23b
AM
4122001-08-09 Alan Modra <amodra@bigpond.net.au>
413
73810896
AM
414 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
415
5253f23b
AM
416 * scripttempl/elf.sc: Move non-text .dynamic section before
417 .plt/.got/.sdata* group.
418 (OTHER_GOT_SECTIONS): Move to immediately after .got.
419 (OTHER_SDATA_SECTIONS): Add.
420 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
421 OTHER_GOT_SECTIONS.
422 * emulparams/crislinux.sh: Likewise.
423 * emulparams/elf32b4300.sh: Likewise.
424 * emulparams/elf32bmip.sh: Likewise.
425 * emulparams/elf32bmipn32.sh: Likewise.
426 * emulparams/elf32bsmip.sh: Likewise.
427 * emulparams/elf32btsmip.sh: Likewise.
428 * emulparams/elf32ebmip.sh: Likewise.
429 * emulparams/elf32elmip.sh: Likewise.
430 * emulparams/elf32l4300.sh: Likewise.
431 * emulparams/elf32lmip.sh: Likewise.
432 * emulparams/elf32lsmip.sh: Likewise.
433 * emulparams/elf32ltsmip.sh: Likewise.
434 * emulparams/elf64bmip.sh: Likewise.
435 * emulparams/elf64btsmip.sh: Likewise.
436 * emulparams/elf64ltsmip.sh: Likewise.
437
179c732c
AM
4382001-08-08 Alan Modra <amodra@bigpond.net.au>
439
440 * genscripts.sh: Source the emulparams script before each output
441 script is generated so that variables like `RELOCATING' may affect
442 variables defined in the emulparams script.
443
3fd36710
AM
4442001-08-04 Alan Modra <amodra@bigpond.net.au>
445
20713691
AM
446 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
447 order.
448
3fd36710
AM
449 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
450 ie. iterate over wild_statement.section_list.
451 (gld${EMULATION_NAME}_place_orphan): Likewise.
452
de0b1853
SC
4532001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
454
455 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
456 .fini[0-4] sections used by _exit
457 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
458 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
459 * scripttempl/elfm68hc11.sc: Likewise.
460
ff7e6f88
L
4612001-08-03 H.J. Lu <hjl@gnu.org>
462
463 * emultempl/beos.em (init): Add the missing initialization.
464
b6bf44ba
AM
4652001-08-03 Alan Modra <amodra@bigpond.net.au>
466
467 * ld.texinfo (Input Section Basics): Clarify ordering of output
468 sections.
469 * ldlang.c (callback_t): Add wildcard_list param.
470 (walk_wild_section): Remove "section" param. Rewrite for
471 lang_wild_statement_type change. Remove unique_section_p test.
472 (walk_wild_file): Remove "section" param.
473 (walk_wild): Remove "section" and "file" params.
474 (lang_gc_wild): Likewise.
475 (wild): Likewise. Modify for lang_wild_statement_type change.
476 (wild_sort): Likewise. Add "sec" param.
477 (gc_section_callback): Likewise.
478 (output_section_callback): Likewise. Do unique_section_p test.
479 (map_input_to_output_sections): Modify call to wild.
480 (lang_gc_sections_1): Likewise.
481 (print_wild_statement): Modify for lang_wild_statement_type
482 change.
483 (lang_add_wild): Replace filename, filenames_sorted param with
484 filespec. Replace section_name, sections_sorted,
485 exclude_filename_list with section_list.
486 * ldlang.h (lang_add_wild): Here too.
487 (lang_wild_statement_type): Replace section_name, sections_sorted,
488 and exclude_filename_list with section_list.
489 * ldgram.y (current_file): Delete.
490 (%union): Add wildcard_list.
491 (file_NAME_list): Set type to wildcard_list. Build a linked list
492 rather than calling lang_add_wild for each entry.
493 (input_section_spec_no_keep): Call lang_add_wild here instead.
494 * ld.h (struct wildcard_list): Declare.
495 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
496
b044cda1
CW
4972001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
498
499 * ldmain.c (main): initialize link_info.pei386_auto_import
500 * pe-dll.c: new tables for auto-export filtering
501 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 502 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
503 "by hand".
504
5052001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
506
b6bf44ba
AM
507 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
508 static variable current_sec (static struct sec *). Add
b044cda1 509 forward declaration for add_bfd_to_link.
b6bf44ba
AM
510 (process_def_file): Don't export undefined symbols. Do not
511 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
512 with new API.
513 (pe_walk_relocs_of_symbol): New function.
514 (generate_reloc): add optional extra debugging
b6bf44ba 515 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 516 line in output
b6bf44ba 517 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
518 (DATA auto-import support).
519 (make_singleton_name_thunk): New function.
520 (make_import_fixup_mark): New function.
521 (make_import_fixup_entry): New function.
522 (pe_create_import_fixup): New function.
b6bf44ba 523 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 524 char *.
b6bf44ba
AM
525 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
526 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
527 pe_create_import_fixup.
528 * emultempl/pe.em: add new options --enable-auto-import,
529 --disable-auto-import, and --enable-extra-pe-debug.
530 (make_import_fixup): New function.
531 (pe_find_data_imports): New function.
532 (pr_sym): New function.
b6bf44ba 533 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
534 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
535 CODE.
536
5372001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 538
b044cda1
CW
539 * ld.texinfo: add additional documentation for
540 --export-all-symbols. Document --out-implib,
541 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
542 --dll-search-prefix, --enable-auto-import, and
543 --disable-auto-import.
b044cda1
CW
544 * ldint.texinfo: Add detailed documentation on auto-import
545 implementation.
546
156e34dd
NC
5472001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
548
549 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
550 example.
551
d6231427
AM
5522001-07-24 Alan Modra <amodra@bigpond.net.au>
553
554 * Makefile.am: Update dependencies with "make dep-am".
555 * Makefile.in: Regenerate
556
e14ec88b
AM
5572001-07-23 Alan Modra <amodra@bigpond.net.au>
558
559 * ldcref.c (check_section_sym_xref): New function.
560 (check_nocrossrefs): Call it.
561 (check_nocrossref): Interate over h->refs here instead of..
562 (check_refs): ..here. Pass in the symbol name, section, and bfd
563 rather than hash_entry pointers.
564 (struct check_refs_info): Keep symbol name rather than hash entry.
565 Remove "same".
566 (check_reloc_refs): Tweak for above changes in check_refs_info.
567 Only report references to section syms when symname is NULL to
568 prevent duplicate messages for the same reloc.
569
1b577b00
NC
5702001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
571
c7d701b0
NC
572 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
573 available. Do not print NULL trees.
574 (exp_print_token): Print unknown tokens with values > 126 as
575 decimal values not ASCII characters.
576
1545243b
NC
577 * ldlang.c (lang_leave_overlay): If a region is specified assign
578 it to all sections inside the overlay unless they have been
579 assigned to the own, non-default, memory region.
580
1b577b00
NC
581 * README: Add header for consistency with other README files.
582
5030876b
L
5832001-07-14 H.J. Lu <hjl@gnu.org>
584
585 * emultempl/elf32.em (output_prev_sec_find): Never return
586 bfd_abs_section_ptr, bfd_com_section_ptr nor
587 bfd_und_section_ptr.
588
18c7a9a5
NC
5892001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
590
22af9fd3 591 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
592 elf32.em.
593 * Makefile.in: Regenerate.
594
9ffecff1
MG
5952001-07-14 matthew green <mrg@eterna.com.au>
596
597 * configure.tgt (i386-*-netbsdelf*): New target.
598 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
599
95500e1c
JJ
6002001-07-13 Jakub Jelinek <jakub@redhat.com>
601
602 * emultempl/elf32.em (output_prev_sec_find): New.
603 (place_orphan): Use it.
604
e97cb84f
L
6052001-07-11 H.J. Lu <hjl@gnu.org>
606
607 * ldmain.c (main): Fix typos in the last change.
608
7333607e
JJ
6092001-07-11 Jakub Jelinek <jakub@redhat.com>
610
611 * ldmain.c (main): Disallow -F and -f without -shared.
612
d29d80f2
NC
6132001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
614
615 * emultempl/pe.em (after_open): Check for the output_bfd not
616 having any coff_data structure allocated to it.
617
c2a1a436
DB
6182001-07-09 David O'Brien <obrien@FreeBSD.org>
619
620 * emultempl/elf32.em: Do not assuming that contents of the buffer
621 returned from basename function will remain unchanged accross other
622 function calls.
623
63653551
L
6242001-07-03 H.J. Lu <hjl@gnu.org>
625
626 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
627 2001-07-03. It creates dynamic entries even for static binaries.
628
d303a449
L
6292001-07-03 Jakub Jelinek <jakub@redhat.com>
630
631 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
632 (DYNAMIC): Use it to reserve few dynamic entries for
633 post-linking tools.
634
9f22353f
AM
6352001-06-27 Alan Modra <amodra@bigpond.net.au>
636
637 * emulparams/hppa64linux.sh: New file.
638 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
639 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
640 (ehppa64linux.c): Add rule to make it.
641 Run "make dep-am".
642 * Makefile.in: Regenerate.
643
62bf86b4
HPN
6442001-06-21 Hans-Peter Nilsson <hp@axis.com>
645
646 * ld.texinfo (Options, -r): Mention restrictions when using
647 different object formats.
648
429d935d
HPN
6492001-06-19 Hans-Peter Nilsson <hp@axis.com>
650
651 * ldlang.c (lang_check): Emit fatal error if relocatable link
652 between different object flavours with relocations in input.
653
cb840a31
L
6542001-06-19 H.J. Lu <hjl@gnu.org>
655
656 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
657 (--version-script): Mention the language support.
658
9bf03acc
L
6592001-06-19 H.J. Lu <hjl@gnu.org>
660
661 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
662
c45021f2
NC
6632001-06-18 H.J. Lu <hjl@gnu.org>
664
b6bf44ba
AM
665 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
666 (diststuff): Add $(MANS).
667 * Makefile.in: Regenerated.
c45021f2 668
b6bf44ba 669 * ld.1: Removed.
c45021f2 670
6caa99ab
HPN
6712001-06-18 Hans-Peter Nilsson <hp@axis.com>
672
605d9b3a
HPN
673 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
674 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
675 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
676 * ld.h (args_type): Remove member export_dynamic. All users
677 changed to use struct bfd_link_info member.
678
6caa99ab
HPN
679 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
680 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
681 * Makefile.in: Regenerate.
682
6f9efd97
L
6832001-06-18 H.J. Lu <hjl@gnu.org>
684
685 * ldlang.c (init_os): Add the newline to the einfo call.
686 (lang_check): Likewise.
687 (lang_do_version_exports_section): Likewise.
688
5af9fd8b
L
6892001-06-15 H.J. Lu <hjl@gnu.org>
690
691 * lexsup.c (parse_args); Save optind to report unrecognized
692 option.
693
2a096f04
HPN
6942001-06-15 Hans-Peter Nilsson <hp@axis.com>
695
7e66c3f5
HPN
696 * ldlang.c (lang_check): Emit fatal error if relocatable link
697 between different object flavours.
698
2a096f04
HPN
699 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
700 Set new link_info member export_dynamic.
701 * ldmain.c (main): Initialize new link_info member export_dynamic.
702
6770ec8c
NC
7032001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
704
705 * ldlang.c (walk_wild): Only call walk_wild_file if
706 lookup_name returns something.
b6bf44ba 707 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 708 (load_symbols): Change to a boolean function.
b6bf44ba 709 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
710 executable.
711
8529105a
AM
7122001-06-08 Alan Modra <amodra@bigpond.net.au>
713
714 * ldlang.c (record_bfd_errors): Remove.
715
716 * emultempl/aix.em: Fix copyright dates.
717
8f3aa7a0
AJ
7182001-06-07 Andreas Jaeger <aj@suse.de>
719
720 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
721 (TEXT_START_ADDR): Likewise.
722
3277f888
AM
7232001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
724
725 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
726
3763134d
DD
7272001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
728
729 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
730
5929ebc0
L
7312001-05-31 H.J. Lu <hjl@gnu.org>
732
733 * ldlang.c (open_input_bfds): Don't change the bfd error
734 handler whilst loading symbols.
735
c04a062d
NC
7362001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
737
738 * configure.tgt: Remove i370-mvs architecture, it is not currently
739 supported.
740
96fcab3e
L
7412001-05-25 H.J. Lu <hjl@gnu.org>
742
743 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
744 like emulparams/aixppc.sh.
745
db8d4f23
L
7462001-05-25 H.J. Lu <hjl@gnu.org>
747
748 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
749 setting of output_filename after bfd_scan_arch.
750 * emultempl/pe.em: Likewise.
751
5f642101
L
7522001-05-25 H.J. Lu <hjl@gnu.org>
753
754 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
755 like emulparams/aixppc.sh.
756
757 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
758 instead of ${srcdir}/emultempl/stringify.sed.
759
64e9ece0
TW
7602001-05-25 Timothy Wall <twall@oculustech.com>
761
762 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 763 output.
64e9ece0 764
c709b096
AM
7652001-05-25 Alan Modra <amodra@one.net.au>
766
767 * configure.host: Replace linuxoldld with linux*oldld.
768 * configure.tgt: Likewise.
769
6cbdcc6f
L
7702001-05-24 H.J. Lu <hjl@gnu.org>
771
772 * emultempl/stringify.sed: Removed again.
773
86af25fe
L
7742001-05-24 H.J. Lu <hjl@gnu.org>
775
776 * emultempl/aix.em (OUTPUT_ARCH): Defined.
777 (gld${EMULATION_NAME}_before_parse): Initialize
778 ldfile_output_architecture, ldfile_output_machine and
779 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
780 * emultempl/beos.em: Likewise.
781 * emultempl/elf32.em: Likewise.
782 * emultempl/linux.em: Likewise.
783 * emultempl/mipsecoff.em: Likewise.
784 * emultempl/pe.em: Likewise.
785 * emultempl/sunos.em: Likewise.
786
3b1b01cf
TR
7872001-05-24 Tom Rix <trix@redhat.com>
788
8f3aa7a0 789 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
790 udate import file format.
791 (change_symbol_mode) New, same
792 (is_syscall) New, same
793 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
794 * emulparams/aixppc64.sh : same
795 * emulparams/aixrs6.sh : same
796 * emulparams/ppcmacos.sh : same
797 * emultempl/aix.em : use strtoull to parse options
798 * Makefile.am : add eaixppc64 emulation for xcoff64
799 * Makefile.in : same
800 * configure.tgt : same
801
802 * scripttempl/aix.sc : default text section offset to 0x10000000
803 default data section offset to 0x20000000
804 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 805 loader and debug sections use the currect section offset.
3b1b01cf
TR
806
807 * emultempl/aix.em : Add xcoff64 support
808 Add -binitfini support
8f3aa7a0 809 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 810 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 811 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
812 sections
813
814 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 815
57e6abd2
AO
8162001-05-23 Alexandre Oliva <aoliva@redhat.com>
817
818 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
819 variable to avoid non-portable shell construct.
820
d1cf510e
NC
8212001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
822
823 * ldmain.c (get_emulation): Add -mips5 command line argument.
824
506eee22
NC
8252001-05-22 Alexandre Oliva <aoliva@redhat.com>
826
827 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
828 (ELF_INTERPRETER_NAME): Define it.
829 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
830 it.
831 * configure.tgt (targ_emul, targ_extra_emuls)
832 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
833 as primary, elf_i386 as extra.
834 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
835 (eelf_i386_ldso.c): New rule.
836 * Makefile.in: Rebuilt.
837
8382001-05-22 Nick Clifton <nickc@redhat.com>
839
840 * lexsup.c (ld_options): Allow -I to be an alias for
841 --dynamic-linker. This is for Solaris compatability.
842 * ld.texinfo: Document that -I can be used.
843 * ld.1: Regenerate.
844
d1778b88
AM
8452001-05-16 Alan Modra <amodra@one.net.au>
846
847 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
848 whether an input section is the first one assigned to an output
849 section.
850 Assorted formatting fixes.
851
02649152
DD
8522001-05-14 DJ Delorie <dj@delorie.com>
853
854 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
855 * Makefile.in: Ditto.
856
579f31ac
JJ
8572001-05-11 Jakub Jelinek <jakub@redhat.com>
858
859 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
860 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
861 output sections.
862 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
863
8550eb6e
JJ
8642001-05-11 Jakub Jelinek <jakub@redhat.com>
865
866 * ldlang.c (lang_process): Call bfd_merge_sections.
867
8e5a525c
AM
8682001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
869
870 * ldgram.y: Fix typo.
871
1c9acd94
L
8722001-05-03 H.J. Lu <hjl@gnu.org>
873
874 * emultempl/elf32.em: Include "libiberty.h".
875 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
876 basename of the bfd filename.
877 (gld${EMULATION_NAME}_stat_needed): Likewise.
878 (gld${EMULATION_NAME}_try_needed): Likewise.
879 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
880
14fe918e
L
8812001-05-02 H.J. Lu <hjl@gnu.org>
882
883 * emultempl/pe.em: Include <ctype.h>.
884
c7e40348
NC
8852001-05-02 Johan Rydberg <jrydberg@opencores.org>
886
b6bf44ba 887 * emulparams/elf32openrisc.sh: New file.
c7e40348 888
b6bf44ba
AM
889 * Makefile.am: Add OpenRISC target.
890 * Makefile.in: Regenerated.
c7e40348 891
b6bf44ba 892 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
893
8942001-05-02 Nick Clifton <nickc@redhat.com>
895
896 * emultempl/aix.em: Replace buystring with xstrdup.
897 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 898
d1b2b2dc
L
8992001-05-02 H.J. Lu <hjl@gnu.org>
900
901 * ldfile.c: Include "libiberty.h".
902 * ldlex.l: Likewise.
903
904 * ldmisc.c (buystring): Removed.
905 * ldmisc.h: Likewise.
906
907 * ldfile.c: Replace buystring with xstrdup.
908 * ldlang.c: Likewise.
909 * ldlex.l: Likewise.
910 * ldmain.c: Likewise.
911 * ldmisc.c: Likewise.
912 * lexsup.c: Likewise.
913 * mpw-eppcmac.c: Likewise.
914
35714f2a
AJ
9152001-04-30 Andreas Jaeger <aj@suse.de>
916
917 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
918
884fb58e
NC
9192001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
920
b6bf44ba
AM
921 * ldlang.c (load_symbols): Give emulation a chance
922 to process unrecognized file before fatal error is
923 reported, not after.
884fb58e 924
87748b32
NC
9252001-04-27 Sean McNeil <sean@mcneil.com>
926
927 * configure.tgt: Add arm-vxworks target.
928 * scripttempl/armcoff.sc: Support .text or .data as a section name
929 prefix.
930 Define _etext.
35714f2a 931
7ce691ae
C
9322001-04-13 J.T. Conklin <jtc@redback.com>
933
934 * ld.texinfo: Document --fatal-warnings.
935 * ld.1: Regenerate.
936
937 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 938 warnings have been turned into errors.
7ce691ae
C
939 * lexsup.c (OPTION_WARN_FATAL): Define.
940 (ld_options): Entry for --fatal-warnings.
941 (parse_args): Handle OPTION_WARN_FATAL.
942 * ld.h (ld_config_type): Add fatal_warnings field.
943
f5fa8ca2
JJ
9442001-04-13 Jakub Jelinek <jakub@redhat.com>
945
946 * ldmain.c (main): Default to discard_sec_merge.
947 * lexsup.c (OPTION_DISCARD_NONE): Define.
948 (ld_options): Add --discard-none.
949 (parse_args): Handle OPTION_DISCARD_NONE.
950 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
951 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
952 all its input sections match.
953
fdec3cfc
L
9542001-04-05 Steven J. Hill <sjhill@cotw.com>
955
956 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
957 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
958 (eelf32ltsmip.c): New target.
959 (eelf64btsmip.c): Likewise.
960 (eelf64ltsmip.c): Likewise.
961 * Makefile.in: Regenerated.
962
963 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
964 target.
965 (mips*-*-linux-gnu*): Likewise.
966
967 * emulparams/elf32ltsmip.sh: New. Traditional little endian
968 MIPS taget.
35714f2a 969 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
970 target.
971 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
972 endian target.
973
589bad82
HPN
9742001-04-05 Hans-Peter Nilsson <hp@axis.com>
975
976 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
977 correct value of __Stext here.
978 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
979 .startup section.
980
981 * emulparams/crislinux.sh: Remove FIXME.
982
94202e16
AM
9832001-04-02 Alan Modra <alan@linuxcare.com.au>
984
985 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
986 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
987
1268a053
HPN
9882001-03-27 Hans-Peter Nilsson <hp@axis.com>
989
990 * configure.tgt (cris-*-*): Change default emulation to criself.
991 (cris-*-*aout*): New rule.
992
d85e9ff7
AM
9932001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
994
995 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
996 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
997
0879a67a
AJ
9982001-03-26 Andreas Jaeger <aj@suse.de>
999
1000 * ld.texinfo (Overview): Fix syntax in texi code.
1001
0285c67d
NC
10022001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1003
1004 * ld.texinfo: Put @c man indications to generate the ld man page.
1005 When generating man, define all the variables. Define SEEALSO
1006 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1007 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1008 (ld.1): Generate from ld.texinfo.
1009 * Makefile.in: Regenerate.
1010
c20ec07b
NC
10112001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1012
1013 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1014 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1015
cc5ce052
UD
10162001-03-17 Ulrich Drepper <drepper@redhat.com>
1017
1018 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1019 is an absolute path look only for this file and not along the path.
1020
a1ab1d2a
UD
10212001-03-17 Ulrich Drepper <drepper@redhat.com>
1022
1023 * emultempl/elf32.em (OPTION_GROUP): New macro.
1024 Add new option Bgroup to longopts.
1025 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1026 (gld*_list_options): Add -Bgroup and -z defs.
1027 * ld.1: Document -Bgroup and -z defs.
1028 * ld.texinfo: Likewise.
1029
788fca5a
MM
10302001-03-07 Michael Meissner <meissner@redhat.com>
1031
1032 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1033 with sections created by -fdata-sections.
1034 (.dynbss,.bss): Ditto.
1035
1c7566d1
AM
10362001-03-05 Alan Modra <alan@linuxcare.com.au>
1037
1038 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1039 after_allocation_default, not gld..._before_allocation.
1040
27b7e12d
AM
10412001-02-27 Alan Modra <alan@linuxcare.com.au>
1042
1043 * configure.in (BFD_VERSION): New.
1044 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1045 * configure: Regenerate.
1046 * Makefile.am: Run "make dep-am"
1047 * Makefile.in: Regenerate.
1048
2bc551c7
TW
10492001-02-26 Timothy Wall <twall@cygnus.com>
1050
1051 * emulparams/elf64_aix.sh: Add additional read-only sections;
1052 uncomment lines which are now required.
1053
1276aefa
NC
10542001-02-26 H.J. Lu <hjl@gnu.org>
1055
1056 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
1057 that problems can be caught whilst loading symbols.
1058 (record_bfd_errors): New function: Report BFD errors and mark
1059 the executable output as being invalid.
1276aefa 1060
41c49998
TW
10612001-02-22 Timothy Wall <twall@cygnus.com>
1062
1063 * configure.host: Add configuration for ia64-*-aix*.
1064 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1065 Add dependencies for eelf64_aix.c.
1066 * Makefile.in: Regenerate.
1067 * configure.tgt: Add ia64-*-aix* mapping.
1068 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 1069 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
1070 AIX-specific test.
1071
78f85fd7
L
10722001-02-20 H.J. Lu <hjl@gnu.org>
1073
1074 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1075 false if we found the file.
1076
1ac7e077 10772001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
1078
1079 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1080 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1081
e135f41b
NC
10822001-02-18 lars brinkhoff <lars@nocrew.org>
1083
1084 * Makefile.am: Add PDP-11 target.
1085 * configure.tgt: Likewise.
1086 * emulparams/pdp11.sh: New file.
1087
a842aceb
DB
10882001-02-17 David O'Brien <obrien@FreeBSD.org>
1089
1090 * configure.host: Add a generic FreeBSD configuration entry such that
1091 all [modern] FreeBSD systems on all platforms will look the same.
1092
24174db0
L
10932001-02-14 H.J. Lu <hjl@gnu.org>
1094
1095 * configure.tgt: Remove mention of earmelf_linux26.
1096
30c3c13a
RH
10972001-02-13 Richard Henderson <rth@redhat.com>
1098
1099 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1100
b46a87b1
L
11012001-02-13 H.J. Lu <hjl@gnu.org>
1102
1103 * ldexp.h (node_type): Add etree_provided.
1104 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1105 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 1106 for etree_provided.
b46a87b1
L
1107 (exp_print_tree): Handle etree_provided.
1108 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1109 etree_provided.
1110
f3988fd9
RH
11112001-02-09 David Mosberger <davidm@hpl.hp.com>
1112
1113 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1114 .IA_64.unwind.* pattern to unwind table section and
1115 .IA_64.unwind_info* pattern to unwind info section.
1116
a85d7ed0
NC
11172001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1118
1119 * Makefile.am: Add linux target for S/390.
1120 * Makefile.in: Likewise.
1121 * configure.host: Likewise.
1122 * configure.tgt: Likewise.
1123 * emulparams/elf64_s390.sh: New file.
1124 * emulparams/elf_s390.sh: New file.
1125
780248c4
JJ
11262001-02-09 Jakub Jelinek <jakub@redhat.com>
1127
1128 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1129 targ_extra_libpath.
1130 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1131
0e2534bd
PB
11322001-02-06 Philip Blundell <philb@gnu.org>
1133
1134 * Makefile.am: Remove mention of earmelf_linux26.
1135 * Makefile.in: Regenerate.
1136
46c1ea57
PB
11372001-02-04 Philip Blundell <philb@gnu.org>
1138
1139 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1140 * emulparams/armelf_linux26.sh: Delete.
1141 * configure.tgt: Remove mention of armelf_linux26 emulation.
1142
0088edd2
NC
11432001-02-01 Nick Clifton <nickc@redhat.com>
1144
1145 * ld.1: Replace occurances of -oformat with --oformat.
1146
02aa14fb
AM
11472001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1148
1149 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1150 load_base is specified.
1151
f813923c
HPN
11522001-01-24 Hans-Peter Nilsson <hp@axis.com>
1153
1154 * emultempl/elf32.em: Correct spelling in comments and listed
1155 options.
1156
c1eb1488
AM
11572001-01-23 Alan Modra <alan@linuxcare.com.au>
1158
1159 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1160 default for the first section of a group of overlay sections.
1161
d9fc3714
AM
11622001-01-22 Alan Modra <alan@linuxcare.com.au>
1163
1164 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1165 * Makefile.in: Regenerate.
1166 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1167 Check for null tool_dir.
1168
6be0ca94
JW
11692001-01-16 Jim Wilson <wilson@redhat.com>
1170
1171 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1172 and IA_64.unwind.info.
1173
b9247304
L
11742001-01-16 H.J. Lu <hjl@gnu.org>
1175
1176 * ldlang.c (lang_check): Merge the private data only if the
1177 input file has contents.
1178
577a0623
AM
11792001-01-14 Alan Modra <alan@linuxcare.com.au>
1180
d952f17a
AM
1181 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1182
ffd6e9de
AM
1183 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1184 enabling search for libmilli. On a relocatable link, make .text
1185 sections unique.
1186 (LDEMUL_AFTER_PARSE): Define.
1187 (hppaelf_finish): Correct spelling of relocatable in comments.
1188
577a0623
AM
1189 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1190 rummage through the script for sections on the unique list.
1191 Correct length of strncmp for ".note".
1192 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1193
1194 * ldlang.c (unique_section_list): New var.
1195 (unique_section_p): New function.
1196 (walk_wild_section): Don't match sections on unique_section_list.
1197 (lang_add_unique): New function.
ffd6e9de 1198 Correct spelling of relocatable in comments.
577a0623
AM
1199
1200 * ldlang.h (struct unique_sections): Declare.
1201 (unique_section_list): Declare.
1202 (unique_section_p): Declare.
1203 (lang_add_unique): Declare.
1204
1205 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1206 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1207
1208 * ld.texinfo (--unique): Update.
1209
b7ed8fad
NC
12102001-01-13 Nick Clifton <nickc@redhat.com>
1211
1212 * lexsup.c (parse_args): Remove spurious white space.
1213
d0398d6a
NC
12142001-01-12 Nick Clifton <nickc@redhat.com>
1215
1216 * lexsup.c (parse_args): Update copyright date.
1217
350fdb00
PB
12182001-01-12 Philip Blundell <pb@futuretv.com>
1219
1220 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1221
60c6797e
KH
12222001-01-10 Kazu Hirata <kazu@hxi.com>
1223
1224 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1225 * scripttempl/h8300h.sc: Fix formatting.
1226 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
1227 * scripttempl/h8500.sc: Likewise.
1228 * scripttempl/h8500b.sc: Likewise.
1229 * scripttempl/h8500c.sc: Likewise.
1230 * scripttempl/h8500m.sc: Likewise.
1231 * scripttempl/h8500s.sc: Likewise.
60c6797e 1232
482e8b32
DB
12332000-01-07 David O'Brien <obrien@BSDi.com>
1234
1235 * emultempl/elf32.em: Only perform Linux ld hints processing when
1236 targeting Linux.
1237
d7ed7ca6
PB
12382001-01-07 Philip Blundell <philb@gnu.org>
1239
1240 * ld.texinfo (Bug Reporting): Update email address for reports.
1241
0fc3347a
NC
12422000-12-31 Nick Clifton <nickc@redhat.com>
1243
1244 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1245 options by checking for a return value of '?' not -1.
1246
e4897a32
NC
12472000-12-28 Nick Clifton <nickc@redhat.com>
1248
1249 * lexsup.c (struct ld_option): Add new enum value:
1250 EXACTLY_TWO_DASHES.
1251 (ld_options[]): Change -omagic, -output and -oformat options
1252 to be EXACTLY_TWO_DASHES.
1253 (OUTPUT_COUNT): Use ARRAY_SIZE.
1254 (parse_args): Change parameter 'argc' to unsigned.
1255 Place EXACTLY_TWO_DASHES options into new really_longopts
1256 array.
1257 If getopt_long_only fails, try calling getopt_long using the
1258 really_longopts array.
1259 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1260 TWO_DASHES options.
1261
1262 * ldlex.h: Fix prototype of parse_args.
1263
1264 * ld.texinfo: Document that long options starting with 'o'
1265 must be preceeded by two dashes. Change example of a single
1266 dashed long option from -oformat to -trace-symbol.
1267
1122a5fc
NC
12682000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1269
1270 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1271 (longopts[]): New --no-default-excludes option.
1272 (gld_${EMULATION_NAME}_list_options): Document.
1273 (gld_${EMULATION_NAME}_parse_args): Handle.
1274
037849a9
NC
12752000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1276
1277 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1278 whitespace, it breaks the K&R C preprocessor.
1279
7ec229ce
DD
12802000-12-11 DJ Delorie <dj@redhat.com>
1281
1282 * ld.texinfo: Add notes about --whole-archive and gcc.
1283
b79e8c78
NC
12842000-11-18 Fred Fish <fnf@be.com>
1285
1286 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1287 (ld_options): Entry for --allow-shlib-undefined.
1288 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1289 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1290 to false.
1291 * ld.texinfo: Document new command line switch.
d952f17a 1292
9a8e2505
GK
12932000-12-12 Geoffrey Keating <geoffk@redhat.com>
1294
1295 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1296 .fixup is actually read/write.
1297 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1298 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1299 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1300
b8355149
JH
1301Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1302
1303 * NEWS: Add note about x86_64 architecture.
1304
93b63cd3
DD
13052000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1306
1307 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1308 Set DWARF2 sections to a VMA of zero.
1309
24f6971a
NC
13102000-12-01 Joel Sherrill <joel@OARcorp.com>
1311
d952f17a 1312 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
1313 New targets.
1314 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1315 (sparc*-*-rtems*): Switched from a.out to ELF.
1316
2be3aa03
NC
13172000-11-30 Jan Hubicka <jh@suse.cz>
1318
1319 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1320 (eelf_x86_64.c): New.
1321 * Makefile.in: Regenerate.
1322 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1323 * emulparams/elf_x86_64.sh: New.
1324
8c899858
HPN
13252000-11-30 Hans-Peter Nilsson <hp@axis.com>
1326
1327 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1328 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1329
1330 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1331 merging non-a.out sections into CONSTRUCTING.
1332
e47b9e39
NC
13332000-11-28 Nick Clifton <nickc@redhat.com>
1334
1335 * ld.1 (COPYING): Mention that the GNU Free Documentation
1336 License is present in the sources, but not the output, and
1337 also available from the GNU website.
1338 (GNU Free Documentation License): Comment out this section.
1339
ad95f82a
DB
13402000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1341
1342 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1343 does not use them.
1344
fd89e65f
DB
13452000-11-25 David O'Brien <obrien@FreeBSD.org>
1346
1347 * ld.1: Remove old date so it does not give the impression the manpage
1348 is way out of date.
1349
077b8428
NC
13502000-11-24 Nick Clifton <nickc@redhat.com>
1351
1352 * configure.tgt (xscale-coff): Add target.
1353 (xscale-elf): Add target.
1354
49425d28
NC
13552000-11-24 Fred Fish <fnf@be.com>
1356
d952f17a
AM
1357 * ldmain.c (main): Remove redundant init of config.make_executable
1358 to true.
49425d28 1359
d3480244
RH
13602000-11-15 Richard Henderson <rth@redhat.com>
1361
1362 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1363
1ce7de8b
KH
13642000-11-14 Kazu Hirata <kazu@hxi.com>
1365
1366 * scripttempl/h8300.sc: Fix formatting.
1367 * scripttempl/h8300h.sc: Likewise.
1368 * scripttempl/h8300s.sc: Likewise.
1369
208d5cd0
DC
1370Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1371
1372 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1373
2e418547
PB
13742000-11-09 Philip Blundell <pb@futuretv.com>
1375
1376 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1377 around orphan sections whose names can be represented in C.
1378
c940e6fc
JW
13792000-11-07 Jim Wilson <wilson@redhat.com>
1380
1381 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1382 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1383
704c465c
NC
13842000-11-06 Nick Clifton <nickc@redhat.com>
1385
1386 * ld.texinfo: Add GNU Free Documentation License.
1387 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 1388 * ld.1: Add GNU Free Documentation License.
704c465c 1389
dca7760f
AM
13902000-11-05 Alan Modra <alan@linuxcare.com.au>
1391
1392 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1393 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1394
1395 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1396 Move 2000-11-02 Makefile.in changes to this file.
1397 * Makefile.in: Regenerate.
1398
40a633d5
NC
13992000-11-03 Nick Clifton <nickc@redhat.com>
1400
1401 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1402 constructors and destructors.
1403 * scripttempl/h8300h.sc: Ditto.
1404 * scripttempl/h8300s.sc: Ditto.
1405 * scripttempl/h8500.sc: Ditto.
1406 * scripttempl/h8500b.sc: Ditto.
1407 * scripttempl/h8500c.sc: Ditto.
1408 * scripttempl/h8500m.sc: Ditto.
1409 * scripttempl/h8500s.sc: Ditto.
1410 * scripttempl/v850.sc: Ditto.
1411 * scripttempl/w65.sc: Ditto.
1412 * scripttempl/z8000.sc: Ditto.
1413
59ff2774
NC
14142000-11-02 Per Lundberg <plundis@chaosdev.org>
1415
1416 * Makefile.in (e_i386_chaos.c): New rule.
1417 (ALL_EMULATIONS): Added e_i386_chaos.o.
1418 * emulparams/elf_i386_chaos.sh: New file.
1419 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1420
645571e1
JJ
14212000-10-20 Jakub Jelinek <jakub@redhat.com>
1422
1423 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1424 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1425 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1426 library path suffix.
1427 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1428
c5975a45
HPN
14292000-10-18 Hans-Peter Nilsson <hp@axis.com>
1430
1431 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1432 for consecutive sections.
1433
ea20a7da
CC
14342000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1435
d952f17a
AM
1436 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1437 options.
1438 * ld.texinfo: Added notes about this new option.
ea20a7da 1439
6e45556a
NC
14402000-10-16 Nick Clifton <nickc@redhat.com>
1441
1442 * emultempl/pe.em (_after_open): Add tests of return values from
1443 bfd functions. Emit appropriate error messages if necessary.
1444
b9a69188
NC
14452000-10-13 Nick Clifton <nickc@redhat.com>
1446
1447 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
1448 local variables - they are not used, but leave in the call to
1449 bfd_canonicalize_symtab.
b9a69188
NC
1450 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1451 pe_dll_search_prefix.
1452
627427de 14532000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 1454
627427de
DD
1455 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1456 (longopts): New --dll-search-prefix option.
1457 (gld_${EMULATION_NAME}_list_options): Document.
1458 (gld_${EMULATION_NAME}_parse_args): Handle.
1459 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1460 dynamically, search for a dll named '<prefix><basename>.dll'
1461 in preference to 'lib<basename>.dll' if --dll-search-prefix
1462 is specified.
1463
24376d1b
AM
14642000-10-12 Alan Modra <alan@linuxcare.com.au>
1465
1466 * ldlang.c (section_already_linked): Set kept_section instead of
1467 sec->comdat->sec.
1468
e47d05ad
KH
14692000-10-10 Kazu Hirata <kazu@hxi.com>
1470
1471 * deffile.h: Fix formatting.
1472 * lexsup.c: Likewise.
1473 * mri.c: Likewise.
1474
23a87948
DD
14752000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1476
1477 * pe-dll.c (make_one): Do not generate code thunk for DATA
1478 exports.
1479 (process_def_file): deduce DATA flag for auto-export sumbols.
1480
86b1cc60
KH
14812000-10-09 Kazu Hirata <kazu@hxi.com>
1482
89cdebba
KH
1483 * ld.h: Fix formatting.
1484 * ldcref.c: Likewise.
1485 * ldctor.h: Likewise.
1486 * ldemul.c: Likewise.
1487 * ldemul.h: Likewise.
1488 * ldexp.c: Likewise.
1489 * ldexp.h: Likewise.
1490 * ldfile.c: Likewise.
1491 * ldfile.h: Likewise.
1492 * ldlang.c: Likewise.
1493 * ldlang.h: Likewise.
1494 * ldmain.c: Likewise.
7bfd51a3
KH
1495 * pe-dll.c: Likewise.
1496
1497 * pe-dll.c: Revert some formatting fixes.
86b1cc60 1498
d643799d
KH
14992000-10-08 Kazu Hirata <kazu@hxi.com>
1500
1501 * pe-dll.c: Fix formatting.
1502
08da4cac
KH
15032000-10-05 Kazu Hirata <kazu@hxi.com>
1504
1505 * ldlang.c: Fix formatting.
1506
c2a94a7a
DD
15072000-10-03 DJ Delorie <dj@redhat.com>
1508
1509 * pe-dll.c (fill_edata): initialize entire block
1510 (make_one): fill in correct section.
1511
8c95a62e
KH
15122000-10-03 Kazu Hirata <kazu@hxi.com>
1513
1514 * ldexp.c: Fix formatting.
1515
486e80e2
DD
15162000-10-02 DJ Delorie <dj@redhat.com>
1517
1518 * emultempl/pe.em (gld_*_after_open): detect case where there two
1519 import libraries for same dll; rename one to ensure proper link
1520 order.
1521
1522 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1523 typo
1524 (generate_edata): fix typo
1525
24dd9f75
HPN
15262000-09-29 Hans-Peter Nilsson <hp@axis.com>
1527
1528 * scripttempl/crisaout.sc (ENTRY): Now __start.
1529 (.text): Add default setting for __start.
1530 Remove CONSTRUCTORS handling.
1531 (/DISCARD/): Add .gnu.warning.*.
1532 * emulparams/crislinux.sh (ENTRY): Now __start.
1533 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1534 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1535 (ENTRY): Now __start.
1536 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1537 (EXECUTABLE_SYMBOLS): Add default setting for __start.
1538
4de2d33d
KH
15392000-09-29 Kazu Hirata <kazu@hxi.com>
1540
5cc18311
KH
1541 * deffile.h: Fix formatting.
1542 * ld.h: Likewise.
1543 * ldcref.c: Likewise.
4de2d33d 1544 * ldctor.c: Likewise.
5cc18311 1545 * ldctor.h: Likewise.
4de2d33d 1546 * ldemul.c: Likewise.
5cc18311 1547 * ldemul.h: Likewise.
4de2d33d 1548 * ldexp.c: Likewise.
5cc18311 1549 * ldexp.h: Likewise.
4de2d33d 1550 * ldfile.c: Likewise.
5cc18311 1551 * ldfile.h: Likewise.
4de2d33d 1552 * ldlang.c: Likewise.
5cc18311
KH
1553 * ldlang.h: Likewise.
1554 * lexsup.c: Likewise.
1555 * mri.c: Likewise.
1556 * pe-dll.c: Likewise.
4de2d33d 1557
45b1f63c
DD
15582000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1559
1560 * pe-dll.c (process_def_file): Uninitialized data wasn't
1561 exported with --export-all-symbols switch.
d952f17a 1562
45b1f63c
DD
15632000-09-28 DJ Delorie <dj@redhat.com>
1564
1565 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1566 noname work properly.
1567
47d89dba
AM
15682000-09-28 Alan Modra <alan@linuxcare.com.au>
1569
1570 * ld.texinfo (HPPA ELF32): New section.
1571
1572 * emultempl/hppaelf.em (group_size): New.
1573 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1574 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1575 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
1576 options to prevent abbreviations matching.
1577 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
1578 (PARSE_AND_LIST_ARGS_CASES): Handle it.
1579
36bdbeec
NC
15802000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1581
1582 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1583 on the m68*-*-elf target. Make it support COFF input objects.
1584
6d5e62f8
KH
15852000-09-21 Kazu Hirata <kazu@hxi.com>
1586
1587 * ldmain.c: Fix formatting.
1588 * ldmisc.c: Likewise.
1589 * ldver.c: Likewise.
1590 * ldwrite.c: Likewise.
1591
e2eb67d9
AM
15922000-09-21 Alan Modra <alan@linuxcare.com.au>
1593
1594 * ldwrite.c (clone_section): Silence gcc warnings.
1595
b3ea3584
AM
15962000-09-20 Alan Modra <alan@linuxcare.com.au>
1597
1598 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1599 out of memory failure.
1600
1601 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1602 (clone_section): Handle out of memory failures. Rename var to
1603 avoid c++ reserved word.
1604
25f72752
AM
16052000-09-18 Alan Modra <alan@linuxcare.com.au>
1606
1607 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1608 stub_name param to stub_sec_name.
1609 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1610
0752970e
NC
16112000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1612
1613 * emultempl/m68kelf.em: New file.
1614 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1615 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1616 * Makefile.in: Regenerate.
1617
92b7e9d8
AM
16182000-09-15 Alan Modra <alan@linuxcare.com.au>
1619
1620 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1621 only as needed.
1622
9b14b192
NC
16232000-09-13 Nick Clifton <nickc@redhat.com>
1624
1625 * ldmain.c (multiple_definition): Disable relaxation if
1626 multiple symbol definitions are encountered - otherwise the
1627 linker could abort with an assertion failure.
1628
891fa266
NC
16292000-09-10 Nick Clifton <nickc@redhat.com>
1630
1631 * mri.c: Fix formatting.
1632
5d64ca4e
L
16332000-09-07 H.J. Lu <hjl@gnu.org>
1634
1635 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1636 * configure: Rebuild.
1637
dd94604f
L
16382000-09-07 H.J. Lu <hjl@gnu.org>
1639
1640 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1641 * Makefile.in: Rebuild.
1642
71bfc0ae
AM
16432000-09-07 Alan Modra <alan@linuxcare.com.au>
1644
1645 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1646 broken list handling. Create __start_SECNAME and __stop_SECNAME
1647 when no place-holder. Add some comments. Test both SEC_CODE and
1648 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 1649 Handle case where no output section statement created.
71bfc0ae 1650
4a428502
AO
16512000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1652
1653 * configure.tgt (sh-*-linux*): Added.
1654 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1655 * Makefile.in: Rebuilt.
1656 * emulparams/shelf_linux.sh: New file.
1657 * emulparams/shlelf_linux.sh: New file.
1658
f9989030
AM
16592000-09-06 Alan Modra <alan@linuxcare.com.au>
1660
1661 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1662 try shuffling sections when the orphan happens to be the place
1663 holder. Keep count of unique section names generated so we speed
1664 the search for a new name.
1665
58cccadb
AO
16662000-09-06 Alexandre Oliva <aoliva@redhat.com>
1667
1668 * configure: Rebuilt with new libtool.m4.
1669
5b343f5a
NC
16702000-09-05 Nick Clifton <nickc@redhat.com>
1671
1672 * Makefile.in: Regenerate.
1673 * aclocal.m4: Regenerate.
1674 * configure: Regenerate.
1675 * config.in: Regenerate.
1676 * po/ld.pot: Regenerate.
1677
1678 * ldint.texinfo: Remove CVS revision marker - it foils local
1679 comparisons.
1680
1681 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 1682
a854a4a7
AM
16832000-09-05 Alan Modra <alan@linuxcare.com.au>
1684
3231d22e
AM
1685 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1686 to stub section flags.
1687 (hppa_for_each_input_file_wrapper): New.
1688 (hppa_lang_for_each_input_file): New.
1689 (lang_for_each_input_file): Define to call above.
1690 (multi_subspace): New.
1691 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1692 (PARSE_AND_LIST_PROLOGUE): Define.
1693 (PARSE_AND_LIST_LONGOPTS): Define.
1694 (PARSE_AND_LIST_OPTIONS): Define.
1695 (PARSE_AND_LIST_ARGS_CASES): Define.
1696 (hppaelf_finish): Call elf32_hppa_set_gp.
1697 (hppaelf_set_output_arch): Remove.
1698 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1699
1700 * emulparams/hppalinux.sh (ELFSIZE): Define.
1701 (MACHINE): Define.
1702 (OTHER_READONLY_SECTIONS): Define.
1703 (DATA_PLT): Define.
1704 (GENERATE_SHLIB_SCRIPT): Define.
1705
5f992e62
AM
1706 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1707 to const throughout. Change `void *' to `PTR' throughout.
1708 (lang_memory_default): Function is local to file, add `static'.
1709
1710 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1711 (ehppalinux.c): Likewise.
1712 (earmelf.c): Likewise.
1713 (earmelf_linux.c): Likewise.
1714 (earmelf_linux26.c): Likewise.
1715 * Makefile.in: Regenerate.
1716
a854a4a7
AM
1717 * ld.h (ld_config_type): Add unique_orphan_sections.
1718 * lexsup.c (OPTION_UNIQUE): Define.
1719 (ld_options): Add "--unique".
1720 (parse_args): Handle it.
1721 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1722 search for an existing output section if unique_orphan_sections is
1723 set. Make use of bfd_get_unique_section_name rather than
1724 duplicating code here.
1725 * ld.texinfo: Describe --unique.
1726
1727 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1728 optional arg to split-by-file.
1729 (parse_args): Handle them.
1730 * ld.texinfo: Update description of these options.
1731 * ldwrite.c (clone_section): Pass in the section name. Replace
1732 local code with bfd_get_unique_section_name.
1733 (split_sections): Tidy code and comments. Use a list traversal
1734 more appropriate to the list construction. Handle cooked section
1735 sizes. Split when split_by_reloc reached rather than exceeded.
1736 Track section size and split when split_by_file reached. Fix
1737 link_order_tail (even though it's not used).
1738 (ldwrite): Modify condition for calling split_sections to suit
1739 changed split_by_reloc and split_by_file.
1740 * ldmain.c (main): Init config.split_by_reloc and
1741 config.split_by_file to -1.
1742 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1743 Change split_by_file to bfd_size_type.
1744
18e03609
NC
17452000-09-02 Nick Clifton <nickc@redhat.com>
1746
1747 * configure.in: Increase version number to 2.10.91.
1748 * NEWS: Mention new ability to support removal of duplicate DWARF2
1749 debug information.
1750 * configure: Regenerate.
1751 * aclocal.m4: Regenerate.
1752 * config.in: Regenerate.
1753
3a9d486c
NC
17542000-09-02 Daniel Berlin <dberlin@redhat.com>
1755
1756 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1757 sections.
a2b64bed 1758 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
1759 * scripttempl/elfd10v.sc: Ditto.
1760 * scripttempl/elfd30v.sc: Ditto.
1761 * scripttempl/elfi370.sc: Ditto.
1762 * scripttempl/elfm68hc11.sc: Ditto.
1763 * scripttempl/elfm68hc12.sc: Ditto.
1764 * scripttempl/elfi386beos.sc: Ditto.
1765 * scripttempl/v850.sc: Ditto.
50bbae35 1766
ac48eca1
AO
17672000-08-31 Alexandre Oliva <aoliva@redhat.com>
1768
1769 * acinclude.m4: Include libtool and gettext macros from the
1770 top level.
1771 * aclocal.m4, configure: Rebuilt.
1772
c13b1b77
NC
17732000-08-25 Nick Clifton <nickc@redhat.com>
1774
1775 * ldlang.c (open_output): When choosing the target for a
1776 particular endianness, do nothing if the target is not
1777 supported.
1778
dcb0bd0e
L
17792000-08-25 H.J. Lu <hjl@gnu.org>
1780
1781 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1782 check -rpath nor LD_RUN_PATH for cross link.
1783 * ld.texinfo: Document the change.
1784
5bcac8a4
HPN
17852000-08-24 Hans-Peter Nilsson <hp@axis.com>
1786
1787 * NEWS: Mention support for CRIS.
1788
6dd8c765
L
17892000-08-23 H.J. Lu <hjl@gnu.org>
1790
1791 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1792 the current runpath list from bfd_elf_get_runpath_list ()
1793 before search.
1794
ec4eb78a
L
17952000-08-22 H.J. Lu <hjl@gnu.org>
1796
1797 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1798 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1799 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1800 trace_file_tries is non-zero.
1801 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1802 if trace_file_tries is non-zero.
1803
1804 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 1805 * NEWS: Mention it.
ec4eb78a 1806
22b36938
JE
18072000-08-14 Jason Eckhardt <jle@cygnus.com>
1808
1809 * NEWS: Mention i860 support.
1810
d73e9da0
AS
18112000-08-14 Andreas Schwab <schwab@suse.de>
1812
1813 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 1814 syntax.
d73e9da0 1815
9ac4db9c
GK
18162000-08-10 Geoff Keating <geoffk@cygnus.com>
1817
1818 * scripttempl/elf.sc: Add a comment giving the correspondence
1819 between sections, per-datum sections, and linkonce sections. Make
1820 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1821 .sbss2.
1822
165589e4
JE
18232000-08-10 Jason Eckhardt <jle@cygnus.com>
1824
1825 * emulparams/elf32_i860.sh: New file.
1826 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1827 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1828 (eelf32_i860.c): New rule.
1829 * Makefile.in: Regenerate.
1830
345a835d
NC
18312000-08-10 Nick Clifton <nickc@cygnus.com>
1832
1833 * emulparams/mipspe.sh (ENTRY): Add definition.
1834
e374f1d9
NC
18352000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1836
1837 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1838 in error message.
1839
236d5abf
NC
18402000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1841
1842 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1843 the final size of .bss section.
1844 * scripttempl/elfm68hc12.sc: Likewise.
1845
4b209b22
AM
18462000-08-04 Alan Modra <alan@linuxcare.com.au>
1847
1848 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1849 gld${EMULATION_NAME}_parse_args for consistency. Combine
1850 lastoptind and prevoptind vars, and keep track of last optind.
1851 (gld_${EMULATION_NAME}_list_options): Rename to
1852 gld${EMULATION_NAME}_list_options.
1853
28423a68
AM
18542000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1855
1856 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1857 (i586-sco-sysv5uw7.1.0).
1858
b2009ff7
L
18592000-07-27 H.J. Lu <hjl@gnu.org>
1860
1861 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1862 (PARSE_AND_LIST_PROLOGUE): New.
1863 (PARSE_AND_LIST_LONGOPTS): Likewise.
1864 (PARSE_AND_LIST_OPTIONS): Likewise.
1865 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1866 (PARSE_AND_LIST_EPILOGUE): Likewise.
1867
04925e1e
AM
18682000-07-28 Alan Modra <alan@linuxcare.com.au>
1869
41392f03
AM
1870 * emultempl/armelf.em: Elide functions common to elf32.em,
1871 ie. most of the file.
1872 (arm_elf_after_open): New. Do arm specific things then call
1873 gld${EMULATION_NAME}_after_open.
1874 (arm_elf_before_allocation): New. Call
1875 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1876 (PARSE_AND_LIST_PROLOGUE): Define.
1877 (PARSE_AND_LIST_SHORTOPTS): Define.
1878 (PARSE_AND_LIST_LONGOPTS): Define.
1879 (PARSE_AND_LIST_OPTIONS): Define.
1880 (PARSE_AND_LIST_ARGS_CASES): Define.
1881 (LDEMUL_AFTER_OPEN): Define.
1882 (LDEMUL_BEFORE_ALLOCATION): Define.
1883 (LDEMUL_BEFORE_PARSE): Define.
1884 (LDEMUL_FINISH): Define.
1885
1886 * emultempl/hppaelf.em: Similarly zap most of this file.
1887 (hppaelf_add_stub_section): Prototype.
1888 (hppaelf_layaout_sections_again): Prototype.
1889 (hook_in_stub): Prototype.
1890 (LDEMUL_SET_OUTPUT_ARCH): Define.
1891 (LDEMUL_FINISH): Define.
1892 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1893
1894 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1895 (EXTRA_EM_FILE): New.
1896 * emulparams/armelf_linux.sh: Likewise.
1897 * emulparams/armelf_linux26.sh: Likewise.
1898 * emulparams/hppalinux.sh: Likewise.
1899 * emulparams/hppaelf.sh: Likewise.
1900 (NOP): Define.
1901
1902 * emultempl/elf32.em: Fix formatting.
1903 (EXTRA_EM_FILE): Source it.
1904 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1905 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1906 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1907 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1908 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1909 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1910 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1911 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1912 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1913 allow functions in this file to be overridden.
1914 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1915
1916 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1917
04925e1e
AM
1918 * emultempl/elf32.em: Reorganize file.
1919
88cdf297
NC
19202000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1921
1922 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1923 specific option to fit 64-bit executable in the lower
1924 31-bit address range. This is done by changing start
1925 address of .interp (the very first section of executable)
1926 and then setting EF_ALPHA_32BIT elf header flag.
1927
20bccb34
NC
19282000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1929
1930 * emultempl/m68kcoff.em: New file.
1931 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1932 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1933 generic.em.
1934 * Makefile.in: Regenerate.
1935
699845ef
L
19362000-07-20 H.J. Lu <hjl@gnu.org>
1937
1938 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1939 and "disable-new-dtags" to stop getopt from treating -d/-e as
1940 abbreviations for these options.
1941
6c1439be
L
19422000-07-20 H.J. Lu <hjl@gnu.org>
1943
1944 * ld.texinfo: Add documentation for --disable-new-dtags and
1945 --enable-new-dtags.
1946
1947 * ldmain.c (main): Initialize link_info.new_dtags to false.
1948
1949 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1950 --disable-new-dtags and --enable-new-dtags.
1951 (gld_${EMULATION_NAME}_list_options): Likewise.
1952
28c309a2
NC
19532000-07-05 Kenneth Block <krblock@computer.org>
1954
a2b64bed
NC
1955 * lexsup.c: Add optional style to demangle switch
1956 * ld.texinfo: Document optional style to demangle switch.
50bbae35 1957
9d06555c
HPN
19582000-07-20 Hans-Peter Nilsson <hp@axis.com>
1959
1960 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1961 ecrislinux.o.
1962 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1963 Regenerate dependencies.
1964 * Makefile.in: Rebuild.
1965 * configure.tgt (cris-*-*): New target.
1966 * emulparams/crisaout.sh, emulparams/criself.sh,
1967 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1968 * po/POTFILES.in, po/ld.pot: Regenerate.
1969
19e3be22
L
19702000-07-20 H.J. Lu <hjl@gnu.org>
1971
1972 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1973 Print out ignored -z options.
1974
e0ee487b
L
19752000-07-19 H.J. Lu <hjl@gnu.org>
1976
19e3be22
L
1977 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1978 (PARSE_AND_LIST_PROLOGUE): New.
1979 (PARSE_AND_LIST_LONGOPTS): Likewise.
1980 (PARSE_AND_LIST_OPTIONS): Likewise.
1981 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1982
1983 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1984
1985 * lexsup.c (ld_options): Comment out 'z'.
1986 (parse_args): Likewise.
1987
1988 * emultempl/elf32.em: Include "elf/common.h".
1989 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1990 options.
1991 (gld_${EMULATION_NAME}_list_options): Likewise.
1992
1993 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 1994
49e56c49
L
19952000-07-19 H.J. Lu <hjl@gnu.org>
1996
1997 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1998 bfd_elf_set_dt_needed_soname ().
1999
9d68bc82
DD
20002000-07-18 DJ Delorie <dj@cygnus.com>
2001
2002 * pe-dll.c (pe_dll_id_target): check object target name also
2003
53db15ed
HPN
20042000-07-18 Hans-Peter Nilsson <hp@axis.com>
2005
2006 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2007 ${INIT_END} if relocating.
2008 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2009
0ad8cf4c
DD
20102000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2011
a2b64bed 2012 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
2013 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2014 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2015 errors introduced by the old dynamic lib search order.
2016
874c8c99
DD
20172000-07-17 DJ Delorie <dj@cygnus.com>
2018
2019 * pe-dll.c (process_def_file): auto-export data items also
2020 (pe_process_import_defs): also see if _imp_ form needed
2021
5b4cf3f4
DD
20222000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2023
2024 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2025 for dll import libraries
2026
062739d1
NC
20272000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2028
2029 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 2030 gcc 2.95.2 and later.
062739d1 2031
1c64c4ed
NC
20322000-07-11 Kazu Hirata <kazu@hxi.com>
2033
50bbae35
AM
2034 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2035 message.
1c64c4ed 2036
b71e2778
AM
20372000-07-10 Alan Modra <alan@linuxcare.com.au>
2038
2039 * ldemul.h (struct lang_input_statement_struct): Remove forward
2040 declaration.
2041 (struct search_dirs): Likewise.
2042 * ldfile.h (struct lang_input_statement_struct): Likewise.
2043 Protect file from multiple inclusion.
2044 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2045 declaration from macro to file scope.
2046
2047 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2048 * ldgram.y: Likewise here.
2049 * ldlang.c: And here.
2050 * ldmain.c: And here.
2051 * mpw-elfmips.c: And here.
2052 * mpw-eppcmac.c: And here.
2053 * emultempl/aix.em: And here.
2054 * emultempl/armcoff.em: And here.
2055 * emultempl/armelf.em: And here.
2056 * emultempl/armelf_oabi.em: And here.
2057 * emultempl/beos.em: And here.
2058 * emultempl/elf32.em: And here.
2059 * emultempl/hppaelf.em: And here.
2060 * emultempl/linux.em: And here.
2061 * emultempl/lnk960.em: And here.
2062 * emultempl/pe.em: And here.
2063 * emultempl/sunos.em: And here.
2064 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2065 * mpw-idtmips.c: Ditto.
2066 * emultempl/generic.em: Ditto.
2067 * emultempl/gld960.em: Ditto.
2068 * emultempl/gld960c.em: Ditto.
2069 * emultempl/mipsecoff.em: Ditto.
2070 * emultempl/ticoff.em: Ditto.
2071 * emultempl/vanilla.em: Ditto.
2072
2073 * pe-dll.c: Include ldfile.h
2074 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2075
2076 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2077 arguments to bfd_elf32_size_dynamic_sections call.
2078 (gldelf32ebmip_place_orphan): Add missing arguments to
2079 lang_leave_output_section_statement call.
2080
2ef53d66
L
20812000-07-10 H.J. Lu <hjl@gnu.org>
2082
2083 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2084 DLL_SUPPORT.
2085 (strhash): Likewise.
2086 (compute_dll_image_base): Likewise.
2087 (pe_undef_found_sym): Likewise.
2088 (pe_undef_cdecl_match): Likewise.
2089 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2090 argument "arch" with ATTRIBUTE_UNUSED.
2091
9a8cbb09
AM
20922000-07-10 Alan Modra <alan@linuxcare.com.au>
2093
2094 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2095
2096 From Ryan Bradetich <rbradetich@uswest.net>
2097 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 2098
4900fc06
AM
20992000-07-09 Alan Modra <alan@linuxcare.com.au>
2100
2101 Changes to create multiple linker stubs, positioned immediately
2102 before the section where they are required.
2103 * emultempl/hppaelf.em: Include elf32-hppa.h.
2104 (stub_sec, file_chain): Delete.
2105 (hppaelf_create_output_section_statements): Don't make a stub
2106 section here.
2107 (hook_stub_info): New struct.
2108 (hook_in_stub): New function.
2109 (hppaelf_add_stub_section): New function.
2110 (hppaelf_finish): Do nothing for relocateable links. Modify the
2111 call to elf32_hppa_size_stubs. Move code for updating section
2112 layout from here...
2113 (hppaelf_layaout_sections_again): ..to here, a new function.
2114
2115 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2116 broken list handling. Pass in a pointer to the list.
2117 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2118 for above changes.
2119 (hppaelf_before_parse): Prototype.
2120 (hppaelf_set_output_arch): Prototype.
2121 (hppaelf_create_output_section_statements): Prototype.
2122 (hppaelf_delete_padding_statements): Prototype.
2123 (hppaelf_finish): Prototype.
2124
2125 Merge from elf32.em
2126 * emultempl/hppaelf.em: Include ctype.h.
2127 (struct orphan_save): New.
2128 (gld${EMULATION_NAME}_place_orphan): New.
2129 (output_rel_find): New.
2130 (hppaelf_get_script): Update from elf32.em.
2131 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2132 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 2133 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
2134
2135 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2136 ehppalinux.o, sort it. Regenerate dependencies.
2137 (ehppalinux.c): Depend on hppaelf.em
2138 * Makefile.in: Regenerate.
2139
2140 * configure.tgt: targ_emul=hppalinux for hppa*linux
2141
2142 * emulparams/hppalinux.sh: New.
2143 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2144
227aeb07
AM
21452000-07-08 Alan Modra <alan@linuxcare.com.au>
2146
2147 * lexsup.c (parse_args): Copy section name.
2148
28609fd4 21492000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 2150
2ef53d66 2151 * emultempl/pe.em: institute the following search order for
602e90d3
DD
2152 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2153 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2154 static lib (libfoo.a) if none of the above are found.
2155
5f577f7d
DD
21562000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2157
50bbae35 2158 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 2159 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 2160 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
2161 (gld_${EMULATION_NAME}_parse): Handle.
2162 (strhash): New static function.
50bbae35 2163 (compute_dll_image_base): New static function.
5f577f7d
DD
2164 (gld_${EMULATION_NAME}_set_symbols): Use.
2165
9a8cbb09 21662000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
2167
2168 * MAINTAINERS: new
2169
3548145d 21702000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
2171
2172 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2173 * emulparams/elf32btsmip.sh: New file.
2174 * Makefile.am: Add traditional mips target.
2175 * Makefile.in: Rebuild.
2176
67798033
L
21772000-07-01 H.J. Lu <hjl@gnu.org>
2178
2179 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2180 automake to use YLWRAP.
2181 * Makefile.in: Rebuild.
2182
0bdaf48b
AM
21832000-07-01 Alan Modra <alan@linuxcare.com.au>
2184
2185 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2186 (CLEANFILES): Add DEPA.
2187 * Makefile.in: Regenerate.
2188
c9e769c2
TW
21892000-06-30 Timothy Wall <twall@ppc>
2190
2191 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2192 the page in the upper octet of the address.
2193
65aa24b6
NC
21942000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2195
2196 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2197
4667035e
AM
21982000-06-24 Alan Modra <alan@linuxcare.com.au>
2199
2200 * NEWS: arm-elf does --gc-sections too.
2201
1581f8c9
AM
22022000-06-22 Alan Modra <alan@linuxcare.com.au>
2203
2204 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2205 find one.
2206 * Makefile.in: Regenerate.
2207
01580992
L
22082000-06-21 H.J. Lu <hjl@gnu.org>
2209
2210 * Makefile.am: Rebuild dependency.
2211 * Makefile.in: Rebuild.
2212
bbeb2e03
L
22132000-06-20 H.J. Lu <hjl@gnu.org>
2214
2215 * Makefile.am: Rebuild dependency.
2216 * Makefile.in: Rebuild.
2217
74459f0e
TW
22182000-06-20 Timothy Wall <twall@cygnus.com>
2219
2220 * scripttempl/tic54xcoff.sc: New.
2221 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2222 * gen-doc.texi: Add flag for TI COFF.
2223 * ld.texinfo: Add documentation for TI COFF handling switches.
2224 * emultempl/ticoff.em: New. TI COFF handling.
2225 * configure.tgt: Add tic54x target.
2226 * Makefile.am: Add tic54x target.
2227 * Makefile.in: Ditto.
2228
2ab47eed
AM
22292000-06-20 Alan Modra <alan@linuxcare.com.au>
2230
2231 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2232 checking for backslashes.
2233
919e4093
AM
22342000-06-19 Alan Modra <alan@linuxcare.com.au>
2235
2236 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2237
987fd5b4
AM
22382000-06-18 Alan Modra <alan@linuxcare.com.au>
2239
2240 * NEWS: Update list of targets supporting --gc-sections.
2241
2242 * scripttempl/elf.sc: KEEP .eh_frame contents.
2243 * scripttempl/elfd30v.sc: Same here.
2244
60bcf0fa
NC
22452000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2246
2247 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2248 and m68hc11 (elf).
2249 * Makefile.in: Rebuild.
2250 * configure.tgt: Recognize m68hc12 and m68hc11.
2251 * scripttempl/elfm68hc12.sc: New file.
2252 * emulparams/m68hc12elfb: New emulation.
2253 * emulparams/m68hc12elf: New emulation.
2254 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2255 (includes a memory.x script to define the ROM and RAM banks).
2256 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2257 New configuration files for support of Motorola 68hc11
2258
c7c54483
AM
22592000-06-15 Alan Modra <alan@linuxcare.com.au>
2260
2261 * ldmain.c (main): Only change SEC_READONLY for final link.
2262
bcef29e6
L
22632000-06-13 H.J. Lu <hjl@gnu.org>
2264
2265 * configure: Regenerate.
2266
946efd95
DB
22672000-06-08 David O'Brien <obrien@FreeBSD.org>
2268
2269 * configure.in (VERSION): Update to show this is the CVS mainline.
2270
57a6fd07
DB
22712000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2272
2273 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2274 input objects to be ECOFF.
2275 (check_sections): einfo takes %B, not %P, to print a BFD name.
2276
e06cae36
L
22772000-06-05 Michael Matz <matz@ifh.de>
2278
2279 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 2280 version scripts.
e06cae36 2281
d952f17a 2282 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 2283
2f0b56c0
DC
22842000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2285
2286 * emulparams/avr1200.sh (STACK): Define as 0.
2287 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2288 * emulparams/avr4433.sh (STACK): Likewise.
2289 * emulparams/avr44x4.sh (STACK): Likewise.
2290 * emulparams/avr85xx.sh (STACK): Likewise.
2291 * emulparams/avrmega103.sh (STACK): Likewise.
2292 * emulparams/avrmega161.sh (STACK): Likewise.
2293 * emulparams/avrmega603.sh (STACK): Likewise.
2294 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2295 (__stack): Define from ${STACK} for main().
2296
2114f57b
AM
22972000-05-26 Alan Modra <alan@linuxcare.com.au>
2298
2299 * Makefile.am: Update dependencies with "make dep-am"
2300 * Makefile.in: Regenerate.
2301
5af11cab
AM
23022000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2303
2304 * ldmain.c: Include filenames.h.
2305 (set_scripts_dir): Support backslashes in program name.
2306
1f0df59a
NC
23072000-05-22 Igor Shevlyakov <igor@windriver.com>
2308
2309 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
2310 read-only, don't forget to reset SEC_READONLY because it
2311 could be already set.
1f0df59a 2312
176355da
NC
23132000-05-22 Thomas de Lellis <tdel@windriver.com>
2314
50bbae35
AM
2315 * ld.1: Add documentation for new command line option:
2316 --section-start <sectionname>=<sectionorg>
2317 This is a generic version of -Ttext etc. which accepts
2318 any section name as a parameter instead of just text/data/
2319 bss.
2320 * ld.texinfo: More docs.
2321 * NEWS: More docs.
2322 * lexsup.c: (parse_args): Recognize new command line option.
176355da 2323 (ld_options): Add new option.
50bbae35 2324
8c5ff972
L
23252000-05-18 H.J. Lu <hjl@gnu.org>
2326
2327 * lexsup.c (parse_args): `i' == `r', not `q'.
2328
0b76fe77
JL
2329Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2330
2331 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2332
a712da20
NC
23332000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2334 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 2335
a712da20
NC
2336 Add support for '-q' == '--emit-relocs' switch.
2337 * ldmain.c (main): Default to false.
2338 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2339 * NEWS: Describe the emitrelocations switch.
2340 * ld.texinfo: Describe the emitrelocations switch.
2341
690a460e
NC
23422000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2343
a2b64bed 2344 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
2345 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2346 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2347 link options.
50bbae35 2348
c2f1343c
AM
23492000-05-15 David O'Brien <obrien@FreeBSD.org>
2350
2351 * lexsup.c (parse_args): Update the year in the copyright notice.
2352
897083bd
AM
23532000-05-13 Alan Modra <alan@linuxcare.com.au>
2354
2355 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2356 Replace defines with those from intl/libgettext.h to quieten gcc
2357 warnings.
2358
cd4c806a
L
23592000-05-10 H.J. Lu <hjl@gnu.org>
2360
2361 * ldlang.c (open_input_bfds): Don't load the same file within
2362 a group again if the whole archive has been loaded already.
2363
93697284
AM
23642000-05-03 Alan Modra <alan@linuxcare.com.au>
2365
2366 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2367 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2368 strtoul.
2369
ebd6fc29
JW
2370Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2371
99a4150f 2372 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 2373
ebd6fc29
JW
2374 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2375 host "ia64-*-linux-gnu*".
2376
a1934524
AM
23772000-04-29 Andreas Jaeger <aj@suse.de>
2378
2379 * ld.h: Correctly check GCC version.
2380
730a39a0
JL
2381Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2382
2383 * Makefile.am: Add PA64 support. Add missing dependencies for
2384 PA32 elf support.
2385 * Makefile.in: Rebuilt.
2386 * configure.tgt: Add PA64 support (currently disabled).
2387
aea4bd9d
AM
23882000-04-25 Alan Modra <alan@linuxcare.com.au>
2389
2390 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2391 (output_rel_find): New function.
2392 (hold_section, hold_use): Delete.
2393 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2394 hold_interp): Make local to place_orphan.
2395 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2396 rather than place_section to find possible previous use of orphan.
2397 Similarly find the place-holder output sections. Use returned
2398 value from lang_enter_output_section_statement rather than calling
2399 lang_output_section_statement_lookup.
2400 * emultempl/armelf.em: Same here.
2401 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2402
2403 * ldlang.c (lang_enter_output_section_statement): Return output
2404 section statement.
2405 * ldlang.h (lang_enter_output_section_statement): Change
2406 declaration too.
2407
2408 * ldlang.h (lang_output_section_statement): Export it.
2409 * ldlang.c (lang_output_section_statement): Ditto.
2410
2b5fc1f5
NC
24112000-04-24 Nick Clifton <nickc@cygnus.com>
2412
2413 * ld.texinfo (Output Section Data): Add note that section data
2414 commands cannot appear outside of section directives.
2415
d8475ff6
JL
24162000-04-2 Matthew Green <mrg@cygnus.com>
2417
2418 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2419
800eeca4
JW
2420Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2421 David Mosberger <davidm@hpl.hp.com>
2422
2423 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2424 (eelf64_ia64.c): New rule.
2425 * Makefile.in: Rebuild.
2426 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2427 * emulparams/elf64_ia64.sh: New file.
50bbae35 2428
c9637625
RH
24292000-04-21 Richard Henderson <rth@cygnus.com>
2430
2431 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2432
28ea9521
AM
24332000-04-19 Alan Modra <alan@linuxcare.com.au>
2434
2435 * dep-in.sed: Match space at start of file name, not at end.
2436
20d04697
L
24372000-04-18 H.J. Lu <hjl@gnu.org>
2438
2439 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2440 lang_leave_output_section_statement () after calling
2441 lang_enter_output_section_statement ().
2442 * emultempl/armelf.em: Likewise.
2443
5ba47421
AM
24442000-04-18 Alan Modra <alan@linuxcare.com.au>
2445
2446 * emultempl/elf32.em (struct orphan_save): Add section field.
2447 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2448 better order, and place first orphan section as we did before the
2449 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2450 Don't call make_bfd_section here, let wild_doit do the job for us.
2451 Don't build a statement list when we'll only throw it away.
2452 * emultempl/armelf.em: Ditto.
2453 * emultempl/pe.em: Similarly.
2454
bdbe5705
GK
24552000-04-14 Geoff Keating <geoffk@cygnus.com>
2456
2457 * scripttempl/elfppc.sc: Remove.
2458 * emulparams/elf32ppc.sh: Use elf.sc.
2459 * emulparams/elf32lppc.sh: Use elf.sc.
2460 * emulparams/elf32ppclinux.sh: Use elf.sc.
2461 * emulparams/elf32ppcsim.sh: New file.
2462 * emulparams/elf32lppcsim.sh: New file.
2463 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2464 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2465 * Makefile.in: Regenerate.
2466 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2467
01cc8ff8
AM
24682000-04-14 Alan Modra <alan@linuxcare.com.au>
2469
5ba47421 2470 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 2471 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
2472 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2473 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
2474 Also set all relocateable section start addresses.
2475
6c86c541
GK
24762000-04-13 Geoff Keating <geoffk@cygnus.com>
2477
2478 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2479 Add new BSS_PLT variable for when .plt need not be contained in
2480 the file. Move _etext so that it is also after .fini, and provide
2481 both etext and _etext with a leading underscore. Mark the start
2482 and end of .sbss.
2483
6a345e87
AM
24842000-04-12 Alan Modra <alan@linuxcare.com.au>
2485
2486 * emultempl/elf32.em (struct orphan_save): New.
2487 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2488 hold_interp): Make them struct orphan_save.
2489 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2490 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2491 the end of the relevant section list. Also add associated section
2492 statements to the end of any previous orphan statements.
2493 * emultempl/armelf.em: Similarly.
2494 * emultempl/pe.em: Similarly.
2495
8be86746
AM
24962000-04-11 Alan Modra <alan@linuxcare.com.au>
2497
2498 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2499
a2d91340 2500Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 2501
a2d91340 2502 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 2503 --enable-build-warnings option.
a2d91340
AC
2504 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2505 * Makefile.in, configure: Re-generate.
2506
41b49281
AM
25072000-04-04 Alan Modra <alan@linuxcare.com.au>
2508
8ad3436c
AM
2509 * po/ld.pot: Regenerate.
2510
2511 * lexsup.c (help): Restore translated part of bug string.
2512
41b49281
AM
2513 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2514 (DEP): Quote when passing vars to sub-make. Add warning message
2515 to end.
2516 (DEP1): Rewrite for "gcc -MM".
2517 (CLEANFILES): Add DEP2.
2518 Update dependencies.
2519 * Makefile.in: Regenerate.
2520
c20f4f8c
AM
25212000-04-03 Alan Modra <alan@linuxcare.com.au>
2522
2523 * ld.h: #include "bin-bugs.h"
2524 * lexsup.c (help): Use REPORT_BUGS_TO.
2525
adde6300
AM
25262000-03-27 Denis Chertykov <denisc@overta.ru>
2527
2528 * configure.tgt (avr-*-*): New target support.
2529 * Makefile.am: Likewise.
2530 * scripttempl/elf32avr.sc: New script file.
2531 * emulparams/avr1200.sh: New file.
2532 * emulparams/avr23xx.sh: New file.
2533 * emulparams/avr4433.sh New file.
2534 * emulparams/avr44x4.sh New file.
2535 * emulparams/avr85xx.sh New file.
2536 * emulparams/avrmega103.sh New file.
2537 * emulparams/avrmega161.sh New file.
2538 * emulparams/avrmega603.sh New file.
2539 * Makefile.in: Regenerate.
2540
9282ff41
L
25412000-03-09 Andreas Jaeger <aj@suse.de>
2542
2543 * Makefile.am (check-DEJAGNU): Also unset LANG.
2544 * Makefile.in: Rebuild.
2545
a9998805
ILT
25462000-03-06 Ian Lance Taylor <ian@zembu.com>
2547
2548 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2549 archive.
2550
f9bc20e7
NC
25512000-03-02 H.J. Lu <hjl@gnu.org>
2552
2553 * emulparams/elf32mcore.sh: Include "getopt.h".
2554
4e277b38
ILT
25552000-03-01 Ian Lance Taylor <ian@zembu.com>
2556
2557 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2558
f0c87f88
NC
25592000-03-01 H.J. Lu <hjl@gnu.org>
2560
2561 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2562 * emulparams/shpe.sh: Likewise.
2563
25642000-03-01 Nick Clifton <nickc@cygnus.com>
2565
2566 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2567 to unused parameters.
2568
2569 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2570 functions only used by DLL code.
2571 (_place_orphan): Initialise 'dollar'.
2572
b6f29aaa
L
25732000-03-01 H.J. Lu <hjl@gnu.org>
2574
2575 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2576 indicate if the undefined symbol is a fatal error or not.
2577 Don't delete the output file if "fatal" is false.
2578
af28fce3
L
25792000-02-29 H.J. Lu <hjl@gnu.org>
2580
50bbae35 2581 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
2582 Set LC_COLLATE and LC_ALL to null and export them. It is for
2583 sort which expects the C locale.
2584 Add $(LIBS) to all $(HOSTING_LIBS).
2585 * Makefile.in: Rebuild.
2586
40d109bf
AM
25872000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
2588
2589 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2590 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2591 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2592 (ld_emulation_xfer_struct): Add missing NULL initialiser for
2593 find_potential_libraries.
2594
db5be682
JB
25952000-02-28 Jim Blandy <jimb@redhat.com>
2596
2597 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 2598 list entries; the lexer considers commas to be valid part of a
db5be682
JB
2599 filename, so in something like `foo, bar' the comma is considered
2600 part of the first filename, `foo,'.
2601 * ld.texinfo: Update section on EXCLUDE_FILE lists.
2602
3558ff4c
ILT
26032000-02-27 Loren J. Rittle <ljrittle@acm.org>
2604
2605 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2606 host "i[3456]86-*-freebsdelf*".
2607
4eee2681
ILT
26082000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
2609
2610 * scripttempl/i386go32.sc: Move misplaced semicolons.
2611
8d75d12d
ILT
26122000-02-25 Ian Lance Taylor <ian@zembu.com>
2613
2614 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2615 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2616 (eelf64hppa.c, ehppaelf.c): Remove targets.
2617 * Makefile.in: Rebuild.
2618
a1836d49
AO
26192000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2620
ad51fb57
AO
2621 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2622 GNU/Linux/sparc, but keep the default as 32.
2623
a1836d49
AO
2624 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2625 it default if sparcv9 or sparc64.
2626
344a211f
NC
26272000-02-24 Nick Clifton <nickc@cygnus.com>
2628
2629 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2630 * Makefile.in: Regenerate.
2631 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2632
2633 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2634 find_potential_libraries.
2635 * ldemul.c (ldemul_find_potential_libraries): New function.
2636
2637 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 2638 exported.
344a211f
NC
2639 (ldfile_open_file): Call ldemul_find_potential_libraries.
2640 * ldfile.h: Add prototype for ldfile_open_file_search.
2641
2642 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2643
2644 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2645 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2646
2647 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2648 (gld_X_find_potential_libraries): New function. Search for
2649 libraries called "*.lib".
2650
a2b64bed 2651 * scripttempl/pe.sc: Add .pdata section.
344a211f 2652
eaba1dd3
RH
26532000-02-23 Richard Henderson <rth@cygnus.com>
2654
2655 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2656 Add and use memory regions.
2657
5b93d8bb
AM
26582000-02-23 Linas Vepstas (linas@linas.org)
2659
2660 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2661
2662 * Makefile.am: Add support for Linux/IBM 370.
2663 * configure.tgt: Likewise.
2664
2665 * Makefile.in: Regenerate.
2666
f6af82bd
AM
26672000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2668
2669 * ldlang.c (print_input_section, print_data_statement,
2670 print_reloc_statement, print_padding_statement, insert_pad,
2671 size_input_section, lang_check_section_addresses,
2672 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 2673 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
2674 (lang_do_assignments): Also change `size' to unsigned.
2675
9e673ad1
RH
26762000-02-16 Richard Henderson <rth@cygnus.com>
2677
2678 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2679
562d3460
TW
26802000-02-16 Timothy Wall <twall@cygnus.com>
2681
2682 * mri.c (mri_draw_tree): Add default LMA region argument to call
2683 to lang_leave_output_section_statement.
2684 * ldlang.h: Update prototypes with LMA region arguments.
2685 * ldlang.c (lang_size_sections): Encapsulate region bounds
2686 checking in os_check_region call.
2687 (os_check_region): New function.
2688 (lang_output_section_statement_lookup): Initialize lma_region.
2689 (lang_leave_output_section_statement): Add LMA region argument.
2690 (lang_leave_overlay): Ditto.
2691 * ldgram.y: Handle LMA region syntax.
2692 * ld.texinfo (Output Section Description): Describe LMA region usage.
2693 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 2694 lma region in call to lang_leave_output_section_statement.
562d3460 2695 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 2696 lma region in call to lang_leave_output_section_statement.
562d3460 2697 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 2698 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
2699
2700
9e4ed18c
TW
27012000-02-04 Timothy Wall <twall@redhat.com>
2702
2703 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2704 octets when calculating section end addresses.
2705
32edc927
TW
27062000-02-04 Timothy Wall <twall@redhat.com>
2707
2708 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2709
4cbfc3ac
TW
27102000-02-03 Timothy Wall <twall@redhat.com>
2711
a2b64bed 2712 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 2713 octet count.
a2b64bed 2714 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
2715 print_reloc_statement, print_padding_statement): Print target
2716 address values and section sizes as bytes, not octets.
2717 (insert_pad) Calculate padding size in octets, and adjust "dot"
2718 by bytes.
2719 (size_input_section) Always adjust "dot" by bytes, not octets.
2720 (lang_check_section_addresses, lang_do_assignments) Adjust
2721 "dot" by bytes, not octets. Use the larger of the directive size
2722 or octets_per_byte for the number of octets actually allocated in
2723 the output section.
2724 (lang_set_startof) Make sure STARTOF returns a target address.
2725 (lang_one_common) Record size changes in octets.
2726 (lang_abs_symbol_at_end_of) Section end symbol's value is
2727 recorded in target bytes.
2728 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2729 to be clear about behavior when an octet is smaller than one byte.
50bbae35 2730
305c7206
AM
27312000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2732
2733 * ldcref.c (output_cref): Don't pass message strings to printf
2734 as format arg.
2735 Update copyright.
2736
2737 * ldmisc.c (vfinfo): Same here.
2738 Update copyright.
2739
e1c47aa4
AM
27402000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2741
2742 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2743 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2744 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2745 Add missing NULL initialisers, and comments.
2746
2747 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2748
13392b77
NC
27492000-01-21 Nick Clifton <nickc@cygnus.com>
2750
2751 * ldlang.c (lang_size_sections): Fix typo in comment.
2752
cce4c4c5
NC
27532000-01-18 H.J. Lu <hjl@gnu.org>
2754
2755 * ldlang.c (lang_size_sections): Also update the current
2756 address of a region if the SEC_NEVER_LOAD bit is not set.
2757
0decc840
NC
27582000-01-10 Philip Blundell <pb@futuretv.com>
2759
2760 * configure.tgt (arm*-*-conix*): New target.
2761
4e53152f
NC
27622000-01-07 Nick Clifton <nickc@cygnus.com>
2763
2764 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
2765 line switches with -Wl, (or whatever is appropriate) if it is
2766 being invoked by a comnpiler driver program.
50bbae35 2767 Fix description of the behaviour of the -n command line switch.
4e53152f 2768
18625d54
CM
2769Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2770
2771 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2772 (name_list): New.
2773 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2774 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2775 (exclude_name_list): New.
2776 ldlang.c (walk_wild_section): Support list of excluded files.
2777 (print_wild_statement): Likewise.
2778 (lang_add_wild): Likewise.
2779 * ldlang.h (lang_wild_statement_type): Likewise.
2780 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 2781
5aaace27
NC
27822000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2783
870df5dc
NC
2784 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2785 (process_def_file): Use.
2786 (pe_dll_compat_implib): New variable.
2787 (make_one): Use.
50bbae35 2788
870df5dc
NC
2789 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2790 pe_dll_compat_implib.
50bbae35
AM
2791
2792 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
2793 compat-implib options.
2794 (gld_${EMULATION_NAME}_list_options): List new options.
2795 (gld_${EMULATION_NAME}_parse_args): Handle.
2796
50bbae35 2797 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 2798 dll.
50bbae35
AM
2799
2800 * deffilep.y (opt_name): Allow "." in name.
5aaace27 2801
2f6d2f85 2802For older changes see ChangeLog-9899
252b5132
RH
2803\f
2804Local Variables:
2805mode: change-log
2806left-margin: 8
2807fill-column: 74
2808version-control: never
2809End:
This page took 0.361338 seconds and 4 git commands to generate.