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