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