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