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