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