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