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