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