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