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