* genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
[platform/upstream/binutils.git] / ld / ChangeLog
1 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
2
3         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
4         TARGET_PAGE_SIZE.
5         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
6         SEGMENT_SIZE alignment.
7         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
8         (SEGMENT_SIZE): Define.
9
10         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
11         (fold_binary): Correct abs - non-abs case.
12         (fold_trinary): New.  Split out from exp_fold_tree.
13
14 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
15
16         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
17         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
18         for start of .data, instead align up to 256M boundary.
19         * scripttempl/aix.sc: Likewise.
20
21 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
22
23         * scripttempl/i386go32.sc: Handle bss unique sections.
24
25 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
26
27         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
28
29 2002-09-17  Stan Cox  <scox@redhat.com>
30
31         * emulparams/elf32bmipn32-defs.sh: New file.
32         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
33         * emulparams/elf32btsmipn32.sh: Likewise.
34         * emulparams/elf64bmip.sh: Likewise.
35         * emulparams/elf64btsmip.sh: Likewise.
36
37 2002-09-16  Bruno Haible  <bruno@clisp.org>
38
39         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
40         elf32-i386-freebsd.
41         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
42         elf64-alpha-freebsd.
43
44 2002-09-11  Nick Clifton  <nickc@redhat.com>
45
46         * NEWS: New TI port supports both C4x and C3x series of DSPs.
47
48         * po/tr.po: Updated Turkish translation.
49
50 2002-09-06  Jeffrey A Law  (law@redhat.com)
51
52         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
53
54 2002-09-02  Nick Clifton  <nickc@redhat.com>
55
56         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
57         __ep.
58         * emulparams/v850.sh (TEMPLATE_NAME): Define.
59
60 2002-08-30  Nick Clifton  <nickc@redhat.com>
61
62         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
63         used.  Change INSN to start at 0x01000000 and extend for
64         256K (ignoring holes).  Start the STACK on a word aligned
65         boundary.
66         (.rodata): Start it at the READONLY_START_ADDR.
67
68 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
69
70         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
71
72 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
73
74         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
75         added makefile targets for this file.
76         * Makefile.in: Regenerate.
77         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
78         * NEWS: Mention new port.
79
80 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
81
82         * emulparams/tic3xcoff.sh: New file.
83         * emulparams/tic4xcoff.sh: New file.
84         * scripttempl/tic3xcoff.sc: New file.
85         * scripttempl/tic4xcoff.sc: New file.
86
87 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
88
89         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
90         strtoul and strtoull with bfd_scan_vma.
91         (gld${EMULATION_NAME}_read_file): Likewise.
92
93 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
94
95         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
96
97 2002-08-27  Egor Duda  <deo@logos-m.ru>
98
99         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
100         Add symbols for application to access them.
101
102 2002-08-27  Nick Clifton  <nickc@redhat.com>
103
104         * emultempl/armelf.em:  Revert this patch, it is not needed.
105         
106         2002-08-22  Adam Nemet  <anemet@lnxw.com>
107
108 2002-08-20 Dan Kegel <dank@kegel.com>
109         
110         * configure.in: added --with-lib-path argument to ld's configure
111         to set LIB_PATH.
112         * ld/NEWS: Document new switch.
113         * ld/README: Mention new switch.
114         * configure: Regenerate.
115         * Makefile.in: Regenerate.
116         
117         Based on this patch:
118         2001-04-25  Christopher Faylor <cgf@cygnus.com>
119
120         * Makefile.in (LIB_PATH): Make configurable.
121         (GENSCRIPTS): Set LIB_PATH in environment.
122         * configure.in: Substitute LIB_PATH.
123
124 2002-08-22  Adam Nemet  <anemet@lnxw.com>
125
126         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
127         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
128         depending on the type of the function.
129         (arm_elf_convert_thumb_symbol_to_address): New function.
130
131 2002-08-22  Graeme Peterson  <gp@qnx.com>
132
133         * Makefile.am: Add esh{l}elf_nto.o files.
134         * Makefile.in: Regenerate.
135         * configure.tgt: Add support for sh-**-nto* targets.
136         * emulparams/shelf_nto.sh: New file.
137         * emulparams/shlelf_nto.sh: New file.
138
139 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
140
141         * ldlang.c (offsetof): Define if not defined.
142
143 2002-08-14  H.J. Lu <hjl@gnu.org>
144
145         * configure.tgt: Always enable 64bit emulations for 32bit
146         Linux/mips.
147
148 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
149
150         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
151         (MAXPAGESIZE): Set to 1.
152
153         * ld.h (ALIGN_N): Delete.
154         * ldexp.h (align_n): Declare.
155         * ldexp.c (align_n): New function.
156         (fold_binary): Use align_n instead of ALIGN_N.
157         (exp_fold_tree): Likewise.
158         * ldlang.c (lang_size_sections_1): Likewise.
159         (lang_one_common): Likewise.
160         * ld.texinfo (ALIGN): Remove power of 2 restriction.
161
162 2002-07-31  Graeme Peterson  <gp@qnx.com>
163
164         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
165         * Makefile.am: Add eelf32{l}ppcnto.o files.
166         * Makefile.in: Regenerate.
167         * emulparams/elf32lppcnto.sh: New file.
168         * emulparams/elf32ppcnto.sh: New file.
169
170 2002-08-07  H.J. Lu <hjl@gnu.org>
171
172         * ld.texinfo: Document --no-undefined-version.
173
174         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
175         `script.' fields to 0.
176
177         * ldmain.c (main): Initialize the allow_undefined_version to
178         true.
179
180         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
181         (ld_options): Add --no-undefined-version.
182         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
183
184 2002-08-07  Nick Clifton  <nickc@redhat.com>
185
186         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
187         an interworking bfd if there are input bfds. (107501)
188
189 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
190
191         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
192         2002-05-10 change.
193
194 2002-08-01  Nick Clifton  <nickc@redhat.com>
195
196         * emulparams/armelf.sh: Revert previous delta.
197         * scripttempl/elf.sc: Revert previous delta.
198
199 2002-07-31  H.J. Lu <hjl@gnu.org>
200
201         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
202         --enable-64-bit-bfd.
203
204 2002-07-31  H.J. Lu <hjl@gnu.org>
205
206         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
207         64bit BFD is selected.
208
209 2002-07-31  H.J. Lu <hjl@gnu.org>
210
211         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
212         if 64bit BFD is selected.
213
214 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
215
216         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
217         link_info.common_skip_ar_aymbols.
218         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
219
220         * ldmain.c (main): Initialize new field
221         link_info.common_skip_ar_aymbols.
222
223 2002-07-31  Adam Nemet  <anemet@lnxw.com>
224
225         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
226         to .plt.thumb.
227         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
228         used.
229
230 2002-07-31  Nick Clifton  <nickc@redhat.com>
231
232         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
233         of the PDP-11 and 2.11BSD a.out support.
234
235 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
236
237         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
238         for n32 ABI support.
239         * Makefile.in: Regenerate.
240         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
241         n32 ABI emulations for these 64 bit targets.
242         * emulparams/elf32bmipn32.sh: Expand comment.
243         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
244         n32 ABI.
245         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
246
247 2002-07-30  Graeme Peterson  <gp@qnx.com>
248
249         * configure.tgt: Add support for arm-*-nto target.
250         * Makefile.am: Add earmnto.o file.
251         * Makefile.in: Regenerate.
252         * NEWS: Mention port of ARM support to QNX.
253         * emulparams/armnto.sh: New file.
254
255 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
256
257         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
258         for relocatable link.
259         (lang_size_sections_1): Don't make .tbss zero size for relocatable
260         link.
261
262 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
263
264         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
265         (STACK_ADDR): New.
266
267 2002-07-25  Nick Clifton  <nickc@redhat.com>
268
269         * po/sv.po: Updated Swedish translation.
270         * po/es.po: Updated Spanish translation.
271         * po/fr.po: Updated French translation.
272
273 2002-07-24  Nick Clifton  <nickc@redhat.com>
274
275         * po/sv.po: Updated Swedish translation.
276         * po/es.po: Updated Spanish translation.
277
278 2002-07-23  Nick Clifton  <nickc@redhat.com>
279
280         * po/fr.po: Updated French translation.
281
282 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
283
284         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
285         bomb on /DISCARD/ input section.
286         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
287         * emultempl/mmo.em (mmo_place_orphan): Likewise.
288
289 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
290
291         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
292         output section.
293
294 2002-07-16  Denis Chertykov  <denisc@overta.ru>
295             Nick Clifton  <nickc@redhat.com>
296             Frank Ch. Eigler  <fche@redhat.com>
297             John Healy  <jhealy@redhat.com>
298
299         * configure.tgt: Add support for ip2k-elf.
300         * Makefile.am: Add support for ip2k-elf.
301         * Makefile.in: Regenerate.
302         * emulparams/elf32ip2k.sh: New file.
303         * scripttempl/ip2k.sc: New file
304         * NEWS: Mention support for new port.
305
306 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
307
308         * NEWS: Add 'Changes in 2.13'.
309
310 2002-07-14  H.J. Lu <hjl@gnu.org>
311
312         * ld.texinfo: Document a .symver takes precedence over a
313         version script.
314
315 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
316
317         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
318         (COMMONPAGESIZE): Define.
319
320 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
321
322         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
323
324 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
325
326         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
327         powerpc-*-openbsd* and sparc64-*-openbsd*.
328         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
329         * Makefile.in: Regenerate.
330         * emulparams/hppaobsd.sh: New file.
331
332 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
333
334         * ldlang.c (print_wild_statement): Fix output formatting.
335
336 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
337
338         * ldlang.c: (strip_excluded_output_sections): New function.
339         (lang_process): Call it.
340         (lang_size_sections_1): Revert 2002-06-10 change.
341
342 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
343
344         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
345         Run "make dep-am".
346         * Makefile.in: Regenerate.
347
348 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
349
350         * ldfile.c (ldfile_try_open_bfd): Formatting.
351
352         * ldmisc.c (demangle): Move so that it doesn't intrude between
353         vfinfo comment and body.  Add comment.
354
355 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
356
357         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
358
359 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
360
361         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
362         * ldlang.c (entry_sym): Likewise.
363         (ldlang_undef_chain_list_type): Likewise.
364         (lang_finish): Adjust references to entry_symbol.
365         (lang_add_entry): Likewise.
366         (lang_gc_sections): Use link_info.gc_sym_list.
367         (lang_process): Set link_info.gc_sym_list.
368         * ldlex.l: Include bfdlink.h.
369         * ldmain.c (main): Init link_info.gc_sym_list.
370         * emultempl/aix.em: Adjust references to entry_symbol.
371         * emultempl/armcoff.em: Likewise.
372         * emultempl/armelf.em: Likewise.
373         * emultempl/pe.em: Likewise.
374         * emultempl/ppc64elf.em (ppc_after_open): New function.
375         (LDEMUL_AFTER_OPEN): Define.
376         * emulparams/elf64ppc.sh: KEEP .opd sections.
377
378 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
379
380         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
381         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
382         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
383         (EEPROM_START_ADDR): Define.
384         (EEPROM_MEMORY): Define.
385         * emulparams/m68hc12elf.sh: Likewise.
386         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
387         section to put soft registers in .page0.
388         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
389
390 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
391
392         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
393         section.  Add ${RELOCATING-0}.
394
395 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
396
397         * emulparams/shelf.sh (STACK_ADDR): Don't define.
398         (OTHER_SECTIONS): Define.
399         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
400         (OTHER_SECTIONS): Undef.
401
402 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
403
404         * ldmisc.c (demangle): Restore dots stripped from sym name.
405
406 2002-06-25  H.J. Lu <hjl@gnu.org>
407
408         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
409         * Makefile.in: Regenerated.
410
411 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
412
413         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
414         the size of attached object files, to allow make the object files
415         available via FTP or HTTP and to mention that the mail will be
416         sent to a mailing list.
417
418 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
419
420         * ld/configure.host (romp): Drop support.
421
422 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
423
424         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
425         section flags for SEC_DATA, rather than for SEC_CODE being unset.
426
427 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
428
429         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
430         format specifier used to print BFD name.
431
432 2002-06-18  Dave Brolley  <brolley@redhat.com>
433
434         From Catherine Moore, Michael Meissner, Jim Blandy:
435         * emulparams/elf32frv.sh: New file.
436         * configure.tgt: Support frv-*-*.
437         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
438         (eelf32frv.c): New target.
439
440 2002-06-17  Tom Rix  <trix@redhat.com>
441
442         * emultempl/elf32.em: gld*_get_script:  Check for
443         GENERATE_COMBRELOC_SCRIPT.
444         * scripttempl/elfd10v.sc : Fix STACK and INSN.
445         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
446
447 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
448
449         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
450
451 2002-06-12  H.J. Lu <hjl@gnu.org>
452
453         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
454         false if xvec doesn't match.
455
456 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
457
458         * ldlang.c (lang_size_sections_1): Skip removed output sections.
459
460 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
461
462         * ldexp.c: Replace CONST with const.
463         * ldfile.c: Likewise.
464         * ldfile.h: Likewise.
465         * ldlex.l: Likewise.
466         * mri.c: Likewise.
467         * pe-dll.h: Likewise.
468
469 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
470
471         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
472
473 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
474
475         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
476         to -1 == implicit enable.
477         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
478         initialize link_info.pei386_auto_import to -1 == implicit
479         enable.
480         (gld_${EMULATION_NAME}_parse_args): When processing
481         --enable-auto-import and --disable-auto-import options, use
482         '1' and '0' instead of 'true' and 'false'.
483         (pe_find_data_imports): Only issue message about auto-import
484         when the feature is implicitly enabled.  Downgrade message to
485         informational instead of warning.
486
487 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
488
489         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
490
491 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
492
493         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
494         HOSTING_CRT0 and HOSTING_LIBS.
495
496 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
497
498         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
499
500 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
501
502         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
503         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
504
505 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
506
507         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
508         SEC_EXCLUDE sections when doing a relocatable link.
509
510 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
511
512         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
513         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
514         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
515         (eshlelf64_nbsd.c): New rules.
516         * Makefile.in: Regenerate.
517         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
518         (sh64-*-netbsd*): New targets.
519         * emulparams/shelf32_nbsd.sh: New file.
520         * emulparams/shelf64_nbsd.sh: New file.
521         * emulparams/shlelf32_nbsd.sh: New file.
522         * emulparams/shlelf64_nbsd.sh: New file.
523
524 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
525
526         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
527
528 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
529
530         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
531         C++ constructors/destructors, loosely based on the m68hc11 port.
532
533 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
534
535         * Makefile.in: Regenerate.
536         * aclocal.m4: Regenerate.
537         * config.in: Regenerate.
538         * configure: Regenerate.
539
540 2002-05-31  Graeme Peterson  <gp@qnx.com>
541
542         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
543         (ei386nto.c): Add rule.
544         * Makefile.in: Regenerate.
545         * configure.tgt: Add i[3456]86-*-nto-qnx*.
546         * emulparams/i386nto.sh: New file.
547
548 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
549
550         * NEWS: Add entry for VAX ELF support.
551
552 2002-05-29  Matt Thomas  <matt@3am-software.com>
553             Jason Thorpe  <thorpej@wasabisystems.com>
554
555         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
556         (eelf32vax.c)
557         (evaxnbsd.c): New rules.
558         * Makefile.in: Regenerate.
559         * configure.tgt (vax-*-netbsdelf*)
560         (vax-*-netbsdaout*)
561         (vax-*-netbsd*): New targets.
562         * emulparams/elf32vax.sh: New file.
563         * emulparams/vaxnbsd.sh: New file.
564
565 2002-05-29  Adam Nemet  <anemet@lnxw.com>
566
567         * emultempl/armelf.em (arm_elf_after_open): Don't determine
568         bfd_for_interwork, instead add glue sections to each input bfd.
569         (bfd_for_interwork): New global.
570         (arm_elf_set_bfd_for_interworking): New function.
571         (arm_elf_before_allocation): Use it.
572
573 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
574
575         * Makefile.am: Add DLX make target.
576         * configure.tgt: Add DLX configuration.
577         * Makefile.in: Regenerate.
578         * emulparams/elf32_dlx.sh: New file
579         * scripttempl/dlx.sc: New file
580
581 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
582
583         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
584         * Makefile.in: Regenerate.
585         * emulparams/elf_chaos.sh: Use elf_chaos script.
586         * scripttempl/elf_chaos.sc: New file.
587
588 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
589
590         * ldlang.c (lang_size_sections_1): Move check for conflicting load
591         addresses and regions from here...
592         (lang_get_regions): ...to this new function.
593         (lang_leave_output_section_statement): Use lang_get_regions.
594         (lang_leave_overlay): Likewise.
595         * mri.c (mri_draw_tree): Pass null as last argument to
596         lang_leave_output_section_statement.
597         * emultempl/elf32.em (gld*_place_orphan): Likewise.
598         * emultempl/mmo.em (mmo_place_orphan): Likewise.
599         * emultempl/pe.em (gld*_place_orphan): Likewise.
600
601 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
602
603         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
604
605 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
606
607         * ldemul.c: Fix formatting.
608         * ldfile.c: Likewise.
609         * pe-dll.c: Likewise.
610         * pe-dll.h: Likewise.
611
612 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
613
614         * ldlang.c (lang_process): Formatting, grammar.
615
616         * ldlex.l: Use #include "" instead of <> for local header files.
617
618 2002-05-24  TAMURA Kent <kent@netbsd.org>
619
620         * configure.tgt: Add a target for i386-netbsdpe.
621
622 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
623
624         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
625         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
626         output section if necessary.  Handle .tbss.
627         (lang_size_sections): Clear _raw_size for .tbss section
628         (it allocates space in PT_TLS segment only).
629         * ldwrite.c (build_link_order): Build link order for .tbss too.
630
631 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
632
633         * configure.in: Correct spelling of AC_PREREQ.
634
635 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
636
637         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
638         default.
639         (autofilter_objlist): Add crtbegin.o, crtend.o.
640
641 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
642
643         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
644         (longopts): Add new option --exclude-libs.
645         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
646         (gld_${EMULATION_NAME}_parse_args): Use it.
647         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
648         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
649         from whole archives.
650         (pe_dll_add_excludes): Set excludes->type.
651         (auto_export): Add new variable libname and set to archive basename if
652         abfd.  Use it when filtering default and user-specified libarary
653         excludes.  Let string "ALL" mean all libs when filtering user-specified
654         libs.
655         * ld.texinfo: Document --exclude-libs.
656
657 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
658
659         * ldemul.c (ldemul_new_vers_pattern): New function.
660         * ldemul.h (ldemul_new_vers_pattern): Declare.
661         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
662         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
663         * emultempl/ppc64elf.em (dotsyms): New static var.
664         (gld${EMULATION_NAME}_new_vers_pattern): New function.
665         (LDEMUL_NEW_VERS_PATTERN): Define.
666         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
667         (PARSE_AND_LIST_LONGOPTS): Likewise.
668         (PARSE_AND_LIST_ARGS_CASES): Handle them.
669         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
670         initialiser.
671         * emultempl/armcoff.em: Likewise.
672         * emultempl/armelf_oabi.em: Likewise.
673         * emultempl/beos.em: Likewise.
674         * emultempl/elf32.em: Likewise.
675         * emultempl/generic.em: Likewise.
676         * emultempl/gld960.em: Likewise.
677         * emultempl/gld960c.em: Likewise.
678         * emultempl/linux.em: Likewise.
679         * emultempl/lnk960.em: Likewise.
680         * emultempl/m68kcoff.em: Likewise.
681         * emultempl/mipsecoff.em: Likewise.
682         * emultempl/pe.em: Likewise.
683         * emultempl/sunos.em: Likewise.
684         * emultempl/ticoff.em: Likewise.
685         * emultempl/vanilla.em: Likewise.
686
687 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
688
689         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
690         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
691         (LIB_SEARCH_DIRS): No need to use "tr".
692         (COMPILE_IN): Only set for native targets.
693         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
694         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
695         * configure.tgt (powerpc*): Set tdir_*.
696         (powerpcle*): Correct targ_extra_emuls.
697         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
698         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
699
700 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
701
702         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
703         calling lang_add_entry.
704
705 2002-05-21  H.J. Lu  (hjl@gnu.org)
706
707         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
708         "-z muldefs".
709         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
710
711         * ld.texinfo: Updated for --allow-multiple-definition and
712         "-z muldefs".
713
714         * ldmain.c (main): Initialize the allow_multiple_definition
715         field to false.
716
717         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
718         (ld_options): Add --allow-multiple-definition.
719         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
720
721 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
722
723         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
724         (earmelfb_nbsd.c): New rule.
725         * Makefile.in: Regenerate.
726         * configure.tgt (armeb-*-netbsdelf*): New target.
727         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
728         (arm-*-netbsd*): Likewise.
729         * emulparams/armelfb_nbsd.sh: New file.
730
731 2002-05-18  Tom Rix  <trix@redhat.com>
732
733         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
734         support.
735
736 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
737
738         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
739         * Makefile.in: Regenerate.
740         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
741
742 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
743
744         * emulparams/avr1.sh: New file.
745         * emulparams/avr2.sh: New file.
746         * emulparams/avr3.sh: New file.
747         * emulparams/avr4.sh: New file.
748         * emulparams/avr5.sh: New file.
749         * scripttempl/avr.sc: New file.
750
751 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
752
753         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
754         (lang_place_orphans): Abort if just_syms_flag.
755
756 2002-05-10  Tom Rix  <trix@redhat.com>
757
758         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
759         architecture and machine information in the output bfd.
760         (gld*_before_parse): Remove old arch and machine code.
761         (choose_target): Rename to gld*_choose_target.
762         (rtld): Change type to int.
763         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
764         objects in XCOFF archives.
765         * ldfile.h: Update copyright date.
766
767 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
768
769         * ldmain.c (main): Enable -z combreloc by default.
770
771 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
772
773         * Makefile.am: Honour DESTDIR.
774         * Makefile.in: Regenerate.
775
776 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
777
778         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
779         (lang_enter_overlay): Remove the last two parameters.
780         (lang_leave_overlay): Take them here instead.
781         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
782         (section): Pass LMA and crossref flag to lang_leave_overlay rather
783         than lang_enter_overlay.
784         * ldlang.c (lang_memory_region_lookup): Return null for null names.
785         (lang_output_section_statement_lookup): Initialize update_dot_tree.
786         (lang_size_sections_1): Evaluate it.
787         (lang_leave_output_section_statement): Rework LMA lookup.
788         (overlay_lma, overlay_nocrossrefs): Remove.
789         (lang_enter_overlay): Remove LMA and crossref arguments.
790         (lang_enter_overlay_section): Don't set the LMA here.
791         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
792         assignment to the last section's update_dot_tree.  Unconditionally
793         use the load and run-time regions specified in the OVERLAY statement.
794         Likewise the first section's LMA.  Only set the other sections' LMAs
795         when no load region is given.
796
797 2002-05-06  Nick Clifton <nickc@redhat.com>
798
799         * po/sv.po: New translation.
800
801 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
802
803         * emultempl/hppaelf.em (build_section_lists): New function.
804         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
805         and build_section_lists.
806
807 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
808
809         * ld.h: Fix formatting.
810         * ldexp.c: Likewise.
811         * ldfile.c: Likewise.
812         * ldlang.c: Likewise.
813         * ldmain.c: Likewise.
814         * lexsup.c: Likewise.
815         * pe-dll.c: Likewise.
816
817 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
818
819         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
820         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
821         (build_section_lists): Do output_section tests here.
822
823 2002-04-30  Tom Rix  <trix@redhat.com>
824
825         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
826
827 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
828
829         Long branch stubs, multiple stub sections.
830         * emultempl/ppc64elf.em: Include ldctor.h.
831         (stub_file): New var.
832         (group_size): New var.
833         (ppc_create_output_section_statements): New function.
834         (struct hook_stub_info): New.
835         (hook_in_stub): New function.
836         (ppc_add_stub_section): New function.
837         (ppc_layout_sections_again): New function.
838         (build_section_lists): New function.
839         (gld${EMULATION_NAME}_finish): Rewrite.
840         (real_func): New var.
841         (ppc_for_each_input_file_wrapper): New function.
842         (ppc_lang_for_each_input_file): New function.
843         (lang_for_each_input_file): Define.
844         (PARSE_AND_LIST_PROLOGUE): Define.
845         (PARSE_AND_LIST_LONGOPTS): Define.
846         (PARSE_AND_LIST_OPTIONS): Define.
847         (PARSE_AND_LIST_ARGS_CASES): Define.
848         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
849
850 2002-04-30  Tom Rix  <trix@redhat.com>
851
852         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
853         -blibpath, -bnolibpath support.
854
855 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
856
857         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
858         (eelf32ppcwindiss.c): New target.
859         * Makefile.in: Regenerated.
860         * configure.tgt: Add support for powerpc-*-windiss.
861         * emulparams/elf32ppcwindiss.sh: New file.
862
863 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
864
865         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
866         * ldexp.c (exp_print_token): Add "infix_p" argument.
867         (exp_print_tree): Update accordingly.
868
869 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
870
871         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
872         * Makefile.in: Regenerate.
873         * mpw-elfmips.c: Delete.
874         * mpw-eppcmac.c: Delete.
875         * mpw-esh.c: Delete.
876         * mpw-idtmips.c: Delete.
877
878 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
879
880         * emulparams/shelf32.sh (MACHINE): Now sh5.
881
882 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
883
884         * ldgram.y: Fix syntax warning.
885
886 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
887
888         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
889         to prevent "-n" from being taken as an abbreviation for
890         "--no-pipeline-knowledge".
891
892 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
893
894         * ldlang.c (lang_size_sections_1): Don't complain about
895         SEC_NEVER_LOAD sections having no memory region specified.
896
897         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
898
899 2002-04-07  matthew green  <mrg@redhat.com>
900
901         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
902
903 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
904
905         * dep-in.sed: Cope with absolute paths.
906         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
907         Run "make dep-am".
908         * Makefile.in: Regenerate.
909
910 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
911
912         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
913
914 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
915
916         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
917         is smaller than maximum, round dot up to common page boundary.
918
919 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
920
921         * configure.host: Set up for generic hosts first, then tweak as
922         necessary in more specific targets.
923         (HOSTING_LIBS): Include libgcc_eh.a if found.
924
925 2002-03-23  Andreas Jaeger  <aj@suse.de>
926
927         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
928
929 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
930
931         * Makefile.am: Run "make dep-am".
932         * Makefile.in: Regenerate.
933
934 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
935
936         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
937
938 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
939
940         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
941         add the symbol to the linker hash table immediately.
942         (lang_place_undefineds): Split symbol creation out..
943         (insert_undefined): ..to here.
944
945 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
946
947         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
948         the contents of the buffer returned from basename function will are
949         getting overwritten while still being used.
950
951 2002-03-18  Jan Hubicka  <jh@suse.cz>
952             Andreas Jaeger  <aj@suse.de>
953             Andreas Schwab  <schwab@suse.de>
954
955         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
956         * elf_x86_64.sh (ARCH): Set to i386:x86-64
957         set libraries to default to lib64 paths.
958
959 2002-03-18  Tom Rix  <trix@redhat.com>
960
961         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
962         * configure.tgt : Same.
963         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
964         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
965         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
966         emulation parameters for better -b32, -b64 support.
967         * emulparms/aixrs6.sh : Same.
968         * emulparms/ppcmacos.sh : Same.
969         * emultempl/aix.em (choose_target) : Use new emulation parameters
970         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
971         * Makefile.in : Regenerate.
972
973 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
974
975         * po/fr.po: Updated version.
976
977 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
978
979         * ldmain.c (main): Move .text readonly flag fudges from here..
980         * ldlang.c (lang_process): ..to here.
981
982 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
983
984         * ldlang.c (lang_check): Remove the word size check added in last
985         change.  Treat emitrelocations case as for relocatable links.
986
987 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
988
989         * po/fr.po: Updated version.
990
991 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
992
993         * ldlang.c (lang_check): Do relocatable link checks first, so that
994         warn_mismatch can't override.  Check compatible and word size too.
995
996 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
997
998         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
999
1000 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1001
1002         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1003         DATA_SEGMENT_ALIGN.
1004
1005 2002-03-04  H.J. Lu <hjl@gnu.org>
1006
1007         * scripttempl/elf.sc: Put .preinit_array, .init_array and
1008         .fini_array in the data segment.
1009
1010 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
1011
1012         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1013
1014 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
1015
1016         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1017         .init_array, and .fini_array.
1018
1019 2002-02-20  Andreas Schwab  <schwab@suse.de>
1020
1021         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1022         .IA64_unwind* in a relocatable link.
1023
1024 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1025
1026         * NEWS: Mark 2.12 branch.
1027
1028 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1029
1030         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1031         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1032
1033 2002-02-18  Tom Rix  <trix@redhat.com>
1034
1035         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1036         (gld*_before_allocation): Same.
1037         (gld*_create_output_section_statements): Generate
1038         __rtinit if run time linking.  Add librtl.a to the link.
1039         (gld*_read_file): Clean.
1040
1041 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1042
1043         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1044
1045 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
1046
1047         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1048         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1049         and eelf64alpha_fbsd.
1050         * Makefile.in: Regenerate.
1051         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1052         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1053         use a FreeBSD-specific emulation rather than the psABI one.
1054         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1055         for all FreeBSD ELF systems.
1056         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1057         emulation.
1058         * emulparams/elf32ppc_fbsd.sh: Likewise.
1059         * emulparams/elf64_ia64_fbsd.sh: Likewise.
1060         * emulparams/elf64_sparc_fbsd.sh: Likewise.
1061         * emulparams/elf64alpha_fbsd.sh: Likewise.
1062         * emulparams/elf_i386_fbsd.sh: Likewise.
1063         * emulparams/elf_x86_64_fbsd.sh: Likewise.
1064
1065 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
1066
1067         * po/tr.po: Updated version.
1068
1069 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
1070
1071         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1072         (FILL): Likewise.
1073
1074 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
1075
1076         * emultempl/mmo.em (mmo_after_open): Don't call
1077         _bfd_mmix_check_all_relocs when producing ELF output.
1078
1079 2002-02-15  Richard Henderson  <rth@redhat.com>
1080
1081         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1082         definition.  Emit a unop+nop pair.
1083
1084 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
1085
1086         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1087         for presence of .MMIX.reg_contents.linker_allocated before early
1088         exit.
1089
1090         * NEWS: Mention support for MMIX.
1091
1092 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
1093
1094         Support arbitrary length fill patterns.
1095         * ld.texinfo (Output Section Fill): Describe fill expressions.
1096         (FILL): Refer to the above.
1097         * ldexp.h (etree_value_type): Add "str" field.
1098         (union etree_union): Add "str" to "value" struct.
1099         (exp_bigintop): Declare.
1100         (exp_get_fill): Declare.
1101         * ldexp.c: Include "safe-ctype.h".
1102         (exp_intop): Set value.str to NULL.
1103         (exp_bigintop): New function.
1104         (new_rel): Pass in "str", and set new.str from it.
1105         (new_rel_from_section): Set new.str to NULL.
1106         (fold_name): Adjust calls to new_rel.
1107         (exp_fold_tree): Likewise.
1108         (exp_get_fill): New function.
1109         * ldgram.y (struct big_int bigint, fill_type *fill): New.
1110         (INT): Returns a "bigint".  Adjust all code handling INTs.
1111         (fill_opt): Returns a "fill".
1112         (fill_exp): Split out of fill_opt, use for FILL.
1113         * ldlang.h (struct _fill_type): New.
1114         (fill_type): Move typedef to ldexp.h.
1115         (lang_output_section_statement_type): "fill" is now a pointer.
1116         (lang_fill_statement_type): Likewise.
1117         (lang_padding_statement_type): Likewise.
1118         (lang_add_fill): Now takes a "fill_type *" param.
1119         (lang_leave_output_section_statement): Likewise.
1120         (lang_do_assignments): Likewise.
1121         (lang_size_sections): Likewise.
1122         (lang_leave_overlay_section): Likewise.
1123         (lang_leave_overlay): Likewise.
1124         * ldlang.c: Include ldgram.h after ldexp.h.
1125         (lang_output_section_statement_lookup): Adjust for fill_type change.
1126         (print_fill_statement): Likewise.
1127         (print_padding_statement): Likewise.
1128         (insert_pad): Now takes a "fill_type *" arg.
1129         (size_input_section): Likewise.
1130         (lang_size_sections_1): Likewise.
1131         (lang_size_sections): Likewise.
1132         (lang_do_assignments): Likewise.
1133         (lang_add_fill): Likewise.
1134         (lang_leave_output_section_statement): Likewise.
1135         (lang_leave_overlay_section): Likewise.
1136         (lang_leave_overlay): Likewise.
1137         Adjust all callers of the above function.
1138         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
1139         starting with "0X" as well as "0x".  Return bigint.str for hex
1140         numbers starting with "0x" or "0X", zero bigint.str otherwise.
1141         Always use base 16 for numbers starting with "$".
1142         * ldmain.c: Include ldgram.h after ldexp.h.
1143         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1144         of bfd_fill_link_order.
1145         * pe-dll.c: Adjust lang_do_assignments calls.
1146         * emultempl/elf32.em: Likewise.
1147         * emultempl/hppaelf.em: Likewise.
1148         * emultempl/ppc64elf.em: Likewise.
1149         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1150         lang_add_assignment call.
1151         * emultempl/pe.em: Likewise.
1152
1153 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
1154
1155         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
1156         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
1157         the pattern in question is not a regexp.
1158         * ldlang.c:  Likewise.
1159         * ldlang.h:  Likewise.
1160         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
1161
1162 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
1163
1164         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1165         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1166         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1167         * ldexp.c (exp_data_seg): New variable.
1168         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1169         (fold_binary): Handle DATA_SEGMENT_ALIGN.
1170         (exp_fold_tree): Handle DATA_SEGMENT_END.
1171         Pass allocation_done when recursing instead of hardcoding
1172         lang_allocating_phase_enum.
1173         * ldexp.h (exp_data_seg): New.
1174         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1175         (lang_size_sections): New.
1176         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1177         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1178         if COMMONPAGESIZE is defined.
1179         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1180         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1181         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1182         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1183         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1184         libraries only.
1185
1186 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
1187
1188         * Makefile.in: Regenerate.
1189
1190 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1191
1192         * lexsup.c: Remove strtoul declaration.
1193
1194 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1195
1196         * ldmain.c: Add prototype for main ().
1197         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1198         * emultempl/lnk960.em (lnk960_choose_target): Function should
1199         take two arguments.
1200
1201 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
1202
1203         * ldlang.c (entry_section): New initialised variable.
1204         (lang_finish): Use it.
1205         * ldlang.h (entry_section): Declare.
1206         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1207         entry_section to ".opd".
1208
1209 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
1210
1211         * ld.texinfo (Options): Add back in -nostdlib documentation,
1212         which had been inadvertently removed.
1213
1214 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
1215
1216         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1217         register section vma to a sane value after emitting error.  Make
1218         fatal conditions cause program exit when emitting message.
1219
1220 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
1221
1222         * configure.tgt: Add or32-*-rtems target.
1223
1224 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1225
1226         Contribute sh64-elf.
1227         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1228         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1229         in OTHER_RELOCATABLE_SECTIONS.
1230         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1231         * emulparams/shelf32.sh (STACK_ADDR): Define.
1232         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1233         (OTHER_SECTIONS): this.  Removed stack settings.
1234         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1235         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1236         2001-03-12  DJ Delorie  <dj@redhat.com>
1237         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1238         relaxing if any shmedia or mixed sections are found.
1239         2001-03-07  DJ Delorie  <dj@redhat.com>
1240         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1241         einfo.  Gracefully decline to output to non-elf formats.
1242         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
1243         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1244         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1245         * emulparams/shelf32.sh: Ditto.
1246         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
1247         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1248         comment.
1249         2001-01-10  Ben Elliston  <bje@redhat.com>
1250         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1251         non-portable shell constructs. From Hans-Peter Nilsson.
1252         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
1253         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1254         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1255         dependencies to the shell script include chain.
1256         * Makefile.in: Regenerate.
1257         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
1258         * emultempl/sh64elf.em: Update and tweak comments.
1259         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1260         make a .cranges section SEC_IN_MEMORY.
1261         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1262         * emultempl/sh64elf.em
1263         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1264         .cranges section found to be necessary; continue and set stored
1265         section contents flags for sections with non-mixed contents.
1266         Use a struct sh64_section_data container and sh64_elf_section_data
1267         to store contents-type flags.
1268         Remove unused update of "isec".
1269         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1270         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
1271         access contents-type flags.  Assert that the associated container
1272         is initialized.  Use that container, not elf_gp_size, to hold size
1273         of linker-generated cranges contents.
1274         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1275         * emultempl/sh64elf.em
1276         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1277         there's already a .cranges section.  When section flag difference
1278         is found, don't NULL-check cranges a second time.  Tweak comments.
1279         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1280         merging, not max size, as size of ld-generated .cranges contents.
1281         Don't set ELF section flags in output section.  When checking for
1282         needed .cranges descriptors, don't use a variable; compare
1283         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
1284         comments.
1285         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
1286         * emultempl/sh64elf.em: New file.
1287         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1288         * Makefile.in: Regenerate.
1289         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1290         (OTHER_RELOCATING_SECTIONS): Ditto.
1291         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1292         * emulparams/shlelf32.sh: Stub out all settings except
1293         OUTPUT_FORMAT.  Source shelf32.sh.
1294         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1295         OTHER_RELOCATING_SECTIONS.
1296         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1297         * emulparams/shlelf64.sh: Stub out all settings except
1298         OUTPUT_FORMAT.  Source shelf64.sh.
1299         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1300         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1301         .cranges section.
1302         (DATA_START_SYMBOLS): Define, provide ___data.
1303         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1304         for consecutive .data section.
1305         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1306         section after .data section.
1307         * emulparams/shlelf64.sh: Ditto.
1308         * emulparams/shelf32.sh: Ditto.
1309         (ALIGNMENT): Define to 8.
1310         * emulparams/shelf32.sh: Ditto.
1311         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1312         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1313         built-in linker scripts.
1314         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1315         * emulparams/shlelf64.sh: New.
1316         * emulparams/shelf64.sh: New.
1317         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1318         targ_extra_emuls.
1319         * Makefile.am: Add support for shlelf64 and shelf64.
1320         * Makefile.in: Regenerate.
1321         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1322         * configure.tgt (sh64-*-elf*): Add shelf as default.
1323         Add shlelf to targ_extra_emuls.
1324         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1325         * emulparams/shelf32.sh: New file.
1326         * emulparams/shlelf32.sh: New file.
1327         * Makefile.am: Add support for shlelf32 and shelf32.
1328         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1329         * Makefile.in: Regenerate.
1330
1331 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1332
1333         * ldlang.c (lang_reset_memory_regions): Rename from
1334         reset_memory_regions.  Change all callers.  Make public.
1335         * ldlang.h (lang_reset_memory_regions): Prototype.
1336         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1337         lang_reset_memory_regions before lang_size_sections.
1338         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1339         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1340
1341 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1342
1343         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1344         arithmetic when checking for too many global registers.
1345
1346 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1347
1348         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1349         (ehppanbsd.c): New rule.
1350         * Makefile.in: Regenerate.
1351         * configure.tgt (hppa*-*-netbsd*): New target.
1352         * emulparams/hppalinux.sh: Add comment to check other files
1353         that source this file it is modified, and list which
1354         files that do.
1355         * emulparams/hppanbsd.sh: New file.
1356
1357 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1358
1359         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1360         stack.
1361
1362 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1363
1364         Support on-demand global register allocation from
1365         R_MMIX_BASE_PLUS_OFFSET relocs.
1366         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1367         mmix_set_reg_section_vma.  Call
1368         _bfd_mmix_finalize_linker_allocated_gregs.
1369         (mmix_before_allocation): New function.
1370         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1371         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1372         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1373         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1374         before .MMIX.reg_contents.
1375         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1376         (mmo_after_open): New function.
1377         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1378         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1379         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1380
1381 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1382
1383         * emulparams/or32.sh: New file.
1384         * emulparams/or32elf.sh: New file.
1385         * scripttempl/or32.sc: New file.
1386         * configure.tgt : Add support for or32.
1387         * configure: Regenerate
1388         * Makefile.am: Add support for or32.
1389         * Makefile.in: Regenerate.
1390         * NEWS: Mention support for or32.
1391         * po/ld.pot: Regenerate.
1392
1393 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1394             Mitch Lichtenberg  <mpl@broadcom.com>
1395
1396         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1397         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1398         reloc creation (ld --embedded-relocs).
1399
1400 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1401
1402         * configure: Regenerated.
1403
1404 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1405
1406         * Makefile.am (install): Depend on install-info.
1407         * Makefile.in: Regenerate.
1408
1409 2002-01-26  Christian Rose  <menthos@menthos.com>
1410
1411         * ldmain.c (main): Use full sentences to ease translation.
1412
1413 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1414
1415         * po/fr.po: Updated version.
1416
1417 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1418
1419         * po/es.po: Updated version.
1420
1421 2002-01-25  Andreas Jaeger  <aj@suse.de>
1422
1423         * ldlex.l (yy_input): Correct error check.
1424
1425 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1426
1427         * ldmisc.c (demangle): Put back dots when string not demangled.
1428
1429 2002-01-22  Richard Henderson  <rth@redhat.com>
1430
1431         * emulparams/elf64alpha.sh (NOP): Use unop.
1432
1433 2002-01-21  Andreas Jaeger  <aj@suse.de>
1434
1435         * ldlex.l: Use fread instead of read.
1436
1437 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1438
1439         * configure.tgt (ia64-*-netbsd*): New target.
1440
1441 2002-01-21  H.J. Lu <hjl@gnu.org>
1442
1443         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1444         0.
1445         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1446
1447 2002-01-18  Andreas Jaeger  <aj@suse.de>
1448
1449         * ldver.c (ldversion): Update year.
1450
1451 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1452
1453         * po/ld.pot: Regenerate.
1454
1455 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1456
1457         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1458         * Makefile.in: Regenerate.
1459         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1460         * emultempl/ppc64elf.em: New file.
1461
1462 2002-01-15  DJ Delorie  <dj@redhat.com>
1463
1464         * scripttempl/pe.sc: Add support for constructor priorities.
1465
1466 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1467
1468         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1469         * emulparams/avr23xx.sh: Likewise.
1470         * emulparams/avr4433.sh: Likewise.
1471         * emulparams/avr44x4.sh: Likewise.
1472         * emulparams/avr85xx.sh: Likewise.
1473         * emulparams/avrmega103.sh: Likewise.
1474         * emulparams/avrmega161.sh: Likewise.
1475         * emulparams/avrmega603.sh: Likewise.
1476         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1477
1478 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1479
1480         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1481         archive is excluded.
1482
1483 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1484
1485         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1486         (eshelf_nbsd.c): New rule.
1487         (eshlelf_nbsd.c): New rule.
1488         * Makefile.in: Regenerate.
1489         * configure.tgt (sh*le-*-netbsdelf*): New target.
1490         (sh*-*-netbsdelf*): New target.
1491         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1492         * ld/emulparams/shelf_nbsd.sh: New emulation.
1493         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1494
1495 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1496
1497         * po/es.po: New file: Spanish translation.
1498         * configure.in (ALL_LINGUAS): Add es.
1499         * configure: Regenerate.
1500
1501 2002-01-06  John Marshall  <jmarshall@acm.org>
1502
1503         * ld.texinfo: Note that --emit-relocs is currently only
1504         implemented for ELF.
1505
1506 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1507
1508         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1509         of bfd_section_list_remove and bfd_section_list_insert macros.
1510         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1511         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1512
1513 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1514
1515         * configure.tgt (x86_64-*-netbsd*): New target.
1516
1517 2001-12-21  Tom Rix  <trix@redhat.com>
1518
1519         (gld*_create_output_section_statements): New function.
1520         For -binitfini support.
1521         * emultempl/aix.em (gld*_before_parse): Fix comment.
1522         * emultempl/aix.em (gld*_parse_args): Fix comment.
1523
1524 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1525
1526         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1527         mips*el-*-netbsd*.
1528         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1529
1530         * configure.tgt (arm-*-netbsdelf*): Add target.
1531         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1532         * emulparams/armelf_nbsd.sh: Added.
1533         * Makefile.am: Add rules for earmelf_nbsd.
1534         * Makefile.in: Regenerate.
1535
1536 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1537             Susanne Oberhauser <froh@suse.de>
1538
1539         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1540         s390x-linux entry to use gcc to report configuration, replace gcc
1541         with $CC in s390-linux
1542
1543 2001-12-19  Andreas Jaeger  <aj@suse.de>
1544
1545         * ld.texinfo (VERSION): Fix markup.
1546
1547 2001-12-18  matthew green  <mrg@eterna.com.au>
1548
1549         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1550         (m68kelfnbsd.c): New rule.
1551         * Makefile.in: Regenerate.
1552         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1553         (m68*-*-netbsd*4k*): .. this.
1554         (m68*-*-netbsdelf*): New target.
1555         (m68*-*-netbsd*): Also include ELF support.
1556         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1557         * emulparams/m68kelfnbsd.sh: New emulation.
1558
1559 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1560
1561         * ldgram.y (vers_node): Support anonymous version tags.
1562         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1563         tag is not defined together with non-anonymous versions.
1564         * ld.texinfo: Document it.
1565
1566 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1567
1568         * po/tr.po: New file: Turkish translation.
1569         * configure.in (ALL_LINGUAS): Add tr.
1570         * configure: Regenerate.
1571
1572 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1573
1574         * Makefile.am: Add rules for eelf64alpha_nbsd.
1575         * Makefile.in: Regenerate.
1576         * configure.tgt (alpha*-*-netbsd*): Set
1577         targ_emul to elf64alpha_nbsd.
1578         * emulparams/elf64alpha_nbsd.sh: Added.
1579
1580 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1581
1582         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1583         section_tail when fiddling with section list.
1584         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1585         broken into separate strings to make translation easier.
1586         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1587         fiddling with section list.
1588         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1589
1590 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1591
1592         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1593
1594 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1595
1596         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1597
1598 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1599
1600         * emultempl/elf32.em (finish): Supply output_bfd
1601         to bfd_elf*_discard_info.
1602         (OPTION_EH_FRAME_HDR): Define.
1603         (longopts): Add --eh-frame-hdr.
1604         (parse_args): Handle it.
1605         (list_options): Add --eh-frame-hdr to help.
1606         * emultempl/hppaelf.em (finish): Supply output_bfd
1607         to bfd_elf*_discard_info.
1608         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1609
1610 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1611
1612         * lexsup.c (parse_args): Don't pass shortopts to second call to
1613         getopt functions.  Restore optind rather than decrementing before
1614         second call.  Remove errind as it now duplicates last_optind.
1615
1616 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1617
1618         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1619
1620 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1621             Richard Henderson  <rth@redhat.com>
1622
1623         * Makefile.am: Add support for xstormy16.
1624         * configure.tgt: Add support for xstormy16.
1625         * Makefile.in: Regenerate.
1626         * emulparams/elf32xstormy16.sh: New file.
1627         * scripttempl/xstormy16.sc: New file.
1628
1629 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1630
1631         * Makefile.in (LIB_PATH): Make configurable.
1632         (GENSCRIPTS): Set LIB_PATH in environment.
1633         * configure.in: Substitute LIB_PATH.
1634         * configure: Regenerate.
1635         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1636         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1637
1638 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1639
1640         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1641         describing the -N option so that it is easier to translate into
1642         foreign languages.
1643
1644 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1645
1646         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1647         statements describing a single option with a single, newline
1648         escaped fprintf.  This allows better translation into other
1649         languages.
1650
1651         * ldmain.c (add_archive_element): Combine multiple strings
1652         into a single string to permit better translation into other
1653         languages.
1654
1655 2001-12-05  Tom Rix  <trix@redhat.com>
1656
1657         * Makefile.am: Remove eaixppc64.
1658         * Makefile.in: Regenerate.
1659
1660 2001-12-04  Tom Rix  <trix@redhat.com>
1661
1662         * emultempl/aix.em (choose_target): Change default target to
1663         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1664         warning.
1665         (gld*_read_file):  Fix typo.
1666         (change_symbol_mode): Add prototype.
1667         (is_syscall): Same.
1668
1669         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1670         * emulparams/aixrs6.sh : Same.
1671         * emulparams/ppcmacos.sh : Same.
1672         * emulparams/aixppc64.sh : Delete file.
1673         * emultempl/aix.em : Formatting changes.
1674
1675 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1676
1677         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1678         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1679         __Sbss.
1680         (OTHER_END_SYMBOLS): Fix formatting.
1681         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1682         (OTHER_END_SYMBOLS): Fix formatting.
1683
1684 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1685
1686         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1687
1688 2001-12-02  Tom Rix  <trix@redhat.com>
1689
1690         * configure.tgt : Remove eaixppc64 emulations.
1691         * Makefile.in : Remove eaixppc64.c
1692         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1693         (ldemul_default_target): Same.
1694         * emultempl/gld960.em (gld960_choose_target):  Same.
1695         * emultempl/gld960c.em (gld960_choose_target):  Same.
1696         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1697         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1698         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1699         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1700         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1701         -b32 and -b64.
1702
1703 2001-11-27  H.J. Lu <hjl@gnu.org>
1704
1705         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1706         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1707         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1708         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1709         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1710         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1711         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1712         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1713
1714         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1715         is not empty.
1716         (SDATA): Likewise.
1717         (REL_SDATA): Likewise.
1718         (REL_SBSS): Likewise.
1719         (REL_SDATA2): Likewise.
1720         (REL_SBSS2): Likewise.
1721         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1722         (SDATA2): Likewise.
1723
1724 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1725
1726         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1727         destructor in rom.
1728         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1729
1730 2001-11-22  H.J. Lu  <hjl@gnu.org>
1731
1732         * Makefile.in: Regenerated with automake based on automake
1733         1.4-8 in RedHat 7.1.
1734
1735 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1736
1737         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1738         (config.status): Delete rule.
1739         Add extra dependencies to cover sourced emulparams files.
1740         * Makefile.in: Regenerate.
1741
1742         * scripttempl/elf.sc: Order <section>, <section>.* and
1743         corresponding linkonce sections as seen in input files.
1744         Formatting fixes.  Zero vma of all sections if not relocating.
1745         (STACK): Define and insert if STACK_ADDR defined.
1746         (OTHER_RELOCATING_SECTIONS): Delete.
1747         (OTHER_END_SYMBOLS): Define.
1748         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1749         (OTHER_READWRITE_SECTIONS): Likewise.
1750         (OTHER_GOT_SECTIONS): Likewise.
1751         (OTHER_SDATA_SECTIONS): Likewise.
1752         (OTHER_BSS_SECTIONS): Likewise.
1753         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1754         (OTHER_READWRITE_SECTIONS): Likewise.
1755         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1756         (OTHER_READWRITE_SECTIONS): Likewise
1757
1758         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1759         (STACK_ADDR): Define.
1760         * emulparams/armelf_oabi.sh: As for armelf.sh.
1761         * emulparams/elf32mcore.sh: As for armelf.sh.
1762         * emulparams/h8300elf.sh: As for armelf.sh.
1763         * emulparams/mn10200.sh: As for armelf.sh.
1764         * emulparams/shelf.sh: As for armelf.sh.
1765
1766         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1767         (OTHER_END_SYMBOLS): Define.
1768         * emulparams/m32relf.sh: As for elf32fr30.sh.
1769         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1770         * emulparams/h8300self.sh: As for elf32fr30.sh.
1771
1772         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1773         defines with RELOCATING test.
1774         (OTHER_SDATA_SECTIONS): Likewise.
1775         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1776         (OTHER_END_SYMBOLS): ..this.
1777         * emulparams/crislinux.sh: As for criself.sh.
1778
1779         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1780         if not relocating.
1781         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1782         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1783         normal and linkonce sections as seen in input files.
1784         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1785         (TEXT_DYNAMIC): Likewise.
1786         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1787         (OTHER_SDATA_SECTIONS): Likewise.
1788         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1789         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1790         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1791         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1792         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1793         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1794         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1795         sections as seen in input files.
1796         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1797         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1798         if not relocating.
1799         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1800         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1801         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1802         (OTHER_SECTIONS): Instead, use this..
1803         (OTHER_END_SYMBOLS): ..and this.
1804
1805         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1806         * emulparams/elf32bsmip.sh: Likewise.
1807         * emulparams/elf32btsmip.sh: Likewise.
1808         * emulparams/elf32ebmip.sh: Likewise.
1809         * emulparams/elf32lmip.sh: Likewise.
1810         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1811         * emulparams/elf32lsmip.sh: Likewise.
1812         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1813         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1814         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1815         * emulparams/elf64btsmip.sh: Likewise.
1816         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1817         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1818         * emulparams/elf32ppclinux.sh: Likewise.
1819         * emulparams/elf32ppcsim.sh: Likewise.
1820         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1821         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1822         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1823         * emulparams/h8300self.sh: Likewise.
1824         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1825         * emulparams/sh.sh: Comment.
1826         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1827         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1828         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1829
1830 2001-11-21  David Heine <dlheine@tensilica.com>
1831             Alan Modra  <amodra@bigpond.net.au>
1832
1833         * ldlang.c (map_input_to_output_sections): Replace "break"
1834         accidentally removed with 2001-08-03 change.
1835         (lang_gc_sections_1): Likewise.
1836
1837 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1838
1839         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1840
1841 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1842
1843         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1844         of false when calling lang_size_sections.
1845         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1846
1847 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1848
1849         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1850         function when LDEMUL_FINISH isn't set to the same name.  Don't
1851         call ${LDEMUL_FINISH}.
1852         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1853         * emultempl/armelf.em (arm_elf_finish): Call
1854         gld${EMULATION_NAME}_finish.
1855         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1856         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1857         hppaelf_layout_sections_again if necessary.
1858         (need_laying_out): New var.
1859         (hppaelf_layaout_sections_again): Rename to
1860         hppaelf_layout_sections_again.  Clear need_laying_out.
1861         (PARSE_AND_LIST_OPTIONS): Format text.
1862
1863 2001-11-14  H.J. Lu  <hjl@gnu.org>
1864
1865         * emultempl/armelf.em (arm_elf_finish): Renamed from
1866         gld${EMULATION_NAME}_finish.
1867         (LDEMUL_FINISH): Set to arm_elf_finish.
1868
1869 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1870
1871         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1872         (struct ld_emulation_xfer_struct): Use it.
1873
1874 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1875
1876         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1877         additional symbols referenced by newer crt0.o files from HP.
1878
1879 2001-11-12  Anthony Green  <green@redhat.com>
1880
1881         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1882
1883 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1884
1885         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1886         * Makefile.in: Regenerate.
1887
1888 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1889
1890         * ld.texinfo: Use @command for commands, @option for options.
1891         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1892         the page man title.
1893         * Makefile.in: Rebuild.
1894
1895 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1896
1897         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1898         Add support for targets.
1899
1900 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1901
1902         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1903         * configure: Regernate.
1904         * po/fr.po: New file.
1905         * po/sv.po: New file.
1906
1907 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1908
1909         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1910         as little endian default and to support big endian.
1911
1912 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1913
1914         * ld.texinfo (Options): Document new option, -nostdlib.
1915         * lexsup.c (OPTION_NOSTDLIB): New definition.
1916         (ld_options): Add entry for "nostdlib".
1917         (parse_args): Handle OPTIONS_NOSTDLIB.
1918         * ldfile.c (ldfile_add_library_path): Don't add directories
1919         to the search path if they weren't specified on the command line
1920         and -nostdlib was specified.
1921         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1922
1923 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1924
1925         * lexsup.c (parse_args): Prevent infinite parsing loop when
1926         "-rpath.a" is specified on the command line.
1927         Replace calls to fprintf with calls to einfo.
1928
1929 2001-10-31  John Marshall  <jmarshall@acm.org>
1930
1931         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1932         appear only once across all the linker scripts involved in a link
1933         invocation no longer applies.  Make the documentation reflect
1934         that.
1935
1936 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1937
1938         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1939         targets.
1940         (sh-*-linux*): Added targ_extra_libpath.
1941
1942 2001-10-31  David Heine  <dlheine@tensilica.com>
1943
1944         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1945         for padding statements.
1946
1947 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1948
1949         * configure.tgt (mmix-*-*): New target.
1950         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1951         Add dependencies to match.
1952         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1953         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1954         scripttempl/mmo.sc: New files.
1955         * gen-doc.texi: @set MMIX.
1956         * ld.texinfo: Ditto.
1957         [MMIX] Add MMIX node.
1958         * Makefile.in: Regenerate.
1959
1960 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1961
1962         * ldlang.c: Fix a comment typo.
1963
1964 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1965
1966         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1967         entries, and match *-*-linux*.
1968
1969 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1970
1971         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1972         with ldlex_script, ldlex_popstate.
1973         (ifile_p1): Likewise.
1974         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1975         correct slot.
1976         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1977         to 1.  Don't BEGIN(SCRIPT).
1978         (lex_redirect): Similarly.
1979         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1980
1981 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1982
1983         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1984         __EH_FRAME_END__ and accept eh frames into data section.
1985         Add ctor and dtor sections.
1986
1987 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1988
1989         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1990         (auto-export): Fix indentation.
1991
1992 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1993
1994         * pe-dll.c (autofilter_objectlist):  Add startup objects
1995         for profiling.
1996         (auto-export): Constify char * p.
1997         Extract file basename and use strcmp rather than ststr
1998         for object lookup.
1999
2000 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
2001
2002         * ldmain.c (get_emulation): Improve comment about the handling
2003         of -mipsN options.
2004
2005 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
2006
2007         * po/POTFILES.in: Regenerate.
2008
2009 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
2010
2011         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2012         -z nocopyreloc and -z nocombreloc usage strings.
2013
2014 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
2015
2016         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2017         in usage.
2018
2019 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2020
2021         * scripttempl/armaout.sc: Place .bss section after end of aligned
2022         data section to match behaviour of aout code in constructrion of
2023         header.
2024
2025 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2026
2027         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2028         startup files for mingw32 dlls to list.
2029
2030 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
2031
2032         * emultempl/elf32.em: Fix shell 'if' usage for portability.
2033
2034 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2035
2036         * configure.tgt (targ): Add arm9e-*-elf.
2037
2038 2001-10-05  H.J. Lu  <hjl@gnu.org>
2039
2040         * genscripts.sh: Fix a typo in the last change.
2041
2042 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
2043
2044         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2045         -z nocombreloc in usage.
2046
2047 2001-10-03  Jim Blandy  <jimb@redhat.com>
2048
2049         * genscripts.sh: Include a comment at the top of each generated
2050         script, explaining its purpose.
2051
2052 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
2053
2054         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2055         * NEWS: Mention -z nocopyreloc.
2056         * ld.texinfo (Options): Describe nocopyreloc.
2057
2058 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
2059
2060         * configure: Regenerate.
2061
2062 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
2063
2064         * ldver.h (ld_program_version): Remove declaration.
2065         * lexsup.c (parse_args): Move printing of copyright message..
2066         * ldver.c (ldversion): .. to here.
2067         Use BFD_VERSION_STRING in place of BFD_VERSION.
2068         (ld_program_version): Remove.
2069         * Makefile.am (Makefile): Depend on bfd/configure.in.
2070         Run "make dep-am".
2071         * Makefile.in: Regenerate.
2072
2073 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2074
2075         * Makefile.am: Update dependencies with "make dep-am".
2076         * Makefile.in: Regenerate.
2077
2078 2001-09-29  John Reiser  <jreiser@BitWagon.com>
2079
2080         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2081         * lexsup.c: Add --no-define-common commandline option.
2082         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2083         * ldlex.l: Likewise.
2084         * ld.h: Add command_line.inhibit_common_definition.
2085         * ldmain.c (main): Initialize.
2086         * ld.texinfo: Document.
2087
2088 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
2089
2090         * ldlang.c (section_already_linked): Remove assignment to kept_section.
2091
2092 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
2093
2094         * ldmisc.c (USE_STDARG): Remove.
2095         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2096         (einfo): Likewise.
2097         (minfo): Likewise.
2098         (lfinfo): Likewise.
2099
2100         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2101         declarations.  Update copyright.
2102
2103 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2104
2105         * pe-dll.c: Remove obsoleted declaration of
2106         pe_get_data_import_dll_name.
2107         (pe_create_import_fixup): Fix thinko.
2108
2109         * ld.texinfo(enable-auto-import): Clarify the explanation.
2110
2111 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
2112
2113         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2114         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2115         DLL_SUPPORT controlled code.
2116
2117 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
2118
2119         * emultempl/pe.em(pe_data_import_dll): Make static.
2120         (pe_get_data_import_dll_name): New accessor function.
2121         * pe-dll.c(pe_create_import_fixup): call
2122         pe_get_data_import_dll_name() from pe.em, instead of
2123         directly accessing pe_data_import_dll variable from pe.em.
2124
2125 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
2126
2127         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2128         (def_file_add_directive): Use ISSPACE instead of isspace.
2129         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2130         isdigit/isxdigit/isalpha/isalnum.
2131         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2132         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2133         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2134         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2135         isalnum.
2136         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2137         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2138         isupper/tolower.
2139         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2140         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2141         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2142         (ctor_prio): Use ISDIGIT instead of isdigit.
2143         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2144         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2145         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2146         isupper/tolower.
2147         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2148         (stricpy): Use TOLOWER instead of isupper/tolower.
2149         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2150         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2151         (lex_warn_invalid): Use ISPRINT instead of isprint.
2152         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2153         (main): For gettext, also set the LC_CTYPE locate facet.
2154         (add_keepsyms_file): Use ISSPACE instead of isspace.
2155         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2156         (is_num, parse_args): Use ISDIGIT instead of isdigit.
2157         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2158         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2159         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2160         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2161         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2162         (quoteput): Use ISSPACE instead of isspace.
2163         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2164         instead of isalnum.
2165
2166 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
2167
2168         * deffilep.y (def_stash_module): Constify "name" param.
2169
2170         * pe-dll.c: Replace CONST with const throughout.
2171         (quick_symbol): Constify "n1", "n2", "n3" params.
2172         (make_singleton_name_thunk): Constify "import" param.  Make
2173         "buffer_len" a size_t.
2174         (make_import_fixup_entry): Constify "name", "fixup_name",
2175         "dll_symname" params.
2176         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
2177         (pe_get32): Likewise.
2178         (pe_implied_import_dll): Likewise.
2179
2180         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2181         (sort_by_section_name): Likewise.
2182
2183         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2184         (make_import_fixup): Cast printf arg, rel->address to long rather
2185         than int.
2186         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2187
2188 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
2189
2190         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2191         defines BufferSize.  Increase buffer size by one.
2192
2193 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
2194
2195         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2196
2197 2001-09-14  Kevin Lo <kevlo@openbsd.org>
2198
2199         * configure.tgt: Add arm-openbsd target.
2200
2201 2001-09-12  H.J. Lu  <hjl@gnu.org>
2202
2203         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2204         eelf64lppc.o to ...
2205         (ALL_64_EMULATIONS): Here.
2206         * Makefile.in: Regenerated.
2207
2208 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2209
2210         * emultempl/pe.em(make_import_fixup): change signature to
2211         take asection as well as arelec; we need this for proper
2212         error reporting.  Only call pe_create_import_fixup() if
2213         there is no attempt to add a constant addend to the reloc;
2214         otherwise, report error condition.
2215         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2216         since final argument is a pointer to make_import_fixup().
2217         Change call to cb() to match make_import_fixup() signature.
2218         (make_import_fixup_mark): make buffer_len unsigned.
2219         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2220
2221 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
2222
2223         * ld.texinfo: add verbose documentation for auto-import
2224         direct-addressing workaround, to compliment the terse
2225         error message.
2226
2227 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
2228
2229         * scripttempl/v850.sc: Add gcc_except_table sections.
2230
2231 2001-09-11  Jeffrey A Law  (law@cygnus.com)
2232
2233         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2234         * emulparams/h8300self.sh: Similarly.
2235
2236 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2237
2238         * ld.texinfo (Options, --stack): Correct default value for stack
2239         reserve.
2240
2241 2001-09-05  Tom Rix <trix@redhat.com>
2242
2243         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2244
2245 2001-09-03  Andreas Jaeger  <aj@suse.de>
2246
2247         * emultempl/beos.em: Declare prototypes for comparions functions,
2248         adjust definitions.
2249
2250 2001-09-02  Andreas Jaeger  <aj@suse.de>
2251
2252         * emultempl/aix.em: Add missing prototype.
2253         * emultempl/lnk960.em: Likewise.
2254         * emultempl/vanilla.em: Likewise.
2255         * emultempl/armcoff.em: Likewise.
2256         * emultempl/armelf_oabi.em: Likewise.
2257         * emultempl/beos.em: Likewise.
2258         * emultempl/gld960c.em: Likewise.
2259         * emultempl/gld960.em: Likewise.
2260
2261         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2262         for prototype declaration.
2263
2264 2001-08-31  Eric Christopher  <echristo@redhat.com>
2265             Jason Eckhardt  <jle@redhat.com>
2266
2267         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2268
2269 2001-08-31  Andreas Jaeger  <aj@suse.de>
2270
2271         * emultempl/pe.em: Add missing prototypes.
2272         (gld_${EMULATION_NAME}_after_open): Remove extra args to
2273         pe_find_data_imports.
2274         (pr_sym): Add unused attribute.
2275
2276 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2277
2278         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2279         default from coff to elf.
2280
2281 2001-08-29  Jeff Law <law@redhat.com>
2282
2283         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
2284         ARCH specification.
2285         * emulparams/h8300self.sh: Similarly.
2286
2287 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
2288
2289         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2290         eh8300self.o .
2291         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2292         * configure.tgt (h8300-*-elf*): New case.
2293         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2294         * emulparams/h8300self.sh: New file.
2295         * Makefile.in: Regenerated.
2296
2297 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2298
2299         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2300         with macro name.
2301
2302 2001-08-27  Linus Nordberg  <linus@swox.com>
2303             Alan Modra  <amodra@bigpond.net.au>
2304
2305         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2306         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2307         Run "make dep-am"
2308         * Makefile.in: Regenerate.
2309         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2310         entries to correct alphabetical position.
2311         * emulparams/elf64ppc.sh: New.
2312         * emulparams/elf64lppc.sh: New.
2313
2314 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2315
2316         * ldmain.c (main): Declare BSIZE as static.
2317
2318 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2319
2320         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2321         into .rel.dyn resp. .rela.dyn if combreloc.
2322         (get_script): If .x linker script is equal to .xn, only put it
2323         once into the binary.
2324         Add .xc and .xsc scripts.
2325         (parse_args): Handle -z combreloc and -z nocombreloc.
2326         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2327         For .xc and .xsc scripts put all .rel* or .rela* input sections
2328         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2329         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2330         is elf.
2331         Strip trailing whitespace from script.
2332         Generate .xc and .xsc scripts if requested.
2333         * ldmain.c (main): Initialize link_info.combreloc and
2334         link_info.spare_dynamic_tags.
2335         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2336         (ld_options): Add --spare-dynamic-tags option.
2337         (parse_args): Likewise.
2338         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2339         * ldint.texinfo: Document .xc and .xsc linker scripts.
2340         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2341
2342 2001-08-22  H.J. Lu  <hjl@gnu.org>
2343
2344         * emulparams/elf32fr30.sh: Add a newline.
2345
2346 2001-08-21  Andreas Jaeger  <aj@suse.de>
2347
2348         * deffilep.y: Add missing prototypes.
2349         * pe-dll.c: Likewise.
2350
2351 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2352
2353         * ldlang.c (insert_pad): Fix typos in last patch.
2354
2355         * ldlang.c: When traversing lang_statement_union_type lists,
2356         consistently use "header.next" rather than "next".
2357         * mpw-eppcmac.c: Likewise.
2358         * emultempl/beos.em: Likewise.
2359         * emultempl/hppaelf.em: Likewise.
2360         * emultempl/pe.em: Likewise.
2361         * ldlang.h (union lang_statement_union): Remove "next" field.
2362
2363         * ldlang.c (insert_pad): Use offsetof macro.
2364         (lang_size_sections): Always neuter padding statements.
2365         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2366
2367         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2368         passed to lang_size_sections.
2369         (pe_exe_fill_sections): Likewise.
2370         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2371         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2372
2373 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2374
2375         * emultempl/aix.em: Formatting fixes.
2376
2377 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2378
2379         * ldlang.c (insert_pad): Make use of an existing pad statement if
2380         available.  Move code calculating alignment, adjusting section
2381         alignment power, and adjusting dot to ..
2382         (size_input_section): .. here.  Remove unused relax param.
2383         (lang_size_sections): Change boolean `relax' param to boolean *.
2384         Adjust call to size_input_section.  Make use of insert_pad to
2385         place pad after the assignment statement.  If relaxing, zap
2386         padding statements.
2387         (reset_memory_regions): Reset output_bfd section sizes too.
2388         (relax_again): Move to..
2389         (lang_process): ..here.  Adjust call to lang_size_sections, and
2390         remove duplicated code.
2391         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2392
2393 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2394
2395         * ld.texinfo: Document that fill values now use the four least
2396         significant bytes.
2397         * emulparams/elf32fr30.sh (NOP): Update.
2398         * emulparams/elf32mcore.sh: Likewise.
2399         * emulparams/elf64_s390.sh: Likewise.
2400         * emulparams/elf_i386.sh: Likewise.
2401         * emulparams/elf_i386_be.sh: Likewise.
2402         * emulparams/elf_i386_chaos.sh: Likewise.
2403         * emulparams/elf_i386_ldso.sh: Likewise.
2404         * emulparams/elf_s390.sh: Likewise.
2405         * emulparams/elf_x86_64.sh: Likewise.
2406         * emulparams/i386moss.sh: Likewise.
2407         * emulparams/i386nw.sh: Likewise.
2408         * emulparams/m68kelf.sh: Likewise.
2409         * scripttempl/elf.sc: Update NOP comment.
2410         * scripttempl/elfi370.sc: Likewise.
2411         * scripttempl/elfm68hc11.sc: Likewise.
2412         * scripttempl/elfm68hc12.sc: Likewise.
2413         * scripttempl/nw.sc: Likewise.
2414
2415 2001-08-15  Tom Rix <trix@redhat.com>
2416
2417         * ldgram.y (saved_script_handle): Initialize to NULL.
2418         * ldmain.c (main): Change check on saved_script_handle.
2419
2420 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2421
2422         * emultempl/elf32.em: Formatting fixes.
2423         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2424         looking at sec->owner.
2425         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2426         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2427         unused code, and reorganize orphan section placement code.
2428
2429         * ldlang.c (wild_doit): Rename to lang_add_section.
2430         * ldlang.h: Here too.
2431         * mpw-elfmips.c: And here.
2432         * emultempl/beos.em: And here.
2433         * emultempl/elf32.em: And here.
2434         * emultempl/hppaelf.em: And here.
2435         * emultempl/pe.em: And here.
2436
2437 2001-08-13  Richard Henderson  <rth@redhat.com>
2438
2439         * emultempl/needrelax.em: New file.
2440         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2441         * Makefile.am (eelf64_ia64.c): Depend on it.
2442         * Makefile.in: Rebuild.
2443
2444 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2445
2446         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2447         output_section is set non-NULL.
2448
2449         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2450         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2451         needlessly create an output_section_statement.  Treat a correctly
2452         named output_section_statement with NULL bfd_section as compatible.
2453
2454 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2455
2456         * emultempl/generic.em: Support EXTRA_EM_FILE.
2457         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2458         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2459         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2460         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2461         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2462         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2463         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2464         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2465         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2466         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2467
2468 2001-08-12  Richard Henderson  <rth@redhat.com>
2469
2470         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2471         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2472         scripttempl/v850.sc: Keep .jcr data.
2473
2474 2001-08-12  H.J. Lu  <hjl@gnu.org>
2475             Andrew Haley  <aph@cambridge.redhat.com>
2476             Nick Clifton  <nickc@redhat.com>
2477
2478         * ldgram.y (had_script): Change name to saved_script_handle.
2479         Change type to file handle.
2480         * ld.h (had_script): Rename and retype.
2481         * ldfile.c (ldfile_open_command_file): Save the file handle
2482         used in saved_script_handle.
2483         * lexsup.c (parse_args): Do not allow -c option to alter
2484         saved_script_handle.
2485         * ldmain.c (main): Print out the linker script used if
2486         --verbose is given.  Check saved_script_handle to obtain the
2487         external linker script used, or if NULL, dump the builtin
2488         script.
2489         * ld.texinfo: Document that --verbose now dumps the linker
2490         script used, regardless of whether it was an internal or an
2491         external script.
2492
2493 2001-08-10  Andreas Jaeger  <aj@suse.de>
2494
2495         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2496         to build warnings.
2497         * configure: Regenerate.
2498
2499 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2500
2501         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2502
2503         * scripttempl/elf.sc: Move non-text .dynamic section before
2504         .plt/.got/.sdata* group.
2505         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2506         (OTHER_SDATA_SECTIONS): Add.
2507         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2508         OTHER_GOT_SECTIONS.
2509         * emulparams/crislinux.sh: Likewise.
2510         * emulparams/elf32b4300.sh: Likewise.
2511         * emulparams/elf32bmip.sh: Likewise.
2512         * emulparams/elf32bmipn32.sh: Likewise.
2513         * emulparams/elf32bsmip.sh: Likewise.
2514         * emulparams/elf32btsmip.sh: Likewise.
2515         * emulparams/elf32ebmip.sh: Likewise.
2516         * emulparams/elf32elmip.sh: Likewise.
2517         * emulparams/elf32l4300.sh: Likewise.
2518         * emulparams/elf32lmip.sh: Likewise.
2519         * emulparams/elf32lsmip.sh: Likewise.
2520         * emulparams/elf32ltsmip.sh: Likewise.
2521         * emulparams/elf64bmip.sh: Likewise.
2522         * emulparams/elf64btsmip.sh: Likewise.
2523         * emulparams/elf64ltsmip.sh: Likewise.
2524
2525 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2526
2527         * genscripts.sh: Source the emulparams script before each output
2528         script is generated so that variables like `RELOCATING' may affect
2529         variables defined in the emulparams script.
2530
2531 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2532
2533         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2534         order.
2535
2536         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2537         ie. iterate over wild_statement.section_list.
2538         (gld${EMULATION_NAME}_place_orphan): Likewise.
2539
2540 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2541
2542         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2543         .fini[0-4] sections used by _exit
2544         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2545         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2546         * scripttempl/elfm68hc11.sc: Likewise.
2547
2548 2001-08-03  H.J. Lu  <hjl@gnu.org>
2549
2550         * emultempl/beos.em (init): Add the missing initialization.
2551
2552 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2553
2554         * ld.texinfo (Input Section Basics): Clarify ordering of output
2555         sections.
2556         * ldlang.c (callback_t): Add wildcard_list param.
2557         (walk_wild_section): Remove "section" param.  Rewrite for
2558         lang_wild_statement_type change.  Remove unique_section_p test.
2559         (walk_wild_file): Remove "section" param.
2560         (walk_wild): Remove "section" and "file" params.
2561         (lang_gc_wild): Likewise.
2562         (wild): Likewise.  Modify for lang_wild_statement_type change.
2563         (wild_sort): Likewise.  Add "sec" param.
2564         (gc_section_callback): Likewise.
2565         (output_section_callback): Likewise.  Do unique_section_p test.
2566         (map_input_to_output_sections): Modify call to wild.
2567         (lang_gc_sections_1): Likewise.
2568         (print_wild_statement): Modify for lang_wild_statement_type
2569         change.
2570         (lang_add_wild): Replace filename, filenames_sorted param with
2571         filespec.  Replace section_name, sections_sorted,
2572         exclude_filename_list with section_list.
2573         * ldlang.h (lang_add_wild): Here too.
2574         (lang_wild_statement_type): Replace section_name, sections_sorted,
2575         and exclude_filename_list with section_list.
2576         * ldgram.y (current_file): Delete.
2577         (%union): Add wildcard_list.
2578         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2579         rather than calling lang_add_wild for each entry.
2580         (input_section_spec_no_keep): Call lang_add_wild here instead.
2581         * ld.h (struct wildcard_list): Declare.
2582         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2583
2584 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2585
2586         * ldmain.c (main): initialize link_info.pei386_auto_import
2587         * pe-dll.c: new tables for auto-export filtering
2588         (auto_export): change API, pass abfd for contextual filtering.
2589         Loop thru tables of excluded symbols instead of comparing
2590         "by hand".
2591
2592 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2593
2594         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2595         static variable current_sec (static struct sec *). Add
2596         forward declaration for add_bfd_to_link.
2597         (process_def_file): Don't export undefined symbols. Do not
2598         export symbols starting with  "_imp__".  Call auto_export()
2599         with new API.
2600         (pe_walk_relocs_of_symbol): New function.
2601         (generate_reloc): add optional extra debugging
2602         (pe_dll_generate_def_file): eliminate extraneous initial blank
2603         line in output
2604         (make_one): enlarge symtab to make room for __nm__ symbols
2605         (DATA auto-import support).
2606         (make_singleton_name_thunk): New function.
2607         (make_import_fixup_mark): New function.
2608         (make_import_fixup_entry): New function.
2609         (pe_create_import_fixup): New function.
2610         (add_bfd_to_link): Specify that 'name' argument is a CONST
2611         char *.
2612         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2613         declare new functions pe_walk_relocs_of_symbol and
2614         pe_create_import_fixup.
2615         * emultempl/pe.em: add new options --enable-auto-import,
2616         --disable-auto-import, and --enable-extra-pe-debug.
2617         (make_import_fixup): New function.
2618         (pe_find_data_imports): New function.
2619         (pr_sym): New function.
2620         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2621         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2622         CODE.
2623
2624 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2625
2626         * ld.texinfo: add additional documentation for
2627         --export-all-symbols.  Document --out-implib,
2628         --enable-auto-image-base, --disable-auto-image-base,
2629         --dll-search-prefix, --enable-auto-import, and
2630         --disable-auto-import.
2631         * ldint.texinfo: Add detailed documentation on auto-import
2632         implementation.
2633
2634 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2635
2636         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2637         example.
2638
2639 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2640
2641         * Makefile.am: Update dependencies with "make dep-am".
2642         * Makefile.in: Regenerate
2643
2644 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2645
2646         * ldcref.c (check_section_sym_xref): New function.
2647         (check_nocrossrefs): Call it.
2648         (check_nocrossref): Interate over h->refs here instead of..
2649         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2650         rather than hash_entry pointers.
2651         (struct check_refs_info): Keep symbol name rather than hash entry.
2652         Remove "same".
2653         (check_reloc_refs): Tweak for above changes in check_refs_info.
2654         Only report references to section syms when symname is NULL to
2655         prevent duplicate messages for the same reloc.
2656
2657 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2658
2659         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2660         available.  Do not print NULL trees.
2661         (exp_print_token): Print unknown tokens with values > 126 as
2662         decimal values not ASCII characters.
2663
2664         * ldlang.c (lang_leave_overlay): If a region is specified assign
2665         it to all sections inside the overlay unless they have been
2666         assigned to the own, non-default, memory region.
2667
2668         * README: Add header for consistency with other README files.
2669
2670 2001-07-14  H.J. Lu  <hjl@gnu.org>
2671
2672         * emultempl/elf32.em (output_prev_sec_find): Never return
2673         bfd_abs_section_ptr, bfd_com_section_ptr nor
2674         bfd_und_section_ptr.
2675
2676 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2677
2678         * Makefile.am (em32relf.c): Change dependency from generic.em to
2679         elf32.em.
2680         * Makefile.in: Regenerate.
2681
2682 2001-07-14  matthew green  <mrg@eterna.com.au>
2683
2684         * configure.tgt (i386-*-netbsdelf*): New target.
2685         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2686
2687 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2688
2689         * emultempl/elf32.em (output_prev_sec_find): New.
2690         (place_orphan): Use it.
2691
2692 2001-07-11  H.J. Lu  <hjl@gnu.org>
2693
2694         * ldmain.c (main): Fix typos in the last change.
2695
2696 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2697
2698         * ldmain.c (main): Disallow -F and -f without -shared.
2699
2700 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2701
2702         * emultempl/pe.em (after_open): Check for the output_bfd not
2703         having any coff_data structure allocated to it.
2704
2705 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2706
2707         * emultempl/elf32.em: Do not assuming that contents of the buffer
2708         returned from basename function will remain unchanged accross other
2709         function calls.
2710
2711 2001-07-03  H.J. Lu  <hjl@gnu.org>
2712
2713         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2714         2001-07-03. It creates dynamic entries even for static binaries.
2715
2716 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2717
2718         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2719         (DYNAMIC): Use it to reserve few dynamic entries for
2720         post-linking tools.
2721
2722 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2723
2724         * emulparams/hppa64linux.sh: New file.
2725         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2726         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2727         (ehppa64linux.c): Add rule to make it.
2728         Run "make dep-am".
2729         * Makefile.in: Regenerate.
2730
2731 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2732
2733         * ld.texinfo (Options, -r): Mention restrictions when using
2734         different object formats.
2735
2736 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2737
2738         * ldlang.c (lang_check): Emit fatal error if relocatable link
2739         between different object flavours with relocations in input.
2740
2741 2001-06-19  H.J. Lu  <hjl@gnu.org>
2742
2743         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2744         (--version-script): Mention the language support.
2745
2746 2001-06-19  H.J. Lu <hjl@gnu.org>
2747
2748         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2749
2750 2001-06-18  H.J. Lu <hjl@gnu.org>
2751
2752         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2753         (diststuff): Add $(MANS).
2754         * Makefile.in: Regenerated.
2755
2756         * ld.1: Removed.
2757
2758 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2759
2760         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2761         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2762         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2763         * ld.h (args_type): Remove member export_dynamic.  All users
2764         changed to use struct bfd_link_info member.
2765
2766         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2767         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2768         * Makefile.in: Regenerate.
2769
2770 2001-06-18  H.J. Lu  <hjl@gnu.org>
2771
2772         * ldlang.c (init_os): Add the newline to the einfo call.
2773         (lang_check): Likewise.
2774         (lang_do_version_exports_section): Likewise.
2775
2776 2001-06-15  H.J. Lu  <hjl@gnu.org>
2777
2778         * lexsup.c (parse_args); Save optind to report unrecognized
2779         option.
2780
2781 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2782
2783         * ldlang.c (lang_check): Emit fatal error if relocatable link
2784         between different object flavours.
2785
2786         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2787         Set new link_info member export_dynamic.
2788         * ldmain.c (main): Initialize new link_info member export_dynamic.
2789
2790 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2791
2792         * ldlang.c (walk_wild): Only call walk_wild_file if
2793         lookup_name returns something.
2794         (lookup_name): If load_symbols fails, return NULL.
2795         (load_symbols): Change to a boolean function.
2796         (open_input_bfds): If load_symbols fails then do not make the
2797         executable.
2798
2799 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2800
2801         * ldlang.c (record_bfd_errors): Remove.
2802
2803         * emultempl/aix.em: Fix copyright dates.
2804
2805 2001-06-07  Andreas Jaeger  <aj@suse.de>
2806
2807         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2808         (TEXT_START_ADDR): Likewise.
2809
2810 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2811
2812         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2813
2814 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2815
2816         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2817
2818 2001-05-31  H.J. Lu  <hjl@gnu.org>
2819
2820         * ldlang.c (open_input_bfds): Don't change the bfd error
2821         handler whilst loading symbols.
2822
2823 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2824
2825         * configure.tgt: Remove i370-mvs architecture, it is not currently
2826         supported.
2827
2828 2001-05-25  H.J. Lu  <hjl@gnu.org>
2829
2830         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2831         like emulparams/aixppc.sh.
2832
2833 2001-05-25  H.J. Lu  <hjl@gnu.org>
2834
2835         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2836         setting of output_filename after bfd_scan_arch.
2837         * emultempl/pe.em: Likewise.
2838
2839 2001-05-25  H.J. Lu  <hjl@gnu.org>
2840
2841         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2842         like emulparams/aixppc.sh.
2843
2844         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2845         instead of ${srcdir}/emultempl/stringify.sed.
2846
2847 2001-05-25  Timothy Wall  <twall@oculustech.com>
2848
2849         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2850         output.
2851
2852 2001-05-25  Alan Modra  <amodra@one.net.au>
2853
2854         * configure.host: Replace linuxoldld with linux*oldld.
2855         * configure.tgt: Likewise.
2856
2857 2001-05-24  H.J. Lu  <hjl@gnu.org>
2858
2859         * emultempl/stringify.sed: Removed again.
2860
2861 2001-05-24  H.J. Lu  <hjl@gnu.org>
2862
2863         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2864         (gld${EMULATION_NAME}_before_parse): Initialize
2865         ldfile_output_architecture, ldfile_output_machine and
2866         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2867         * emultempl/beos.em: Likewise.
2868         * emultempl/elf32.em: Likewise.
2869         * emultempl/linux.em: Likewise.
2870         * emultempl/mipsecoff.em: Likewise.
2871         * emultempl/pe.em: Likewise.
2872         * emultempl/sunos.em: Likewise.
2873
2874 2001-05-24 Tom Rix <trix@redhat.com>
2875
2876         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2877         udate import file format.
2878         (change_symbol_mode) New, same
2879         (is_syscall) New, same
2880         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2881         * emulparams/aixppc64.sh : same
2882         * emulparams/aixrs6.sh : same
2883         * emulparams/ppcmacos.sh : same
2884         * emultempl/aix.em : use strtoull to parse options
2885         * Makefile.am : add eaixppc64 emulation for xcoff64
2886         * Makefile.in : same
2887         * configure.tgt : same
2888
2889         * scripttempl/aix.sc : default text section offset to 0x10000000
2890         default data section offset to 0x20000000
2891         add .sv3264 and .sv64 pseudo sections
2892         loader and debug sections use the currect section offset.
2893
2894         * emultempl/aix.em : Add xcoff64 support
2895         Add -binitfini support
2896         (gld${EMULATION_NAME}_before_parse) -binitfini
2897         (gld${EMULATION_NAME}_parse_args) same
2898         (gld${EMULATION_NAME}_before_allocation) format change for special
2899         sections
2900
2901         * emulparams/aixppc64.sh : New file for xcoff64 support
2902
2903 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2904
2905         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2906         variable to avoid non-portable shell construct.
2907
2908 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2909
2910         * ldmain.c (get_emulation): Add -mips5 command line argument.
2911
2912 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2913
2914         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2915         (ELF_INTERPRETER_NAME): Define it.
2916         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2917         it.
2918         * configure.tgt (targ_emul, targ_extra_emuls)
2919         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2920         as primary, elf_i386 as extra.
2921         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2922         (eelf_i386_ldso.c): New rule.
2923         * Makefile.in: Rebuilt.
2924
2925 2001-05-22  Nick Clifton  <nickc@redhat.com>
2926
2927         * lexsup.c (ld_options):  Allow -I to be an alias for
2928         --dynamic-linker.  This is for Solaris compatability.
2929         * ld.texinfo: Document that -I can be used.
2930         * ld.1: Regenerate.
2931
2932 2001-05-16  Alan Modra  <amodra@one.net.au>
2933
2934         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2935         whether an input section is the first one assigned to an output
2936         section.
2937         Assorted formatting fixes.
2938
2939 2001-05-14  DJ Delorie  <dj@delorie.com>
2940
2941         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2942         * Makefile.in: Ditto.
2943
2944 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2945
2946         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2947         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2948         output sections.
2949         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2950
2951 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2952
2953         * ldlang.c (lang_process): Call bfd_merge_sections.
2954
2955 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2956
2957         * ldgram.y: Fix typo.
2958
2959 2001-05-03  H.J. Lu  <hjl@gnu.org>
2960
2961         * emultempl/elf32.em: Include "libiberty.h".
2962         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2963         basename of the bfd filename.
2964         (gld${EMULATION_NAME}_stat_needed): Likewise.
2965         (gld${EMULATION_NAME}_try_needed): Likewise.
2966         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2967
2968 2001-05-02  H.J. Lu  <hjl@gnu.org>
2969
2970         * emultempl/pe.em: Include <ctype.h>.
2971
2972 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2973
2974         * emulparams/elf32openrisc.sh: New file.
2975
2976         * Makefile.am: Add OpenRISC target.
2977         * Makefile.in: Regenerated.
2978
2979         * configure.tgt: Add openrisc-*-* mapping.
2980
2981 2001-05-02  Nick Clifton  <nickc@redhat.com>
2982
2983         * emultempl/aix.em: Replace buystring with xstrdup.
2984         * emultempl/beos.em: Replace buystring with xstrdup.
2985
2986 2001-05-02  H.J. Lu  <hjl@gnu.org>
2987
2988         * ldfile.c: Include "libiberty.h".
2989         * ldlex.l: Likewise.
2990
2991         * ldmisc.c (buystring): Removed.
2992         * ldmisc.h: Likewise.
2993
2994         * ldfile.c: Replace buystring with xstrdup.
2995         * ldlang.c: Likewise.
2996         * ldlex.l: Likewise.
2997         * ldmain.c: Likewise.
2998         * ldmisc.c: Likewise.
2999         * lexsup.c: Likewise.
3000         * mpw-eppcmac.c: Likewise.
3001
3002 2001-04-30  Andreas Jaeger  <aj@suse.de>
3003
3004         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3005
3006 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3007
3008         * ldlang.c (load_symbols): Give emulation a chance
3009         to process unrecognized file before fatal error is
3010         reported, not after.
3011
3012 2001-04-27  Sean McNeil <sean@mcneil.com>
3013
3014         * configure.tgt: Add arm-vxworks target.
3015         * scripttempl/armcoff.sc: Support .text or .data as a section name
3016         prefix.
3017         Define _etext.
3018
3019 2001-04-13  J.T. Conklin  <jtc@redback.com>
3020
3021         * ld.texinfo: Document --fatal-warnings.
3022         * ld.1: Regenerate.
3023
3024         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3025         warnings have been turned into errors.
3026         * lexsup.c (OPTION_WARN_FATAL): Define.
3027         (ld_options): Entry for --fatal-warnings.
3028         (parse_args): Handle OPTION_WARN_FATAL.
3029         * ld.h (ld_config_type): Add fatal_warnings field.
3030
3031 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3032
3033         * ldmain.c (main): Default to discard_sec_merge.
3034         * lexsup.c (OPTION_DISCARD_NONE): Define.
3035         (ld_options): Add --discard-none.
3036         (parse_args): Handle OPTION_DISCARD_NONE.
3037         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3038         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3039         all its input sections match.
3040
3041 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
3042
3043         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3044         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3045         (eelf32ltsmip.c): New target.
3046         (eelf64btsmip.c): Likewise.
3047         (eelf64ltsmip.c): Likewise.
3048         * Makefile.in: Regenerated.
3049
3050         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3051         target.
3052         (mips*-*-linux-gnu*): Likewise.
3053
3054         * emulparams/elf32ltsmip.sh: New. Traditional little endian
3055         MIPS taget.
3056         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3057         target.
3058         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3059         endian target.
3060
3061 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
3062
3063         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3064         correct value of __Stext here.
3065         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3066         .startup section.
3067
3068         * emulparams/crislinux.sh: Remove FIXME.
3069
3070 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
3071
3072         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3073         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3074
3075 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
3076
3077         * configure.tgt (cris-*-*): Change default emulation to criself.
3078         (cris-*-*aout*): New rule.
3079
3080 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
3081
3082         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3083         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3084
3085 2001-03-26  Andreas Jaeger  <aj@suse.de>
3086
3087         * ld.texinfo (Overview): Fix syntax in texi code.
3088
3089 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3090
3091         * ld.texinfo: Put @c man indications to generate the ld man page.
3092         When generating man, define all the variables.  Define SEEALSO
3093         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
3094         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3095         (ld.1): Generate from ld.texinfo.
3096         * Makefile.in: Regenerate.
3097
3098 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
3099
3100         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3101         and '-fdata-sections'. Set the VMA of STABS sections to zero.
3102
3103 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3104
3105         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3106         is an absolute path look only for this file and not along the path.
3107
3108 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
3109
3110         * emultempl/elf32.em (OPTION_GROUP): New macro.
3111         Add new option Bgroup to longopts.
3112         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3113         (gld*_list_options): Add -Bgroup and -z defs.
3114         * ld.1: Document -Bgroup and -z defs.
3115         * ld.texinfo: Likewise.
3116
3117 2001-03-07  Michael Meissner  <meissner@redhat.com>
3118
3119         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3120         with sections created by -fdata-sections.
3121         (.dynbss,.bss): Ditto.
3122
3123 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
3124
3125         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3126         after_allocation_default, not gld..._before_allocation.
3127
3128 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
3129
3130         * configure.in (BFD_VERSION): New.
3131         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3132         * configure: Regenerate.
3133         * Makefile.am: Run "make dep-am"
3134         * Makefile.in: Regenerate.
3135
3136 2001-02-26  Timothy Wall  <twall@cygnus.com>
3137
3138         * emulparams/elf64_aix.sh: Add additional read-only sections;
3139         uncomment lines which are now required.
3140
3141 2001-02-26  H.J. Lu  <hjl@gnu.org>
3142
3143         * ldlang.c (open_input_bfds): Set the bfd error handler so
3144         that problems can be caught whilst loading symbols.
3145         (record_bfd_errors): New function: Report BFD errors and mark
3146         the executable output as being invalid.
3147
3148 2001-02-22  Timothy Wall  <twall@cygnus.com>
3149
3150         * configure.host: Add configuration for ia64-*-aix*.
3151         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3152         Add dependencies for eelf64_aix.c.
3153         * Makefile.in: Regenerate.
3154         * configure.tgt: Add ia64-*-aix* mapping.
3155         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3156         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3157         AIX-specific test.
3158
3159 2001-02-20  H.J. Lu  <hjl@gnu.org>
3160
3161         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3162         false if we found the file.
3163
3164 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
3165
3166         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3167         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3168
3169 2001-02-18  lars brinkhoff  <lars@nocrew.org>
3170
3171         * Makefile.am: Add PDP-11 target.
3172         * configure.tgt: Likewise.
3173         * emulparams/pdp11.sh: New file.
3174
3175 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
3176
3177         * configure.host: Add a generic FreeBSD configuration entry such that
3178         all [modern] FreeBSD systems on all platforms will look the same.
3179
3180 2001-02-14  H.J. Lu  <hjl@gnu.org>
3181
3182         * configure.tgt: Remove mention of earmelf_linux26.
3183
3184 2001-02-13  Richard Henderson  <rth@redhat.com>
3185
3186         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3187
3188 2001-02-13  H.J. Lu  <hjl@gnu.org>
3189
3190         * ldexp.h (node_type): Add etree_provided.
3191         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3192         type to etree_provided if defined by PROVIDE. Allow updating
3193         for etree_provided.
3194         (exp_print_tree): Handle etree_provided.
3195         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3196         etree_provided.
3197
3198 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
3199
3200         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3201         .IA_64.unwind.* pattern to unwind table section and
3202         .IA_64.unwind_info* pattern to unwind info section.
3203
3204 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3205
3206         * Makefile.am: Add linux target for S/390.
3207         * Makefile.in: Likewise.
3208         * configure.host: Likewise.
3209         * configure.tgt: Likewise.
3210         * emulparams/elf64_s390.sh: New file.
3211         * emulparams/elf_s390.sh: New file.
3212
3213 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3214
3215         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3216         targ_extra_libpath.
3217         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3218
3219 2001-02-06  Philip Blundell  <philb@gnu.org>
3220
3221         * Makefile.am: Remove mention of earmelf_linux26.
3222         * Makefile.in: Regenerate.
3223
3224 2001-02-04  Philip Blundell  <philb@gnu.org>
3225
3226         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3227         * emulparams/armelf_linux26.sh: Delete.
3228         * configure.tgt: Remove mention of armelf_linux26 emulation.
3229
3230 2001-02-01  Nick Clifton  <nickc@redhat.com>
3231
3232         * ld.1: Replace occurances of -oformat with --oformat.
3233
3234 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
3235
3236         * ldlang.c (lang_leave_overlay): Don't set lma_region when
3237         load_base is specified.
3238
3239 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
3240
3241         * emultempl/elf32.em: Correct spelling in comments and listed
3242         options.
3243
3244 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
3245
3246         * ldlang.c (lang_leave_overlay): Only set lma_region from the
3247         default for the first section of a group of overlay sections.
3248
3249 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
3250
3251         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3252         * Makefile.in: Regenerate.
3253         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3254         Check for null tool_dir.
3255
3256 2001-01-16  Jim Wilson  <wilson@redhat.com>
3257
3258         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3259         and IA_64.unwind.info.
3260
3261 2001-01-16  H.J. Lu  <hjl@gnu.org>
3262
3263         * ldlang.c (lang_check): Merge the private data only if the
3264         input file has contents.
3265
3266 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
3267
3268         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3269
3270         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3271         enabling search for libmilli.  On a relocatable link, make .text
3272         sections unique.
3273         (LDEMUL_AFTER_PARSE): Define.
3274         (hppaelf_finish): Correct spelling of relocatable in comments.
3275
3276         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3277         rummage through the script for sections on the unique list.
3278         Correct length of strncmp for ".note".
3279         (gld${EMULATION_NAME}_check_needed): Rearrange function.
3280
3281         * ldlang.c (unique_section_list): New var.
3282         (unique_section_p): New function.
3283         (walk_wild_section): Don't match sections on unique_section_list.
3284         (lang_add_unique): New function.
3285         Correct spelling of relocatable in comments.
3286
3287         * ldlang.h (struct unique_sections): Declare.
3288         (unique_section_list): Declare.
3289         (unique_section_p): Declare.
3290         (lang_add_unique): Declare.
3291
3292         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3293         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3294
3295         * ld.texinfo (--unique): Update.
3296
3297 2001-01-13  Nick Clifton  <nickc@redhat.com>
3298
3299         * lexsup.c (parse_args): Remove spurious white space.
3300
3301 2001-01-12  Nick Clifton  <nickc@redhat.com>
3302
3303         * lexsup.c (parse_args): Update copyright date.
3304
3305 2001-01-12  Philip Blundell  <pb@futuretv.com>
3306
3307         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3308
3309 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3310
3311         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3312         * scripttempl/h8300h.sc: Fix formatting.
3313         * scripttempl/h8300s.sc: Likewise.
3314         * scripttempl/h8500.sc: Likewise.
3315         * scripttempl/h8500b.sc: Likewise.
3316         * scripttempl/h8500c.sc: Likewise.
3317         * scripttempl/h8500m.sc: Likewise.
3318         * scripttempl/h8500s.sc: Likewise.
3319
3320 2000-01-07  David O'Brien  <obrien@BSDi.com>
3321
3322         * emultempl/elf32.em: Only perform Linux ld hints processing when
3323         targeting Linux.
3324
3325 2001-01-07  Philip Blundell  <philb@gnu.org>
3326
3327         * ld.texinfo (Bug Reporting): Update email address for reports.
3328
3329 2000-12-31  Nick Clifton  <nickc@redhat.com>
3330
3331         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3332         options by checking for a return value of '?' not -1.
3333
3334 2000-12-28  Nick Clifton  <nickc@redhat.com>
3335
3336         * lexsup.c (struct ld_option): Add new enum value:
3337         EXACTLY_TWO_DASHES.
3338         (ld_options[]): Change -omagic, -output and -oformat options
3339         to be EXACTLY_TWO_DASHES.
3340         (OUTPUT_COUNT): Use ARRAY_SIZE.
3341         (parse_args): Change parameter 'argc' to unsigned.
3342         Place EXACTLY_TWO_DASHES options into new really_longopts
3343         array.
3344         If getopt_long_only fails, try calling getopt_long using the
3345         really_longopts array.
3346         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3347         TWO_DASHES options.
3348
3349         * ldlex.h: Fix prototype of parse_args.
3350
3351         * ld.texinfo: Document that long options starting with 'o'
3352         must be preceeded by two dashes.  Change example of a single
3353         dashed long option from -oformat to -trace-symbol.
3354
3355 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3356
3357         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3358         (longopts[]): New --no-default-excludes option.
3359         (gld_${EMULATION_NAME}_list_options): Document.
3360         (gld_${EMULATION_NAME}_parse_args): Handle.
3361
3362 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3363
3364         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3365         whitespace, it breaks the K&R C preprocessor.
3366
3367 2000-12-11  DJ Delorie  <dj@redhat.com>
3368
3369         * ld.texinfo: Add notes about --whole-archive and gcc.
3370
3371 2000-11-18  Fred Fish  <fnf@be.com>
3372
3373         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3374         (ld_options): Entry for --allow-shlib-undefined.
3375         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3376         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3377         to false.
3378         * ld.texinfo: Document new command line switch.
3379
3380 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3381
3382         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3383         .fixup is actually read/write.
3384         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3385         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3386         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3387
3388 2000-12-11  Jan Hubicka  <jh@suse.cz>
3389
3390         * NEWS: Add note about x86_64 architecture.
3391
3392 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3393
3394         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3395         Set DWARF2 sections to a VMA of zero.
3396
3397 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3398
3399         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3400         New targets.
3401         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3402         (sparc*-*-rtems*): Switched from a.out to ELF.
3403
3404 2000-11-30  Jan Hubicka  <jh@suse.cz>
3405
3406         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3407         (eelf_x86_64.c): New.
3408         * Makefile.in: Regenerate.
3409         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3410         * emulparams/elf_x86_64.sh: New.
3411
3412 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3413
3414         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3415         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3416
3417         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3418         merging non-a.out sections into CONSTRUCTING.
3419
3420 2000-11-28  Nick Clifton  <nickc@redhat.com>
3421
3422         * ld.1 (COPYING): Mention that the GNU Free Documentation
3423         License is present in the sources, but not the output, and
3424         also available from the GNU website.
3425         (GNU Free Documentation License): Comment out this section.
3426
3427 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3428
3429         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3430         does not use them.
3431
3432 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3433
3434         * ld.1: Remove old date so it does not give the impression the manpage
3435         is way out of date.
3436
3437 2000-11-24  Nick Clifton  <nickc@redhat.com>
3438
3439         * configure.tgt (xscale-coff): Add target.
3440         (xscale-elf): Add target.
3441
3442 2000-11-24  Fred Fish  <fnf@be.com>
3443
3444         * ldmain.c (main): Remove redundant init of config.make_executable
3445         to true.
3446
3447 2000-11-15  Richard Henderson  <rth@redhat.com>
3448
3449         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3450
3451 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3452
3453         * scripttempl/h8300.sc: Fix formatting.
3454         * scripttempl/h8300h.sc: Likewise.
3455         * scripttempl/h8300s.sc: Likewise.
3456
3457 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3458
3459         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3460
3461 2000-11-09  Philip Blundell  <pb@futuretv.com>
3462
3463         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3464         around orphan sections whose names can be represented in C.
3465
3466 2000-11-07  Jim Wilson  <wilson@redhat.com>
3467
3468         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3469         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3470
3471 2000-11-06  Nick Clifton  <nickc@redhat.com>
3472
3473         * ld.texinfo: Add GNU Free Documentation License.
3474         * ldint.texinfo: Add GNU Free Documentation License.
3475         * ld.1: Add GNU Free Documentation License.
3476
3477 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3478
3479         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3480         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3481
3482         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3483         Move 2000-11-02 Makefile.in changes to this file.
3484         * Makefile.in: Regenerate.
3485
3486 2000-11-03  Nick Clifton  <nickc@redhat.com>
3487
3488         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3489         constructors and destructors.
3490         * scripttempl/h8300h.sc: Ditto.
3491         * scripttempl/h8300s.sc: Ditto.
3492         * scripttempl/h8500.sc: Ditto.
3493         * scripttempl/h8500b.sc: Ditto.
3494         * scripttempl/h8500c.sc: Ditto.
3495         * scripttempl/h8500m.sc: Ditto.
3496         * scripttempl/h8500s.sc: Ditto.
3497         * scripttempl/v850.sc: Ditto.
3498         * scripttempl/w65.sc: Ditto.
3499         * scripttempl/z8000.sc: Ditto.
3500
3501 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3502
3503         * Makefile.in (e_i386_chaos.c): New rule.
3504         (ALL_EMULATIONS): Added e_i386_chaos.o.
3505         * emulparams/elf_i386_chaos.sh: New file.
3506         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3507
3508 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3509
3510         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3511         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3512         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3513         library path suffix.
3514         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3515
3516 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3517
3518         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3519         for consecutive sections.
3520
3521 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3522
3523         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3524         options.
3525         * ld.texinfo: Added notes about this new option.
3526
3527 2000-10-16  Nick Clifton  <nickc@redhat.com>
3528
3529         * emultempl/pe.em (_after_open): Add tests of return values from
3530         bfd functions.  Emit appropriate error messages if necessary.
3531
3532 2000-10-13  Nick Clifton  <nickc@redhat.com>
3533
3534         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3535         local variables - they are not used, but leave in the call to
3536         bfd_canonicalize_symtab.
3537         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3538         pe_dll_search_prefix.
3539
3540 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3541
3542         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3543         (longopts): New --dll-search-prefix option.
3544         (gld_${EMULATION_NAME}_list_options): Document.
3545         (gld_${EMULATION_NAME}_parse_args): Handle.
3546         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3547         dynamically, search for a dll named '<prefix><basename>.dll'
3548         in preference to 'lib<basename>.dll' if --dll-search-prefix
3549         is specified.
3550
3551 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3552
3553         * ldlang.c (section_already_linked): Set kept_section instead of
3554         sec->comdat->sec.
3555
3556 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3557
3558         * deffile.h: Fix formatting.
3559         * lexsup.c: Likewise.
3560         * mri.c: Likewise.
3561
3562 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3563
3564         * pe-dll.c (make_one): Do not generate code thunk for DATA
3565         exports.
3566         (process_def_file): deduce DATA flag for auto-export sumbols.
3567
3568 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3569
3570         * ld.h: Fix formatting.
3571         * ldcref.c: Likewise.
3572         * ldctor.h: Likewise.
3573         * ldemul.c: Likewise.
3574         * ldemul.h: Likewise.
3575         * ldexp.c: Likewise.
3576         * ldexp.h: Likewise.
3577         * ldfile.c: Likewise.
3578         * ldfile.h: Likewise.
3579         * ldlang.c: Likewise.
3580         * ldlang.h: Likewise.
3581         * ldmain.c: Likewise.
3582         * pe-dll.c: Likewise.
3583
3584         * pe-dll.c: Revert some formatting fixes.
3585
3586 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3587
3588         * pe-dll.c: Fix formatting.
3589
3590 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3591
3592         * ldlang.c: Fix formatting.
3593
3594 2000-10-03  DJ Delorie  <dj@redhat.com>
3595
3596         * pe-dll.c (fill_edata): initialize entire block
3597         (make_one): fill in correct section.
3598
3599 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3600
3601         * ldexp.c: Fix formatting.
3602
3603 2000-10-02  DJ Delorie  <dj@redhat.com>
3604
3605         * emultempl/pe.em (gld_*_after_open): detect case where there two
3606         import libraries for same dll; rename one to ensure proper link
3607         order.
3608
3609         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3610         typo
3611         (generate_edata): fix typo
3612
3613 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3614
3615         * scripttempl/crisaout.sc (ENTRY): Now __start.
3616         (.text): Add default setting for __start.
3617         Remove CONSTRUCTORS handling.
3618         (/DISCARD/): Add .gnu.warning.*.
3619         * emulparams/crislinux.sh (ENTRY): Now __start.
3620         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3621         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3622         (ENTRY): Now __start.
3623         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3624         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3625
3626 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3627
3628         * deffile.h: Fix formatting.
3629         * ld.h: Likewise.
3630         * ldcref.c: Likewise.
3631         * ldctor.c: Likewise.
3632         * ldctor.h: Likewise.
3633         * ldemul.c: Likewise.
3634         * ldemul.h: Likewise.
3635         * ldexp.c: Likewise.
3636         * ldexp.h: Likewise.
3637         * ldfile.c: Likewise.
3638         * ldfile.h: Likewise.
3639         * ldlang.c: Likewise.
3640         * ldlang.h: Likewise.
3641         * lexsup.c: Likewise.
3642         * mri.c: Likewise.
3643         * pe-dll.c: Likewise.
3644
3645 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3646
3647         * pe-dll.c (process_def_file): Uninitialized data wasn't
3648         exported with --export-all-symbols switch.
3649
3650 2000-09-28  DJ Delorie  <dj@redhat.com>
3651
3652         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3653         noname work properly.
3654
3655 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3656
3657         * ld.texinfo (HPPA ELF32): New section.
3658
3659         * emultempl/hppaelf.em (group_size): New.
3660         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3661         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3662         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3663         options to prevent abbreviations matching.
3664         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3665         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3666
3667 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3668
3669         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3670         on the m68*-*-elf target.  Make it support COFF input objects.
3671
3672 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3673
3674         * ldmain.c: Fix formatting.
3675         * ldmisc.c: Likewise.
3676         * ldver.c: Likewise.
3677         * ldwrite.c: Likewise.
3678
3679 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3680
3681         * ldwrite.c (clone_section): Silence gcc warnings.
3682
3683 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3684
3685         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3686         out of memory failure.
3687
3688         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3689         (clone_section): Handle out of memory failures.  Rename var to
3690         avoid c++ reserved word.
3691
3692 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3693
3694         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3695         stub_name param to stub_sec_name.
3696         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3697
3698 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3699
3700         * emultempl/m68kelf.em: New file.
3701         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3702         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3703         * Makefile.in: Regenerate.
3704
3705 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3706
3707         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3708         only as needed.
3709
3710 2000-09-13  Nick Clifton  <nickc@redhat.com>
3711
3712         * ldmain.c (multiple_definition): Disable relaxation if
3713         multiple symbol definitions are encountered - otherwise the
3714         linker could abort with an assertion failure.
3715
3716 2000-09-10  Nick Clifton  <nickc@redhat.com>
3717
3718         * mri.c: Fix formatting.
3719
3720 2000-09-07  H.J. Lu  <hjl@gnu.org>
3721
3722         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3723         * configure: Rebuild.
3724
3725 2000-09-07  H.J. Lu  <hjl@gnu.org>
3726
3727         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3728         * Makefile.in: Rebuild.
3729
3730 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3731
3732         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3733         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3734         when no place-holder.  Add some comments.  Test both SEC_CODE and
3735         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3736         Handle case where no output section statement created.
3737
3738 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3739
3740         * configure.tgt (sh-*-linux*): Added.
3741         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3742         * Makefile.in: Rebuilt.
3743         * emulparams/shelf_linux.sh: New file.
3744         * emulparams/shlelf_linux.sh: New file.
3745
3746 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3747
3748         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3749         try shuffling sections when the orphan happens to be the place
3750         holder.  Keep count of unique section names generated so we speed
3751         the search for a new name.
3752
3753 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3754
3755         * configure: Rebuilt with new libtool.m4.
3756
3757 2000-09-05  Nick Clifton  <nickc@redhat.com>
3758
3759         * Makefile.in: Regenerate.
3760         * aclocal.m4: Regenerate.
3761         * configure: Regenerate.
3762         * config.in: Regenerate.
3763         * po/ld.pot: Regenerate.
3764
3765         * ldint.texinfo: Remove CVS revision marker - it foils local
3766         comparisons.
3767
3768         * emultempl/ticoff.em: Remove extraneous comma.
3769
3770 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3771
3772         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3773         to stub section flags.
3774         (hppa_for_each_input_file_wrapper): New.
3775         (hppa_lang_for_each_input_file): New.
3776         (lang_for_each_input_file): Define to call above.
3777         (multi_subspace): New.
3778         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3779         (PARSE_AND_LIST_PROLOGUE): Define.
3780         (PARSE_AND_LIST_LONGOPTS): Define.
3781         (PARSE_AND_LIST_OPTIONS): Define.
3782         (PARSE_AND_LIST_ARGS_CASES): Define.
3783         (hppaelf_finish): Call elf32_hppa_set_gp.
3784         (hppaelf_set_output_arch): Remove.
3785         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3786
3787         * emulparams/hppalinux.sh (ELFSIZE): Define.
3788         (MACHINE): Define.
3789         (OTHER_READONLY_SECTIONS): Define.
3790         (DATA_PLT): Define.
3791         (GENERATE_SHLIB_SCRIPT): Define.
3792
3793         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3794         to const throughout.  Change `void *' to `PTR' throughout.
3795         (lang_memory_default): Function is local to file, add `static'.
3796
3797         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3798         (ehppalinux.c): Likewise.
3799         (earmelf.c): Likewise.
3800         (earmelf_linux.c): Likewise.
3801         (earmelf_linux26.c): Likewise.
3802         * Makefile.in: Regenerate.
3803
3804         * ld.h (ld_config_type): Add unique_orphan_sections.
3805         * lexsup.c (OPTION_UNIQUE): Define.
3806         (ld_options): Add "--unique".
3807         (parse_args): Handle it.
3808         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3809         search for an existing output section if unique_orphan_sections is
3810         set.  Make use of bfd_get_unique_section_name rather than
3811         duplicating code here.
3812         * ld.texinfo: Describe --unique.
3813
3814         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3815         optional arg to split-by-file.
3816         (parse_args): Handle them.
3817         * ld.texinfo: Update description of these options.
3818         * ldwrite.c (clone_section): Pass in the section name.  Replace
3819         local code with bfd_get_unique_section_name.
3820         (split_sections): Tidy code and comments.  Use a list traversal
3821         more appropriate to the list construction.  Handle cooked section
3822         sizes.  Split when split_by_reloc reached rather than exceeded.
3823         Track section size and split when split_by_file reached.  Fix
3824         link_order_tail (even though it's not used).
3825         (ldwrite): Modify condition for calling split_sections to suit
3826         changed split_by_reloc and split_by_file.
3827         * ldmain.c (main): Init config.split_by_reloc and
3828         config.split_by_file to -1.
3829         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3830         Change split_by_file to bfd_size_type.
3831
3832 2000-09-02  Nick Clifton  <nickc@redhat.com>
3833
3834         * configure.in: Increase version number to 2.10.91.
3835         * NEWS: Mention new ability to support removal of duplicate DWARF2
3836         debug information.
3837         * configure: Regenerate.
3838         * aclocal.m4: Regenerate.
3839         * config.in: Regenerate.
3840
3841 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3842
3843         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3844         sections.
3845         * scripttempl/elf32avr.sc: Ditto.
3846         * scripttempl/elfd10v.sc: Ditto.
3847         * scripttempl/elfd30v.sc: Ditto.
3848         * scripttempl/elfi370.sc: Ditto.
3849         * scripttempl/elfm68hc11.sc: Ditto.
3850         * scripttempl/elfm68hc12.sc: Ditto.
3851         * scripttempl/elfi386beos.sc: Ditto.
3852         * scripttempl/v850.sc: Ditto.
3853
3854 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3855
3856         * acinclude.m4: Include libtool and gettext macros from the
3857         top level.
3858         * aclocal.m4, configure: Rebuilt.
3859
3860 2000-08-25  Nick Clifton  <nickc@redhat.com>
3861
3862         * ldlang.c (open_output): When choosing the target for a
3863         particular endianness, do nothing if the target is not
3864         supported.
3865
3866 2000-08-25  H.J. Lu  <hjl@gnu.org>
3867
3868         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3869         check -rpath nor LD_RUN_PATH for cross link.
3870         * ld.texinfo: Document the change.
3871
3872 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3873
3874         * NEWS: Mention support for CRIS.
3875
3876 2000-08-23  H.J. Lu  <hjl@gnu.org>
3877
3878         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3879         the current runpath list from bfd_elf_get_runpath_list ()
3880         before search.
3881
3882 2000-08-22  H.J. Lu  <hjl@gnu.org>
3883
3884         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3885         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3886         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3887         trace_file_tries is non-zero.
3888         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3889         if trace_file_tries is non-zero.
3890
3891         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3892         * NEWS: Mention it.
3893
3894 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3895
3896         * NEWS: Mention i860 support.
3897
3898 2000-08-14  Andreas Schwab  <schwab@suse.de>
3899
3900         * scripttempl/elf.sc: Fix last change to use correct comment
3901         syntax.
3902
3903 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3904
3905         * scripttempl/elf.sc: Add a comment giving the correspondence
3906         between sections, per-datum sections, and linkonce sections.  Make
3907         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3908         .sbss2.
3909
3910 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3911
3912         * emulparams/elf32_i860.sh: New file.
3913         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3914         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3915         (eelf32_i860.c): New rule.
3916         * Makefile.in: Regenerate.
3917
3918 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3919
3920         * emulparams/mipspe.sh (ENTRY): Add definition.
3921
3922 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3923
3924         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3925         in error message.
3926
3927 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3928
3929         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3930         the final size of .bss section.
3931         * scripttempl/elfm68hc12.sc: Likewise.
3932
3933 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3934
3935         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3936         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3937         lastoptind and prevoptind vars, and keep track of last optind.
3938         (gld_${EMULATION_NAME}_list_options): Rename to
3939         gld${EMULATION_NAME}_list_options.
3940
3941 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3942
3943         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3944         (i586-sco-sysv5uw7.1.0).
3945
3946 2000-07-27  H.J. Lu  <hjl@gnu.org>
3947
3948         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3949         (PARSE_AND_LIST_PROLOGUE): New.
3950         (PARSE_AND_LIST_LONGOPTS): Likewise.
3951         (PARSE_AND_LIST_OPTIONS): Likewise.
3952         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3953         (PARSE_AND_LIST_EPILOGUE): Likewise.
3954
3955 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3956
3957         * emultempl/armelf.em: Elide functions common to elf32.em,
3958         ie. most of the file.
3959         (arm_elf_after_open): New.  Do arm specific things then call
3960         gld${EMULATION_NAME}_after_open.
3961         (arm_elf_before_allocation): New.  Call
3962         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3963         (PARSE_AND_LIST_PROLOGUE): Define.
3964         (PARSE_AND_LIST_SHORTOPTS): Define.
3965         (PARSE_AND_LIST_LONGOPTS): Define.
3966         (PARSE_AND_LIST_OPTIONS): Define.
3967         (PARSE_AND_LIST_ARGS_CASES): Define.
3968         (LDEMUL_AFTER_OPEN): Define.
3969         (LDEMUL_BEFORE_ALLOCATION): Define.
3970         (LDEMUL_BEFORE_PARSE): Define.
3971         (LDEMUL_FINISH): Define.
3972
3973         * emultempl/hppaelf.em: Similarly zap most of this file.
3974         (hppaelf_add_stub_section): Prototype.
3975         (hppaelf_layaout_sections_again): Prototype.
3976         (hook_in_stub): Prototype.
3977         (LDEMUL_SET_OUTPUT_ARCH): Define.
3978         (LDEMUL_FINISH): Define.
3979         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3980
3981         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3982         (EXTRA_EM_FILE): New.
3983         * emulparams/armelf_linux.sh: Likewise.
3984         * emulparams/armelf_linux26.sh: Likewise.
3985         * emulparams/hppalinux.sh: Likewise.
3986         * emulparams/hppaelf.sh: Likewise.
3987         (NOP): Define.
3988
3989         * emultempl/elf32.em: Fix formatting.
3990         (EXTRA_EM_FILE): Source it.
3991         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3992         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3993         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3994         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3995         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3996         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3997         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3998         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3999         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
4000         allow functions in this file to be overridden.
4001         (PARSE_AND_LIST_SHORTOPTS): Handle it.
4002
4003         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4004
4005         * emultempl/elf32.em: Reorganize file.
4006
4007 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
4008
4009         * emulparams/elf64alpha.sh: Implement "-taso" emulation
4010         specific option to fit 64-bit executable in the lower
4011         31-bit address range.  This is done by changing start
4012         address of .interp (the very first section of executable)
4013         and then setting EF_ALPHA_32BIT elf header flag.
4014
4015 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4016
4017         * emultempl/m68kcoff.em: New file.
4018         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4019         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4020         generic.em.
4021         * Makefile.in: Regenerate.
4022
4023 2000-07-20  H.J. Lu  <hjl@gnu.org>
4024
4025         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4026         and "disable-new-dtags" to stop getopt from treating -d/-e as
4027         abbreviations for these options.
4028
4029 2000-07-20  H.J. Lu  <hjl@gnu.org>
4030
4031         * ld.texinfo: Add documentation for --disable-new-dtags and
4032         --enable-new-dtags.
4033
4034         * ldmain.c (main): Initialize link_info.new_dtags to false.
4035
4036         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4037         --disable-new-dtags and --enable-new-dtags.
4038         (gld_${EMULATION_NAME}_list_options): Likewise.
4039
4040 2000-07-05  Kenneth Block  <krblock@computer.org>
4041
4042         * lexsup.c: Add optional style to demangle switch
4043         * ld.texinfo: Document optional style to demangle switch.
4044
4045 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4046
4047         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4048         ecrislinux.o.
4049         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4050         Regenerate dependencies.
4051         * Makefile.in: Rebuild.
4052         * configure.tgt (cris-*-*): New target.
4053         * emulparams/crisaout.sh, emulparams/criself.sh,
4054         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4055         * po/POTFILES.in, po/ld.pot: Regenerate.
4056
4057 2000-07-20  H.J. Lu  <hjl@gnu.org>
4058
4059         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4060         Print out ignored -z options.
4061
4062 2000-07-19  H.J. Lu  <hjl@gnu.org>
4063
4064         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4065         (PARSE_AND_LIST_PROLOGUE): New.
4066         (PARSE_AND_LIST_LONGOPTS): Likewise.
4067         (PARSE_AND_LIST_OPTIONS): Likewise.
4068         (PARSE_AND_LIST_ARGS_CASES): Likewise.
4069
4070         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4071
4072         * lexsup.c (ld_options): Comment out 'z'.
4073         (parse_args): Likewise.
4074
4075         * emultempl/elf32.em: Include "elf/common.h".
4076         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4077         options.
4078         (gld_${EMULATION_NAME}_list_options): Likewise.
4079
4080         * ld.texinfo: Add documentation for the recognized -z options.
4081
4082 2000-07-19  H.J. Lu  <hjl@gnu.org>
4083
4084         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4085         bfd_elf_set_dt_needed_soname ().
4086
4087 2000-07-18  DJ Delorie  <dj@cygnus.com>
4088
4089         * pe-dll.c (pe_dll_id_target): check object target name also
4090
4091 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
4092
4093         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4094         ${INIT_END} if relocating.
4095         (.fini): Likewise ${FINI_START} and ${FINI_END}.
4096
4097 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
4098
4099         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4100         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4101         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4102         errors introduced by the old dynamic lib search order.
4103
4104 2000-07-17  DJ Delorie  <dj@cygnus.com>
4105
4106         * pe-dll.c (process_def_file): auto-export data items also
4107         (pe_process_import_defs): also see if _imp_ form needed
4108
4109 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4110
4111         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4112         for dll import libraries
4113
4114 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
4115
4116         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4117         gcc 2.95.2 and later.
4118
4119 2000-07-11  Kazu Hirata  <kazu@hxi.com>
4120
4121         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4122         message.
4123
4124 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4125
4126         * ldemul.h (struct lang_input_statement_struct): Remove forward
4127         declaration.
4128         (struct search_dirs): Likewise.
4129         * ldfile.h (struct lang_input_statement_struct): Likewise.
4130         Protect file from multiple inclusion.
4131         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4132         declaration from macro to file scope.
4133
4134         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4135         * ldgram.y: Likewise here.
4136         * ldlang.c: And here.
4137         * ldmain.c: And here.
4138         * mpw-elfmips.c: And here.
4139         * mpw-eppcmac.c: And here.
4140         * emultempl/aix.em: And here.
4141         * emultempl/armcoff.em: And here.
4142         * emultempl/armelf.em: And here.
4143         * emultempl/armelf_oabi.em: And here.
4144         * emultempl/beos.em: And here.
4145         * emultempl/elf32.em: And here.
4146         * emultempl/hppaelf.em: And here.
4147         * emultempl/linux.em: And here.
4148         * emultempl/lnk960.em: And here.
4149         * emultempl/pe.em: And here.
4150         * emultempl/sunos.em: And here.
4151         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4152         * mpw-idtmips.c: Ditto.
4153         * emultempl/generic.em: Ditto.
4154         * emultempl/gld960.em: Ditto.
4155         * emultempl/gld960c.em: Ditto.
4156         * emultempl/mipsecoff.em: Ditto.
4157         * emultempl/ticoff.em: Ditto.
4158         * emultempl/vanilla.em: Ditto.
4159
4160         * pe-dll.c: Include ldfile.h
4161         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4162
4163         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4164         arguments to bfd_elf32_size_dynamic_sections call.
4165         (gldelf32ebmip_place_orphan): Add missing arguments to
4166         lang_leave_output_section_statement call.
4167
4168 2000-07-10  H.J. Lu  <hjl@gnu.org>
4169
4170         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4171         DLL_SUPPORT.
4172         (strhash): Likewise.
4173         (compute_dll_image_base): Likewise.
4174         (pe_undef_found_sym): Likewise.
4175         (pe_undef_cdecl_match): Likewise.
4176         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4177         argument "arch" with ATTRIBUTE_UNUSED.
4178
4179 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4180
4181         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4182
4183         From  Ryan Bradetich  <rbradetich@uswest.net>
4184         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4185
4186 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4187
4188         Changes to create multiple linker stubs, positioned immediately
4189         before the section where they are required.
4190         * emultempl/hppaelf.em: Include elf32-hppa.h.
4191         (stub_sec, file_chain): Delete.
4192         (hppaelf_create_output_section_statements): Don't make a stub
4193         section here.
4194         (hook_stub_info): New struct.
4195         (hook_in_stub): New function.
4196         (hppaelf_add_stub_section): New function.
4197         (hppaelf_finish): Do nothing for relocateable links.  Modify the
4198         call to elf32_hppa_size_stubs.  Move code for updating section
4199         layout from here...
4200         (hppaelf_layaout_sections_again): ..to here, a new function.
4201
4202         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4203         broken list handling.  Pass in a pointer to the list.
4204         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4205         for above changes.
4206         (hppaelf_before_parse): Prototype.
4207         (hppaelf_set_output_arch): Prototype.
4208         (hppaelf_create_output_section_statements): Prototype.
4209         (hppaelf_delete_padding_statements): Prototype.
4210         (hppaelf_finish): Prototype.
4211
4212         Merge from elf32.em
4213         * emultempl/hppaelf.em: Include ctype.h.
4214         (struct orphan_save): New.
4215         (gld${EMULATION_NAME}_place_orphan): New.
4216         (output_rel_find): New.
4217         (hppaelf_get_script): Update from elf32.em.
4218         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4219         Change emulation_name field to "${EMULATION_NAME}".  Add
4220         gld${EMULATION_NAME}_place_orphan.
4221
4222         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
4223         ehppalinux.o, sort it.  Regenerate dependencies.
4224         (ehppalinux.c): Depend on hppaelf.em
4225         * Makefile.in: Regenerate.
4226
4227         * configure.tgt: targ_emul=hppalinux for hppa*linux
4228
4229         * emulparams/hppalinux.sh: New.
4230         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4231
4232 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4233
4234         * lexsup.c (parse_args): Copy section name.
4235
4236 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
4237
4238         * emultempl/pe.em: institute the following search order for
4239         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4240         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
4241         static lib (libfoo.a) if none of the above are found.
4242
4243 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
4244
4245         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4246         (longopts): New --{enable,disable}-auto-image-base options.
4247         (gld_${EMULATION_NAME}_list_options): Document.
4248         (gld_${EMULATION_NAME}_parse): Handle.
4249         (strhash): New static function.
4250         (compute_dll_image_base): New static function.
4251         (gld_${EMULATION_NAME}_set_symbols): Use.
4252
4253 2000-07-05  DJ Delorie  <dj@redhat.com>
4254
4255         * MAINTAINERS: new
4256
4257 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4258
4259         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4260         * emulparams/elf32btsmip.sh: New file.
4261         * Makefile.am: Add traditional mips target.
4262         * Makefile.in: Rebuild.
4263
4264 2000-07-01  H.J. Lu  <hjl@gnu.org>
4265
4266         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4267         automake to use YLWRAP.
4268         * Makefile.in: Rebuild.
4269
4270 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4271
4272         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4273         (CLEANFILES): Add DEPA.
4274         * Makefile.in: Regenerate.
4275
4276 2000-06-30  Timothy Wall  <twall@ppc>
4277
4278         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4279         the page in the upper octet of the address.
4280
4281 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4282
4283         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4284
4285 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
4286
4287         * NEWS: arm-elf does --gc-sections too.
4288
4289 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4290
4291         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4292         find one.
4293         * Makefile.in: Regenerate.
4294
4295 2000-06-21  H.J. Lu  <hjl@gnu.org>
4296
4297         * Makefile.am: Rebuild dependency.
4298         * Makefile.in: Rebuild.
4299
4300 2000-06-20  H.J. Lu  <hjl@gnu.org>
4301
4302         * Makefile.am: Rebuild dependency.
4303         * Makefile.in: Rebuild.
4304
4305 2000-06-20  Timothy Wall  <twall@cygnus.com>
4306
4307         * scripttempl/tic54xcoff.sc: New.
4308         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4309         * gen-doc.texi: Add flag for TI COFF.
4310         * ld.texinfo: Add documentation for TI COFF handling switches.
4311         * emultempl/ticoff.em: New. TI COFF handling.
4312         * configure.tgt: Add tic54x target.
4313         * Makefile.am: Add tic54x target.
4314         * Makefile.in: Ditto.
4315
4316 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4317
4318         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4319         checking for backslashes.
4320
4321 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4322
4323         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4324
4325 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4326
4327         * NEWS: Update list of targets supporting --gc-sections.
4328
4329         * scripttempl/elf.sc: KEEP .eh_frame contents.
4330         * scripttempl/elfd30v.sc: Same here.
4331
4332 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4333
4334         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4335         and m68hc11 (elf).
4336         * Makefile.in: Rebuild.
4337         * configure.tgt: Recognize m68hc12 and m68hc11.
4338         * scripttempl/elfm68hc12.sc: New file.
4339         * emulparams/m68hc12elfb: New emulation.
4340         * emulparams/m68hc12elf: New emulation.
4341         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4342         (includes a memory.x script to define the ROM and RAM banks).
4343         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4344         New configuration files for support of Motorola 68hc11
4345
4346 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4347
4348         * ldmain.c (main): Only change SEC_READONLY for final link.
4349
4350 2000-06-13  H.J. Lu  <hjl@gnu.org>
4351
4352         * configure: Regenerate.
4353
4354 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4355
4356         * configure.in (VERSION): Update to show this is the CVS mainline.
4357
4358 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4359
4360         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4361         input objects to be ECOFF.
4362         (check_sections): einfo takes %B, not %P, to print a BFD name.
4363
4364 2000-06-05  Michael Matz <matz@ifh.de>
4365
4366         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4367         version scripts.
4368
4369         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4370
4371 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4372
4373         * emulparams/avr1200.sh (STACK): Define as 0.
4374         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4375         * emulparams/avr4433.sh (STACK): Likewise.
4376         * emulparams/avr44x4.sh (STACK): Likewise.
4377         * emulparams/avr85xx.sh (STACK): Likewise.
4378         * emulparams/avrmega103.sh (STACK): Likewise.
4379         * emulparams/avrmega161.sh (STACK): Likewise.
4380         * emulparams/avrmega603.sh (STACK): Likewise.
4381         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4382         (__stack): Define from ${STACK} for main().
4383
4384 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4385
4386         * Makefile.am: Update dependencies with "make dep-am"
4387         * Makefile.in: Regenerate.
4388
4389 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4390
4391         * ldmain.c: Include filenames.h.
4392         (set_scripts_dir): Support backslashes in program name.
4393
4394 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4395
4396         * ldmain.c (main): When deciding if ".text" section should be
4397         read-only, don't forget to reset SEC_READONLY because it
4398         could be already set.
4399
4400 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4401
4402         * ld.1: Add documentation for new command line option:
4403                 --section-start <sectionname>=<sectionorg>
4404         This is a generic version of -Ttext etc. which accepts
4405         any section name as a parameter instead of just text/data/
4406         bss.
4407         * ld.texinfo: More docs.
4408         * NEWS: More docs.
4409         * lexsup.c: (parse_args): Recognize new command line option.
4410         (ld_options): Add new option.
4411
4412 2000-05-18  H.J. Lu  <hjl@gnu.org>
4413
4414         * lexsup.c (parse_args): `i' == `r', not `q'.
4415
4416 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4417
4418         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4419
4420 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4421               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4422
4423         Add support for '-q' == '--emit-relocs' switch.
4424         * ldmain.c (main): Default to false.
4425         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4426         * NEWS: Describe the emitrelocations switch.
4427         * ld.texinfo: Describe the emitrelocations switch.
4428
4429 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4430
4431         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4432         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4433         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4434         link options.
4435
4436 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4437
4438         * lexsup.c (parse_args): Update the year in the copyright notice.
4439
4440 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4441
4442         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4443         Replace defines with those from intl/libgettext.h to quieten gcc
4444         warnings.
4445
4446 2000-05-10  H.J. Lu  <hjl@gnu.org>
4447
4448         * ldlang.c (open_input_bfds): Don't load the same file within
4449         a group again if the whole archive has been loaded already.
4450
4451 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4452
4453         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4454         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4455         strtoul.
4456
4457 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4458
4459         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4460
4461         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4462         host "ia64-*-linux-gnu*".
4463
4464 2000-04-29  Andreas Jaeger  <aj@suse.de>
4465
4466         * ld.h: Correctly check GCC version.
4467
4468 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4469
4470         * Makefile.am: Add PA64 support.  Add missing dependencies for
4471         PA32 elf support.
4472         * Makefile.in: Rebuilt.
4473         * configure.tgt: Add PA64 support (currently disabled).
4474
4475 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4476
4477         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4478         (output_rel_find): New function.
4479         (hold_section, hold_use): Delete.
4480         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4481         hold_interp): Make local to place_orphan.
4482         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4483         rather than place_section to find possible previous use of orphan.
4484         Similarly find the place-holder output sections.  Use returned
4485         value from lang_enter_output_section_statement rather than calling
4486         lang_output_section_statement_lookup.
4487         * emultempl/armelf.em: Same here.
4488         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4489
4490         * ldlang.c (lang_enter_output_section_statement): Return output
4491         section statement.
4492         * ldlang.h (lang_enter_output_section_statement): Change
4493         declaration too.
4494
4495         * ldlang.h (lang_output_section_statement): Export it.
4496         * ldlang.c (lang_output_section_statement): Ditto.
4497
4498 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4499
4500         * ld.texinfo (Output Section Data): Add note that section data
4501         commands cannot appear outside of section directives.
4502
4503 2000-04-2  Matthew Green  <mrg@cygnus.com>
4504
4505         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4506
4507 2000-04-21  Richard Henderson  <rth@cygnus.com>
4508             David Mosberger  <davidm@hpl.hp.com>
4509
4510         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4511         (eelf64_ia64.c): New rule.
4512         * Makefile.in: Rebuild.
4513         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4514         * emulparams/elf64_ia64.sh: New file.
4515
4516 2000-04-21  Richard Henderson  <rth@cygnus.com>
4517
4518         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4519
4520 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4521
4522         * dep-in.sed: Match space at start of file name, not at end.
4523
4524 2000-04-18  H.J. Lu  <hjl@gnu.org>
4525
4526         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4527         lang_leave_output_section_statement () after calling
4528         lang_enter_output_section_statement ().
4529         * emultempl/armelf.em: Likewise.
4530
4531 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4532
4533         * emultempl/elf32.em (struct orphan_save): Add section field.
4534         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4535         better order, and place first orphan section as we did before the
4536         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4537         Don't call make_bfd_section here, let wild_doit do the job for us.
4538         Don't build a statement list when we'll only throw it away.
4539         * emultempl/armelf.em: Ditto.
4540         * emultempl/pe.em: Similarly.
4541
4542 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4543
4544         * scripttempl/elfppc.sc: Remove.
4545         * emulparams/elf32ppc.sh: Use elf.sc.
4546         * emulparams/elf32lppc.sh: Use elf.sc.
4547         * emulparams/elf32ppclinux.sh: Use elf.sc.
4548         * emulparams/elf32ppcsim.sh: New file.
4549         * emulparams/elf32lppcsim.sh: New file.
4550         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4551         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4552         * Makefile.in: Regenerate.
4553         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4554
4555 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4556
4557         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4558         ~SEC_ALLOC sections too.  Init start address of debug sections.
4559         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4560         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4561         Also set all relocateable section start addresses.
4562
4563 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4564
4565         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4566         Add new BSS_PLT variable for when .plt need not be contained in
4567         the file.  Move _etext so that it is also after .fini, and provide
4568         both etext and _etext with a leading underscore.  Mark the start
4569         and end of .sbss.
4570
4571 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4572
4573         * emultempl/elf32.em (struct orphan_save): New.
4574         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4575         hold_interp): Make them struct orphan_save.
4576         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4577         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4578         the end of the relevant section list.  Also add associated section
4579         statements to the end of any previous orphan statements.
4580         * emultempl/armelf.em: Similarly.
4581         * emultempl/pe.em: Similarly.
4582
4583 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4584
4585         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4586
4587 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4588
4589         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4590         --enable-build-warnings option.
4591         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4592         * Makefile.in, configure: Re-generate.
4593
4594 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4595
4596         * po/ld.pot: Regenerate.
4597
4598         * lexsup.c (help): Restore translated part of bug string.
4599
4600         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4601         (DEP): Quote when passing vars to sub-make.  Add warning message
4602         to end.
4603         (DEP1): Rewrite for "gcc -MM".
4604         (CLEANFILES): Add DEP2.
4605         Update dependencies.
4606         * Makefile.in: Regenerate.
4607
4608 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4609
4610         * ld.h: #include "bin-bugs.h"
4611         * lexsup.c (help): Use REPORT_BUGS_TO.
4612
4613 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4614
4615         * configure.tgt (avr-*-*): New target support.
4616         * Makefile.am: Likewise.
4617         * scripttempl/elf32avr.sc: New script file.
4618         * emulparams/avr1200.sh: New file.
4619         * emulparams/avr23xx.sh: New file.
4620         * emulparams/avr4433.sh New file.
4621         * emulparams/avr44x4.sh New file.
4622         * emulparams/avr85xx.sh New file.
4623         * emulparams/avrmega103.sh New file.
4624         * emulparams/avrmega161.sh New file.
4625         * emulparams/avrmega603.sh New file.
4626         * Makefile.in: Regenerate.
4627
4628 2000-03-09  Andreas Jaeger  <aj@suse.de>
4629
4630         * Makefile.am (check-DEJAGNU): Also unset LANG.
4631         * Makefile.in: Rebuild.
4632
4633 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4634
4635         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4636         archive.
4637
4638 2000-03-02  H.J. Lu  <hjl@gnu.org>
4639
4640         * emulparams/elf32mcore.sh: Include "getopt.h".
4641
4642 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4643
4644         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4645
4646 2000-03-01  H.J. Lu  <hjl@gnu.org>
4647
4648         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4649         * emulparams/shpe.sh: Likewise.
4650
4651 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4652
4653         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4654         to unused parameters.
4655
4656         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4657         functions only used by DLL code.
4658         (_place_orphan): Initialise 'dollar'.
4659
4660 2000-03-01  H.J. Lu  <hjl@gnu.org>
4661
4662         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4663         indicate if the undefined symbol is a fatal error or not.
4664         Don't delete the output file if "fatal" is false.
4665
4666 2000-02-29  H.J. Lu  <hjl@gnu.org>
4667
4668         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4669         Set LC_COLLATE and LC_ALL to null and export them. It is for
4670         sort which expects the C locale.
4671         Add $(LIBS) to all $(HOSTING_LIBS).
4672         * Makefile.in: Rebuild.
4673
4674 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4675
4676         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4677         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4678         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4679         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4680         find_potential_libraries.
4681
4682 2000-02-28  Jim Blandy  <jimb@redhat.com>
4683
4684         * ldgram.y (exclude_name_list): Don't require a comma to separate
4685         list entries; the lexer considers commas to be valid part of a
4686         filename, so in something like `foo, bar' the comma is considered
4687         part of the first filename, `foo,'.
4688         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4689
4690 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4691
4692         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4693         host "i[3456]86-*-freebsdelf*".
4694
4695 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4696
4697         * scripttempl/i386go32.sc: Move misplaced semicolons.
4698
4699 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4700
4701         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4702         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4703         (eelf64hppa.c, ehppaelf.c): Remove targets.
4704         * Makefile.in: Rebuild.
4705
4706 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4707
4708         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4709         GNU/Linux/sparc, but keep the default as 32.
4710
4711         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4712         it default if sparcv9 or sparc64.
4713
4714 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4715
4716         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4717         * Makefile.in: Regenerate.
4718         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4719
4720         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4721         find_potential_libraries.
4722         * ldemul.c (ldemul_find_potential_libraries): New function.
4723
4724         * ldfile.c (ldfile_open_file_search): Allow function to be
4725         exported.
4726         (ldfile_open_file): Call ldemul_find_potential_libraries.
4727         * ldfile.h: Add prototype for ldfile_open_file_search.
4728
4729         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4730
4731         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4732         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4733
4734         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4735         (gld_X_find_potential_libraries): New function.  Search for
4736         libraries called "*.lib".
4737
4738         * scripttempl/pe.sc: Add .pdata section.
4739
4740 2000-02-23  Richard Henderson  <rth@cygnus.com>
4741
4742         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4743         Add and use memory regions.
4744
4745 2000-02-23  Linas Vepstas (linas@linas.org)
4746
4747         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4748
4749         * Makefile.am: Add support for Linux/IBM 370.
4750         * configure.tgt: Likewise.
4751
4752         * Makefile.in: Regenerate.
4753
4754 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4755
4756         * ldlang.c (print_input_section, print_data_statement,
4757         print_reloc_statement, print_padding_statement, insert_pad,
4758         size_input_section, lang_check_section_addresses,
4759         lang_size_sections, lang_do_assignments, lang_set_startof,
4760         lang_one_common): Change `opb' to unsigned.
4761         (lang_do_assignments): Also change `size' to unsigned.
4762
4763 2000-02-16  Richard Henderson  <rth@cygnus.com>
4764
4765         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4766
4767 2000-02-16  Timothy Wall  <twall@cygnus.com>
4768
4769         * mri.c (mri_draw_tree): Add default LMA region argument to call
4770         to lang_leave_output_section_statement.
4771         * ldlang.h: Update prototypes with LMA region arguments.
4772         * ldlang.c (lang_size_sections): Encapsulate region bounds
4773         checking in os_check_region call.
4774         (os_check_region): New function.
4775         (lang_output_section_statement_lookup): Initialize lma_region.
4776         (lang_leave_output_section_statement): Add LMA region argument.
4777         (lang_leave_overlay): Ditto.
4778         * ldgram.y: Handle LMA region syntax.
4779         * ld.texinfo (Output Section Description): Describe LMA region usage.
4780         * emultempl/armelf.em (gld$place_orphan): Add default value for
4781         lma region in call to lang_leave_output_section_statement.
4782         * emultempl/elf32.em (gld$place_orphan): Add default value for
4783         lma region in call to lang_leave_output_section_statement.
4784         * emultempl/pe.em (gld$place_orphan): Add default value for
4785         lma region in call to lang_leave_output_section_statement.
4786
4787
4788 2000-02-04  Timothy Wall  <twall@redhat.com>
4789
4790         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4791         octets when calculating section end addresses.
4792
4793 2000-02-04  Timothy Wall  <twall@redhat.com>
4794
4795         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4796
4797 2000-02-03  Timothy Wall <twall@redhat.com>
4798
4799         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4800         octet count.
4801         * ldlang.c (print_input_section, print_data_statement,
4802         print_reloc_statement, print_padding_statement): Print target
4803         address values and section sizes as bytes, not octets.
4804         (insert_pad) Calculate padding size in octets, and adjust "dot"
4805         by bytes.
4806         (size_input_section) Always adjust "dot" by bytes, not octets.
4807         (lang_check_section_addresses, lang_do_assignments) Adjust
4808         "dot" by bytes, not octets.  Use the larger of the directive size
4809         or octets_per_byte for the number of octets actually allocated in
4810         the output section.
4811         (lang_set_startof) Make sure STARTOF returns a target address.
4812         (lang_one_common) Record size changes in octets.
4813         (lang_abs_symbol_at_end_of) Section end symbol's value is
4814         recorded in target bytes.
4815         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4816         to be clear about behavior when an octet is smaller than one byte.
4817
4818 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4819
4820         * ldcref.c (output_cref): Don't pass message strings to printf
4821         as format arg.
4822         Update copyright.
4823
4824         * ldmisc.c (vfinfo): Same here.
4825         Update copyright.
4826
4827 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4828
4829         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4830         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4831         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4832         Add missing NULL initialisers, and comments.
4833
4834         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4835
4836 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4837
4838         * ldlang.c (lang_size_sections): Fix typo in comment.
4839
4840 2000-01-18  H.J. Lu  <hjl@gnu.org>
4841
4842         * ldlang.c (lang_size_sections): Also update the current
4843         address of a region if the SEC_NEVER_LOAD bit is not set.
4844
4845 2000-01-10  Philip Blundell  <pb@futuretv.com>
4846
4847         * configure.tgt (arm*-*-conix*): New target.
4848
4849 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4850
4851         * ld.texinfo (Options): Remind users to preceed linker command
4852         line switches with -Wl, (or whatever is appropriate) if it is
4853         being invoked by a comnpiler driver program.
4854         Fix description of the behaviour of the -n command line switch.
4855
4856 2000-01-05  Catherine Moore  <clm@cygnus.com>
4857
4858         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4859         (name_list): New.
4860         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4861         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4862         (exclude_name_list): New.
4863         ldlang.c (walk_wild_section): Support list of excluded files.
4864         (print_wild_statement): Likewise.
4865         (lang_add_wild): Likewise.
4866         * ldlang.h (lang_wild_statement_type): Likewise.
4867         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4868
4869 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4870
4871         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4872         (process_def_file): Use.
4873         (pe_dll_compat_implib): New variable.
4874         (make_one): Use.
4875
4876         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4877         pe_dll_compat_implib.
4878
4879         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4880         compat-implib options.
4881         (gld_${EMULATION_NAME}_list_options): List new options.
4882         (gld_${EMULATION_NAME}_parse_args): Handle.
4883
4884         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4885         dll.
4886
4887         * deffilep.y (opt_name): Allow "." in name.
4888
4889 For older changes see ChangeLog-9899
4890 \f
4891 Local Variables:
4892 mode: change-log
4893 left-margin: 8
4894 fill-column: 74
4895 version-control: never
4896 End: