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