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