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