Honour DESTDIR
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
d3d8a9ee
NC
12002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2
3 * Makefile.am: Honour DESTDIR.
4 * Makefile.in: Regenerate.
5
9f88b410
RS
62002-05-07 Richard Sandiford <rsandifo@redhat.com>
7
8 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
9 (lang_enter_overlay): Remove the last two parameters.
10 (lang_leave_overlay): Take them here instead.
11 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
12 (section): Pass LMA and crossref flag to lang_leave_overlay rather
13 than lang_enter_overlay.
14 * ldlang.c (lang_memory_region_lookup): Return null for null names.
15 (lang_output_section_statement_lookup): Initialize update_dot_tree.
16 (lang_size_sections_1): Evaluate it.
17 (lang_leave_output_section_statement): Rework LMA lookup.
18 (overlay_lma, overlay_nocrossrefs): Remove.
19 (lang_enter_overlay): Remove LMA and corssref arguments.
20 (lang_enter_overlay_section): Don't set the LMA here.
21 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
22 assignment to the last section's update_dot_tree. Unconditionally
23 use the load and run-time regions specified in the OVERLAY statement.
24 Likewise the first section's LMA. Only set the other sections' LMAs
25 when no load region is given.
26
b9a743c8
NC
272002-05-06 Nick Clifton <nickc@redhat.com>
28
29 * po/sv.po: New translation.
30
a3d60be3
AM
312002-05-04 Alan Modra <amodra@bigpond.net.au>
32
33 * emultempl/hppaelf.em (build_section_lists): New function.
34 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
35 and build_section_lists.
36
b7a26f91
KH
372002-05-03 Kazu Hirata <kazu@cs.umass.edu>
38
39 * ld.h: Fix formatting.
40 * ldexp.c: Likewise.
41 * ldfile.c: Likewise.
42 * ldlang.c: Likewise.
43 * ldmain.c: Likewise.
44 * lexsup.c: Likewise.
45 * pe-dll.c: Likewise.
46
805fc799
AM
472002-05-02 Alan Modra <amodra@bigpond.net.au>
48
49 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
50 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
51 (build_section_lists): Do output_section tests here.
52
cc7e59b2
TR
532002-04-30 Tom Rix <trix@redhat.com>
54
55 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
56
9c1d81c1
AM
572002-05-01 Alan Modra <amodra@bigpond.net.au>
58
59 Long branch stubs, multiple stub sections.
60 * emultempl/ppc64elf.em: Include ldctor.h.
61 (stub_file): New var.
62 (group_size): New var.
63 (ppc_create_output_section_statements): New function.
64 (struct hook_stub_info): New.
65 (hook_in_stub): New function.
66 (ppc_add_stub_section): New function.
67 (ppc_layout_sections_again): New function.
68 (build_section_lists): New function.
69 (gld${EMULATION_NAME}_finish): Rewrite.
70 (real_func): New var.
71 (ppc_for_each_input_file_wrapper): New function.
72 (ppc_lang_for_each_input_file): New function.
73 (lang_for_each_input_file): Define.
74 (PARSE_AND_LIST_PROLOGUE): Define.
75 (PARSE_AND_LIST_LONGOPTS): Define.
76 (PARSE_AND_LIST_OPTIONS): Define.
77 (PARSE_AND_LIST_ARGS_CASES): Define.
78 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
79
aa67bccf
TR
802002-04-30 Tom Rix <trix@redhat.com>
81
82 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
83 -blibpath, -bnolibpath support.
84
94349e12
MM
852002-04-30 Mark Mitchell <mark@codesourcery.com>
86
87 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
88 (eelf32ppcwindiss.c): New target.
89 * Makefile.in: Regenerated.
90 * configure.tgt: Add support for powerpc-*-windiss.
91 * emulparams/elf32ppcwindiss.sh: New file.
92
7b17f854
RS
932002-04-30 Richard Sandiford <rsandifo@redhat.com>
94
95 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
96 * ldexp.c (exp_print_token): Add "infix_p" argument.
97 (exp_print_tree): Update accordingly.
98
596dafeb
AM
992002-04-28 Alan Modra <amodra@bigpond.net.au>
100
101 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
102 * Makefile.in: Regenerate.
103 * mpw-elfmips.c: Delete.
104 * mpw-eppcmac.c: Delete.
105 * mpw-esh.c: Delete.
106 * mpw-idtmips.c: Delete.
107
a44d7f9c
JR
108Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
109
110 * emulparams/shelf32.sh (MACHINE): Now sh5.
111
944cd72c
TS
1122002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
113
114 * ldgram.y: Fix syntax warning.
115
5835c212
NC
1162002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
117
118 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
119 to prevent "-n" from being taken as an abbreviation for
120 "--no-pipeline-knowledge".
121
024531e2
AM
1222002-04-08 Alan Modra <amodra@bigpond.net.au>
123
d08a14c3
AM
124 * ldlang.c (lang_size_sections_1): Don't complain about
125 SEC_NEVER_LOAD sections having no memory region specified.
126
024531e2
AM
127 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
128
c657a1f0
MG
1292002-04-07 matthew green <mrg@redhat.com>
130
131 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
132
61bef6f1
AM
1332002-04-04 Alan Modra <amodra@bigpond.net.au>
134
135 * dep-in.sed: Cope with absolute paths.
136 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
137 Run "make dep-am".
138 * Makefile.in: Regenerate.
139
49ba2791
TS
1402002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
141
142 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
143
50e60fb5
JJ
1442002-04-03 Jakub Jelinek <jakub@redhat.com>
145
146 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
147 is smaller than maximum, round dot up to common page boundary.
148
6f12f4ca
AM
1492002-03-28 Alan Modra <amodra@bigpond.net.au>
150
151 * configure.host: Set up for generic hosts first, then tweak as
152 necessary in more specific targets.
153 (HOSTING_LIBS): Include libgcc_eh.a if found.
154
a8f1f017
AJ
1552002-03-23 Andreas Jaeger <aj@suse.de>
156
157 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
158
1d3fdf38
AM
1592002-03-21 Alan Modra <amodra@bigpond.net.au>
160
161 * Makefile.am: Run "make dep-am".
162 * Makefile.in: Regenerate.
163
79b1faa8
AM
1642002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
165
166 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
167
fcf0e35b
AM
1682002-03-20 Alan Modra <amodra@bigpond.net.au>
169
170 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
171 add the symbol to the linker hash table immediately.
172 (lang_place_undefineds): Split symbol creation out..
173 (insert_undefined): ..to here.
174
fed2999d
DB
1752002-03-18 David O'Brien <obrien@FreeBSD.org>
176
177 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
178 the contents of the buffer returned from basename function will are
179 getting overwritten while still being used.
180
beb43bb9
JH
181Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
182 Andreas Jaeger <aj@suse.de>
183 Andreas Schwab <schwab@suse.de>
184
185 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
186 * elf_x86_64.sh (ARCH): Set to i386:x86-64
187 set libraries to default to lib64 paths.
188
eb1e0e80
NC
1892002-03-18 Tom Rix <trix@redhat.com>
190
191 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
192 * configure.tgt : Same.
193 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
194 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
195 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
196 emulation parameters for better -b32, -b64 support.
197 * emulparms/aixrs6.sh : Same.
198 * emulparms/ppcmacos.sh : Same.
199 * emultempl/aix.em (choose_target) : Use new emulation parameters
200 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
201 * Makefile.in : Regenerate.
202
a1c259a1
NC
2032002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
204
205 * po/fr.po: Updated version.
206
862120bd
AM
2072002-03-18 Alan Modra <amodra@bigpond.net.au>
208
209 * ldmain.c (main): Move .text readonly flag fudges from here..
210 * ldlang.c (lang_process): ..to here.
211
d35a52e2
AM
2122002-03-14 Alan Modra <amodra@bigpond.net.au>
213
214 * ldlang.c (lang_check): Remove the word size check added in last
215 change. Treat emitrelocations case as for relocatable links.
216
9ce88e60
NC
2172002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
218
219 * po/fr.po: Updated version.
220
30cba025
AM
2212002-03-13 Alan Modra <amodra@bigpond.net.au>
222
223 * ldlang.c (lang_check): Do relocatable link checks first, so that
224 warn_mismatch can't override. Check compatible and word size too.
225
84ec0e6d
DJ
2262002-03-07 Daniel Jacobowitz <drow@mvista.com>
227
228 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
229
2d13d8c5
JJ
2302002-03-05 Jakub Jelinek <jakub@redhat.com>
231
232 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
233 DATA_SEGMENT_ALIGN.
234
b5090659
L
2352002-03-04 H.J. Lu <hjl@gnu.org>
236
237 * scripttempl/elf.sc: Put .preinit_array, .init_array and
238 .fini_array in the data segment.
239
f42ce16e
AM
2402002-03-04 Alan Modra <amodra@bigpond.net.au>
241
242 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
243
de77b6ac
RH
2442002-03-01 David Mosberger <davidm@hpl.hp.com>
245
246 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
247 .init_array, and .fini_array.
248
997e08c0
AS
2492002-02-20 Andreas Schwab <schwab@suse.de>
250
251 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
252 .IA64_unwind* in a relocatable link.
253
9a66911f
NC
2542002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
255
256 * NEWS: Mark 2.12 branch.
257
d86bcc10
MS
2582002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
259
260 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
261 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
262
69f284c7
TR
2632002-02-18 Tom Rix <trix@redhat.com>
264
265 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
266 (gld*_before_allocation): Same.
a8f1f017 267 (gld*_create_output_section_statements): Generate
69f284c7
TR
268 __rtinit if run time linking. Add librtl.a to the link.
269 (gld*_read_file): Clean.
270
82bd7b59
AM
2712002-02-18 Alan Modra <amodra@bigpond.net.au>
272
273 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
274
ac3e50bf
DB
2752002-02-18 David O'Brien <obrien@FreeBSD.org>
276
6a7f963b 277 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
278 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
279 and eelf64alpha_fbsd.
6a7f963b 280 * Makefile.in: Regenerate.
ac3e50bf
DB
281 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
282 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
283 use a FreeBSD-specific emulation rather than the psABI one.
284 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
285 for all FreeBSD ELF systems.
286 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
287 emulation.
288 * emulparams/elf32ppc_fbsd.sh: Likewise.
289 * emulparams/elf64_ia64_fbsd.sh: Likewise.
290 * emulparams/elf64_sparc_fbsd.sh: Likewise.
291 * emulparams/elf64alpha_fbsd.sh: Likewise.
292 * emulparams/elf_i386_fbsd.sh: Likewise.
293 * emulparams/elf_x86_64_fbsd.sh: Likewise.
294
6ad738c5
NC
2952002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
296
297 * po/tr.po: Updated version.
298
9673c93c
AM
2992002-02-18 Alan Modra <amodra@bigpond.net.au>
300
301 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
302 (FILL): Likewise.
303
1c5e6447
HPN
3042002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
305
306 * emultempl/mmo.em (mmo_after_open): Don't call
307 _bfd_mmix_check_all_relocs when producing ELF output.
308
8bb57516
RH
3092002-02-15 Richard Henderson <rth@redhat.com>
310
de77b6ac 311 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
312 definition. Emit a unop+nop pair.
313
49fda6c8
HPN
3142002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
315
83c2d653
HPN
316 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
317 for presence of .MMIX.reg_contents.linker_allocated before early
318 exit.
319
49fda6c8
HPN
320 * NEWS: Mention support for MMIX.
321
2c382fb6
AM
3222002-02-15 Alan Modra <amodra@bigpond.net.au>
323
324 Support arbitrary length fill patterns.
a139d329
AM
325 * ld.texinfo (Output Section Fill): Describe fill expressions.
326 (FILL): Refer to the above.
2c382fb6
AM
327 * ldexp.h (etree_value_type): Add "str" field.
328 (union etree_union): Add "str" to "value" struct.
329 (exp_bigintop): Declare.
330 (exp_get_fill): Declare.
331 * ldexp.c: Include "safe-ctype.h".
332 (exp_intop): Set value.str to NULL.
333 (exp_bigintop): New function.
334 (new_rel): Pass in "str", and set new.str from it.
335 (new_rel_from_section): Set new.str to NULL.
336 (fold_name): Adjust calls to new_rel.
337 (exp_fold_tree): Likewise.
338 (exp_get_fill): New function.
339 * ldgram.y (struct big_int bigint, fill_type *fill): New.
340 (INT): Returns a "bigint". Adjust all code handling INTs.
341 (fill_opt): Returns a "fill".
342 (fill_exp): Split out of fill_opt, use for FILL.
343 * ldlang.h (struct _fill_type): New.
344 (fill_type): Move typedef to ldexp.h.
345 (lang_output_section_statement_type): "fill" is now a pointer.
346 (lang_fill_statement_type): Likewise.
347 (lang_padding_statement_type): Likewise.
348 (lang_add_fill): Now takes a "fill_type *" param.
349 (lang_leave_output_section_statement): Likewise.
350 (lang_do_assignments): Likewise.
351 (lang_size_sections): Likewise.
352 (lang_leave_overlay_section): Likewise.
353 (lang_leave_overlay): Likewise.
354 * ldlang.c: Include ldgram.h after ldexp.h.
355 (lang_output_section_statement_lookup): Adjust for fill_type change.
356 (print_fill_statement): Likewise.
357 (print_padding_statement): Likewise.
358 (insert_pad): Now takes a "fill_type *" arg.
359 (size_input_section): Likewise.
360 (lang_size_sections_1): Likewise.
361 (lang_size_sections): Likewise.
362 (lang_do_assignments): Likewise.
363 (lang_add_fill): Likewise.
364 (lang_leave_output_section_statement): Likewise.
365 (lang_leave_overlay_section): Likewise.
366 (lang_leave_overlay): Likewise.
367 Adjust all callers of the above function.
368 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
369 starting with "0X" as well as "0x". Return bigint.str for hex
370 numbers starting with "0x" or "0X", zero bigint.str otherwise.
371 Always use base 16 for numbers starting with "$".
372 * ldmain.c: Include ldgram.h after ldexp.h.
373 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
374 of bfd_fill_link_order.
375 * pe-dll.c: Adjust lang_do_assignments calls.
376 * emultempl/elf32.em: Likewise.
377 * emultempl/hppaelf.em: Likewise.
378 * emultempl/ppc64elf.em: Likewise.
379 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
380 lang_add_assignment call.
381 * emultempl/pe.em: Likewise.
382
313e35ee
AM
3832002-02-14 Phil Edwards <pme@gcc.gnu.org>
384
a139d329 385 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
386 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
387 the pattern in question is not a regexp.
388 * ldlang.c: Likewise.
389 * ldlang.h: Likewise.
390 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
391
2d20f7bf
JJ
3922002-02-12 Jakub Jelinek <jakub@redhat.com>
393
394 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
395 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
396 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
397 * ldexp.c (exp_data_seg): New variable.
398 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
399 (fold_binary): Handle DATA_SEGMENT_ALIGN.
400 (exp_fold_tree): Handle DATA_SEGMENT_END.
401 Pass allocation_done when recursing instead of hardcoding
402 lang_allocating_phase_enum.
403 * ldexp.h (exp_data_seg): New.
404 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
405 (lang_size_sections): New.
406 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
407 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
408 if COMMONPAGESIZE is defined.
409 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
410 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
411 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
412 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
413 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
414 libraries only.
415
06880219
AM
4162002-02-11 Alan Modra <amodra@bigpond.net.au>
417
418 * Makefile.in: Regenerate.
419
37b0ac0f
DJ
4202002-02-10 Daniel Jacobowitz <drow@mvista.com>
421
422 * lexsup.c: Remove strtoul declaration.
423
4e5bae56
DJ
4242002-02-10 Daniel Jacobowitz <drow@mvista.com>
425
426 * ldmain.c: Add prototype for main ().
427 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
428 * emultempl/lnk960.em (lnk960_choose_target): Function should
429 take two arguments.
430
1e281515
AM
4312002-02-10 Alan Modra <amodra@bigpond.net.au>
432
433 * ldlang.c (entry_section): New initialised variable.
434 (lang_finish): Use it.
435 * ldlang.h (entry_section): Declare.
436 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
437 entry_section to ".opd".
438
f92d92ff 4392002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
440
441 * ld.texinfo (Options): Add back in -nostdlib documentation,
442 which had been inadvertently removed.
443
74c44237
HPN
4442002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
445
446 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
447 register section vma to a sane value after emitting error. Make
448 fatal conditions cause program exit when emitting message.
449
5e37cc46
NC
4502002-02-08 Ivan Guzvinec <ivang@opencores.org>
451
452 * configure.tgt: Add or32-*-rtems target.
453
2d92cb7d
AO
4542002-02-08 Alexandre Oliva <aoliva@redhat.com>
455
456 Contribute sh64-elf.
457 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
458 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
459 in OTHER_RELOCATABLE_SECTIONS.
460 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
461 * emulparams/shelf32.sh (STACK_ADDR): Define.
462 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
463 (OTHER_SECTIONS): this. Removed stack settings.
464 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
465 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
466 2001-03-12 DJ Delorie <dj@redhat.com>
467 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
468 relaxing if any shmedia or mixed sections are found.
469 2001-03-07 DJ Delorie <dj@redhat.com>
470 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
471 einfo. Gracefully decline to output to non-elf formats.
472 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
473 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
474 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
475 * emulparams/shelf32.sh: Ditto.
476 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
477 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
478 comment.
479 2001-01-10 Ben Elliston <bje@redhat.com>
480 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
481 non-portable shell constructs. From Hans-Peter Nilsson.
482 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
483 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
484 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
485 dependencies to the shell script include chain.
486 * Makefile.in: Regenerate.
487 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
488 * emultempl/sh64elf.em: Update and tweak comments.
489 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
490 make a .cranges section SEC_IN_MEMORY.
491 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
492 * emultempl/sh64elf.em
493 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
494 .cranges section found to be necessary; continue and set stored
495 section contents flags for sections with non-mixed contents.
496 Use a struct sh64_section_data container and sh64_elf_section_data
497 to store contents-type flags.
498 Remove unused update of "isec".
499 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
500 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
501 access contents-type flags. Assert that the associated container
502 is initialized. Use that container, not elf_gp_size, to hold size
503 of linker-generated cranges contents.
504 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
505 * emultempl/sh64elf.em
506 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
507 there's already a .cranges section. When section flag difference
508 is found, don't NULL-check cranges a second time. Tweak comments.
509 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
510 merging, not max size, as size of ld-generated .cranges contents.
511 Don't set ELF section flags in output section. When checking for
512 needed .cranges descriptors, don't use a variable; compare
513 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
514 comments.
515 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
516 * emultempl/sh64elf.em: New file.
517 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
518 * Makefile.in: Regenerate.
519 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
520 (OTHER_RELOCATING_SECTIONS): Ditto.
521 (EXTRA_EM_FILE): New, set to sh64elf if not set.
522 * emulparams/shlelf32.sh: Stub out all settings except
523 OUTPUT_FORMAT. Source shelf32.sh.
524 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
525 OTHER_RELOCATING_SECTIONS.
526 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
527 * emulparams/shlelf64.sh: Stub out all settings except
528 OUTPUT_FORMAT. Source shelf64.sh.
529 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
530 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
531 .cranges section.
532 (DATA_START_SYMBOLS): Define, provide ___data.
533 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
534 for consecutive .data section.
535 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
536 section after .data section.
537 * emulparams/shlelf64.sh: Ditto.
538 * emulparams/shelf32.sh: Ditto.
539 (ALIGNMENT): Define to 8.
540 * emulparams/shelf32.sh: Ditto.
541 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
542 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
543 built-in linker scripts.
544 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
545 * emulparams/shlelf64.sh: New.
546 * emulparams/shelf64.sh: New.
547 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
548 targ_extra_emuls.
549 * Makefile.am: Add support for shlelf64 and shelf64.
550 * Makefile.in: Regenerate.
551 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
552 * configure.tgt (sh64-*-elf*): Add shelf as default.
553 Add shlelf to targ_extra_emuls.
554 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
555 * emulparams/shelf32.sh: New file.
556 * emulparams/shlelf32.sh: New file.
557 * Makefile.am: Add support for shlelf32 and shelf32.
558 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
559 * Makefile.in: Regenerate.
560
e3dc8847
HPN
5612002-02-05 Hans-Peter Nilsson <hp@axis.com>
562
563 * ldlang.c (lang_reset_memory_regions): Rename from
564 reset_memory_regions. Change all callers. Make public.
565 * ldlang.h (lang_reset_memory_regions): Prototype.
566 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
567 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
568 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
569 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 570
8017dbcb
HPN
5712002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
572
573 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
574 arithmetic when checking for too many global registers.
575
006336b8
JT
5762002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
577
578 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
579 (ehppanbsd.c): New rule.
580 * Makefile.in: Regenerate.
581 * configure.tgt (hppa*-*-netbsd*): New target.
582 * emulparams/hppalinux.sh: Add comment to check other files
583 that source this file it is modified, and list which
584 files that do.
585 * emulparams/hppanbsd.sh: New file.
586
da1f2fec
GK
5872002-02-01 Geoffrey Keating <geoffk@redhat.com>
588
589 * scripttempl/xstormy16.sc: Don't allocate extra space for the
590 stack.
591
48fa4a5d
HPN
5922002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
593
594 Support on-demand global register allocation from
595 R_MMIX_BASE_PLUS_OFFSET relocs.
596 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
597 mmix_set_reg_section_vma. Call
598 _bfd_mmix_finalize_linker_allocated_gregs.
599 (mmix_before_allocation): New function.
600 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
601 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
602 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
603 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
604 before .MMIX.reg_contents.
605 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
606 (mmo_after_open): New function.
607 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
608 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
609 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
610
3b16e843
NC
6112002-01-31 Ivan Guzvinec <ivang@opencores.org>
612
613 * emulparams/or32.sh: New file.
614 * emulparams/or32elf.sh: New file.
615 * scripttempl/or32.sc: New file.
616 * configure.tgt : Add support for or32.
617 * configure: Regenerate
618 * Makefile.am: Add support for or32.
619 * Makefile.in: Regenerate.
620 * NEWS: Mention support for or32.
621 * po/ld.pot: Regenerate.
622
f744d540 6232002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 624 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
625
626 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
627 * emultempl/mipself.em: New file to handle MIPS ELF embedded
628 reloc creation (ld --embedded-relocs).
629
4867be41
DJ
6302002-01-27 Daniel Jacobowitz <drow@mvista.com>
631
632 * configure: Regenerated.
633
cd8e197b
HPN
6342002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
635
636 * Makefile.am (install): Depend on install-info.
637 * Makefile.in: Regenerate.
638
9cb61eab
AM
6392002-01-26 Christian Rose <menthos@menthos.com>
640
641 * ldmain.c (main): Use full sentences to ease translation.
642
1caa7b23
NC
6432002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
644
645 * po/fr.po: Updated version.
646
1ddbd152
NC
6472002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
648
649 * po/es.po: Updated version.
650
1e84433f
AJ
6512002-01-25 Andreas Jaeger <aj@suse.de>
652
653 * ldlex.l (yy_input): Correct error check.
654
6d39955e
AM
6552002-01-25 Alan Modra <amodra@bigpond.net.au>
656
657 * ldmisc.c (demangle): Put back dots when string not demangled.
658
a9ed1e1b
RH
6592002-01-22 Richard Henderson <rth@redhat.com>
660
661 * emulparams/elf64alpha.sh (NOP): Use unop.
662
968ec2b9
AJ
6632002-01-21 Andreas Jaeger <aj@suse.de>
664
665 * ldlex.l: Use fread instead of read.
666
9596feea
JT
6672002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
668
669 * configure.tgt (ia64-*-netbsd*): New target.
670
493a6d47
L
6712002-01-21 H.J. Lu <hjl@gnu.org>
672
673 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
674 0.
675 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
676
2a538ba5
AJ
6772002-01-18 Andreas Jaeger <aj@suse.de>
678
679 * ldver.c (ldversion): Update year.
680
328577ad
NC
6812002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
682
683 * po/ld.pot: Regenerate.
684
1f808cd5
AM
6852002-01-16 Alan Modra <amodra@bigpond.net.au>
686
687 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
688 * Makefile.in: Regenerate.
689 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
690 * emultempl/ppc64elf.em: New file.
691
335c5610
DD
6922002-01-15 DJ Delorie <dj@redhat.com>
693
694 * scripttempl/pe.sc: Add support for constructor priorities.
695
c40bbade
DC
6962002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
697
698 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
699 * emulparams/avr23xx.sh: Likewise.
700 * emulparams/avr4433.sh: Likewise.
701 * emulparams/avr44x4.sh: Likewise.
702 * emulparams/avr85xx.sh: Likewise.
703 * emulparams/avrmega103.sh: Likewise.
704 * emulparams/avrmega161.sh: Likewise.
705 * emulparams/avrmega603.sh: Likewise.
706 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
707
34efb449
AO
7082002-01-08 Alexandre Oliva <aoliva@redhat.com>
709
710 * ldlang.c (walk_wild_section): Exclude object file if enclosing
711 archive is excluded.
712
8d05742f
JT
7132002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
714
715 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 716 (eshelf_nbsd.c): New rule.
8d05742f
JT
717 (eshlelf_nbsd.c): New rule.
718 * Makefile.in: Regenerate.
719 * configure.tgt (sh*le-*-netbsdelf*): New target.
720 (sh*-*-netbsdelf*): New target.
721 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
722 * ld/emulparams/shelf_nbsd.sh: New emulation.
723 * ld/emulparams/shlelf_nbsd.sh: New emulation.
724
be2d1673
NC
7252002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
726
727 * po/es.po: New file: Spanish translation.
728 * configure.in (ALL_LINGUAS): Add es.
729 * configure: Regenerate.
730
dbab7a7b
NC
7312002-01-06 John Marshall <jmarshall@acm.org>
732
733 * ld.texinfo: Note that --emit-relocs is currently only
734 implemented for ELF.
735
3dfe7a8c
AM
7362002-01-05 Alan Modra <amodra@bigpond.net.au>
737
738 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
739 of bfd_section_list_remove and bfd_section_list_insert macros.
740 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
741 * emultempl/mmo.em (mmo_place_orphan): Likewise.
742
8a8b2d4b
AJ
7432002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
744
745 * configure.tgt (x86_64-*-netbsd*): New target.
746
9a4c7f16
TR
7472001-12-21 Tom Rix <trix@redhat.com>
748
8a8b2d4b 749 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
750 For -binitfini support.
751 * emultempl/aix.em (gld*_before_parse): Fix comment.
752 * emultempl/aix.em (gld*_parse_args): Fix comment.
753
3695c299
AM
7542001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
755
cf86e6df
AM
756 * configure.tgt (mips*-dec-netbsd*): Delete alias for
757 mips*el-*-netbsd*.
758 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
759
3695c299
AM
760 * configure.tgt (arm-*-netbsdelf*): Add target.
761 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
762 * emulparams/armelf_nbsd.sh: Added.
763 * Makefile.am: Add rules for earmelf_nbsd.
764 * Makefile.in: Regenerate.
765
97cb79ae
AJ
7662001-12-19 Andreas Jaeger <aj@suse.de>,
767 Susanne Oberhauser <froh@suse.de>
768
769 * configure.host: Add rules for x86_64-*linux-gnu. Change
770 s390x-linux entry to use gcc to report configuration, replace gcc
771 with $CC in s390-linux
772
9d201f2f
AJ
7732001-12-19 Andreas Jaeger <aj@suse.de>
774
775 * ld.texinfo (VERSION): Fix markup.
776
0b69cd08
MG
7772001-12-18 matthew green <mrg@eterna.com.au>
778
779 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
780 (m68kelfnbsd.c): New rule.
781 * Makefile.in: Regenerate.
782 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
783 (m68*-*-netbsd*4k*): .. this.
784 (m68*-*-netbsdelf*): New target.
785 (m68*-*-netbsd*): Also include ELF support.
786 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
787 * emulparams/m68kelfnbsd.sh: New emulation.
788
6b9b879a
JJ
7892001-12-18 Jakub Jelinek <jakub@redhat.com>
790
791 * ldgram.y (vers_node): Support anonymous version tags.
792 * ldlang.c (lang_register_vers_node): Ensure anonymous version
793 tag is not defined together with non-anonymous versions.
794 * ld.texinfo: Document it.
795
9fc877ed
NC
7962001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
797
798 * po/tr.po: New file: Turkish translation.
799 * configure.in (ALL_LINGUAS): Add tr.
800 * configure: Regenerate.
801
fc18a3f3
RH
8022001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
803
804 * Makefile.am: Add rules for eelf64alpha_nbsd.
805 * Makefile.in: Regenerate.
806 * configure.tgt (alpha*-*-netbsd*): Set
807 targ_emul to elf64alpha_nbsd.
808 * emulparams/elf64alpha_nbsd.sh: Added.
809
76f63e91
AM
8102001-12-17 Alan Modra <amodra@bigpond.net.au>
811
812 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
813 section_tail when fiddling with section list.
814 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
815 broken into separate strings to make translation easier.
816 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
817 fiddling with section list.
818 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
819
d03b89bd
HPN
8202001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
821
822 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
823
320fec9a
AM
8242001-12-15 Alan Modra <amodra@bigpond.net.au>
825
826 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
827
65765700
JJ
8282001-12-13 Jakub Jelinek <jakub@redhat.com>
829
830 * emultempl/elf32.em (finish): Supply output_bfd
831 to bfd_elf*_discard_info.
832 (OPTION_EH_FRAME_HDR): Define.
833 (longopts): Add --eh-frame-hdr.
834 (parse_args): Handle it.
835 (list_options): Add --eh-frame-hdr to help.
836 * emultempl/hppaelf.em (finish): Supply output_bfd
837 to bfd_elf*_discard_info.
838 * scripttempl/elf.sc (.eh_frame_hdr): Add.
839
89894c62
AM
8402001-12-13 Alan Modra <amodra@bigpond.net.au>
841
842 * lexsup.c (parse_args): Don't pass shortopts to second call to
843 getopt functions. Restore optind rather than decrementing before
844 second call. Remove errind as it now duplicates last_optind.
845
583f1926
CF
8462001-12-11 Christopher Faylor <cgf@redhat.com>
847
848 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
849
93fbbb04
GK
8502001-12-07 Geoffrey Keating <geoffk@redhat.com>
851 Richard Henderson <rth@redhat.com>
852
853 * Makefile.am: Add support for xstormy16.
854 * configure.tgt: Add support for xstormy16.
855 * Makefile.in: Regenerate.
856 * emulparams/elf32xstormy16.sh: New file.
857 * scripttempl/xstormy16.sc: New file.
858
583f1926
CF
8592001-10-01 Christopher Faylor <cgf@cygnus.com>
860
fc18a3f3
RH
861 * Makefile.in (LIB_PATH): Make configurable.
862 (GENSCRIPTS): Set LIB_PATH in environment.
863 * configure.in: Substitute LIB_PATH.
864 * configure: Regenerate.
865 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
866 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 867
ff291a48
NC
8682001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
869
870 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
871 describing the -N option so that it is easier to translate into
872 foreign languages.
873
e3c8793a
NC
8742001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
875
876 * emultempl/pe.em (..._list_options): Replace multiple fprintf
877 statements describing a single option with a single, newline
878 escaped fprintf. This allows better translation into other
879 languages.
9d201f2f 880
fc18a3f3
RH
881 * ldmain.c (add_archive_element): Combine multiple strings
882 into a single string to permit better translation into other
883 languages.
e3c8793a 884
f2eab0af
TR
8852001-12-05 Tom Rix <trix@redhat.com>
886
887 * Makefile.am: Remove eaixppc64.
9d201f2f 888 * Makefile.in: Regenerate.
f2eab0af 889
249172c3
TR
8902001-12-04 Tom Rix <trix@redhat.com>
891
9d201f2f 892 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
893 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
894 warning.
895 (gld*_read_file): Fix typo.
896 (change_symbol_mode): Add prototype.
897 (is_syscall): Same.
9d201f2f 898
249172c3
TR
899 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
900 * emulparams/aixrs6.sh : Same.
901 * emulparams/ppcmacos.sh : Same.
902 * emulparams/aixppc64.sh : Delete file.
903 * emultempl/aix.em : Formatting changes.
904
5b5cd1b0
HPN
9052001-12-04 Hans-Peter Nilsson <hp@axis.com>
906
907 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
908 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
909 __Sbss.
910 (OTHER_END_SYMBOLS): Fix formatting.
911 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
912 (OTHER_END_SYMBOLS): Fix formatting.
913
7cecdbff
AM
9142001-12-04 Alan Modra <amodra@bigpond.net.au>
915
916 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
917
742aeb63 9182001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 919
742aeb63 920 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 921 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
922 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
923 (ldemul_default_target): Same.
924 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
925 * emultempl/gld960c.em (gld960_choose_target): Same.
926 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
927 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
928 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
929 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 930 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
931 -b32 and -b64.
932
48459341
L
9332001-11-27 H.J. Lu <hjl@gnu.org>
934
935 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
936 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
937 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
938 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
939 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
940 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
941 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
942 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
943
7cecdbff 944 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
945 is not empty.
946 (SDATA): Likewise.
947 (REL_SDATA): Likewise.
948 (REL_SBSS): Likewise.
949 (REL_SDATA2): Likewise.
950 (REL_SBSS2): Likewise.
951 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
952 (SDATA2): Likewise.
953
ecfdd20c
SC
9542001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
955
956 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
957 destructor in rom.
7cecdbff 958 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 959
da54c6eb
L
9602001-11-22 H.J. Lu <hjl@gnu.org>
961
962 * Makefile.in: Regenerated with automake based on automake
963 1.4-8 in RedHat 7.1.
964
465bc359
AM
9652001-11-22 Alan Modra <amodra@bigpond.net.au>
966
967 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
968 (config.status): Delete rule.
969 Add extra dependencies to cover sourced emulparams files.
970 * Makefile.in: Regenerate.
971
972 * scripttempl/elf.sc: Order <section>, <section>.* and
973 corresponding linkonce sections as seen in input files.
974 Formatting fixes. Zero vma of all sections if not relocating.
975 (STACK): Define and insert if STACK_ADDR defined.
976 (OTHER_RELOCATING_SECTIONS): Delete.
977 (OTHER_END_SYMBOLS): Define.
978 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
979 (OTHER_READWRITE_SECTIONS): Likewise.
980 (OTHER_GOT_SECTIONS): Likewise.
981 (OTHER_SDATA_SECTIONS): Likewise.
982 (OTHER_BSS_SECTIONS): Likewise.
983 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
984 (OTHER_READWRITE_SECTIONS): Likewise.
985 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
986 (OTHER_READWRITE_SECTIONS): Likewise
987
988 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
989 (STACK_ADDR): Define.
990 * emulparams/armelf_oabi.sh: As for armelf.sh.
991 * emulparams/elf32mcore.sh: As for armelf.sh.
992 * emulparams/h8300elf.sh: As for armelf.sh.
993 * emulparams/mn10200.sh: As for armelf.sh.
994 * emulparams/shelf.sh: As for armelf.sh.
995
996 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
997 (OTHER_END_SYMBOLS): Define.
998 * emulparams/m32relf.sh: As for elf32fr30.sh.
999 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1000 * emulparams/h8300self.sh: As for elf32fr30.sh.
1001
1002 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1003 defines with RELOCATING test.
1004 (OTHER_SDATA_SECTIONS): Likewise.
1005 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1006 (OTHER_END_SYMBOLS): ..this.
1007 * emulparams/crislinux.sh: As for criself.sh.
1008
1009 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1010 if not relocating.
1011 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1012 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1013 normal and linkonce sections as seen in input files.
1014 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1015 (TEXT_DYNAMIC): Likewise.
1016 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1017 (OTHER_SDATA_SECTIONS): Likewise.
1018 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1019 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1020 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1021 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1022 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1023 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1024 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1025 sections as seen in input files.
1026 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1027 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1028 if not relocating.
1029 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1030 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1031 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1032 (OTHER_SECTIONS): Instead, use this..
1033 (OTHER_END_SYMBOLS): ..and this.
1034
1035 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1036 * emulparams/elf32bsmip.sh: Likewise.
1037 * emulparams/elf32btsmip.sh: Likewise.
1038 * emulparams/elf32ebmip.sh: Likewise.
1039 * emulparams/elf32lmip.sh: Likewise.
1040 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1041 * emulparams/elf32lsmip.sh: Likewise.
1042 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1043 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1044 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1045 * emulparams/elf64btsmip.sh: Likewise.
1046 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1047 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1048 * emulparams/elf32ppclinux.sh: Likewise.
1049 * emulparams/elf32ppcsim.sh: Likewise.
1050 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1051 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1052 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1053 * emulparams/h8300self.sh: Likewise.
1054 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1055 * emulparams/sh.sh: Comment.
1056 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1057 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1058 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1059
abc6ab0a
AM
10602001-11-21 David Heine <dlheine@tensilica.com>
1061 Alan Modra <amodra@bigpond.net.au>
1062
1063 * ldlang.c (map_input_to_output_sections): Replace "break"
1064 accidentally removed with 2001-08-03 change.
1065 (lang_gc_sections_1): Likewise.
1066
2181f54f
AM
10672001-11-21 Alan Modra <amodra@bigpond.net.au>
1068
1069 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1070
ca0b5847
AM
10712001-11-20 Angela Marie Thomas <angela@redhat.com>
1072
1073 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1074 of false when calling lang_size_sections.
1075 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1076
c56feb2b
AM
10772001-11-15 Alan Modra <amodra@bigpond.net.au>
1078
1079 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1080 function when LDEMUL_FINISH isn't set to the same name. Don't
1081 call ${LDEMUL_FINISH}.
1082 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1083 * emultempl/armelf.em (arm_elf_finish): Call
1084 gld${EMULATION_NAME}_finish.
1085 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1086 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1087 hppaelf_layout_sections_again if necessary.
1088 (need_laying_out): New var.
1089 (hppaelf_layaout_sections_again): Rename to
1090 hppaelf_layout_sections_again. Clear need_laying_out.
1091 (PARSE_AND_LIST_OPTIONS): Format text.
1092
a48ca7f2
L
10932001-11-14 H.J. Lu <hjl@gnu.org>
1094
1095 * emultempl/armelf.em (arm_elf_finish): Renamed from
1096 gld${EMULATION_NAME}_finish.
1097 (LDEMUL_FINISH): Set to arm_elf_finish.
1098
73d074b4
DJ
10992001-11-14 Daniel Jacobowitz <drow@mvista.com>
1100
1101 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1102 (struct ld_emulation_xfer_struct): Use it.
1103
3b16e843 11042001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1105
465bc359 1106 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1107 additional symbols referenced by newer crt0.o files from HP.
1108
f11b7027
NC
11092001-11-12 Anthony Green <green@redhat.com>
1110
1111 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1112
3bf2994f
AM
11132001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1114
1115 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1116 * Makefile.in: Regenerate.
1117
ff5dcc92
SC
11182001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1119
1120 * ld.texinfo: Use @command for commands, @option for options.
1121 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1122 the page man title.
1123 * Makefile.in: Rebuild.
1124
9fb9af6e
CD
11252001-11-04 Chris Demetriou <cgd@broadcom.com>
1126
1127 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1128 Add support for targets.
2181f54f 1129
3c62831e
NC
11302001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1131
1132 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1133 * configure: Regernate.
1134 * po/fr.po: New file.
1135 * po/sv.po: New file.
1136
3a9091c4
NC
11372001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1138
1139 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1140 as little endian default and to support big endian.
2181f54f 1141
361b220e
CD
11422001-11-01 Chris Demetriou <cgd@broadcom.com>
1143
1144 * ld.texinfo (Options): Document new option, -nostdlib.
1145 * lexsup.c (OPTION_NOSTDLIB): New definition.
1146 (ld_options): Add entry for "nostdlib".
1147 (parse_args): Handle OPTIONS_NOSTDLIB.
1148 * ldfile.c (ldfile_add_library_path): Don't add directories
1149 to the search path if they weren't specified on the command line
1150 and -nostdlib was specified.
1151 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1152
210a7bd1
NC
11532001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1154
1155 * lexsup.c (parse_args): Prevent infinite parsing loop when
1156 "-rpath.a" is specified on the command line.
1157 Replace calls to fprintf with calls to einfo.
1158
114283d8
NC
11592001-10-31 John Marshall <jmarshall@acm.org>
1160
1161 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1162 appear only once across all the linker scripts involved in a link
1163 invocation no longer applies. Make the documentation reflect
1164 that.
1165
7649aa50
NC
11662001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1167
1168 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1169 targets.
1170 (sh-*-linux*): Added targ_extra_libpath.
1171
6e814ff8
AM
11722001-10-31 David Heine <dlheine@tensilica.com>
1173
1174 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1175 for padding statements.
1176
3c3bdf30
NC
11772001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1178
1179 * configure.tgt (mmix-*-*): New target.
1180 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1181 Add dependencies to match.
1182 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1183 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1184 scripttempl/mmo.sc: New files.
1185 * gen-doc.texi: @set MMIX.
1186 * ld.texinfo: Ditto.
6e814ff8 1187 [MMIX] Add MMIX node.
3c3bdf30
NC
1188 * Makefile.in: Regenerate.
1189
ca0c1d3e
KH
11902001-10-29 Kazu Hirata <kazu@hxi.com>
1191
1192 * ldlang.c: Fix a comment typo.
1193
1a3d33ce
AM
11942001-10-23 Alan Modra <amodra@bigpond.net.au>
1195
1196 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1197 entries, and match *-*-linux*.
1198
b47c4208
AM
11992001-10-20 Alan Modra <amodra@bigpond.net.au>
1200
1201 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1202 with ldlex_script, ldlex_popstate.
1203 (ifile_p1): Likewise.
1204 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1205 correct slot.
1206 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1207 to 1. Don't BEGIN(SCRIPT).
1208 (lex_redirect): Similarly.
1209 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1210
fd521b47
NC
12112001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1212
1213 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1214 __EH_FRAME_END__ and accept eh frames into data section.
1215 Add ctor and dtor sections.
1216
59d28a94
DD
12172001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1218
1219 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1220 (auto-export): Fix indentation.
1221
663dd378
DD
12222001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1223
1224 * pe-dll.c (autofilter_objectlist): Add startup objects
1225 for profiling.
1226 (auto-export): Constify char * p.
6e814ff8 1227 Extract file basename and use strcmp rather than ststr
663dd378
DD
1228 for object lookup.
1229
31d677f9
CD
12302001-10-18 Chris Demetriou <cgd@broadcom.com>
1231
1232 * ldmain.c (get_emulation): Improve comment about the handling
1233 of -mipsN options.
1234
aa200fe8
AM
12352001-10-17 Alan Modra <amodra@bigpond.net.au>
1236
1237 * po/POTFILES.in: Regenerate.
1238
146e7110
AM
12392001-10-16 Vassili Karpov <malc@pulsesoft.com>
1240
1241 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1242 -z nocopyreloc and -z nocombreloc usage strings.
1243
b4330e85
NC
12442001-10-12 Vassili Karpov <malc@pulsesoft.com>
1245
146e7110 1246 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1247 in usage.
1248
5af8a2fb
NC
12492001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1250
1251 * scripttempl/armaout.sc: Place .bss section after end of aligned
1252 data section to match behaviour of aout code in constructrion of
1253 header.
1254
5b784096
DD
12552001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1256
1257 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1258 startup files for mingw32 dlls to list.
1259
61585df2
CD
12602001-10-10 Chris Demetriou <cgd@broadcom.com>
1261
1262 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1263
45cf6f3e
AH
12642001-10-08 Aldy Hernandez <aldyh@redhat.com>
1265
1266 * configure.tgt (targ): Add arm9e-*-elf.
1267
e24d7c12
L
12682001-10-05 H.J. Lu <hjl@gnu.org>
1269
1270 * genscripts.sh: Fix a typo in the last change.
1271
ec38dd05
JJ
12722001-10-05 Jakub Jelinek <jakub@redhat.com>
1273
1274 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1275 -z nocombreloc in usage.
1276
cedd6b0d
JB
12772001-10-03 Jim Blandy <jimb@redhat.com>
1278
1279 * genscripts.sh: Include a comment at the top of each generated
1280 script, explaining its purpose.
1281
8bd621d8
AM
12822001-10-03 Vassili Karpov <malc@pulsesoft.com>
1283
1284 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1285 * NEWS: Mention -z nocopyreloc.
1286 * ld.texinfo (Options): Describe nocopyreloc.
1287
fcd8210c
AM
12882001-10-03 Alan Modra <amodra@bigpond.net.au>
1289
1290 * configure: Regenerate.
1291
d32820f2
AM
12922001-10-02 Alan Modra <amodra@bigpond.net.au>
1293
1294 * ldver.h (ld_program_version): Remove declaration.
1295 * lexsup.c (parse_args): Move printing of copyright message..
1296 * ldver.c (ldversion): .. to here.
1297 Use BFD_VERSION_STRING in place of BFD_VERSION.
1298 (ld_program_version): Remove.
1299 * Makefile.am (Makefile): Depend on bfd/configure.in.
1300 Run "make dep-am".
1301 * Makefile.in: Regenerate.
1302
af46bcdc
HPN
13032001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1304
1305 * Makefile.am: Update dependencies with "make dep-am".
1306 * Makefile.in: Regenerate.
1307
4818e05f 13082001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1309
4818e05f
AM
1310 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1311 * lexsup.c: Add --no-define-common commandline option.
1312 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1313 * ldlex.l: Likewise.
1314 * ld.h: Add command_line.inhibit_common_definition.
1315 * ldmain.c (main): Initialize.
1316 * ld.texinfo: Document.
862517b6 1317
d5e0ebeb
AM
13182001-09-26 Alan Modra <amodra@bigpond.net.au>
1319
1320 * ldmisc.c (USE_STDARG): Remove.
1321 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1322 (einfo): Likewise.
1323 (minfo): Likewise.
1324 (lfinfo): Likewise.
1325
1326 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1327 declarations. Update copyright.
1328
2f8d8971
NC
13292001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1330
85c77458
NC
1331 * pe-dll.c: Remove obsoleted declaration of
1332 pe_get_data_import_dll_name.
1333 (pe_create_import_fixup): Fix thinko.
1334
2f8d8971
NC
1335 * ld.texinfo(enable-auto-import): Clarify the explanation.
1336
13372001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1338
1339 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1340 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1341 DLL_SUPPORT controlled code.
1342
72358f65 13432001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1344
72358f65
NC
1345 * emultempl/pe.em(pe_data_import_dll): Make static.
1346 (pe_get_data_import_dll_name): New accessor function.
146e7110 1347 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1348 pe_get_data_import_dll_name() from pe.em, instead of
1349 directly accessing pe_data_import_dll variable from pe.em.
1350
3882b010
L
13512001-09-18 Bruno Haible <haible@clisp.cons.org>
1352
1353 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1354 (def_file_add_directive): Use ISSPACE instead of isspace.
1355 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1356 isdigit/isxdigit/isalpha/isalnum.
1357 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1358 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1359 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1360 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1361 isalnum.
1362 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1363 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1364 isupper/tolower.
1365 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1366 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1367 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1368 (ctor_prio): Use ISDIGIT instead of isdigit.
1369 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1370 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1371 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1372 isupper/tolower.
1373 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1374 (stricpy): Use TOLOWER instead of isupper/tolower.
1375 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1376 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1377 (lex_warn_invalid): Use ISPRINT instead of isprint.
1378 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1379 (main): For gettext, also set the LC_CTYPE locate facet.
1380 (add_keepsyms_file): Use ISSPACE instead of isspace.
1381 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1382 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1383 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1384 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1385 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1386 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1387 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1388 (quoteput): Use ISSPACE instead of isspace.
1389 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1390 instead of isalnum.
1391
db09f25b
AM
13922001-09-18 Alan Modra <amodra@bigpond.net.au>
1393
1394 * deffilep.y (def_stash_module): Constify "name" param.
1395
1396 * pe-dll.c: Replace CONST with const throughout.
1397 (quick_symbol): Constify "n1", "n2", "n3" params.
1398 (make_singleton_name_thunk): Constify "import" param. Make
1399 "buffer_len" a size_t.
1400 (make_import_fixup_entry): Constify "name", "fixup_name",
1401 "dll_symname" params.
1402 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1403 (pe_get32): Likewise.
1404 (pe_implied_import_dll): Likewise.
1405
1406 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1407 (sort_by_section_name): Likewise.
1408
1409 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1410 (make_import_fixup): Cast printf arg, rel->address to long rather
1411 than int.
1412 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1413
74699268
AM
14142001-09-15 Alan Modra <amodra@bigpond.net.au>
1415
1416 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1417 defines BufferSize. Increase buffer size by one.
1418
775cabad
NC
14192001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1420
1421 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1422
056a1d49
NC
14232001-09-14 Kevin Lo <kevlo@openbsd.org>
1424
1425 * configure.tgt: Add arm-openbsd target.
1426
a7d792bb
L
14272001-09-12 H.J. Lu <hjl@gnu.org>
1428
1429 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1430 eelf64lppc.o to ...
1431 (ALL_64_EMULATIONS): Here.
1432 * Makefile.in: Regenerated.
1433
0d888aac
CW
14342001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1435
1436 * emultempl/pe.em(make_import_fixup): change signature to
1437 take asection as well as arelec; we need this for proper
146e7110 1438 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1439 there is no attempt to add a constant addend to the reloc;
1440 otherwise, report error condition.
1441 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1442 since final argument is a pointer to make_import_fixup().
1443 Change call to cb() to match make_import_fixup() signature.
1444 (make_import_fixup_mark): make buffer_len unsigned.
1445 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1446
14472001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1448
1449 * ld.texinfo: add verbose documentation for auto-import
146e7110 1450 direct-addressing workaround, to compliment the terse
0d888aac
CW
1451 error message.
1452
cedacdc0
CM
14532001-09-12 Andrew MacLeod <amacleod@redhat.com>
1454
146e7110 1455 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1456
3b16e843 14572001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1458
1459 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1460 * emulparams/h8300self.sh: Similarly.
1461
559e4713
NC
14622001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1463
1464 * ld.texinfo (Options, --stack): Correct default value for stack
1465 reserve.
1466
1fdf0249
TR
14672001-09-05 Tom Rix <trix@redhat.com>
1468
1469 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1470
9b5799b8
AJ
14712001-09-03 Andreas Jaeger <aj@suse.de>
1472
1473 * emultempl/beos.em: Declare prototypes for comparions functions,
1474 adjust definitions.
1475
48f6162b
AJ
14762001-09-02 Andreas Jaeger <aj@suse.de>
1477
1478 * emultempl/aix.em: Add missing prototype.
1479 * emultempl/lnk960.em: Likewise.
1480 * emultempl/vanilla.em: Likewise.
1481 * emultempl/armcoff.em: Likewise.
1482 * emultempl/armelf_oabi.em: Likewise.
1483 * emultempl/beos.em: Likewise.
1484 * emultempl/gld960c.em: Likewise.
1485 * emultempl/gld960.em: Likewise.
1486
1487 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1488 for prototype declaration.
1489
39e5585e
EC
14902001-08-31 Eric Christopher <echristo@redhat.com>
1491 Jason Eckhardt <jle@redhat.com>
1492
1493 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1494
3fc90ddb
AJ
14952001-08-31 Andreas Jaeger <aj@suse.de>
1496
1497 * emultempl/pe.em: Add missing prototypes.
1498 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1499 pe_find_data_imports.
1500 (pr_sym): Add unused attribute.
1501
d43ded80
PB
15022001-08-29 Joel Sherrill <joel@OARcorp.com>
1503
39e5585e 1504 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1505 default from coff to elf.
1506
3946dd2f
JL
15072001-08-29 Jeff Law <law@redhat.com>
1508
1509 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1510 ARCH specification.
1511 * emulparams/h8300self.sh: Similarly.
1512
3b16e843 15132001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1514
1515 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1516 eh8300self.o .
1517 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1518 * configure.tgt (h8300-*-elf*): New case.
1519 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1520 * emulparams/h8300self.sh: New file.
1521 * Makefile.in: Regenerated.
1522
70d0c6e9
NC
15232001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1524
1525 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1526 with macro name.
1527
5c67d4bb
AM
15282001-08-27 Linus Nordberg <linus@swox.com>
1529 Alan Modra <amodra@bigpond.net.au>
1530
1531 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1532 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1533 Run "make dep-am"
1534 * Makefile.in: Regenerate.
1535 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1536 entries to correct alphabetical position.
1537 * emulparams/elf64ppc.sh: New.
1538 * emulparams/elf64lppc.sh: New.
1539
08131015
NC
15402001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1541
1542 * ldmain.c (main): Declare BSIZE as static.
1543
db6751f2
JJ
15442001-08-23 Jakub Jelinek <jakub@redhat.com>
1545
1546 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1547 into .rel.dyn resp. .rela.dyn if combreloc.
1548 (get_script): If .x linker script is equal to .xn, only put it
1549 once into the binary.
1550 Add .xc and .xsc scripts.
1551 (parse_args): Handle -z combreloc and -z nocombreloc.
1552 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1553 For .xc and .xsc scripts put all .rel* or .rela* input sections
1554 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1555 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1556 is elf.
1557 Strip trailing whitespace from script.
1558 Generate .xc and .xsc scripts if requested.
1559 * ldmain.c (main): Initialize link_info.combreloc and
1560 link_info.spare_dynamic_tags.
1561 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1562 (ld_options): Add --spare-dynamic-tags option.
1563 (parse_args): Likewise.
1564 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1565 * ldint.texinfo: Document .xc and .xsc linker scripts.
1566 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1567
63d069c0
L
15682001-08-22 H.J. Lu <hjl@gnu.org>
1569
1570 * emulparams/elf32fr30.sh: Add a newline.
1571
948f9114
AJ
15722001-08-21 Andreas Jaeger <aj@suse.de>
1573
1574 * deffilep.y: Add missing prototypes.
1575 * pe-dll.c: Likewise.
1576
ae7fb08f
AM
15772001-08-20 Alan Modra <amodra@bigpond.net.au>
1578
2af02257
AM
1579 * ldlang.c (insert_pad): Fix typos in last patch.
1580
1581 * ldlang.c: When traversing lang_statement_union_type lists,
1582 consistently use "header.next" rather than "next".
1583 * mpw-eppcmac.c: Likewise.
1584 * emultempl/beos.em: Likewise.
1585 * emultempl/hppaelf.em: Likewise.
1586 * emultempl/pe.em: Likewise.
1587 * ldlang.h (union lang_statement_union): Remove "next" field.
1588
c0c330a7
AM
1589 * ldlang.c (insert_pad): Use offsetof macro.
1590 (lang_size_sections): Always neuter padding statements.
1591 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1592
ae7fb08f
AM
1593 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1594 passed to lang_size_sections.
1595 (pe_exe_fill_sections): Likewise.
1596 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1597 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1598
fab80407
AM
15992001-08-18 Alan Modra <amodra@bigpond.net.au>
1600
1601 * emultempl/aix.em: Formatting fixes.
1602
b3327aad
AM
16032001-08-18 Alan Modra <amodra@bigpond.net.au>
1604
1605 * ldlang.c (insert_pad): Make use of an existing pad statement if
1606 available. Move code calculating alignment, adjusting section
1607 alignment power, and adjusting dot to ..
1608 (size_input_section): .. here. Remove unused relax param.
1609 (lang_size_sections): Change boolean `relax' param to boolean *.
1610 Adjust call to size_input_section. Make use of insert_pad to
1611 place pad after the assignment statement. If relaxing, zap
1612 padding statements.
1613 (reset_memory_regions): Reset output_bfd section sizes too.
1614 (relax_again): Move to..
1615 (lang_process): ..here. Adjust call to lang_size_sections, and
1616 remove duplicated code.
1617 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1618
563e308f
AM
16192001-08-17 Alan Modra <amodra@bigpond.net.au>
1620
1621 * ld.texinfo: Document that fill values now use the four least
1622 significant bytes.
1623 * emulparams/elf32fr30.sh (NOP): Update.
1624 * emulparams/elf32mcore.sh: Likewise.
1625 * emulparams/elf64_s390.sh: Likewise.
1626 * emulparams/elf_i386.sh: Likewise.
1627 * emulparams/elf_i386_be.sh: Likewise.
1628 * emulparams/elf_i386_chaos.sh: Likewise.
1629 * emulparams/elf_i386_ldso.sh: Likewise.
1630 * emulparams/elf_s390.sh: Likewise.
1631 * emulparams/elf_x86_64.sh: Likewise.
1632 * emulparams/i386moss.sh: Likewise.
1633 * emulparams/i386nw.sh: Likewise.
1634 * emulparams/m68kelf.sh: Likewise.
1635 * scripttempl/elf.sc: Update NOP comment.
1636 * scripttempl/elfi370.sc: Likewise.
1637 * scripttempl/elfm68hc11.sc: Likewise.
1638 * scripttempl/elfm68hc12.sc: Likewise.
1639 * scripttempl/nw.sc: Likewise.
1640
b90e1c6f
TR
16412001-08-15 Tom Rix <trix@redhat.com>
1642
1643 * ldgram.y (saved_script_handle): Initialize to NULL.
1644 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1645
39dcfe18
AM
16462001-08-14 Alan Modra <amodra@bigpond.net.au>
1647
cde43e70
AM
1648 * emultempl/elf32.em: Formatting fixes.
1649 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1650 looking at sec->owner.
1651 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1652 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1653 unused code, and reorganize orphan section placement code.
1654
39dcfe18
AM
1655 * ldlang.c (wild_doit): Rename to lang_add_section.
1656 * ldlang.h: Here too.
1657 * mpw-elfmips.c: And here.
1658 * emultempl/beos.em: And here.
1659 * emultempl/elf32.em: And here.
1660 * emultempl/hppaelf.em: And here.
1661 * emultempl/pe.em: And here.
1662
908d20b3
RH
16632001-08-13 Richard Henderson <rth@redhat.com>
1664
1665 * emultempl/needrelax.em: New file.
1666 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1667 * Makefile.am (eelf64_ia64.c): Depend on it.
1668 * Makefile.in: Rebuild.
1669
0f33d40b
AM
16702001-08-13 Alan Modra <amodra@bigpond.net.au>
1671
22af9fd3
AM
1672 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1673 output_section is set non-NULL.
1674
0f33d40b
AM
1675 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1676 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1677 needlessly create an output_section_statement. Treat a correctly
1678 named output_section_statement with NULL bfd_section as compatible.
1679
55ab6103
HPN
16802001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1681
1682 * emultempl/generic.em: Support EXTRA_EM_FILE.
1683 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1684 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1685 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1686 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1687 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1688 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1689 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1690 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1691 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1692 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1693
24098abb
RH
16942001-08-12 Richard Henderson <rth@redhat.com>
1695
1696 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1697 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1698 scripttempl/v850.sc: Keep .jcr data.
1699
b9a8de1e 17002001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1701 Andrew Haley <aph@cambridge.redhat.com>
1702 Nick Clifton <nickc@redhat.com>
b9a8de1e 1703
146e7110 1704 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1705 Change type to file handle.
1706 * ld.h (had_script): Rename and retype.
1707 * ldfile.c (ldfile_open_command_file): Save the file handle
1708 used in saved_script_handle.
1709 * lexsup.c (parse_args): Do not allow -c option to alter
1710 saved_script_handle.
1711 * ldmain.c (main): Print out the linker script used if
1712 --verbose is given. Check saved_script_handle to obtain the
1713 external linker script used, or if NULL, dump the builtin
1714 script.
1715 * ld.texinfo: Document that --verbose now dumps the linker
1716 script used, regardless of whether it was an internal or an
1717 external script.
1718
0218d1e4
AJ
17192001-08-10 Andreas Jaeger <aj@suse.de>
1720
1721 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1722 to build warnings.
1723 * configure: Regenerate.
1724
5253f23b
AM
17252001-08-09 Alan Modra <amodra@bigpond.net.au>
1726
73810896
AM
1727 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1728
5253f23b
AM
1729 * scripttempl/elf.sc: Move non-text .dynamic section before
1730 .plt/.got/.sdata* group.
1731 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1732 (OTHER_SDATA_SECTIONS): Add.
1733 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1734 OTHER_GOT_SECTIONS.
1735 * emulparams/crislinux.sh: Likewise.
1736 * emulparams/elf32b4300.sh: Likewise.
1737 * emulparams/elf32bmip.sh: Likewise.
1738 * emulparams/elf32bmipn32.sh: Likewise.
1739 * emulparams/elf32bsmip.sh: Likewise.
1740 * emulparams/elf32btsmip.sh: Likewise.
1741 * emulparams/elf32ebmip.sh: Likewise.
1742 * emulparams/elf32elmip.sh: Likewise.
1743 * emulparams/elf32l4300.sh: Likewise.
1744 * emulparams/elf32lmip.sh: Likewise.
1745 * emulparams/elf32lsmip.sh: Likewise.
1746 * emulparams/elf32ltsmip.sh: Likewise.
1747 * emulparams/elf64bmip.sh: Likewise.
1748 * emulparams/elf64btsmip.sh: Likewise.
1749 * emulparams/elf64ltsmip.sh: Likewise.
1750
179c732c
AM
17512001-08-08 Alan Modra <amodra@bigpond.net.au>
1752
1753 * genscripts.sh: Source the emulparams script before each output
1754 script is generated so that variables like `RELOCATING' may affect
1755 variables defined in the emulparams script.
1756
3fd36710
AM
17572001-08-04 Alan Modra <amodra@bigpond.net.au>
1758
20713691
AM
1759 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1760 order.
1761
3fd36710
AM
1762 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1763 ie. iterate over wild_statement.section_list.
1764 (gld${EMULATION_NAME}_place_orphan): Likewise.
1765
de0b1853
SC
17662001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1767
1768 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1769 .fini[0-4] sections used by _exit
1770 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1771 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1772 * scripttempl/elfm68hc11.sc: Likewise.
1773
ff7e6f88
L
17742001-08-03 H.J. Lu <hjl@gnu.org>
1775
1776 * emultempl/beos.em (init): Add the missing initialization.
1777
b6bf44ba
AM
17782001-08-03 Alan Modra <amodra@bigpond.net.au>
1779
1780 * ld.texinfo (Input Section Basics): Clarify ordering of output
1781 sections.
1782 * ldlang.c (callback_t): Add wildcard_list param.
1783 (walk_wild_section): Remove "section" param. Rewrite for
1784 lang_wild_statement_type change. Remove unique_section_p test.
1785 (walk_wild_file): Remove "section" param.
1786 (walk_wild): Remove "section" and "file" params.
1787 (lang_gc_wild): Likewise.
1788 (wild): Likewise. Modify for lang_wild_statement_type change.
1789 (wild_sort): Likewise. Add "sec" param.
1790 (gc_section_callback): Likewise.
1791 (output_section_callback): Likewise. Do unique_section_p test.
1792 (map_input_to_output_sections): Modify call to wild.
1793 (lang_gc_sections_1): Likewise.
1794 (print_wild_statement): Modify for lang_wild_statement_type
1795 change.
1796 (lang_add_wild): Replace filename, filenames_sorted param with
1797 filespec. Replace section_name, sections_sorted,
1798 exclude_filename_list with section_list.
1799 * ldlang.h (lang_add_wild): Here too.
1800 (lang_wild_statement_type): Replace section_name, sections_sorted,
1801 and exclude_filename_list with section_list.
1802 * ldgram.y (current_file): Delete.
1803 (%union): Add wildcard_list.
1804 (file_NAME_list): Set type to wildcard_list. Build a linked list
1805 rather than calling lang_add_wild for each entry.
1806 (input_section_spec_no_keep): Call lang_add_wild here instead.
1807 * ld.h (struct wildcard_list): Declare.
1808 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1809
b044cda1
CW
18102001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1811
1812 * ldmain.c (main): initialize link_info.pei386_auto_import
1813 * pe-dll.c: new tables for auto-export filtering
1814 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 1815 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
1816 "by hand".
1817
18182001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1819
b6bf44ba
AM
1820 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1821 static variable current_sec (static struct sec *). Add
b044cda1 1822 forward declaration for add_bfd_to_link.
b6bf44ba
AM
1823 (process_def_file): Don't export undefined symbols. Do not
1824 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
1825 with new API.
1826 (pe_walk_relocs_of_symbol): New function.
1827 (generate_reloc): add optional extra debugging
b6bf44ba 1828 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 1829 line in output
b6bf44ba 1830 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
1831 (DATA auto-import support).
1832 (make_singleton_name_thunk): New function.
1833 (make_import_fixup_mark): New function.
1834 (make_import_fixup_entry): New function.
1835 (pe_create_import_fixup): New function.
b6bf44ba 1836 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 1837 char *.
b6bf44ba
AM
1838 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1839 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1840 pe_create_import_fixup.
1841 * emultempl/pe.em: add new options --enable-auto-import,
1842 --disable-auto-import, and --enable-extra-pe-debug.
1843 (make_import_fixup): New function.
1844 (pe_find_data_imports): New function.
1845 (pr_sym): New function.
b6bf44ba 1846 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1847 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1848 CODE.
1849
18502001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 1851
b044cda1
CW
1852 * ld.texinfo: add additional documentation for
1853 --export-all-symbols. Document --out-implib,
1854 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
1855 --dll-search-prefix, --enable-auto-import, and
1856 --disable-auto-import.
b044cda1
CW
1857 * ldint.texinfo: Add detailed documentation on auto-import
1858 implementation.
1859
156e34dd
NC
18602001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1861
1862 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1863 example.
1864
d6231427
AM
18652001-07-24 Alan Modra <amodra@bigpond.net.au>
1866
1867 * Makefile.am: Update dependencies with "make dep-am".
1868 * Makefile.in: Regenerate
1869
e14ec88b
AM
18702001-07-23 Alan Modra <amodra@bigpond.net.au>
1871
1872 * ldcref.c (check_section_sym_xref): New function.
1873 (check_nocrossrefs): Call it.
1874 (check_nocrossref): Interate over h->refs here instead of..
1875 (check_refs): ..here. Pass in the symbol name, section, and bfd
1876 rather than hash_entry pointers.
1877 (struct check_refs_info): Keep symbol name rather than hash entry.
1878 Remove "same".
1879 (check_reloc_refs): Tweak for above changes in check_refs_info.
1880 Only report references to section syms when symname is NULL to
1881 prevent duplicate messages for the same reloc.
1882
1b577b00
NC
18832001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1884
c7d701b0
NC
1885 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1886 available. Do not print NULL trees.
1887 (exp_print_token): Print unknown tokens with values > 126 as
1888 decimal values not ASCII characters.
1889
1545243b
NC
1890 * ldlang.c (lang_leave_overlay): If a region is specified assign
1891 it to all sections inside the overlay unless they have been
1892 assigned to the own, non-default, memory region.
1893
1b577b00
NC
1894 * README: Add header for consistency with other README files.
1895
5030876b
L
18962001-07-14 H.J. Lu <hjl@gnu.org>
1897
1898 * emultempl/elf32.em (output_prev_sec_find): Never return
1899 bfd_abs_section_ptr, bfd_com_section_ptr nor
1900 bfd_und_section_ptr.
1901
18c7a9a5
NC
19022001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1903
22af9fd3 1904 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1905 elf32.em.
1906 * Makefile.in: Regenerate.
1907
9ffecff1
MG
19082001-07-14 matthew green <mrg@eterna.com.au>
1909
1910 * configure.tgt (i386-*-netbsdelf*): New target.
1911 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1912
95500e1c
JJ
19132001-07-13 Jakub Jelinek <jakub@redhat.com>
1914
1915 * emultempl/elf32.em (output_prev_sec_find): New.
1916 (place_orphan): Use it.
1917
e97cb84f
L
19182001-07-11 H.J. Lu <hjl@gnu.org>
1919
1920 * ldmain.c (main): Fix typos in the last change.
1921
7333607e
JJ
19222001-07-11 Jakub Jelinek <jakub@redhat.com>
1923
1924 * ldmain.c (main): Disallow -F and -f without -shared.
1925
d29d80f2
NC
19262001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1927
1928 * emultempl/pe.em (after_open): Check for the output_bfd not
1929 having any coff_data structure allocated to it.
1930
c2a1a436
DB
19312001-07-09 David O'Brien <obrien@FreeBSD.org>
1932
1933 * emultempl/elf32.em: Do not assuming that contents of the buffer
1934 returned from basename function will remain unchanged accross other
1935 function calls.
1936
63653551
L
19372001-07-03 H.J. Lu <hjl@gnu.org>
1938
1939 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1940 2001-07-03. It creates dynamic entries even for static binaries.
1941
d303a449
L
19422001-07-03 Jakub Jelinek <jakub@redhat.com>
1943
1944 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1945 (DYNAMIC): Use it to reserve few dynamic entries for
1946 post-linking tools.
1947
9f22353f
AM
19482001-06-27 Alan Modra <amodra@bigpond.net.au>
1949
1950 * emulparams/hppa64linux.sh: New file.
1951 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1952 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1953 (ehppa64linux.c): Add rule to make it.
1954 Run "make dep-am".
1955 * Makefile.in: Regenerate.
1956
62bf86b4
HPN
19572001-06-21 Hans-Peter Nilsson <hp@axis.com>
1958
1959 * ld.texinfo (Options, -r): Mention restrictions when using
1960 different object formats.
1961
429d935d
HPN
19622001-06-19 Hans-Peter Nilsson <hp@axis.com>
1963
1964 * ldlang.c (lang_check): Emit fatal error if relocatable link
1965 between different object flavours with relocations in input.
1966
cb840a31
L
19672001-06-19 H.J. Lu <hjl@gnu.org>
1968
1969 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1970 (--version-script): Mention the language support.
1971
9bf03acc
L
19722001-06-19 H.J. Lu <hjl@gnu.org>
1973
1974 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1975
c45021f2
NC
19762001-06-18 H.J. Lu <hjl@gnu.org>
1977
b6bf44ba
AM
1978 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1979 (diststuff): Add $(MANS).
1980 * Makefile.in: Regenerated.
c45021f2 1981
b6bf44ba 1982 * ld.1: Removed.
c45021f2 1983
6caa99ab
HPN
19842001-06-18 Hans-Peter Nilsson <hp@axis.com>
1985
605d9b3a
HPN
1986 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1987 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1988 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1989 * ld.h (args_type): Remove member export_dynamic. All users
1990 changed to use struct bfd_link_info member.
1991
6caa99ab
HPN
1992 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1993 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1994 * Makefile.in: Regenerate.
1995
6f9efd97
L
19962001-06-18 H.J. Lu <hjl@gnu.org>
1997
1998 * ldlang.c (init_os): Add the newline to the einfo call.
1999 (lang_check): Likewise.
2000 (lang_do_version_exports_section): Likewise.
2001
5af9fd8b
L
20022001-06-15 H.J. Lu <hjl@gnu.org>
2003
2004 * lexsup.c (parse_args); Save optind to report unrecognized
2005 option.
2006
2a096f04
HPN
20072001-06-15 Hans-Peter Nilsson <hp@axis.com>
2008
7e66c3f5
HPN
2009 * ldlang.c (lang_check): Emit fatal error if relocatable link
2010 between different object flavours.
2011
2a096f04
HPN
2012 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2013 Set new link_info member export_dynamic.
2014 * ldmain.c (main): Initialize new link_info member export_dynamic.
2015
6770ec8c
NC
20162001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2017
2018 * ldlang.c (walk_wild): Only call walk_wild_file if
2019 lookup_name returns something.
b6bf44ba 2020 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2021 (load_symbols): Change to a boolean function.
b6bf44ba 2022 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2023 executable.
2024
8529105a
AM
20252001-06-08 Alan Modra <amodra@bigpond.net.au>
2026
2027 * ldlang.c (record_bfd_errors): Remove.
2028
2029 * emultempl/aix.em: Fix copyright dates.
2030
8f3aa7a0
AJ
20312001-06-07 Andreas Jaeger <aj@suse.de>
2032
2033 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2034 (TEXT_START_ADDR): Likewise.
2035
3277f888
AM
20362001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2037
2038 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2039
3763134d
DD
20402001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2041
2042 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2043
5929ebc0
L
20442001-05-31 H.J. Lu <hjl@gnu.org>
2045
2046 * ldlang.c (open_input_bfds): Don't change the bfd error
2047 handler whilst loading symbols.
2048
c04a062d
NC
20492001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2050
2051 * configure.tgt: Remove i370-mvs architecture, it is not currently
2052 supported.
2053
96fcab3e
L
20542001-05-25 H.J. Lu <hjl@gnu.org>
2055
2056 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2057 like emulparams/aixppc.sh.
2058
db8d4f23
L
20592001-05-25 H.J. Lu <hjl@gnu.org>
2060
2061 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2062 setting of output_filename after bfd_scan_arch.
2063 * emultempl/pe.em: Likewise.
2064
5f642101
L
20652001-05-25 H.J. Lu <hjl@gnu.org>
2066
2067 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2068 like emulparams/aixppc.sh.
2069
2070 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2071 instead of ${srcdir}/emultempl/stringify.sed.
2072
64e9ece0
TW
20732001-05-25 Timothy Wall <twall@oculustech.com>
2074
2075 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2076 output.
64e9ece0 2077
c709b096
AM
20782001-05-25 Alan Modra <amodra@one.net.au>
2079
2080 * configure.host: Replace linuxoldld with linux*oldld.
2081 * configure.tgt: Likewise.
2082
6cbdcc6f
L
20832001-05-24 H.J. Lu <hjl@gnu.org>
2084
2085 * emultempl/stringify.sed: Removed again.
2086
86af25fe
L
20872001-05-24 H.J. Lu <hjl@gnu.org>
2088
2089 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2090 (gld${EMULATION_NAME}_before_parse): Initialize
2091 ldfile_output_architecture, ldfile_output_machine and
2092 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2093 * emultempl/beos.em: Likewise.
2094 * emultempl/elf32.em: Likewise.
2095 * emultempl/linux.em: Likewise.
2096 * emultempl/mipsecoff.em: Likewise.
2097 * emultempl/pe.em: Likewise.
2098 * emultempl/sunos.em: Likewise.
2099
3b1b01cf
TR
21002001-05-24 Tom Rix <trix@redhat.com>
2101
8f3aa7a0 2102 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2103 udate import file format.
2104 (change_symbol_mode) New, same
2105 (is_syscall) New, same
2106 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2107 * emulparams/aixppc64.sh : same
2108 * emulparams/aixrs6.sh : same
2109 * emulparams/ppcmacos.sh : same
2110 * emultempl/aix.em : use strtoull to parse options
2111 * Makefile.am : add eaixppc64 emulation for xcoff64
2112 * Makefile.in : same
2113 * configure.tgt : same
2114
2115 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2116 default data section offset to 0x20000000
3b1b01cf 2117 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2118 loader and debug sections use the currect section offset.
3b1b01cf
TR
2119
2120 * emultempl/aix.em : Add xcoff64 support
2121 Add -binitfini support
8f3aa7a0 2122 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2123 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2124 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2125 sections
2126
2127 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2128
57e6abd2
AO
21292001-05-23 Alexandre Oliva <aoliva@redhat.com>
2130
2131 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2132 variable to avoid non-portable shell construct.
2133
d1cf510e
NC
21342001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2135
2136 * ldmain.c (get_emulation): Add -mips5 command line argument.
2137
506eee22
NC
21382001-05-22 Alexandre Oliva <aoliva@redhat.com>
2139
2140 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2141 (ELF_INTERPRETER_NAME): Define it.
2142 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2143 it.
2144 * configure.tgt (targ_emul, targ_extra_emuls)
2145 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2146 as primary, elf_i386 as extra.
2147 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2148 (eelf_i386_ldso.c): New rule.
2149 * Makefile.in: Rebuilt.
2150
21512001-05-22 Nick Clifton <nickc@redhat.com>
2152
2153 * lexsup.c (ld_options): Allow -I to be an alias for
2154 --dynamic-linker. This is for Solaris compatability.
2155 * ld.texinfo: Document that -I can be used.
2156 * ld.1: Regenerate.
2157
d1778b88
AM
21582001-05-16 Alan Modra <amodra@one.net.au>
2159
2160 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2161 whether an input section is the first one assigned to an output
2162 section.
2163 Assorted formatting fixes.
2164
02649152
DD
21652001-05-14 DJ Delorie <dj@delorie.com>
2166
2167 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2168 * Makefile.in: Ditto.
2169
579f31ac
JJ
21702001-05-11 Jakub Jelinek <jakub@redhat.com>
2171
2172 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2173 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2174 output sections.
2175 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2176
8550eb6e
JJ
21772001-05-11 Jakub Jelinek <jakub@redhat.com>
2178
2179 * ldlang.c (lang_process): Call bfd_merge_sections.
2180
8e5a525c
AM
21812001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2182
2183 * ldgram.y: Fix typo.
2184
1c9acd94
L
21852001-05-03 H.J. Lu <hjl@gnu.org>
2186
2187 * emultempl/elf32.em: Include "libiberty.h".
2188 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2189 basename of the bfd filename.
2190 (gld${EMULATION_NAME}_stat_needed): Likewise.
2191 (gld${EMULATION_NAME}_try_needed): Likewise.
2192 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2193
14fe918e
L
21942001-05-02 H.J. Lu <hjl@gnu.org>
2195
2196 * emultempl/pe.em: Include <ctype.h>.
2197
c7e40348
NC
21982001-05-02 Johan Rydberg <jrydberg@opencores.org>
2199
b6bf44ba 2200 * emulparams/elf32openrisc.sh: New file.
c7e40348 2201
b6bf44ba
AM
2202 * Makefile.am: Add OpenRISC target.
2203 * Makefile.in: Regenerated.
c7e40348 2204
b6bf44ba 2205 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2206
22072001-05-02 Nick Clifton <nickc@redhat.com>
2208
2209 * emultempl/aix.em: Replace buystring with xstrdup.
2210 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2211
d1b2b2dc
L
22122001-05-02 H.J. Lu <hjl@gnu.org>
2213
2214 * ldfile.c: Include "libiberty.h".
2215 * ldlex.l: Likewise.
2216
2217 * ldmisc.c (buystring): Removed.
2218 * ldmisc.h: Likewise.
2219
2220 * ldfile.c: Replace buystring with xstrdup.
2221 * ldlang.c: Likewise.
2222 * ldlex.l: Likewise.
2223 * ldmain.c: Likewise.
2224 * ldmisc.c: Likewise.
2225 * lexsup.c: Likewise.
2226 * mpw-eppcmac.c: Likewise.
2227
35714f2a
AJ
22282001-04-30 Andreas Jaeger <aj@suse.de>
2229
2230 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2231
884fb58e
NC
22322001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2233
b6bf44ba
AM
2234 * ldlang.c (load_symbols): Give emulation a chance
2235 to process unrecognized file before fatal error is
2236 reported, not after.
884fb58e 2237
87748b32
NC
22382001-04-27 Sean McNeil <sean@mcneil.com>
2239
2240 * configure.tgt: Add arm-vxworks target.
2241 * scripttempl/armcoff.sc: Support .text or .data as a section name
2242 prefix.
2243 Define _etext.
35714f2a 2244
7ce691ae
C
22452001-04-13 J.T. Conklin <jtc@redback.com>
2246
2247 * ld.texinfo: Document --fatal-warnings.
2248 * ld.1: Regenerate.
2249
2250 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2251 warnings have been turned into errors.
7ce691ae
C
2252 * lexsup.c (OPTION_WARN_FATAL): Define.
2253 (ld_options): Entry for --fatal-warnings.
2254 (parse_args): Handle OPTION_WARN_FATAL.
2255 * ld.h (ld_config_type): Add fatal_warnings field.
2256
f5fa8ca2
JJ
22572001-04-13 Jakub Jelinek <jakub@redhat.com>
2258
2259 * ldmain.c (main): Default to discard_sec_merge.
2260 * lexsup.c (OPTION_DISCARD_NONE): Define.
2261 (ld_options): Add --discard-none.
2262 (parse_args): Handle OPTION_DISCARD_NONE.
2263 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2264 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2265 all its input sections match.
2266
fdec3cfc
L
22672001-04-05 Steven J. Hill <sjhill@cotw.com>
2268
2269 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2270 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2271 (eelf32ltsmip.c): New target.
2272 (eelf64btsmip.c): Likewise.
2273 (eelf64ltsmip.c): Likewise.
2274 * Makefile.in: Regenerated.
2275
2276 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2277 target.
2278 (mips*-*-linux-gnu*): Likewise.
2279
2280 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2281 MIPS taget.
35714f2a 2282 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2283 target.
2284 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2285 endian target.
2286
589bad82
HPN
22872001-04-05 Hans-Peter Nilsson <hp@axis.com>
2288
2289 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2290 correct value of __Stext here.
2291 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2292 .startup section.
2293
2294 * emulparams/crislinux.sh: Remove FIXME.
2295
94202e16
AM
22962001-04-02 Alan Modra <alan@linuxcare.com.au>
2297
2298 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2299 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2300
1268a053
HPN
23012001-03-27 Hans-Peter Nilsson <hp@axis.com>
2302
2303 * configure.tgt (cris-*-*): Change default emulation to criself.
2304 (cris-*-*aout*): New rule.
2305
d85e9ff7
AM
23062001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2307
2308 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2309 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2310
0879a67a
AJ
23112001-03-26 Andreas Jaeger <aj@suse.de>
2312
2313 * ld.texinfo (Overview): Fix syntax in texi code.
2314
0285c67d
NC
23152001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2316
2317 * ld.texinfo: Put @c man indications to generate the ld man page.
2318 When generating man, define all the variables. Define SEEALSO
2319 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2320 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2321 (ld.1): Generate from ld.texinfo.
2322 * Makefile.in: Regenerate.
2323
c20ec07b
NC
23242001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2325
2326 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2327 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2328
cc5ce052
UD
23292001-03-17 Ulrich Drepper <drepper@redhat.com>
2330
2331 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2332 is an absolute path look only for this file and not along the path.
2333
a1ab1d2a
UD
23342001-03-17 Ulrich Drepper <drepper@redhat.com>
2335
2336 * emultempl/elf32.em (OPTION_GROUP): New macro.
2337 Add new option Bgroup to longopts.
2338 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2339 (gld*_list_options): Add -Bgroup and -z defs.
2340 * ld.1: Document -Bgroup and -z defs.
2341 * ld.texinfo: Likewise.
2342
788fca5a
MM
23432001-03-07 Michael Meissner <meissner@redhat.com>
2344
2345 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2346 with sections created by -fdata-sections.
2347 (.dynbss,.bss): Ditto.
2348
1c7566d1
AM
23492001-03-05 Alan Modra <alan@linuxcare.com.au>
2350
2351 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2352 after_allocation_default, not gld..._before_allocation.
2353
27b7e12d
AM
23542001-02-27 Alan Modra <alan@linuxcare.com.au>
2355
2356 * configure.in (BFD_VERSION): New.
2357 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2358 * configure: Regenerate.
2359 * Makefile.am: Run "make dep-am"
2360 * Makefile.in: Regenerate.
2361
2bc551c7
TW
23622001-02-26 Timothy Wall <twall@cygnus.com>
2363
2364 * emulparams/elf64_aix.sh: Add additional read-only sections;
2365 uncomment lines which are now required.
2366
1276aefa
NC
23672001-02-26 H.J. Lu <hjl@gnu.org>
2368
2369 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2370 that problems can be caught whilst loading symbols.
2371 (record_bfd_errors): New function: Report BFD errors and mark
2372 the executable output as being invalid.
1276aefa 2373
41c49998
TW
23742001-02-22 Timothy Wall <twall@cygnus.com>
2375
2376 * configure.host: Add configuration for ia64-*-aix*.
2377 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2378 Add dependencies for eelf64_aix.c.
2379 * Makefile.in: Regenerate.
2380 * configure.tgt: Add ia64-*-aix* mapping.
2381 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2382 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2383 AIX-specific test.
2384
78f85fd7
L
23852001-02-20 H.J. Lu <hjl@gnu.org>
2386
2387 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2388 false if we found the file.
2389
1ac7e077 23902001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2391
2392 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2393 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2394
e135f41b
NC
23952001-02-18 lars brinkhoff <lars@nocrew.org>
2396
2397 * Makefile.am: Add PDP-11 target.
2398 * configure.tgt: Likewise.
2399 * emulparams/pdp11.sh: New file.
2400
a842aceb
DB
24012001-02-17 David O'Brien <obrien@FreeBSD.org>
2402
2403 * configure.host: Add a generic FreeBSD configuration entry such that
2404 all [modern] FreeBSD systems on all platforms will look the same.
2405
24174db0
L
24062001-02-14 H.J. Lu <hjl@gnu.org>
2407
2408 * configure.tgt: Remove mention of earmelf_linux26.
2409
30c3c13a
RH
24102001-02-13 Richard Henderson <rth@redhat.com>
2411
2412 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2413
b46a87b1
L
24142001-02-13 H.J. Lu <hjl@gnu.org>
2415
2416 * ldexp.h (node_type): Add etree_provided.
2417 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2418 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2419 for etree_provided.
b46a87b1
L
2420 (exp_print_tree): Handle etree_provided.
2421 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2422 etree_provided.
2423
f3988fd9
RH
24242001-02-09 David Mosberger <davidm@hpl.hp.com>
2425
2426 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2427 .IA_64.unwind.* pattern to unwind table section and
2428 .IA_64.unwind_info* pattern to unwind info section.
2429
a85d7ed0
NC
24302001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2431
2432 * Makefile.am: Add linux target for S/390.
2433 * Makefile.in: Likewise.
2434 * configure.host: Likewise.
2435 * configure.tgt: Likewise.
2436 * emulparams/elf64_s390.sh: New file.
2437 * emulparams/elf_s390.sh: New file.
2438
780248c4
JJ
24392001-02-09 Jakub Jelinek <jakub@redhat.com>
2440
2441 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2442 targ_extra_libpath.
2443 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2444
0e2534bd
PB
24452001-02-06 Philip Blundell <philb@gnu.org>
2446
2447 * Makefile.am: Remove mention of earmelf_linux26.
2448 * Makefile.in: Regenerate.
2449
46c1ea57
PB
24502001-02-04 Philip Blundell <philb@gnu.org>
2451
2452 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2453 * emulparams/armelf_linux26.sh: Delete.
2454 * configure.tgt: Remove mention of armelf_linux26 emulation.
2455
0088edd2
NC
24562001-02-01 Nick Clifton <nickc@redhat.com>
2457
2458 * ld.1: Replace occurances of -oformat with --oformat.
2459
02aa14fb
AM
24602001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2461
2462 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2463 load_base is specified.
2464
f813923c
HPN
24652001-01-24 Hans-Peter Nilsson <hp@axis.com>
2466
2467 * emultempl/elf32.em: Correct spelling in comments and listed
2468 options.
2469
c1eb1488
AM
24702001-01-23 Alan Modra <alan@linuxcare.com.au>
2471
2472 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2473 default for the first section of a group of overlay sections.
2474
d9fc3714
AM
24752001-01-22 Alan Modra <alan@linuxcare.com.au>
2476
2477 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2478 * Makefile.in: Regenerate.
2479 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2480 Check for null tool_dir.
2481
6be0ca94
JW
24822001-01-16 Jim Wilson <wilson@redhat.com>
2483
2484 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2485 and IA_64.unwind.info.
2486
b9247304
L
24872001-01-16 H.J. Lu <hjl@gnu.org>
2488
2489 * ldlang.c (lang_check): Merge the private data only if the
2490 input file has contents.
2491
577a0623
AM
24922001-01-14 Alan Modra <alan@linuxcare.com.au>
2493
d952f17a
AM
2494 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2495
ffd6e9de
AM
2496 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2497 enabling search for libmilli. On a relocatable link, make .text
2498 sections unique.
2499 (LDEMUL_AFTER_PARSE): Define.
2500 (hppaelf_finish): Correct spelling of relocatable in comments.
2501
577a0623
AM
2502 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2503 rummage through the script for sections on the unique list.
2504 Correct length of strncmp for ".note".
2505 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2506
2507 * ldlang.c (unique_section_list): New var.
2508 (unique_section_p): New function.
2509 (walk_wild_section): Don't match sections on unique_section_list.
2510 (lang_add_unique): New function.
ffd6e9de 2511 Correct spelling of relocatable in comments.
577a0623
AM
2512
2513 * ldlang.h (struct unique_sections): Declare.
2514 (unique_section_list): Declare.
2515 (unique_section_p): Declare.
2516 (lang_add_unique): Declare.
2517
2518 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2519 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2520
2521 * ld.texinfo (--unique): Update.
2522
b7ed8fad
NC
25232001-01-13 Nick Clifton <nickc@redhat.com>
2524
2525 * lexsup.c (parse_args): Remove spurious white space.
2526
d0398d6a
NC
25272001-01-12 Nick Clifton <nickc@redhat.com>
2528
2529 * lexsup.c (parse_args): Update copyright date.
2530
350fdb00
PB
25312001-01-12 Philip Blundell <pb@futuretv.com>
2532
2533 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2534
60c6797e
KH
25352001-01-10 Kazu Hirata <kazu@hxi.com>
2536
2537 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2538 * scripttempl/h8300h.sc: Fix formatting.
2539 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2540 * scripttempl/h8500.sc: Likewise.
2541 * scripttempl/h8500b.sc: Likewise.
2542 * scripttempl/h8500c.sc: Likewise.
2543 * scripttempl/h8500m.sc: Likewise.
2544 * scripttempl/h8500s.sc: Likewise.
60c6797e 2545
482e8b32
DB
25462000-01-07 David O'Brien <obrien@BSDi.com>
2547
2548 * emultempl/elf32.em: Only perform Linux ld hints processing when
2549 targeting Linux.
2550
d7ed7ca6
PB
25512001-01-07 Philip Blundell <philb@gnu.org>
2552
2553 * ld.texinfo (Bug Reporting): Update email address for reports.
2554
0fc3347a
NC
25552000-12-31 Nick Clifton <nickc@redhat.com>
2556
2557 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2558 options by checking for a return value of '?' not -1.
2559
e4897a32
NC
25602000-12-28 Nick Clifton <nickc@redhat.com>
2561
2562 * lexsup.c (struct ld_option): Add new enum value:
2563 EXACTLY_TWO_DASHES.
2564 (ld_options[]): Change -omagic, -output and -oformat options
2565 to be EXACTLY_TWO_DASHES.
2566 (OUTPUT_COUNT): Use ARRAY_SIZE.
2567 (parse_args): Change parameter 'argc' to unsigned.
2568 Place EXACTLY_TWO_DASHES options into new really_longopts
2569 array.
2570 If getopt_long_only fails, try calling getopt_long using the
2571 really_longopts array.
2572 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2573 TWO_DASHES options.
2574
2575 * ldlex.h: Fix prototype of parse_args.
2576
2577 * ld.texinfo: Document that long options starting with 'o'
2578 must be preceeded by two dashes. Change example of a single
2579 dashed long option from -oformat to -trace-symbol.
2580
1122a5fc
NC
25812000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2582
2583 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2584 (longopts[]): New --no-default-excludes option.
2585 (gld_${EMULATION_NAME}_list_options): Document.
2586 (gld_${EMULATION_NAME}_parse_args): Handle.
2587
037849a9
NC
25882000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2589
2590 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2591 whitespace, it breaks the K&R C preprocessor.
2592
7ec229ce
DD
25932000-12-11 DJ Delorie <dj@redhat.com>
2594
2595 * ld.texinfo: Add notes about --whole-archive and gcc.
2596
b79e8c78
NC
25972000-11-18 Fred Fish <fnf@be.com>
2598
2599 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2600 (ld_options): Entry for --allow-shlib-undefined.
2601 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2602 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2603 to false.
2604 * ld.texinfo: Document new command line switch.
d952f17a 2605
9a8e2505
GK
26062000-12-12 Geoffrey Keating <geoffk@redhat.com>
2607
2608 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2609 .fixup is actually read/write.
2610 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2611 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2612 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2613
3b16e843 26142000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2615
2616 * NEWS: Add note about x86_64 architecture.
2617
93b63cd3
DD
26182000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2619
2620 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2621 Set DWARF2 sections to a VMA of zero.
2622
24f6971a
NC
26232000-12-01 Joel Sherrill <joel@OARcorp.com>
2624
d952f17a 2625 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2626 New targets.
2627 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2628 (sparc*-*-rtems*): Switched from a.out to ELF.
2629
2be3aa03
NC
26302000-11-30 Jan Hubicka <jh@suse.cz>
2631
2632 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2633 (eelf_x86_64.c): New.
2634 * Makefile.in: Regenerate.
2635 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2636 * emulparams/elf_x86_64.sh: New.
2637
8c899858
HPN
26382000-11-30 Hans-Peter Nilsson <hp@axis.com>
2639
2640 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2641 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2642
2643 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2644 merging non-a.out sections into CONSTRUCTING.
2645
e47b9e39
NC
26462000-11-28 Nick Clifton <nickc@redhat.com>
2647
2648 * ld.1 (COPYING): Mention that the GNU Free Documentation
2649 License is present in the sources, but not the output, and
2650 also available from the GNU website.
2651 (GNU Free Documentation License): Comment out this section.
2652
ad95f82a
DB
26532000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2654
2655 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2656 does not use them.
2657
fd89e65f
DB
26582000-11-25 David O'Brien <obrien@FreeBSD.org>
2659
2660 * ld.1: Remove old date so it does not give the impression the manpage
2661 is way out of date.
2662
077b8428
NC
26632000-11-24 Nick Clifton <nickc@redhat.com>
2664
2665 * configure.tgt (xscale-coff): Add target.
2666 (xscale-elf): Add target.
2667
49425d28
NC
26682000-11-24 Fred Fish <fnf@be.com>
2669
d952f17a
AM
2670 * ldmain.c (main): Remove redundant init of config.make_executable
2671 to true.
49425d28 2672
d3480244
RH
26732000-11-15 Richard Henderson <rth@redhat.com>
2674
2675 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2676
1ce7de8b
KH
26772000-11-14 Kazu Hirata <kazu@hxi.com>
2678
2679 * scripttempl/h8300.sc: Fix formatting.
2680 * scripttempl/h8300h.sc: Likewise.
2681 * scripttempl/h8300s.sc: Likewise.
2682
3b16e843 26832000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2684
2685 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2686
2e418547
PB
26872000-11-09 Philip Blundell <pb@futuretv.com>
2688
2689 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2690 around orphan sections whose names can be represented in C.
2691
c940e6fc
JW
26922000-11-07 Jim Wilson <wilson@redhat.com>
2693
2694 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2695 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2696
704c465c
NC
26972000-11-06 Nick Clifton <nickc@redhat.com>
2698
2699 * ld.texinfo: Add GNU Free Documentation License.
2700 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2701 * ld.1: Add GNU Free Documentation License.
704c465c 2702
dca7760f
AM
27032000-11-05 Alan Modra <alan@linuxcare.com.au>
2704
2705 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2706 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2707
2708 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2709 Move 2000-11-02 Makefile.in changes to this file.
2710 * Makefile.in: Regenerate.
2711
40a633d5
NC
27122000-11-03 Nick Clifton <nickc@redhat.com>
2713
2714 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2715 constructors and destructors.
2716 * scripttempl/h8300h.sc: Ditto.
2717 * scripttempl/h8300s.sc: Ditto.
2718 * scripttempl/h8500.sc: Ditto.
2719 * scripttempl/h8500b.sc: Ditto.
2720 * scripttempl/h8500c.sc: Ditto.
2721 * scripttempl/h8500m.sc: Ditto.
2722 * scripttempl/h8500s.sc: Ditto.
2723 * scripttempl/v850.sc: Ditto.
2724 * scripttempl/w65.sc: Ditto.
2725 * scripttempl/z8000.sc: Ditto.
2726
59ff2774
NC
27272000-11-02 Per Lundberg <plundis@chaosdev.org>
2728
2729 * Makefile.in (e_i386_chaos.c): New rule.
2730 (ALL_EMULATIONS): Added e_i386_chaos.o.
2731 * emulparams/elf_i386_chaos.sh: New file.
2732 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2733
645571e1
JJ
27342000-10-20 Jakub Jelinek <jakub@redhat.com>
2735
2736 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2737 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2738 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2739 library path suffix.
2740 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2741
c5975a45
HPN
27422000-10-18 Hans-Peter Nilsson <hp@axis.com>
2743
2744 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2745 for consecutive sections.
2746
ea20a7da
CC
27472000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2748
d952f17a
AM
2749 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2750 options.
2751 * ld.texinfo: Added notes about this new option.
ea20a7da 2752
6e45556a
NC
27532000-10-16 Nick Clifton <nickc@redhat.com>
2754
2755 * emultempl/pe.em (_after_open): Add tests of return values from
2756 bfd functions. Emit appropriate error messages if necessary.
2757
b9a69188
NC
27582000-10-13 Nick Clifton <nickc@redhat.com>
2759
2760 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
2761 local variables - they are not used, but leave in the call to
2762 bfd_canonicalize_symtab.
b9a69188
NC
2763 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2764 pe_dll_search_prefix.
2765
627427de 27662000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 2767
627427de
DD
2768 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2769 (longopts): New --dll-search-prefix option.
2770 (gld_${EMULATION_NAME}_list_options): Document.
2771 (gld_${EMULATION_NAME}_parse_args): Handle.
2772 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2773 dynamically, search for a dll named '<prefix><basename>.dll'
2774 in preference to 'lib<basename>.dll' if --dll-search-prefix
2775 is specified.
2776
24376d1b
AM
27772000-10-12 Alan Modra <alan@linuxcare.com.au>
2778
2779 * ldlang.c (section_already_linked): Set kept_section instead of
2780 sec->comdat->sec.
2781
e47d05ad
KH
27822000-10-10 Kazu Hirata <kazu@hxi.com>
2783
2784 * deffile.h: Fix formatting.
2785 * lexsup.c: Likewise.
2786 * mri.c: Likewise.
2787
23a87948
DD
27882000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2789
2790 * pe-dll.c (make_one): Do not generate code thunk for DATA
2791 exports.
2792 (process_def_file): deduce DATA flag for auto-export sumbols.
2793
86b1cc60
KH
27942000-10-09 Kazu Hirata <kazu@hxi.com>
2795
89cdebba
KH
2796 * ld.h: Fix formatting.
2797 * ldcref.c: Likewise.
2798 * ldctor.h: Likewise.
2799 * ldemul.c: Likewise.
2800 * ldemul.h: Likewise.
2801 * ldexp.c: Likewise.
2802 * ldexp.h: Likewise.
2803 * ldfile.c: Likewise.
2804 * ldfile.h: Likewise.
2805 * ldlang.c: Likewise.
2806 * ldlang.h: Likewise.
2807 * ldmain.c: Likewise.
7bfd51a3
KH
2808 * pe-dll.c: Likewise.
2809
2810 * pe-dll.c: Revert some formatting fixes.
86b1cc60 2811
d643799d
KH
28122000-10-08 Kazu Hirata <kazu@hxi.com>
2813
2814 * pe-dll.c: Fix formatting.
2815
08da4cac
KH
28162000-10-05 Kazu Hirata <kazu@hxi.com>
2817
2818 * ldlang.c: Fix formatting.
2819
c2a94a7a
DD
28202000-10-03 DJ Delorie <dj@redhat.com>
2821
2822 * pe-dll.c (fill_edata): initialize entire block
2823 (make_one): fill in correct section.
2824
8c95a62e
KH
28252000-10-03 Kazu Hirata <kazu@hxi.com>
2826
2827 * ldexp.c: Fix formatting.
2828
486e80e2
DD
28292000-10-02 DJ Delorie <dj@redhat.com>
2830
2831 * emultempl/pe.em (gld_*_after_open): detect case where there two
2832 import libraries for same dll; rename one to ensure proper link
2833 order.
2834
2835 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2836 typo
2837 (generate_edata): fix typo
2838
24dd9f75
HPN
28392000-09-29 Hans-Peter Nilsson <hp@axis.com>
2840
2841 * scripttempl/crisaout.sc (ENTRY): Now __start.
2842 (.text): Add default setting for __start.
2843 Remove CONSTRUCTORS handling.
2844 (/DISCARD/): Add .gnu.warning.*.
2845 * emulparams/crislinux.sh (ENTRY): Now __start.
2846 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2847 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2848 (ENTRY): Now __start.
2849 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2850 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2851
4de2d33d
KH
28522000-09-29 Kazu Hirata <kazu@hxi.com>
2853
5cc18311
KH
2854 * deffile.h: Fix formatting.
2855 * ld.h: Likewise.
2856 * ldcref.c: Likewise.
4de2d33d 2857 * ldctor.c: Likewise.
5cc18311 2858 * ldctor.h: Likewise.
4de2d33d 2859 * ldemul.c: Likewise.
5cc18311 2860 * ldemul.h: Likewise.
4de2d33d 2861 * ldexp.c: Likewise.
5cc18311 2862 * ldexp.h: Likewise.
4de2d33d 2863 * ldfile.c: Likewise.
5cc18311 2864 * ldfile.h: Likewise.
4de2d33d 2865 * ldlang.c: Likewise.
5cc18311
KH
2866 * ldlang.h: Likewise.
2867 * lexsup.c: Likewise.
2868 * mri.c: Likewise.
2869 * pe-dll.c: Likewise.
4de2d33d 2870
45b1f63c
DD
28712000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2872
2873 * pe-dll.c (process_def_file): Uninitialized data wasn't
2874 exported with --export-all-symbols switch.
d952f17a 2875
45b1f63c
DD
28762000-09-28 DJ Delorie <dj@redhat.com>
2877
2878 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2879 noname work properly.
2880
47d89dba
AM
28812000-09-28 Alan Modra <alan@linuxcare.com.au>
2882
2883 * ld.texinfo (HPPA ELF32): New section.
2884
2885 * emultempl/hppaelf.em (group_size): New.
2886 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2887 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2888 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2889 options to prevent abbreviations matching.
2890 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2891 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2892
36bdbeec
NC
28932000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2894
2895 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2896 on the m68*-*-elf target. Make it support COFF input objects.
2897
6d5e62f8
KH
28982000-09-21 Kazu Hirata <kazu@hxi.com>
2899
2900 * ldmain.c: Fix formatting.
2901 * ldmisc.c: Likewise.
2902 * ldver.c: Likewise.
2903 * ldwrite.c: Likewise.
2904
e2eb67d9
AM
29052000-09-21 Alan Modra <alan@linuxcare.com.au>
2906
2907 * ldwrite.c (clone_section): Silence gcc warnings.
2908
b3ea3584
AM
29092000-09-20 Alan Modra <alan@linuxcare.com.au>
2910
2911 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2912 out of memory failure.
2913
2914 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2915 (clone_section): Handle out of memory failures. Rename var to
2916 avoid c++ reserved word.
2917
25f72752
AM
29182000-09-18 Alan Modra <alan@linuxcare.com.au>
2919
2920 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2921 stub_name param to stub_sec_name.
2922 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2923
0752970e
NC
29242000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2925
2926 * emultempl/m68kelf.em: New file.
2927 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2928 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2929 * Makefile.in: Regenerate.
2930
92b7e9d8
AM
29312000-09-15 Alan Modra <alan@linuxcare.com.au>
2932
2933 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2934 only as needed.
2935
9b14b192
NC
29362000-09-13 Nick Clifton <nickc@redhat.com>
2937
2938 * ldmain.c (multiple_definition): Disable relaxation if
2939 multiple symbol definitions are encountered - otherwise the
2940 linker could abort with an assertion failure.
2941
891fa266
NC
29422000-09-10 Nick Clifton <nickc@redhat.com>
2943
2944 * mri.c: Fix formatting.
2945
5d64ca4e
L
29462000-09-07 H.J. Lu <hjl@gnu.org>
2947
2948 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2949 * configure: Rebuild.
2950
dd94604f
L
29512000-09-07 H.J. Lu <hjl@gnu.org>
2952
2953 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2954 * Makefile.in: Rebuild.
2955
71bfc0ae
AM
29562000-09-07 Alan Modra <alan@linuxcare.com.au>
2957
2958 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2959 broken list handling. Create __start_SECNAME and __stop_SECNAME
2960 when no place-holder. Add some comments. Test both SEC_CODE and
2961 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 2962 Handle case where no output section statement created.
71bfc0ae 2963
4a428502
AO
29642000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2965
2966 * configure.tgt (sh-*-linux*): Added.
2967 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2968 * Makefile.in: Rebuilt.
2969 * emulparams/shelf_linux.sh: New file.
2970 * emulparams/shlelf_linux.sh: New file.
2971
f9989030
AM
29722000-09-06 Alan Modra <alan@linuxcare.com.au>
2973
2974 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2975 try shuffling sections when the orphan happens to be the place
2976 holder. Keep count of unique section names generated so we speed
2977 the search for a new name.
2978
58cccadb
AO
29792000-09-06 Alexandre Oliva <aoliva@redhat.com>
2980
2981 * configure: Rebuilt with new libtool.m4.
2982
5b343f5a
NC
29832000-09-05 Nick Clifton <nickc@redhat.com>
2984
2985 * Makefile.in: Regenerate.
2986 * aclocal.m4: Regenerate.
2987 * configure: Regenerate.
2988 * config.in: Regenerate.
2989 * po/ld.pot: Regenerate.
2990
2991 * ldint.texinfo: Remove CVS revision marker - it foils local
2992 comparisons.
2993
2994 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 2995
a854a4a7
AM
29962000-09-05 Alan Modra <alan@linuxcare.com.au>
2997
3231d22e
AM
2998 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2999 to stub section flags.
3000 (hppa_for_each_input_file_wrapper): New.
3001 (hppa_lang_for_each_input_file): New.
3002 (lang_for_each_input_file): Define to call above.
3003 (multi_subspace): New.
3004 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3005 (PARSE_AND_LIST_PROLOGUE): Define.
3006 (PARSE_AND_LIST_LONGOPTS): Define.
3007 (PARSE_AND_LIST_OPTIONS): Define.
3008 (PARSE_AND_LIST_ARGS_CASES): Define.
3009 (hppaelf_finish): Call elf32_hppa_set_gp.
3010 (hppaelf_set_output_arch): Remove.
3011 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3012
3013 * emulparams/hppalinux.sh (ELFSIZE): Define.
3014 (MACHINE): Define.
3015 (OTHER_READONLY_SECTIONS): Define.
3016 (DATA_PLT): Define.
3017 (GENERATE_SHLIB_SCRIPT): Define.
3018
5f992e62
AM
3019 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3020 to const throughout. Change `void *' to `PTR' throughout.
3021 (lang_memory_default): Function is local to file, add `static'.
3022
3023 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3024 (ehppalinux.c): Likewise.
3025 (earmelf.c): Likewise.
3026 (earmelf_linux.c): Likewise.
3027 (earmelf_linux26.c): Likewise.
3028 * Makefile.in: Regenerate.
3029
a854a4a7
AM
3030 * ld.h (ld_config_type): Add unique_orphan_sections.
3031 * lexsup.c (OPTION_UNIQUE): Define.
3032 (ld_options): Add "--unique".
3033 (parse_args): Handle it.
3034 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3035 search for an existing output section if unique_orphan_sections is
3036 set. Make use of bfd_get_unique_section_name rather than
3037 duplicating code here.
3038 * ld.texinfo: Describe --unique.
3039
3040 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3041 optional arg to split-by-file.
3042 (parse_args): Handle them.
3043 * ld.texinfo: Update description of these options.
3044 * ldwrite.c (clone_section): Pass in the section name. Replace
3045 local code with bfd_get_unique_section_name.
3046 (split_sections): Tidy code and comments. Use a list traversal
3047 more appropriate to the list construction. Handle cooked section
3048 sizes. Split when split_by_reloc reached rather than exceeded.
3049 Track section size and split when split_by_file reached. Fix
3050 link_order_tail (even though it's not used).
3051 (ldwrite): Modify condition for calling split_sections to suit
3052 changed split_by_reloc and split_by_file.
3053 * ldmain.c (main): Init config.split_by_reloc and
3054 config.split_by_file to -1.
3055 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3056 Change split_by_file to bfd_size_type.
3057
18e03609
NC
30582000-09-02 Nick Clifton <nickc@redhat.com>
3059
3060 * configure.in: Increase version number to 2.10.91.
3061 * NEWS: Mention new ability to support removal of duplicate DWARF2
3062 debug information.
3063 * configure: Regenerate.
3064 * aclocal.m4: Regenerate.
3065 * config.in: Regenerate.
3066
3a9d486c
NC
30672000-09-02 Daniel Berlin <dberlin@redhat.com>
3068
3069 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3070 sections.
a2b64bed 3071 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3072 * scripttempl/elfd10v.sc: Ditto.
3073 * scripttempl/elfd30v.sc: Ditto.
3074 * scripttempl/elfi370.sc: Ditto.
3075 * scripttempl/elfm68hc11.sc: Ditto.
3076 * scripttempl/elfm68hc12.sc: Ditto.
3077 * scripttempl/elfi386beos.sc: Ditto.
3078 * scripttempl/v850.sc: Ditto.
50bbae35 3079
ac48eca1
AO
30802000-08-31 Alexandre Oliva <aoliva@redhat.com>
3081
3082 * acinclude.m4: Include libtool and gettext macros from the
3083 top level.
3084 * aclocal.m4, configure: Rebuilt.
3085
c13b1b77
NC
30862000-08-25 Nick Clifton <nickc@redhat.com>
3087
3088 * ldlang.c (open_output): When choosing the target for a
3089 particular endianness, do nothing if the target is not
3090 supported.
3091
dcb0bd0e
L
30922000-08-25 H.J. Lu <hjl@gnu.org>
3093
3094 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3095 check -rpath nor LD_RUN_PATH for cross link.
3096 * ld.texinfo: Document the change.
3097
5bcac8a4
HPN
30982000-08-24 Hans-Peter Nilsson <hp@axis.com>
3099
3100 * NEWS: Mention support for CRIS.
3101
6dd8c765
L
31022000-08-23 H.J. Lu <hjl@gnu.org>
3103
3104 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3105 the current runpath list from bfd_elf_get_runpath_list ()
3106 before search.
3107
ec4eb78a
L
31082000-08-22 H.J. Lu <hjl@gnu.org>
3109
3110 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3111 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3112 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3113 trace_file_tries is non-zero.
3114 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3115 if trace_file_tries is non-zero.
3116
3117 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3118 * NEWS: Mention it.
ec4eb78a 3119
22b36938
JE
31202000-08-14 Jason Eckhardt <jle@cygnus.com>
3121
3122 * NEWS: Mention i860 support.
3123
d73e9da0
AS
31242000-08-14 Andreas Schwab <schwab@suse.de>
3125
3126 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3127 syntax.
d73e9da0 3128
9ac4db9c
GK
31292000-08-10 Geoff Keating <geoffk@cygnus.com>
3130
3131 * scripttempl/elf.sc: Add a comment giving the correspondence
3132 between sections, per-datum sections, and linkonce sections. Make
3133 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3134 .sbss2.
3135
165589e4
JE
31362000-08-10 Jason Eckhardt <jle@cygnus.com>
3137
3138 * emulparams/elf32_i860.sh: New file.
3139 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3140 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3141 (eelf32_i860.c): New rule.
3142 * Makefile.in: Regenerate.
3143
345a835d
NC
31442000-08-10 Nick Clifton <nickc@cygnus.com>
3145
3146 * emulparams/mipspe.sh (ENTRY): Add definition.
3147
e374f1d9
NC
31482000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3149
3150 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3151 in error message.
3152
236d5abf
NC
31532000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3154
3155 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3156 the final size of .bss section.
3157 * scripttempl/elfm68hc12.sc: Likewise.
3158
4b209b22
AM
31592000-08-04 Alan Modra <alan@linuxcare.com.au>
3160
3161 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3162 gld${EMULATION_NAME}_parse_args for consistency. Combine
3163 lastoptind and prevoptind vars, and keep track of last optind.
3164 (gld_${EMULATION_NAME}_list_options): Rename to
3165 gld${EMULATION_NAME}_list_options.
3166
28423a68
AM
31672000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3168
3169 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3170 (i586-sco-sysv5uw7.1.0).
3171
b2009ff7
L
31722000-07-27 H.J. Lu <hjl@gnu.org>
3173
3174 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3175 (PARSE_AND_LIST_PROLOGUE): New.
3176 (PARSE_AND_LIST_LONGOPTS): Likewise.
3177 (PARSE_AND_LIST_OPTIONS): Likewise.
3178 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3179 (PARSE_AND_LIST_EPILOGUE): Likewise.
3180
04925e1e
AM
31812000-07-28 Alan Modra <alan@linuxcare.com.au>
3182
41392f03
AM
3183 * emultempl/armelf.em: Elide functions common to elf32.em,
3184 ie. most of the file.
3185 (arm_elf_after_open): New. Do arm specific things then call
3186 gld${EMULATION_NAME}_after_open.
3187 (arm_elf_before_allocation): New. Call
3188 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3189 (PARSE_AND_LIST_PROLOGUE): Define.
3190 (PARSE_AND_LIST_SHORTOPTS): Define.
3191 (PARSE_AND_LIST_LONGOPTS): Define.
3192 (PARSE_AND_LIST_OPTIONS): Define.
3193 (PARSE_AND_LIST_ARGS_CASES): Define.
3194 (LDEMUL_AFTER_OPEN): Define.
3195 (LDEMUL_BEFORE_ALLOCATION): Define.
3196 (LDEMUL_BEFORE_PARSE): Define.
3197 (LDEMUL_FINISH): Define.
3198
3199 * emultempl/hppaelf.em: Similarly zap most of this file.
3200 (hppaelf_add_stub_section): Prototype.
3201 (hppaelf_layaout_sections_again): Prototype.
3202 (hook_in_stub): Prototype.
3203 (LDEMUL_SET_OUTPUT_ARCH): Define.
3204 (LDEMUL_FINISH): Define.
3205 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3206
3207 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3208 (EXTRA_EM_FILE): New.
3209 * emulparams/armelf_linux.sh: Likewise.
3210 * emulparams/armelf_linux26.sh: Likewise.
3211 * emulparams/hppalinux.sh: Likewise.
3212 * emulparams/hppaelf.sh: Likewise.
3213 (NOP): Define.
3214
3215 * emultempl/elf32.em: Fix formatting.
3216 (EXTRA_EM_FILE): Source it.
3217 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3218 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3219 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3220 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3221 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3222 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3223 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3224 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3225 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3226 allow functions in this file to be overridden.
3227 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3228
3229 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3230
04925e1e
AM
3231 * emultempl/elf32.em: Reorganize file.
3232
88cdf297
NC
32332000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3234
3235 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3236 specific option to fit 64-bit executable in the lower
3237 31-bit address range. This is done by changing start
3238 address of .interp (the very first section of executable)
3239 and then setting EF_ALPHA_32BIT elf header flag.
3240
20bccb34
NC
32412000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3242
3243 * emultempl/m68kcoff.em: New file.
3244 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3245 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3246 generic.em.
3247 * Makefile.in: Regenerate.
3248
699845ef
L
32492000-07-20 H.J. Lu <hjl@gnu.org>
3250
3251 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3252 and "disable-new-dtags" to stop getopt from treating -d/-e as
3253 abbreviations for these options.
3254
6c1439be
L
32552000-07-20 H.J. Lu <hjl@gnu.org>
3256
3257 * ld.texinfo: Add documentation for --disable-new-dtags and
3258 --enable-new-dtags.
3259
3260 * ldmain.c (main): Initialize link_info.new_dtags to false.
3261
3262 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3263 --disable-new-dtags and --enable-new-dtags.
3264 (gld_${EMULATION_NAME}_list_options): Likewise.
3265
28c309a2
NC
32662000-07-05 Kenneth Block <krblock@computer.org>
3267
a2b64bed
NC
3268 * lexsup.c: Add optional style to demangle switch
3269 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3270
9d06555c
HPN
32712000-07-20 Hans-Peter Nilsson <hp@axis.com>
3272
3273 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3274 ecrislinux.o.
3275 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3276 Regenerate dependencies.
3277 * Makefile.in: Rebuild.
3278 * configure.tgt (cris-*-*): New target.
3279 * emulparams/crisaout.sh, emulparams/criself.sh,
3280 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3281 * po/POTFILES.in, po/ld.pot: Regenerate.
3282
19e3be22
L
32832000-07-20 H.J. Lu <hjl@gnu.org>
3284
3285 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3286 Print out ignored -z options.
3287
e0ee487b
L
32882000-07-19 H.J. Lu <hjl@gnu.org>
3289
19e3be22
L
3290 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3291 (PARSE_AND_LIST_PROLOGUE): New.
3292 (PARSE_AND_LIST_LONGOPTS): Likewise.
3293 (PARSE_AND_LIST_OPTIONS): Likewise.
3294 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3295
3296 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3297
3298 * lexsup.c (ld_options): Comment out 'z'.
3299 (parse_args): Likewise.
3300
3301 * emultempl/elf32.em: Include "elf/common.h".
3302 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3303 options.
3304 (gld_${EMULATION_NAME}_list_options): Likewise.
3305
3306 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3307
49e56c49
L
33082000-07-19 H.J. Lu <hjl@gnu.org>
3309
3310 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3311 bfd_elf_set_dt_needed_soname ().
3312
9d68bc82
DD
33132000-07-18 DJ Delorie <dj@cygnus.com>
3314
3315 * pe-dll.c (pe_dll_id_target): check object target name also
3316
53db15ed
HPN
33172000-07-18 Hans-Peter Nilsson <hp@axis.com>
3318
3319 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3320 ${INIT_END} if relocating.
3321 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3322
0ad8cf4c
DD
33232000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3324
a2b64bed 3325 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3326 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3327 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3328 errors introduced by the old dynamic lib search order.
3329
874c8c99
DD
33302000-07-17 DJ Delorie <dj@cygnus.com>
3331
3332 * pe-dll.c (process_def_file): auto-export data items also
3333 (pe_process_import_defs): also see if _imp_ form needed
3334
5b4cf3f4
DD
33352000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3336
3337 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3338 for dll import libraries
3339
062739d1
NC
33402000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3341
3342 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3343 gcc 2.95.2 and later.
062739d1 3344
1c64c4ed
NC
33452000-07-11 Kazu Hirata <kazu@hxi.com>
3346
50bbae35
AM
3347 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3348 message.
1c64c4ed 3349
b71e2778
AM
33502000-07-10 Alan Modra <alan@linuxcare.com.au>
3351
3352 * ldemul.h (struct lang_input_statement_struct): Remove forward
3353 declaration.
3354 (struct search_dirs): Likewise.
3355 * ldfile.h (struct lang_input_statement_struct): Likewise.
3356 Protect file from multiple inclusion.
3357 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3358 declaration from macro to file scope.
3359
3360 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3361 * ldgram.y: Likewise here.
3362 * ldlang.c: And here.
3363 * ldmain.c: And here.
3364 * mpw-elfmips.c: And here.
3365 * mpw-eppcmac.c: And here.
3366 * emultempl/aix.em: And here.
3367 * emultempl/armcoff.em: And here.
3368 * emultempl/armelf.em: And here.
3369 * emultempl/armelf_oabi.em: And here.
3370 * emultempl/beos.em: And here.
3371 * emultempl/elf32.em: And here.
3372 * emultempl/hppaelf.em: And here.
3373 * emultempl/linux.em: And here.
3374 * emultempl/lnk960.em: And here.
3375 * emultempl/pe.em: And here.
3376 * emultempl/sunos.em: And here.
3377 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3378 * mpw-idtmips.c: Ditto.
3379 * emultempl/generic.em: Ditto.
3380 * emultempl/gld960.em: Ditto.
3381 * emultempl/gld960c.em: Ditto.
3382 * emultempl/mipsecoff.em: Ditto.
3383 * emultempl/ticoff.em: Ditto.
3384 * emultempl/vanilla.em: Ditto.
3385
3386 * pe-dll.c: Include ldfile.h
3387 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3388
3389 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3390 arguments to bfd_elf32_size_dynamic_sections call.
3391 (gldelf32ebmip_place_orphan): Add missing arguments to
3392 lang_leave_output_section_statement call.
3393
2ef53d66
L
33942000-07-10 H.J. Lu <hjl@gnu.org>
3395
3396 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3397 DLL_SUPPORT.
3398 (strhash): Likewise.
3399 (compute_dll_image_base): Likewise.
3400 (pe_undef_found_sym): Likewise.
3401 (pe_undef_cdecl_match): Likewise.
3402 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3403 argument "arch" with ATTRIBUTE_UNUSED.
3404
9a8cbb09
AM
34052000-07-10 Alan Modra <alan@linuxcare.com.au>
3406
3407 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3408
3409 From Ryan Bradetich <rbradetich@uswest.net>
3410 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3411
4900fc06
AM
34122000-07-09 Alan Modra <alan@linuxcare.com.au>
3413
3414 Changes to create multiple linker stubs, positioned immediately
3415 before the section where they are required.
3416 * emultempl/hppaelf.em: Include elf32-hppa.h.
3417 (stub_sec, file_chain): Delete.
3418 (hppaelf_create_output_section_statements): Don't make a stub
3419 section here.
3420 (hook_stub_info): New struct.
3421 (hook_in_stub): New function.
3422 (hppaelf_add_stub_section): New function.
3423 (hppaelf_finish): Do nothing for relocateable links. Modify the
3424 call to elf32_hppa_size_stubs. Move code for updating section
3425 layout from here...
3426 (hppaelf_layaout_sections_again): ..to here, a new function.
3427
3428 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3429 broken list handling. Pass in a pointer to the list.
3430 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3431 for above changes.
3432 (hppaelf_before_parse): Prototype.
3433 (hppaelf_set_output_arch): Prototype.
3434 (hppaelf_create_output_section_statements): Prototype.
3435 (hppaelf_delete_padding_statements): Prototype.
3436 (hppaelf_finish): Prototype.
3437
3438 Merge from elf32.em
3439 * emultempl/hppaelf.em: Include ctype.h.
3440 (struct orphan_save): New.
3441 (gld${EMULATION_NAME}_place_orphan): New.
3442 (output_rel_find): New.
3443 (hppaelf_get_script): Update from elf32.em.
3444 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3445 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3446 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3447
3448 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3449 ehppalinux.o, sort it. Regenerate dependencies.
3450 (ehppalinux.c): Depend on hppaelf.em
3451 * Makefile.in: Regenerate.
3452
3453 * configure.tgt: targ_emul=hppalinux for hppa*linux
3454
3455 * emulparams/hppalinux.sh: New.
3456 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3457
227aeb07
AM
34582000-07-08 Alan Modra <alan@linuxcare.com.au>
3459
3460 * lexsup.c (parse_args): Copy section name.
3461
28609fd4 34622000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3463
2ef53d66 3464 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3465 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3466 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3467 static lib (libfoo.a) if none of the above are found.
3468
5f577f7d
DD
34692000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3470
50bbae35 3471 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3472 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3473 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3474 (gld_${EMULATION_NAME}_parse): Handle.
3475 (strhash): New static function.
50bbae35 3476 (compute_dll_image_base): New static function.
5f577f7d
DD
3477 (gld_${EMULATION_NAME}_set_symbols): Use.
3478
9a8cbb09 34792000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3480
3481 * MAINTAINERS: new
3482
3548145d 34832000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3484
3485 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3486 * emulparams/elf32btsmip.sh: New file.
3487 * Makefile.am: Add traditional mips target.
3488 * Makefile.in: Rebuild.
3489
67798033
L
34902000-07-01 H.J. Lu <hjl@gnu.org>
3491
3492 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3493 automake to use YLWRAP.
3494 * Makefile.in: Rebuild.
3495
0bdaf48b
AM
34962000-07-01 Alan Modra <alan@linuxcare.com.au>
3497
3498 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3499 (CLEANFILES): Add DEPA.
3500 * Makefile.in: Regenerate.
3501
c9e769c2
TW
35022000-06-30 Timothy Wall <twall@ppc>
3503
3504 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3505 the page in the upper octet of the address.
3506
65aa24b6
NC
35072000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3508
3509 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3510
4667035e
AM
35112000-06-24 Alan Modra <alan@linuxcare.com.au>
3512
3513 * NEWS: arm-elf does --gc-sections too.
3514
1581f8c9
AM
35152000-06-22 Alan Modra <alan@linuxcare.com.au>
3516
3517 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3518 find one.
3519 * Makefile.in: Regenerate.
3520
01580992
L
35212000-06-21 H.J. Lu <hjl@gnu.org>
3522
3523 * Makefile.am: Rebuild dependency.
3524 * Makefile.in: Rebuild.
3525
bbeb2e03
L
35262000-06-20 H.J. Lu <hjl@gnu.org>
3527
3528 * Makefile.am: Rebuild dependency.
3529 * Makefile.in: Rebuild.
3530
74459f0e
TW
35312000-06-20 Timothy Wall <twall@cygnus.com>
3532
3533 * scripttempl/tic54xcoff.sc: New.
3534 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3535 * gen-doc.texi: Add flag for TI COFF.
3536 * ld.texinfo: Add documentation for TI COFF handling switches.
3537 * emultempl/ticoff.em: New. TI COFF handling.
3538 * configure.tgt: Add tic54x target.
3539 * Makefile.am: Add tic54x target.
3540 * Makefile.in: Ditto.
3541
2ab47eed
AM
35422000-06-20 Alan Modra <alan@linuxcare.com.au>
3543
3544 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3545 checking for backslashes.
3546
919e4093
AM
35472000-06-19 Alan Modra <alan@linuxcare.com.au>
3548
3549 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3550
987fd5b4
AM
35512000-06-18 Alan Modra <alan@linuxcare.com.au>
3552
3553 * NEWS: Update list of targets supporting --gc-sections.
3554
3555 * scripttempl/elf.sc: KEEP .eh_frame contents.
3556 * scripttempl/elfd30v.sc: Same here.
3557
60bcf0fa
NC
35582000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3559
3560 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3561 and m68hc11 (elf).
3562 * Makefile.in: Rebuild.
3563 * configure.tgt: Recognize m68hc12 and m68hc11.
3564 * scripttempl/elfm68hc12.sc: New file.
3565 * emulparams/m68hc12elfb: New emulation.
3566 * emulparams/m68hc12elf: New emulation.
3567 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3568 (includes a memory.x script to define the ROM and RAM banks).
3569 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3570 New configuration files for support of Motorola 68hc11
3571
c7c54483
AM
35722000-06-15 Alan Modra <alan@linuxcare.com.au>
3573
3574 * ldmain.c (main): Only change SEC_READONLY for final link.
3575
bcef29e6
L
35762000-06-13 H.J. Lu <hjl@gnu.org>
3577
3578 * configure: Regenerate.
3579
946efd95
DB
35802000-06-08 David O'Brien <obrien@FreeBSD.org>
3581
3582 * configure.in (VERSION): Update to show this is the CVS mainline.
3583
57a6fd07
DB
35842000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3585
3586 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3587 input objects to be ECOFF.
3588 (check_sections): einfo takes %B, not %P, to print a BFD name.
3589
e06cae36
L
35902000-06-05 Michael Matz <matz@ifh.de>
3591
3592 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3593 version scripts.
e06cae36 3594
d952f17a 3595 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3596
2f0b56c0
DC
35972000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3598
3599 * emulparams/avr1200.sh (STACK): Define as 0.
3600 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3601 * emulparams/avr4433.sh (STACK): Likewise.
3602 * emulparams/avr44x4.sh (STACK): Likewise.
3603 * emulparams/avr85xx.sh (STACK): Likewise.
3604 * emulparams/avrmega103.sh (STACK): Likewise.
3605 * emulparams/avrmega161.sh (STACK): Likewise.
3606 * emulparams/avrmega603.sh (STACK): Likewise.
3607 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3608 (__stack): Define from ${STACK} for main().
3609
2114f57b
AM
36102000-05-26 Alan Modra <alan@linuxcare.com.au>
3611
3612 * Makefile.am: Update dependencies with "make dep-am"
3613 * Makefile.in: Regenerate.
3614
5af11cab
AM
36152000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3616
3617 * ldmain.c: Include filenames.h.
3618 (set_scripts_dir): Support backslashes in program name.
3619
1f0df59a
NC
36202000-05-22 Igor Shevlyakov <igor@windriver.com>
3621
3622 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3623 read-only, don't forget to reset SEC_READONLY because it
3624 could be already set.
1f0df59a 3625
176355da
NC
36262000-05-22 Thomas de Lellis <tdel@windriver.com>
3627
50bbae35
AM
3628 * ld.1: Add documentation for new command line option:
3629 --section-start <sectionname>=<sectionorg>
3630 This is a generic version of -Ttext etc. which accepts
3631 any section name as a parameter instead of just text/data/
3632 bss.
3633 * ld.texinfo: More docs.
3634 * NEWS: More docs.
3635 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3636 (ld_options): Add new option.
50bbae35 3637
8c5ff972
L
36382000-05-18 H.J. Lu <hjl@gnu.org>
3639
3640 * lexsup.c (parse_args): `i' == `r', not `q'.
3641
3b16e843 36422000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3643
3644 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3645
a712da20
NC
36462000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3647 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3648
a712da20
NC
3649 Add support for '-q' == '--emit-relocs' switch.
3650 * ldmain.c (main): Default to false.
3651 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3652 * NEWS: Describe the emitrelocations switch.
3653 * ld.texinfo: Describe the emitrelocations switch.
3654
690a460e
NC
36552000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3656
a2b64bed 3657 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3658 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3659 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3660 link options.
50bbae35 3661
c2f1343c
AM
36622000-05-15 David O'Brien <obrien@FreeBSD.org>
3663
3664 * lexsup.c (parse_args): Update the year in the copyright notice.
3665
897083bd
AM
36662000-05-13 Alan Modra <alan@linuxcare.com.au>
3667
3668 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3669 Replace defines with those from intl/libgettext.h to quieten gcc
3670 warnings.
3671
cd4c806a
L
36722000-05-10 H.J. Lu <hjl@gnu.org>
3673
3674 * ldlang.c (open_input_bfds): Don't load the same file within
3675 a group again if the whole archive has been loaded already.
3676
93697284
AM
36772000-05-03 Alan Modra <alan@linuxcare.com.au>
3678
3679 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3680 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3681 strtoul.
3682
3b16e843 36832000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3684
99a4150f 3685 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3686
ebd6fc29
JW
3687 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3688 host "ia64-*-linux-gnu*".
3689
a1934524
AM
36902000-04-29 Andreas Jaeger <aj@suse.de>
3691
3692 * ld.h: Correctly check GCC version.
3693
3b16e843 36942000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3695
3696 * Makefile.am: Add PA64 support. Add missing dependencies for
3697 PA32 elf support.
3698 * Makefile.in: Rebuilt.
3699 * configure.tgt: Add PA64 support (currently disabled).
3700
aea4bd9d
AM
37012000-04-25 Alan Modra <alan@linuxcare.com.au>
3702
3703 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3704 (output_rel_find): New function.
3705 (hold_section, hold_use): Delete.
3706 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3707 hold_interp): Make local to place_orphan.
3708 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3709 rather than place_section to find possible previous use of orphan.
3710 Similarly find the place-holder output sections. Use returned
3711 value from lang_enter_output_section_statement rather than calling
3712 lang_output_section_statement_lookup.
3713 * emultempl/armelf.em: Same here.
3714 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3715
3716 * ldlang.c (lang_enter_output_section_statement): Return output
3717 section statement.
3718 * ldlang.h (lang_enter_output_section_statement): Change
3719 declaration too.
3720
3721 * ldlang.h (lang_output_section_statement): Export it.
3722 * ldlang.c (lang_output_section_statement): Ditto.
3723
2b5fc1f5
NC
37242000-04-24 Nick Clifton <nickc@cygnus.com>
3725
3726 * ld.texinfo (Output Section Data): Add note that section data
3727 commands cannot appear outside of section directives.
3728
d8475ff6
JL
37292000-04-2 Matthew Green <mrg@cygnus.com>
3730
3731 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3732
3b16e843
NC
37332000-04-21 Richard Henderson <rth@cygnus.com>
3734 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
3735
3736 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3737 (eelf64_ia64.c): New rule.
3738 * Makefile.in: Rebuild.
3739 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3740 * emulparams/elf64_ia64.sh: New file.
50bbae35 3741
c9637625
RH
37422000-04-21 Richard Henderson <rth@cygnus.com>
3743
3744 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3745
28ea9521
AM
37462000-04-19 Alan Modra <alan@linuxcare.com.au>
3747
3748 * dep-in.sed: Match space at start of file name, not at end.
3749
20d04697
L
37502000-04-18 H.J. Lu <hjl@gnu.org>
3751
3752 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3753 lang_leave_output_section_statement () after calling
3754 lang_enter_output_section_statement ().
3755 * emultempl/armelf.em: Likewise.
3756
5ba47421
AM
37572000-04-18 Alan Modra <alan@linuxcare.com.au>
3758
3759 * emultempl/elf32.em (struct orphan_save): Add section field.
3760 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3761 better order, and place first orphan section as we did before the
3762 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3763 Don't call make_bfd_section here, let wild_doit do the job for us.
3764 Don't build a statement list when we'll only throw it away.
3765 * emultempl/armelf.em: Ditto.
3766 * emultempl/pe.em: Similarly.
3767
bdbe5705
GK
37682000-04-14 Geoff Keating <geoffk@cygnus.com>
3769
3770 * scripttempl/elfppc.sc: Remove.
3771 * emulparams/elf32ppc.sh: Use elf.sc.
3772 * emulparams/elf32lppc.sh: Use elf.sc.
3773 * emulparams/elf32ppclinux.sh: Use elf.sc.
3774 * emulparams/elf32ppcsim.sh: New file.
3775 * emulparams/elf32lppcsim.sh: New file.
3776 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3777 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3778 * Makefile.in: Regenerate.
3779 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3780
01cc8ff8
AM
37812000-04-14 Alan Modra <alan@linuxcare.com.au>
3782
5ba47421 3783 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 3784 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
3785 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3786 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
3787 Also set all relocateable section start addresses.
3788
6c86c541
GK
37892000-04-13 Geoff Keating <geoffk@cygnus.com>
3790
3791 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3792 Add new BSS_PLT variable for when .plt need not be contained in
3793 the file. Move _etext so that it is also after .fini, and provide
3794 both etext and _etext with a leading underscore. Mark the start
3795 and end of .sbss.
3796
6a345e87
AM
37972000-04-12 Alan Modra <alan@linuxcare.com.au>
3798
3799 * emultempl/elf32.em (struct orphan_save): New.
3800 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3801 hold_interp): Make them struct orphan_save.
3802 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3803 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3804 the end of the relevant section list. Also add associated section
3805 statements to the end of any previous orphan statements.
3806 * emultempl/armelf.em: Similarly.
3807 * emultempl/pe.em: Similarly.
3808
8be86746
AM
38092000-04-11 Alan Modra <alan@linuxcare.com.au>
3810
3811 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3812
3b16e843 38132000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 3814
a2d91340 3815 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 3816 --enable-build-warnings option.
a2d91340
AC
3817 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3818 * Makefile.in, configure: Re-generate.
3819
41b49281
AM
38202000-04-04 Alan Modra <alan@linuxcare.com.au>
3821
8ad3436c
AM
3822 * po/ld.pot: Regenerate.
3823
3824 * lexsup.c (help): Restore translated part of bug string.
3825
41b49281
AM
3826 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3827 (DEP): Quote when passing vars to sub-make. Add warning message
3828 to end.
3829 (DEP1): Rewrite for "gcc -MM".
3830 (CLEANFILES): Add DEP2.
3831 Update dependencies.
3832 * Makefile.in: Regenerate.
3833
c20f4f8c
AM
38342000-04-03 Alan Modra <alan@linuxcare.com.au>
3835
3836 * ld.h: #include "bin-bugs.h"
3837 * lexsup.c (help): Use REPORT_BUGS_TO.
3838
adde6300
AM
38392000-03-27 Denis Chertykov <denisc@overta.ru>
3840
3841 * configure.tgt (avr-*-*): New target support.
3842 * Makefile.am: Likewise.
3843 * scripttempl/elf32avr.sc: New script file.
3844 * emulparams/avr1200.sh: New file.
3845 * emulparams/avr23xx.sh: New file.
3846 * emulparams/avr4433.sh New file.
3847 * emulparams/avr44x4.sh New file.
3848 * emulparams/avr85xx.sh New file.
3849 * emulparams/avrmega103.sh New file.
3850 * emulparams/avrmega161.sh New file.
3851 * emulparams/avrmega603.sh New file.
3852 * Makefile.in: Regenerate.
3853
9282ff41
L
38542000-03-09 Andreas Jaeger <aj@suse.de>
3855
3856 * Makefile.am (check-DEJAGNU): Also unset LANG.
3857 * Makefile.in: Rebuild.
3858
a9998805
ILT
38592000-03-06 Ian Lance Taylor <ian@zembu.com>
3860
3861 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3862 archive.
3863
f9bc20e7
NC
38642000-03-02 H.J. Lu <hjl@gnu.org>
3865
3866 * emulparams/elf32mcore.sh: Include "getopt.h".
3867
4e277b38
ILT
38682000-03-01 Ian Lance Taylor <ian@zembu.com>
3869
3870 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3871
f0c87f88
NC
38722000-03-01 H.J. Lu <hjl@gnu.org>
3873
3874 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3875 * emulparams/shpe.sh: Likewise.
3876
38772000-03-01 Nick Clifton <nickc@cygnus.com>
3878
3879 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3880 to unused parameters.
3881
3882 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3883 functions only used by DLL code.
3884 (_place_orphan): Initialise 'dollar'.
3885
b6f29aaa
L
38862000-03-01 H.J. Lu <hjl@gnu.org>
3887
3888 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3889 indicate if the undefined symbol is a fatal error or not.
3890 Don't delete the output file if "fatal" is false.
3891
af28fce3
L
38922000-02-29 H.J. Lu <hjl@gnu.org>
3893
50bbae35 3894 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
3895 Set LC_COLLATE and LC_ALL to null and export them. It is for
3896 sort which expects the C locale.
3897 Add $(LIBS) to all $(HOSTING_LIBS).
3898 * Makefile.in: Rebuild.
3899
40d109bf
AM
39002000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3901
3902 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3903 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3904 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3905 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3906 find_potential_libraries.
3907
db5be682
JB
39082000-02-28 Jim Blandy <jimb@redhat.com>
3909
3910 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3911 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3912 filename, so in something like `foo, bar' the comma is considered
3913 part of the first filename, `foo,'.
3914 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3915
3558ff4c
ILT
39162000-02-27 Loren J. Rittle <ljrittle@acm.org>
3917
3918 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3919 host "i[3456]86-*-freebsdelf*".
3920
4eee2681
ILT
39212000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3922
3923 * scripttempl/i386go32.sc: Move misplaced semicolons.
3924
8d75d12d
ILT
39252000-02-25 Ian Lance Taylor <ian@zembu.com>
3926
3927 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3928 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3929 (eelf64hppa.c, ehppaelf.c): Remove targets.
3930 * Makefile.in: Rebuild.
3931
a1836d49
AO
39322000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3933
ad51fb57
AO
3934 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3935 GNU/Linux/sparc, but keep the default as 32.
3936
a1836d49
AO
3937 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3938 it default if sparcv9 or sparc64.
3939
344a211f
NC
39402000-02-24 Nick Clifton <nickc@cygnus.com>
3941
3942 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3943 * Makefile.in: Regenerate.
3944 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3945
3946 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3947 find_potential_libraries.
3948 * ldemul.c (ldemul_find_potential_libraries): New function.
3949
3950 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 3951 exported.
344a211f
NC
3952 (ldfile_open_file): Call ldemul_find_potential_libraries.
3953 * ldfile.h: Add prototype for ldfile_open_file_search.
3954
3955 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3956
3957 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3958 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3959
3960 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3961 (gld_X_find_potential_libraries): New function. Search for
3962 libraries called "*.lib".
3963
a2b64bed 3964 * scripttempl/pe.sc: Add .pdata section.
344a211f 3965
eaba1dd3
RH
39662000-02-23 Richard Henderson <rth@cygnus.com>
3967
3968 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3969 Add and use memory regions.
3970
5b93d8bb
AM
39712000-02-23 Linas Vepstas (linas@linas.org)
3972
3973 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3974
3975 * Makefile.am: Add support for Linux/IBM 370.
3976 * configure.tgt: Likewise.
3977
3978 * Makefile.in: Regenerate.
3979
f6af82bd
AM
39802000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3981
3982 * ldlang.c (print_input_section, print_data_statement,
3983 print_reloc_statement, print_padding_statement, insert_pad,
3984 size_input_section, lang_check_section_addresses,
3985 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 3986 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
3987 (lang_do_assignments): Also change `size' to unsigned.
3988
9e673ad1
RH
39892000-02-16 Richard Henderson <rth@cygnus.com>
3990
3991 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3992
562d3460
TW
39932000-02-16 Timothy Wall <twall@cygnus.com>
3994
3995 * mri.c (mri_draw_tree): Add default LMA region argument to call
3996 to lang_leave_output_section_statement.
3997 * ldlang.h: Update prototypes with LMA region arguments.
3998 * ldlang.c (lang_size_sections): Encapsulate region bounds
3999 checking in os_check_region call.
4000 (os_check_region): New function.
4001 (lang_output_section_statement_lookup): Initialize lma_region.
4002 (lang_leave_output_section_statement): Add LMA region argument.
4003 (lang_leave_overlay): Ditto.
4004 * ldgram.y: Handle LMA region syntax.
4005 * ld.texinfo (Output Section Description): Describe LMA region usage.
4006 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4007 lma region in call to lang_leave_output_section_statement.
562d3460 4008 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4009 lma region in call to lang_leave_output_section_statement.
562d3460 4010 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4011 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4012
4013
9e4ed18c
TW
40142000-02-04 Timothy Wall <twall@redhat.com>
4015
4016 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4017 octets when calculating section end addresses.
4018
32edc927
TW
40192000-02-04 Timothy Wall <twall@redhat.com>
4020
4021 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4022
4cbfc3ac
TW
40232000-02-03 Timothy Wall <twall@redhat.com>
4024
a2b64bed 4025 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4026 octet count.
a2b64bed 4027 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4028 print_reloc_statement, print_padding_statement): Print target
4029 address values and section sizes as bytes, not octets.
4030 (insert_pad) Calculate padding size in octets, and adjust "dot"
4031 by bytes.
4032 (size_input_section) Always adjust "dot" by bytes, not octets.
4033 (lang_check_section_addresses, lang_do_assignments) Adjust
4034 "dot" by bytes, not octets. Use the larger of the directive size
4035 or octets_per_byte for the number of octets actually allocated in
4036 the output section.
4037 (lang_set_startof) Make sure STARTOF returns a target address.
4038 (lang_one_common) Record size changes in octets.
4039 (lang_abs_symbol_at_end_of) Section end symbol's value is
4040 recorded in target bytes.
4041 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4042 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4043
305c7206
AM
40442000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4045
4046 * ldcref.c (output_cref): Don't pass message strings to printf
4047 as format arg.
4048 Update copyright.
4049
4050 * ldmisc.c (vfinfo): Same here.
4051 Update copyright.
4052
e1c47aa4
AM
40532000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4054
4055 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4056 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4057 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4058 Add missing NULL initialisers, and comments.
4059
4060 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4061
13392b77
NC
40622000-01-21 Nick Clifton <nickc@cygnus.com>
4063
4064 * ldlang.c (lang_size_sections): Fix typo in comment.
4065
cce4c4c5
NC
40662000-01-18 H.J. Lu <hjl@gnu.org>
4067
4068 * ldlang.c (lang_size_sections): Also update the current
4069 address of a region if the SEC_NEVER_LOAD bit is not set.
4070
0decc840
NC
40712000-01-10 Philip Blundell <pb@futuretv.com>
4072
4073 * configure.tgt (arm*-*-conix*): New target.
4074
4e53152f
NC
40752000-01-07 Nick Clifton <nickc@cygnus.com>
4076
4077 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4078 line switches with -Wl, (or whatever is appropriate) if it is
4079 being invoked by a comnpiler driver program.
50bbae35 4080 Fix description of the behaviour of the -n command line switch.
4e53152f 4081
3b16e843 40822000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4083
4084 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4085 (name_list): New.
4086 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4087 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4088 (exclude_name_list): New.
4089 ldlang.c (walk_wild_section): Support list of excluded files.
4090 (print_wild_statement): Likewise.
4091 (lang_add_wild): Likewise.
4092 * ldlang.h (lang_wild_statement_type): Likewise.
4093 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4094
5aaace27
NC
40952000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4096
870df5dc
NC
4097 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4098 (process_def_file): Use.
4099 (pe_dll_compat_implib): New variable.
4100 (make_one): Use.
50bbae35 4101
870df5dc
NC
4102 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4103 pe_dll_compat_implib.
50bbae35
AM
4104
4105 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4106 compat-implib options.
4107 (gld_${EMULATION_NAME}_list_options): List new options.
4108 (gld_${EMULATION_NAME}_parse_args): Handle.
4109
50bbae35 4110 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4111 dll.
50bbae35
AM
4112
4113 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4114
2f6d2f85 4115For older changes see ChangeLog-9899
252b5132
RH
4116\f
4117Local Variables:
4118mode: change-log
4119left-margin: 8
4120fill-column: 74
4121version-control: never
4122End:
This page took 0.424615 seconds and 4 git commands to generate.