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