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