Actually commit the new files ommitted before.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
50e60fb5
JJ
12002-04-03 Jakub Jelinek <jakub@redhat.com>
2
3 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
4 is smaller than maximum, round dot up to common page boundary.
5
6f12f4ca
AM
62002-03-28 Alan Modra <amodra@bigpond.net.au>
7
8 * configure.host: Set up for generic hosts first, then tweak as
9 necessary in more specific targets.
10 (HOSTING_LIBS): Include libgcc_eh.a if found.
11
a8f1f017
AJ
122002-03-23 Andreas Jaeger <aj@suse.de>
13
14 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
15
1d3fdf38
AM
162002-03-21 Alan Modra <amodra@bigpond.net.au>
17
18 * Makefile.am: Run "make dep-am".
19 * Makefile.in: Regenerate.
20
79b1faa8
AM
212002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
22
23 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
24
fcf0e35b
AM
252002-03-20 Alan Modra <amodra@bigpond.net.au>
26
27 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
28 add the symbol to the linker hash table immediately.
29 (lang_place_undefineds): Split symbol creation out..
30 (insert_undefined): ..to here.
31
fed2999d
DB
322002-03-18 David O'Brien <obrien@FreeBSD.org>
33
34 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
35 the contents of the buffer returned from basename function will are
36 getting overwritten while still being used.
37
beb43bb9
JH
38Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
39 Andreas Jaeger <aj@suse.de>
40 Andreas Schwab <schwab@suse.de>
41
42 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
43 * elf_x86_64.sh (ARCH): Set to i386:x86-64
44 set libraries to default to lib64 paths.
45
eb1e0e80
NC
462002-03-18 Tom Rix <trix@redhat.com>
47
48 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
49 * configure.tgt : Same.
50 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
51 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
52 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
53 emulation parameters for better -b32, -b64 support.
54 * emulparms/aixrs6.sh : Same.
55 * emulparms/ppcmacos.sh : Same.
56 * emultempl/aix.em (choose_target) : Use new emulation parameters
57 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
58 * Makefile.in : Regenerate.
59
a1c259a1
NC
602002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
61
62 * po/fr.po: Updated version.
63
862120bd
AM
642002-03-18 Alan Modra <amodra@bigpond.net.au>
65
66 * ldmain.c (main): Move .text readonly flag fudges from here..
67 * ldlang.c (lang_process): ..to here.
68
d35a52e2
AM
692002-03-14 Alan Modra <amodra@bigpond.net.au>
70
71 * ldlang.c (lang_check): Remove the word size check added in last
72 change. Treat emitrelocations case as for relocatable links.
73
9ce88e60
NC
742002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
75
76 * po/fr.po: Updated version.
77
30cba025
AM
782002-03-13 Alan Modra <amodra@bigpond.net.au>
79
80 * ldlang.c (lang_check): Do relocatable link checks first, so that
81 warn_mismatch can't override. Check compatible and word size too.
82
84ec0e6d
DJ
832002-03-07 Daniel Jacobowitz <drow@mvista.com>
84
85 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
86
2d13d8c5
JJ
872002-03-05 Jakub Jelinek <jakub@redhat.com>
88
89 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
90 DATA_SEGMENT_ALIGN.
91
b5090659
L
922002-03-04 H.J. Lu <hjl@gnu.org>
93
94 * scripttempl/elf.sc: Put .preinit_array, .init_array and
95 .fini_array in the data segment.
96
f42ce16e
AM
972002-03-04 Alan Modra <amodra@bigpond.net.au>
98
99 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
100
de77b6ac
RH
1012002-03-01 David Mosberger <davidm@hpl.hp.com>
102
103 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
104 .init_array, and .fini_array.
105
997e08c0
AS
1062002-02-20 Andreas Schwab <schwab@suse.de>
107
108 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
109 .IA64_unwind* in a relocatable link.
110
9a66911f
NC
1112002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
112
113 * NEWS: Mark 2.12 branch.
114
d86bcc10
MS
1152002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
116
117 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
118 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
119
69f284c7
TR
1202002-02-18 Tom Rix <trix@redhat.com>
121
122 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
123 (gld*_before_allocation): Same.
a8f1f017 124 (gld*_create_output_section_statements): Generate
69f284c7
TR
125 __rtinit if run time linking. Add librtl.a to the link.
126 (gld*_read_file): Clean.
127
82bd7b59
AM
1282002-02-18 Alan Modra <amodra@bigpond.net.au>
129
130 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
131
ac3e50bf
DB
1322002-02-18 David O'Brien <obrien@FreeBSD.org>
133
6a7f963b 134 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
135 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
136 and eelf64alpha_fbsd.
6a7f963b 137 * Makefile.in: Regenerate.
ac3e50bf
DB
138 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
139 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
140 use a FreeBSD-specific emulation rather than the psABI one.
141 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
142 for all FreeBSD ELF systems.
143 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
144 emulation.
145 * emulparams/elf32ppc_fbsd.sh: Likewise.
146 * emulparams/elf64_ia64_fbsd.sh: Likewise.
147 * emulparams/elf64_sparc_fbsd.sh: Likewise.
148 * emulparams/elf64alpha_fbsd.sh: Likewise.
149 * emulparams/elf_i386_fbsd.sh: Likewise.
150 * emulparams/elf_x86_64_fbsd.sh: Likewise.
151
6ad738c5
NC
1522002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
153
154 * po/tr.po: Updated version.
155
9673c93c
AM
1562002-02-18 Alan Modra <amodra@bigpond.net.au>
157
158 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
159 (FILL): Likewise.
160
1c5e6447
HPN
1612002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
162
163 * emultempl/mmo.em (mmo_after_open): Don't call
164 _bfd_mmix_check_all_relocs when producing ELF output.
165
8bb57516
RH
1662002-02-15 Richard Henderson <rth@redhat.com>
167
de77b6ac 168 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
169 definition. Emit a unop+nop pair.
170
49fda6c8
HPN
1712002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
172
83c2d653
HPN
173 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
174 for presence of .MMIX.reg_contents.linker_allocated before early
175 exit.
176
49fda6c8
HPN
177 * NEWS: Mention support for MMIX.
178
2c382fb6
AM
1792002-02-15 Alan Modra <amodra@bigpond.net.au>
180
181 Support arbitrary length fill patterns.
a139d329
AM
182 * ld.texinfo (Output Section Fill): Describe fill expressions.
183 (FILL): Refer to the above.
2c382fb6
AM
184 * ldexp.h (etree_value_type): Add "str" field.
185 (union etree_union): Add "str" to "value" struct.
186 (exp_bigintop): Declare.
187 (exp_get_fill): Declare.
188 * ldexp.c: Include "safe-ctype.h".
189 (exp_intop): Set value.str to NULL.
190 (exp_bigintop): New function.
191 (new_rel): Pass in "str", and set new.str from it.
192 (new_rel_from_section): Set new.str to NULL.
193 (fold_name): Adjust calls to new_rel.
194 (exp_fold_tree): Likewise.
195 (exp_get_fill): New function.
196 * ldgram.y (struct big_int bigint, fill_type *fill): New.
197 (INT): Returns a "bigint". Adjust all code handling INTs.
198 (fill_opt): Returns a "fill".
199 (fill_exp): Split out of fill_opt, use for FILL.
200 * ldlang.h (struct _fill_type): New.
201 (fill_type): Move typedef to ldexp.h.
202 (lang_output_section_statement_type): "fill" is now a pointer.
203 (lang_fill_statement_type): Likewise.
204 (lang_padding_statement_type): Likewise.
205 (lang_add_fill): Now takes a "fill_type *" param.
206 (lang_leave_output_section_statement): Likewise.
207 (lang_do_assignments): Likewise.
208 (lang_size_sections): Likewise.
209 (lang_leave_overlay_section): Likewise.
210 (lang_leave_overlay): Likewise.
211 * ldlang.c: Include ldgram.h after ldexp.h.
212 (lang_output_section_statement_lookup): Adjust for fill_type change.
213 (print_fill_statement): Likewise.
214 (print_padding_statement): Likewise.
215 (insert_pad): Now takes a "fill_type *" arg.
216 (size_input_section): Likewise.
217 (lang_size_sections_1): Likewise.
218 (lang_size_sections): Likewise.
219 (lang_do_assignments): Likewise.
220 (lang_add_fill): Likewise.
221 (lang_leave_output_section_statement): Likewise.
222 (lang_leave_overlay_section): Likewise.
223 (lang_leave_overlay): Likewise.
224 Adjust all callers of the above function.
225 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
226 starting with "0X" as well as "0x". Return bigint.str for hex
227 numbers starting with "0x" or "0X", zero bigint.str otherwise.
228 Always use base 16 for numbers starting with "$".
229 * ldmain.c: Include ldgram.h after ldexp.h.
230 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
231 of bfd_fill_link_order.
232 * pe-dll.c: Adjust lang_do_assignments calls.
233 * emultempl/elf32.em: Likewise.
234 * emultempl/hppaelf.em: Likewise.
235 * emultempl/ppc64elf.em: Likewise.
236 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
237 lang_add_assignment call.
238 * emultempl/pe.em: Likewise.
239
313e35ee
AM
2402002-02-14 Phil Edwards <pme@gcc.gnu.org>
241
a139d329 242 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
243 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
244 the pattern in question is not a regexp.
245 * ldlang.c: Likewise.
246 * ldlang.h: Likewise.
247 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
248
2d20f7bf
JJ
2492002-02-12 Jakub Jelinek <jakub@redhat.com>
250
251 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
252 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
253 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
254 * ldexp.c (exp_data_seg): New variable.
255 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
256 (fold_binary): Handle DATA_SEGMENT_ALIGN.
257 (exp_fold_tree): Handle DATA_SEGMENT_END.
258 Pass allocation_done when recursing instead of hardcoding
259 lang_allocating_phase_enum.
260 * ldexp.h (exp_data_seg): New.
261 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
262 (lang_size_sections): New.
263 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
264 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
265 if COMMONPAGESIZE is defined.
266 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
267 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
268 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
269 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
270 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
271 libraries only.
272
06880219
AM
2732002-02-11 Alan Modra <amodra@bigpond.net.au>
274
275 * Makefile.in: Regenerate.
276
37b0ac0f
DJ
2772002-02-10 Daniel Jacobowitz <drow@mvista.com>
278
279 * lexsup.c: Remove strtoul declaration.
280
4e5bae56
DJ
2812002-02-10 Daniel Jacobowitz <drow@mvista.com>
282
283 * ldmain.c: Add prototype for main ().
284 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
285 * emultempl/lnk960.em (lnk960_choose_target): Function should
286 take two arguments.
287
1e281515
AM
2882002-02-10 Alan Modra <amodra@bigpond.net.au>
289
290 * ldlang.c (entry_section): New initialised variable.
291 (lang_finish): Use it.
292 * ldlang.h (entry_section): Declare.
293 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
294 entry_section to ".opd".
295
f92d92ff 2962002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
297
298 * ld.texinfo (Options): Add back in -nostdlib documentation,
299 which had been inadvertently removed.
300
74c44237
HPN
3012002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
302
303 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
304 register section vma to a sane value after emitting error. Make
305 fatal conditions cause program exit when emitting message.
306
5e37cc46
NC
3072002-02-08 Ivan Guzvinec <ivang@opencores.org>
308
309 * configure.tgt: Add or32-*-rtems target.
310
2d92cb7d
AO
3112002-02-08 Alexandre Oliva <aoliva@redhat.com>
312
313 Contribute sh64-elf.
314 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
315 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
316 in OTHER_RELOCATABLE_SECTIONS.
317 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
318 * emulparams/shelf32.sh (STACK_ADDR): Define.
319 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
320 (OTHER_SECTIONS): this. Removed stack settings.
321 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
322 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
323 2001-03-12 DJ Delorie <dj@redhat.com>
324 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
325 relaxing if any shmedia or mixed sections are found.
326 2001-03-07 DJ Delorie <dj@redhat.com>
327 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
328 einfo. Gracefully decline to output to non-elf formats.
329 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
330 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
331 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
332 * emulparams/shelf32.sh: Ditto.
333 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
334 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
335 comment.
336 2001-01-10 Ben Elliston <bje@redhat.com>
337 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
338 non-portable shell constructs. From Hans-Peter Nilsson.
339 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
340 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
341 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
342 dependencies to the shell script include chain.
343 * Makefile.in: Regenerate.
344 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
345 * emultempl/sh64elf.em: Update and tweak comments.
346 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
347 make a .cranges section SEC_IN_MEMORY.
348 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
349 * emultempl/sh64elf.em
350 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
351 .cranges section found to be necessary; continue and set stored
352 section contents flags for sections with non-mixed contents.
353 Use a struct sh64_section_data container and sh64_elf_section_data
354 to store contents-type flags.
355 Remove unused update of "isec".
356 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
357 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
358 access contents-type flags. Assert that the associated container
359 is initialized. Use that container, not elf_gp_size, to hold size
360 of linker-generated cranges contents.
361 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
362 * emultempl/sh64elf.em
363 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
364 there's already a .cranges section. When section flag difference
365 is found, don't NULL-check cranges a second time. Tweak comments.
366 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
367 merging, not max size, as size of ld-generated .cranges contents.
368 Don't set ELF section flags in output section. When checking for
369 needed .cranges descriptors, don't use a variable; compare
370 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
371 comments.
372 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
373 * emultempl/sh64elf.em: New file.
374 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
375 * Makefile.in: Regenerate.
376 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
377 (OTHER_RELOCATING_SECTIONS): Ditto.
378 (EXTRA_EM_FILE): New, set to sh64elf if not set.
379 * emulparams/shlelf32.sh: Stub out all settings except
380 OUTPUT_FORMAT. Source shelf32.sh.
381 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
382 OTHER_RELOCATING_SECTIONS.
383 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
384 * emulparams/shlelf64.sh: Stub out all settings except
385 OUTPUT_FORMAT. Source shelf64.sh.
386 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
387 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
388 .cranges section.
389 (DATA_START_SYMBOLS): Define, provide ___data.
390 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
391 for consecutive .data section.
392 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
393 section after .data section.
394 * emulparams/shlelf64.sh: Ditto.
395 * emulparams/shelf32.sh: Ditto.
396 (ALIGNMENT): Define to 8.
397 * emulparams/shelf32.sh: Ditto.
398 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
399 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
400 built-in linker scripts.
401 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
402 * emulparams/shlelf64.sh: New.
403 * emulparams/shelf64.sh: New.
404 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
405 targ_extra_emuls.
406 * Makefile.am: Add support for shlelf64 and shelf64.
407 * Makefile.in: Regenerate.
408 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
409 * configure.tgt (sh64-*-elf*): Add shelf as default.
410 Add shlelf to targ_extra_emuls.
411 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
412 * emulparams/shelf32.sh: New file.
413 * emulparams/shlelf32.sh: New file.
414 * Makefile.am: Add support for shlelf32 and shelf32.
415 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
416 * Makefile.in: Regenerate.
417
e3dc8847
HPN
4182002-02-05 Hans-Peter Nilsson <hp@axis.com>
419
420 * ldlang.c (lang_reset_memory_regions): Rename from
421 reset_memory_regions. Change all callers. Make public.
422 * ldlang.h (lang_reset_memory_regions): Prototype.
423 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
424 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
425 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
426 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 427
8017dbcb
HPN
4282002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
429
430 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
431 arithmetic when checking for too many global registers.
432
006336b8
JT
4332002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
434
435 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
436 (ehppanbsd.c): New rule.
437 * Makefile.in: Regenerate.
438 * configure.tgt (hppa*-*-netbsd*): New target.
439 * emulparams/hppalinux.sh: Add comment to check other files
440 that source this file it is modified, and list which
441 files that do.
442 * emulparams/hppanbsd.sh: New file.
443
da1f2fec
GK
4442002-02-01 Geoffrey Keating <geoffk@redhat.com>
445
446 * scripttempl/xstormy16.sc: Don't allocate extra space for the
447 stack.
448
48fa4a5d
HPN
4492002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
450
451 Support on-demand global register allocation from
452 R_MMIX_BASE_PLUS_OFFSET relocs.
453 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
454 mmix_set_reg_section_vma. Call
455 _bfd_mmix_finalize_linker_allocated_gregs.
456 (mmix_before_allocation): New function.
457 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
458 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
459 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
460 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
461 before .MMIX.reg_contents.
462 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
463 (mmo_after_open): New function.
464 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
465 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
466 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
467
3b16e843
NC
4682002-01-31 Ivan Guzvinec <ivang@opencores.org>
469
470 * emulparams/or32.sh: New file.
471 * emulparams/or32elf.sh: New file.
472 * scripttempl/or32.sc: New file.
473 * configure.tgt : Add support for or32.
474 * configure: Regenerate
475 * Makefile.am: Add support for or32.
476 * Makefile.in: Regenerate.
477 * NEWS: Mention support for or32.
478 * po/ld.pot: Regenerate.
479
f744d540 4802002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 481 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
482
483 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
484 * emultempl/mipself.em: New file to handle MIPS ELF embedded
485 reloc creation (ld --embedded-relocs).
486
4867be41
DJ
4872002-01-27 Daniel Jacobowitz <drow@mvista.com>
488
489 * configure: Regenerated.
490
cd8e197b
HPN
4912002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
492
493 * Makefile.am (install): Depend on install-info.
494 * Makefile.in: Regenerate.
495
9cb61eab
AM
4962002-01-26 Christian Rose <menthos@menthos.com>
497
498 * ldmain.c (main): Use full sentences to ease translation.
499
1caa7b23
NC
5002002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
501
502 * po/fr.po: Updated version.
503
1ddbd152
NC
5042002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
505
506 * po/es.po: Updated version.
507
1e84433f
AJ
5082002-01-25 Andreas Jaeger <aj@suse.de>
509
510 * ldlex.l (yy_input): Correct error check.
511
6d39955e
AM
5122002-01-25 Alan Modra <amodra@bigpond.net.au>
513
514 * ldmisc.c (demangle): Put back dots when string not demangled.
515
a9ed1e1b
RH
5162002-01-22 Richard Henderson <rth@redhat.com>
517
518 * emulparams/elf64alpha.sh (NOP): Use unop.
519
968ec2b9
AJ
5202002-01-21 Andreas Jaeger <aj@suse.de>
521
522 * ldlex.l: Use fread instead of read.
523
9596feea
JT
5242002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
525
526 * configure.tgt (ia64-*-netbsd*): New target.
527
493a6d47
L
5282002-01-21 H.J. Lu <hjl@gnu.org>
529
530 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
531 0.
532 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
533
2a538ba5
AJ
5342002-01-18 Andreas Jaeger <aj@suse.de>
535
536 * ldver.c (ldversion): Update year.
537
328577ad
NC
5382002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
539
540 * po/ld.pot: Regenerate.
541
1f808cd5
AM
5422002-01-16 Alan Modra <amodra@bigpond.net.au>
543
544 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
545 * Makefile.in: Regenerate.
546 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
547 * emultempl/ppc64elf.em: New file.
548
335c5610
DD
5492002-01-15 DJ Delorie <dj@redhat.com>
550
551 * scripttempl/pe.sc: Add support for constructor priorities.
552
c40bbade
DC
5532002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
554
555 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
556 * emulparams/avr23xx.sh: Likewise.
557 * emulparams/avr4433.sh: Likewise.
558 * emulparams/avr44x4.sh: Likewise.
559 * emulparams/avr85xx.sh: Likewise.
560 * emulparams/avrmega103.sh: Likewise.
561 * emulparams/avrmega161.sh: Likewise.
562 * emulparams/avrmega603.sh: Likewise.
563 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
564
34efb449
AO
5652002-01-08 Alexandre Oliva <aoliva@redhat.com>
566
567 * ldlang.c (walk_wild_section): Exclude object file if enclosing
568 archive is excluded.
569
8d05742f
JT
5702002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
571
572 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 573 (eshelf_nbsd.c): New rule.
8d05742f
JT
574 (eshlelf_nbsd.c): New rule.
575 * Makefile.in: Regenerate.
576 * configure.tgt (sh*le-*-netbsdelf*): New target.
577 (sh*-*-netbsdelf*): New target.
578 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
579 * ld/emulparams/shelf_nbsd.sh: New emulation.
580 * ld/emulparams/shlelf_nbsd.sh: New emulation.
581
be2d1673
NC
5822002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
583
584 * po/es.po: New file: Spanish translation.
585 * configure.in (ALL_LINGUAS): Add es.
586 * configure: Regenerate.
587
dbab7a7b
NC
5882002-01-06 John Marshall <jmarshall@acm.org>
589
590 * ld.texinfo: Note that --emit-relocs is currently only
591 implemented for ELF.
592
3dfe7a8c
AM
5932002-01-05 Alan Modra <amodra@bigpond.net.au>
594
595 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
596 of bfd_section_list_remove and bfd_section_list_insert macros.
597 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
598 * emultempl/mmo.em (mmo_place_orphan): Likewise.
599
8a8b2d4b
AJ
6002002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
601
602 * configure.tgt (x86_64-*-netbsd*): New target.
603
9a4c7f16
TR
6042001-12-21 Tom Rix <trix@redhat.com>
605
8a8b2d4b 606 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
607 For -binitfini support.
608 * emultempl/aix.em (gld*_before_parse): Fix comment.
609 * emultempl/aix.em (gld*_parse_args): Fix comment.
610
3695c299
AM
6112001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
612
cf86e6df
AM
613 * configure.tgt (mips*-dec-netbsd*): Delete alias for
614 mips*el-*-netbsd*.
615 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
616
3695c299
AM
617 * configure.tgt (arm-*-netbsdelf*): Add target.
618 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
619 * emulparams/armelf_nbsd.sh: Added.
620 * Makefile.am: Add rules for earmelf_nbsd.
621 * Makefile.in: Regenerate.
622
97cb79ae
AJ
6232001-12-19 Andreas Jaeger <aj@suse.de>,
624 Susanne Oberhauser <froh@suse.de>
625
626 * configure.host: Add rules for x86_64-*linux-gnu. Change
627 s390x-linux entry to use gcc to report configuration, replace gcc
628 with $CC in s390-linux
629
9d201f2f
AJ
6302001-12-19 Andreas Jaeger <aj@suse.de>
631
632 * ld.texinfo (VERSION): Fix markup.
633
0b69cd08
MG
6342001-12-18 matthew green <mrg@eterna.com.au>
635
636 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
637 (m68kelfnbsd.c): New rule.
638 * Makefile.in: Regenerate.
639 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
640 (m68*-*-netbsd*4k*): .. this.
641 (m68*-*-netbsdelf*): New target.
642 (m68*-*-netbsd*): Also include ELF support.
643 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
644 * emulparams/m68kelfnbsd.sh: New emulation.
645
6b9b879a
JJ
6462001-12-18 Jakub Jelinek <jakub@redhat.com>
647
648 * ldgram.y (vers_node): Support anonymous version tags.
649 * ldlang.c (lang_register_vers_node): Ensure anonymous version
650 tag is not defined together with non-anonymous versions.
651 * ld.texinfo: Document it.
652
9fc877ed
NC
6532001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
654
655 * po/tr.po: New file: Turkish translation.
656 * configure.in (ALL_LINGUAS): Add tr.
657 * configure: Regenerate.
658
fc18a3f3
RH
6592001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
660
661 * Makefile.am: Add rules for eelf64alpha_nbsd.
662 * Makefile.in: Regenerate.
663 * configure.tgt (alpha*-*-netbsd*): Set
664 targ_emul to elf64alpha_nbsd.
665 * emulparams/elf64alpha_nbsd.sh: Added.
666
76f63e91
AM
6672001-12-17 Alan Modra <amodra@bigpond.net.au>
668
669 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
670 section_tail when fiddling with section list.
671 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
672 broken into separate strings to make translation easier.
673 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
674 fiddling with section list.
675 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
676
d03b89bd
HPN
6772001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
678
679 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
680
320fec9a
AM
6812001-12-15 Alan Modra <amodra@bigpond.net.au>
682
683 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
684
65765700
JJ
6852001-12-13 Jakub Jelinek <jakub@redhat.com>
686
687 * emultempl/elf32.em (finish): Supply output_bfd
688 to bfd_elf*_discard_info.
689 (OPTION_EH_FRAME_HDR): Define.
690 (longopts): Add --eh-frame-hdr.
691 (parse_args): Handle it.
692 (list_options): Add --eh-frame-hdr to help.
693 * emultempl/hppaelf.em (finish): Supply output_bfd
694 to bfd_elf*_discard_info.
695 * scripttempl/elf.sc (.eh_frame_hdr): Add.
696
89894c62
AM
6972001-12-13 Alan Modra <amodra@bigpond.net.au>
698
699 * lexsup.c (parse_args): Don't pass shortopts to second call to
700 getopt functions. Restore optind rather than decrementing before
701 second call. Remove errind as it now duplicates last_optind.
702
583f1926
CF
7032001-12-11 Christopher Faylor <cgf@redhat.com>
704
705 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
706
93fbbb04
GK
7072001-12-07 Geoffrey Keating <geoffk@redhat.com>
708 Richard Henderson <rth@redhat.com>
709
710 * Makefile.am: Add support for xstormy16.
711 * configure.tgt: Add support for xstormy16.
712 * Makefile.in: Regenerate.
713 * emulparams/elf32xstormy16.sh: New file.
714 * scripttempl/xstormy16.sc: New file.
715
583f1926
CF
7162001-10-01 Christopher Faylor <cgf@cygnus.com>
717
fc18a3f3
RH
718 * Makefile.in (LIB_PATH): Make configurable.
719 (GENSCRIPTS): Set LIB_PATH in environment.
720 * configure.in: Substitute LIB_PATH.
721 * configure: Regenerate.
722 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
723 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 724
ff291a48
NC
7252001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
726
727 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
728 describing the -N option so that it is easier to translate into
729 foreign languages.
730
e3c8793a
NC
7312001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
732
733 * emultempl/pe.em (..._list_options): Replace multiple fprintf
734 statements describing a single option with a single, newline
735 escaped fprintf. This allows better translation into other
736 languages.
9d201f2f 737
fc18a3f3
RH
738 * ldmain.c (add_archive_element): Combine multiple strings
739 into a single string to permit better translation into other
740 languages.
e3c8793a 741
f2eab0af
TR
7422001-12-05 Tom Rix <trix@redhat.com>
743
744 * Makefile.am: Remove eaixppc64.
9d201f2f 745 * Makefile.in: Regenerate.
f2eab0af 746
249172c3
TR
7472001-12-04 Tom Rix <trix@redhat.com>
748
9d201f2f 749 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
750 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
751 warning.
752 (gld*_read_file): Fix typo.
753 (change_symbol_mode): Add prototype.
754 (is_syscall): Same.
9d201f2f 755
249172c3
TR
756 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
757 * emulparams/aixrs6.sh : Same.
758 * emulparams/ppcmacos.sh : Same.
759 * emulparams/aixppc64.sh : Delete file.
760 * emultempl/aix.em : Formatting changes.
761
5b5cd1b0
HPN
7622001-12-04 Hans-Peter Nilsson <hp@axis.com>
763
764 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
765 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
766 __Sbss.
767 (OTHER_END_SYMBOLS): Fix formatting.
768 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
769 (OTHER_END_SYMBOLS): Fix formatting.
770
7cecdbff
AM
7712001-12-04 Alan Modra <amodra@bigpond.net.au>
772
773 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
774
742aeb63 7752001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 776
742aeb63 777 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 778 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
779 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
780 (ldemul_default_target): Same.
781 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
782 * emultempl/gld960c.em (gld960_choose_target): Same.
783 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
784 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
785 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
786 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 787 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
788 -b32 and -b64.
789
48459341
L
7902001-11-27 H.J. Lu <hjl@gnu.org>
791
792 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
793 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
794 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
795 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
796 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
797 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
798 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
799 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
800
7cecdbff 801 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
802 is not empty.
803 (SDATA): Likewise.
804 (REL_SDATA): Likewise.
805 (REL_SBSS): Likewise.
806 (REL_SDATA2): Likewise.
807 (REL_SBSS2): Likewise.
808 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
809 (SDATA2): Likewise.
810
ecfdd20c
SC
8112001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
812
813 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
814 destructor in rom.
7cecdbff 815 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 816
da54c6eb
L
8172001-11-22 H.J. Lu <hjl@gnu.org>
818
819 * Makefile.in: Regenerated with automake based on automake
820 1.4-8 in RedHat 7.1.
821
465bc359
AM
8222001-11-22 Alan Modra <amodra@bigpond.net.au>
823
824 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
825 (config.status): Delete rule.
826 Add extra dependencies to cover sourced emulparams files.
827 * Makefile.in: Regenerate.
828
829 * scripttempl/elf.sc: Order <section>, <section>.* and
830 corresponding linkonce sections as seen in input files.
831 Formatting fixes. Zero vma of all sections if not relocating.
832 (STACK): Define and insert if STACK_ADDR defined.
833 (OTHER_RELOCATING_SECTIONS): Delete.
834 (OTHER_END_SYMBOLS): Define.
835 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
836 (OTHER_READWRITE_SECTIONS): Likewise.
837 (OTHER_GOT_SECTIONS): Likewise.
838 (OTHER_SDATA_SECTIONS): Likewise.
839 (OTHER_BSS_SECTIONS): Likewise.
840 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
841 (OTHER_READWRITE_SECTIONS): Likewise.
842 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
843 (OTHER_READWRITE_SECTIONS): Likewise
844
845 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
846 (STACK_ADDR): Define.
847 * emulparams/armelf_oabi.sh: As for armelf.sh.
848 * emulparams/elf32mcore.sh: As for armelf.sh.
849 * emulparams/h8300elf.sh: As for armelf.sh.
850 * emulparams/mn10200.sh: As for armelf.sh.
851 * emulparams/shelf.sh: As for armelf.sh.
852
853 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
854 (OTHER_END_SYMBOLS): Define.
855 * emulparams/m32relf.sh: As for elf32fr30.sh.
856 * emulparams/h8300helf.sh: As for elf32fr30.sh.
857 * emulparams/h8300self.sh: As for elf32fr30.sh.
858
859 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
860 defines with RELOCATING test.
861 (OTHER_SDATA_SECTIONS): Likewise.
862 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
863 (OTHER_END_SYMBOLS): ..this.
864 * emulparams/crislinux.sh: As for criself.sh.
865
866 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
867 if not relocating.
868 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
869 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
870 normal and linkonce sections as seen in input files.
871 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
872 (TEXT_DYNAMIC): Likewise.
873 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
874 (OTHER_SDATA_SECTIONS): Likewise.
875 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
876 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
877 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
878 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
879 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
880 (OTHER_PLT_RELOC_SECTIONS): Likewise.
881 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
882 sections as seen in input files.
883 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
884 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
885 if not relocating.
886 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
887 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
888 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
889 (OTHER_SECTIONS): Instead, use this..
890 (OTHER_END_SYMBOLS): ..and this.
891
892 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
893 * emulparams/elf32bsmip.sh: Likewise.
894 * emulparams/elf32btsmip.sh: Likewise.
895 * emulparams/elf32ebmip.sh: Likewise.
896 * emulparams/elf32lmip.sh: Likewise.
897 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
898 * emulparams/elf32lsmip.sh: Likewise.
899 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
900 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
901 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
902 * emulparams/elf64btsmip.sh: Likewise.
903 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
904 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
905 * emulparams/elf32ppclinux.sh: Likewise.
906 * emulparams/elf32ppcsim.sh: Likewise.
907 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
908 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
909 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
910 * emulparams/h8300self.sh: Likewise.
911 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
912 * emulparams/sh.sh: Comment.
913 * emulparams/shl.sh: Source sh.sh, remove duplicates.
914 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
915 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
916
abc6ab0a
AM
9172001-11-21 David Heine <dlheine@tensilica.com>
918 Alan Modra <amodra@bigpond.net.au>
919
920 * ldlang.c (map_input_to_output_sections): Replace "break"
921 accidentally removed with 2001-08-03 change.
922 (lang_gc_sections_1): Likewise.
923
2181f54f
AM
9242001-11-21 Alan Modra <amodra@bigpond.net.au>
925
926 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
927
ca0b5847
AM
9282001-11-20 Angela Marie Thomas <angela@redhat.com>
929
930 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
931 of false when calling lang_size_sections.
932 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 933
c56feb2b
AM
9342001-11-15 Alan Modra <amodra@bigpond.net.au>
935
936 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
937 function when LDEMUL_FINISH isn't set to the same name. Don't
938 call ${LDEMUL_FINISH}.
939 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
940 * emultempl/armelf.em (arm_elf_finish): Call
941 gld${EMULATION_NAME}_finish.
942 * emultempl/hppaelf.em (hppaelf_finish): Rename to
943 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
944 hppaelf_layout_sections_again if necessary.
945 (need_laying_out): New var.
946 (hppaelf_layaout_sections_again): Rename to
947 hppaelf_layout_sections_again. Clear need_laying_out.
948 (PARSE_AND_LIST_OPTIONS): Format text.
949
a48ca7f2
L
9502001-11-14 H.J. Lu <hjl@gnu.org>
951
952 * emultempl/armelf.em (arm_elf_finish): Renamed from
953 gld${EMULATION_NAME}_finish.
954 (LDEMUL_FINISH): Set to arm_elf_finish.
955
73d074b4
DJ
9562001-11-14 Daniel Jacobowitz <drow@mvista.com>
957
958 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
959 (struct ld_emulation_xfer_struct): Use it.
960
3b16e843 9612001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 962
465bc359 963 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
964 additional symbols referenced by newer crt0.o files from HP.
965
f11b7027
NC
9662001-11-12 Anthony Green <green@redhat.com>
967
968 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
969
3bf2994f
AM
9702001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
971
972 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
973 * Makefile.in: Regenerate.
974
ff5dcc92
SC
9752001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
976
977 * ld.texinfo: Use @command for commands, @option for options.
978 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
979 the page man title.
980 * Makefile.in: Rebuild.
981
9fb9af6e
CD
9822001-11-04 Chris Demetriou <cgd@broadcom.com>
983
984 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
985 Add support for targets.
2181f54f 986
3c62831e
NC
9872001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
988
989 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
990 * configure: Regernate.
991 * po/fr.po: New file.
992 * po/sv.po: New file.
993
3a9091c4
NC
9942001-11-01 NIIBE Yutaka <gniibe@m17n.org>
995
996 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
997 as little endian default and to support big endian.
2181f54f 998
361b220e
CD
9992001-11-01 Chris Demetriou <cgd@broadcom.com>
1000
1001 * ld.texinfo (Options): Document new option, -nostdlib.
1002 * lexsup.c (OPTION_NOSTDLIB): New definition.
1003 (ld_options): Add entry for "nostdlib".
1004 (parse_args): Handle OPTIONS_NOSTDLIB.
1005 * ldfile.c (ldfile_add_library_path): Don't add directories
1006 to the search path if they weren't specified on the command line
1007 and -nostdlib was specified.
1008 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1009
210a7bd1
NC
10102001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1011
1012 * lexsup.c (parse_args): Prevent infinite parsing loop when
1013 "-rpath.a" is specified on the command line.
1014 Replace calls to fprintf with calls to einfo.
1015
114283d8
NC
10162001-10-31 John Marshall <jmarshall@acm.org>
1017
1018 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1019 appear only once across all the linker scripts involved in a link
1020 invocation no longer applies. Make the documentation reflect
1021 that.
1022
7649aa50
NC
10232001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1024
1025 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1026 targets.
1027 (sh-*-linux*): Added targ_extra_libpath.
1028
6e814ff8
AM
10292001-10-31 David Heine <dlheine@tensilica.com>
1030
1031 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1032 for padding statements.
1033
3c3bdf30
NC
10342001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1035
1036 * configure.tgt (mmix-*-*): New target.
1037 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1038 Add dependencies to match.
1039 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1040 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1041 scripttempl/mmo.sc: New files.
1042 * gen-doc.texi: @set MMIX.
1043 * ld.texinfo: Ditto.
6e814ff8 1044 [MMIX] Add MMIX node.
3c3bdf30
NC
1045 * Makefile.in: Regenerate.
1046
ca0c1d3e
KH
10472001-10-29 Kazu Hirata <kazu@hxi.com>
1048
1049 * ldlang.c: Fix a comment typo.
1050
1a3d33ce
AM
10512001-10-23 Alan Modra <amodra@bigpond.net.au>
1052
1053 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1054 entries, and match *-*-linux*.
1055
b47c4208
AM
10562001-10-20 Alan Modra <amodra@bigpond.net.au>
1057
1058 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1059 with ldlex_script, ldlex_popstate.
1060 (ifile_p1): Likewise.
1061 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1062 correct slot.
1063 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1064 to 1. Don't BEGIN(SCRIPT).
1065 (lex_redirect): Similarly.
1066 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1067
fd521b47
NC
10682001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1069
1070 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1071 __EH_FRAME_END__ and accept eh frames into data section.
1072 Add ctor and dtor sections.
1073
59d28a94
DD
10742001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1075
1076 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1077 (auto-export): Fix indentation.
1078
663dd378
DD
10792001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1080
1081 * pe-dll.c (autofilter_objectlist): Add startup objects
1082 for profiling.
1083 (auto-export): Constify char * p.
6e814ff8 1084 Extract file basename and use strcmp rather than ststr
663dd378
DD
1085 for object lookup.
1086
31d677f9
CD
10872001-10-18 Chris Demetriou <cgd@broadcom.com>
1088
1089 * ldmain.c (get_emulation): Improve comment about the handling
1090 of -mipsN options.
1091
aa200fe8
AM
10922001-10-17 Alan Modra <amodra@bigpond.net.au>
1093
1094 * po/POTFILES.in: Regenerate.
1095
146e7110
AM
10962001-10-16 Vassili Karpov <malc@pulsesoft.com>
1097
1098 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1099 -z nocopyreloc and -z nocombreloc usage strings.
1100
b4330e85
NC
11012001-10-12 Vassili Karpov <malc@pulsesoft.com>
1102
146e7110 1103 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1104 in usage.
1105
5af8a2fb
NC
11062001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1107
1108 * scripttempl/armaout.sc: Place .bss section after end of aligned
1109 data section to match behaviour of aout code in constructrion of
1110 header.
1111
5b784096
DD
11122001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1113
1114 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1115 startup files for mingw32 dlls to list.
1116
61585df2
CD
11172001-10-10 Chris Demetriou <cgd@broadcom.com>
1118
1119 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1120
45cf6f3e
AH
11212001-10-08 Aldy Hernandez <aldyh@redhat.com>
1122
1123 * configure.tgt (targ): Add arm9e-*-elf.
1124
e24d7c12
L
11252001-10-05 H.J. Lu <hjl@gnu.org>
1126
1127 * genscripts.sh: Fix a typo in the last change.
1128
ec38dd05
JJ
11292001-10-05 Jakub Jelinek <jakub@redhat.com>
1130
1131 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1132 -z nocombreloc in usage.
1133
cedd6b0d
JB
11342001-10-03 Jim Blandy <jimb@redhat.com>
1135
1136 * genscripts.sh: Include a comment at the top of each generated
1137 script, explaining its purpose.
1138
8bd621d8
AM
11392001-10-03 Vassili Karpov <malc@pulsesoft.com>
1140
1141 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1142 * NEWS: Mention -z nocopyreloc.
1143 * ld.texinfo (Options): Describe nocopyreloc.
1144
fcd8210c
AM
11452001-10-03 Alan Modra <amodra@bigpond.net.au>
1146
1147 * configure: Regenerate.
1148
d32820f2
AM
11492001-10-02 Alan Modra <amodra@bigpond.net.au>
1150
1151 * ldver.h (ld_program_version): Remove declaration.
1152 * lexsup.c (parse_args): Move printing of copyright message..
1153 * ldver.c (ldversion): .. to here.
1154 Use BFD_VERSION_STRING in place of BFD_VERSION.
1155 (ld_program_version): Remove.
1156 * Makefile.am (Makefile): Depend on bfd/configure.in.
1157 Run "make dep-am".
1158 * Makefile.in: Regenerate.
1159
af46bcdc
HPN
11602001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1161
1162 * Makefile.am: Update dependencies with "make dep-am".
1163 * Makefile.in: Regenerate.
1164
4818e05f 11652001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1166
4818e05f
AM
1167 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1168 * lexsup.c: Add --no-define-common commandline option.
1169 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1170 * ldlex.l: Likewise.
1171 * ld.h: Add command_line.inhibit_common_definition.
1172 * ldmain.c (main): Initialize.
1173 * ld.texinfo: Document.
862517b6 1174
d5e0ebeb
AM
11752001-09-26 Alan Modra <amodra@bigpond.net.au>
1176
1177 * ldmisc.c (USE_STDARG): Remove.
1178 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1179 (einfo): Likewise.
1180 (minfo): Likewise.
1181 (lfinfo): Likewise.
1182
1183 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1184 declarations. Update copyright.
1185
2f8d8971
NC
11862001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1187
85c77458
NC
1188 * pe-dll.c: Remove obsoleted declaration of
1189 pe_get_data_import_dll_name.
1190 (pe_create_import_fixup): Fix thinko.
1191
2f8d8971
NC
1192 * ld.texinfo(enable-auto-import): Clarify the explanation.
1193
11942001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1195
1196 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1197 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1198 DLL_SUPPORT controlled code.
1199
72358f65 12002001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1201
72358f65
NC
1202 * emultempl/pe.em(pe_data_import_dll): Make static.
1203 (pe_get_data_import_dll_name): New accessor function.
146e7110 1204 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1205 pe_get_data_import_dll_name() from pe.em, instead of
1206 directly accessing pe_data_import_dll variable from pe.em.
1207
3882b010
L
12082001-09-18 Bruno Haible <haible@clisp.cons.org>
1209
1210 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1211 (def_file_add_directive): Use ISSPACE instead of isspace.
1212 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1213 isdigit/isxdigit/isalpha/isalnum.
1214 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1215 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1216 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1217 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1218 isalnum.
1219 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1220 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1221 isupper/tolower.
1222 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1223 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1224 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1225 (ctor_prio): Use ISDIGIT instead of isdigit.
1226 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1227 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1228 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1229 isupper/tolower.
1230 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1231 (stricpy): Use TOLOWER instead of isupper/tolower.
1232 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1233 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1234 (lex_warn_invalid): Use ISPRINT instead of isprint.
1235 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1236 (main): For gettext, also set the LC_CTYPE locate facet.
1237 (add_keepsyms_file): Use ISSPACE instead of isspace.
1238 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1239 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1240 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1241 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1242 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1243 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1244 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1245 (quoteput): Use ISSPACE instead of isspace.
1246 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1247 instead of isalnum.
1248
db09f25b
AM
12492001-09-18 Alan Modra <amodra@bigpond.net.au>
1250
1251 * deffilep.y (def_stash_module): Constify "name" param.
1252
1253 * pe-dll.c: Replace CONST with const throughout.
1254 (quick_symbol): Constify "n1", "n2", "n3" params.
1255 (make_singleton_name_thunk): Constify "import" param. Make
1256 "buffer_len" a size_t.
1257 (make_import_fixup_entry): Constify "name", "fixup_name",
1258 "dll_symname" params.
1259 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1260 (pe_get32): Likewise.
1261 (pe_implied_import_dll): Likewise.
1262
1263 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1264 (sort_by_section_name): Likewise.
1265
1266 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1267 (make_import_fixup): Cast printf arg, rel->address to long rather
1268 than int.
1269 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1270
74699268
AM
12712001-09-15 Alan Modra <amodra@bigpond.net.au>
1272
1273 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1274 defines BufferSize. Increase buffer size by one.
1275
775cabad
NC
12762001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1277
1278 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1279
056a1d49
NC
12802001-09-14 Kevin Lo <kevlo@openbsd.org>
1281
1282 * configure.tgt: Add arm-openbsd target.
1283
a7d792bb
L
12842001-09-12 H.J. Lu <hjl@gnu.org>
1285
1286 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1287 eelf64lppc.o to ...
1288 (ALL_64_EMULATIONS): Here.
1289 * Makefile.in: Regenerated.
1290
0d888aac
CW
12912001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1292
1293 * emultempl/pe.em(make_import_fixup): change signature to
1294 take asection as well as arelec; we need this for proper
146e7110 1295 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1296 there is no attempt to add a constant addend to the reloc;
1297 otherwise, report error condition.
1298 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1299 since final argument is a pointer to make_import_fixup().
1300 Change call to cb() to match make_import_fixup() signature.
1301 (make_import_fixup_mark): make buffer_len unsigned.
1302 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1303
13042001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1305
1306 * ld.texinfo: add verbose documentation for auto-import
146e7110 1307 direct-addressing workaround, to compliment the terse
0d888aac
CW
1308 error message.
1309
cedacdc0
CM
13102001-09-12 Andrew MacLeod <amacleod@redhat.com>
1311
146e7110 1312 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1313
3b16e843 13142001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1315
1316 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1317 * emulparams/h8300self.sh: Similarly.
1318
559e4713
NC
13192001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1320
1321 * ld.texinfo (Options, --stack): Correct default value for stack
1322 reserve.
1323
1fdf0249
TR
13242001-09-05 Tom Rix <trix@redhat.com>
1325
1326 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1327
9b5799b8
AJ
13282001-09-03 Andreas Jaeger <aj@suse.de>
1329
1330 * emultempl/beos.em: Declare prototypes for comparions functions,
1331 adjust definitions.
1332
48f6162b
AJ
13332001-09-02 Andreas Jaeger <aj@suse.de>
1334
1335 * emultempl/aix.em: Add missing prototype.
1336 * emultempl/lnk960.em: Likewise.
1337 * emultempl/vanilla.em: Likewise.
1338 * emultempl/armcoff.em: Likewise.
1339 * emultempl/armelf_oabi.em: Likewise.
1340 * emultempl/beos.em: Likewise.
1341 * emultempl/gld960c.em: Likewise.
1342 * emultempl/gld960.em: Likewise.
1343
1344 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1345 for prototype declaration.
1346
39e5585e
EC
13472001-08-31 Eric Christopher <echristo@redhat.com>
1348 Jason Eckhardt <jle@redhat.com>
1349
1350 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1351
3fc90ddb
AJ
13522001-08-31 Andreas Jaeger <aj@suse.de>
1353
1354 * emultempl/pe.em: Add missing prototypes.
1355 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1356 pe_find_data_imports.
1357 (pr_sym): Add unused attribute.
1358
d43ded80
PB
13592001-08-29 Joel Sherrill <joel@OARcorp.com>
1360
39e5585e 1361 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1362 default from coff to elf.
1363
3946dd2f
JL
13642001-08-29 Jeff Law <law@redhat.com>
1365
1366 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1367 ARCH specification.
1368 * emulparams/h8300self.sh: Similarly.
1369
3b16e843 13702001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1371
1372 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1373 eh8300self.o .
1374 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1375 * configure.tgt (h8300-*-elf*): New case.
1376 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1377 * emulparams/h8300self.sh: New file.
1378 * Makefile.in: Regenerated.
1379
70d0c6e9
NC
13802001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1381
1382 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1383 with macro name.
1384
5c67d4bb
AM
13852001-08-27 Linus Nordberg <linus@swox.com>
1386 Alan Modra <amodra@bigpond.net.au>
1387
1388 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1389 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1390 Run "make dep-am"
1391 * Makefile.in: Regenerate.
1392 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1393 entries to correct alphabetical position.
1394 * emulparams/elf64ppc.sh: New.
1395 * emulparams/elf64lppc.sh: New.
1396
08131015
NC
13972001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1398
1399 * ldmain.c (main): Declare BSIZE as static.
1400
db6751f2
JJ
14012001-08-23 Jakub Jelinek <jakub@redhat.com>
1402
1403 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1404 into .rel.dyn resp. .rela.dyn if combreloc.
1405 (get_script): If .x linker script is equal to .xn, only put it
1406 once into the binary.
1407 Add .xc and .xsc scripts.
1408 (parse_args): Handle -z combreloc and -z nocombreloc.
1409 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1410 For .xc and .xsc scripts put all .rel* or .rela* input sections
1411 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1412 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1413 is elf.
1414 Strip trailing whitespace from script.
1415 Generate .xc and .xsc scripts if requested.
1416 * ldmain.c (main): Initialize link_info.combreloc and
1417 link_info.spare_dynamic_tags.
1418 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1419 (ld_options): Add --spare-dynamic-tags option.
1420 (parse_args): Likewise.
1421 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1422 * ldint.texinfo: Document .xc and .xsc linker scripts.
1423 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1424
63d069c0
L
14252001-08-22 H.J. Lu <hjl@gnu.org>
1426
1427 * emulparams/elf32fr30.sh: Add a newline.
1428
948f9114
AJ
14292001-08-21 Andreas Jaeger <aj@suse.de>
1430
1431 * deffilep.y: Add missing prototypes.
1432 * pe-dll.c: Likewise.
1433
ae7fb08f
AM
14342001-08-20 Alan Modra <amodra@bigpond.net.au>
1435
2af02257
AM
1436 * ldlang.c (insert_pad): Fix typos in last patch.
1437
1438 * ldlang.c: When traversing lang_statement_union_type lists,
1439 consistently use "header.next" rather than "next".
1440 * mpw-eppcmac.c: Likewise.
1441 * emultempl/beos.em: Likewise.
1442 * emultempl/hppaelf.em: Likewise.
1443 * emultempl/pe.em: Likewise.
1444 * ldlang.h (union lang_statement_union): Remove "next" field.
1445
c0c330a7
AM
1446 * ldlang.c (insert_pad): Use offsetof macro.
1447 (lang_size_sections): Always neuter padding statements.
1448 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1449
ae7fb08f
AM
1450 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1451 passed to lang_size_sections.
1452 (pe_exe_fill_sections): Likewise.
1453 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1454 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1455
fab80407
AM
14562001-08-18 Alan Modra <amodra@bigpond.net.au>
1457
1458 * emultempl/aix.em: Formatting fixes.
1459
b3327aad
AM
14602001-08-18 Alan Modra <amodra@bigpond.net.au>
1461
1462 * ldlang.c (insert_pad): Make use of an existing pad statement if
1463 available. Move code calculating alignment, adjusting section
1464 alignment power, and adjusting dot to ..
1465 (size_input_section): .. here. Remove unused relax param.
1466 (lang_size_sections): Change boolean `relax' param to boolean *.
1467 Adjust call to size_input_section. Make use of insert_pad to
1468 place pad after the assignment statement. If relaxing, zap
1469 padding statements.
1470 (reset_memory_regions): Reset output_bfd section sizes too.
1471 (relax_again): Move to..
1472 (lang_process): ..here. Adjust call to lang_size_sections, and
1473 remove duplicated code.
1474 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1475
563e308f
AM
14762001-08-17 Alan Modra <amodra@bigpond.net.au>
1477
1478 * ld.texinfo: Document that fill values now use the four least
1479 significant bytes.
1480 * emulparams/elf32fr30.sh (NOP): Update.
1481 * emulparams/elf32mcore.sh: Likewise.
1482 * emulparams/elf64_s390.sh: Likewise.
1483 * emulparams/elf_i386.sh: Likewise.
1484 * emulparams/elf_i386_be.sh: Likewise.
1485 * emulparams/elf_i386_chaos.sh: Likewise.
1486 * emulparams/elf_i386_ldso.sh: Likewise.
1487 * emulparams/elf_s390.sh: Likewise.
1488 * emulparams/elf_x86_64.sh: Likewise.
1489 * emulparams/i386moss.sh: Likewise.
1490 * emulparams/i386nw.sh: Likewise.
1491 * emulparams/m68kelf.sh: Likewise.
1492 * scripttempl/elf.sc: Update NOP comment.
1493 * scripttempl/elfi370.sc: Likewise.
1494 * scripttempl/elfm68hc11.sc: Likewise.
1495 * scripttempl/elfm68hc12.sc: Likewise.
1496 * scripttempl/nw.sc: Likewise.
1497
b90e1c6f
TR
14982001-08-15 Tom Rix <trix@redhat.com>
1499
1500 * ldgram.y (saved_script_handle): Initialize to NULL.
1501 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1502
39dcfe18
AM
15032001-08-14 Alan Modra <amodra@bigpond.net.au>
1504
cde43e70
AM
1505 * emultempl/elf32.em: Formatting fixes.
1506 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1507 looking at sec->owner.
1508 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1509 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1510 unused code, and reorganize orphan section placement code.
1511
39dcfe18
AM
1512 * ldlang.c (wild_doit): Rename to lang_add_section.
1513 * ldlang.h: Here too.
1514 * mpw-elfmips.c: And here.
1515 * emultempl/beos.em: And here.
1516 * emultempl/elf32.em: And here.
1517 * emultempl/hppaelf.em: And here.
1518 * emultempl/pe.em: And here.
1519
908d20b3
RH
15202001-08-13 Richard Henderson <rth@redhat.com>
1521
1522 * emultempl/needrelax.em: New file.
1523 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1524 * Makefile.am (eelf64_ia64.c): Depend on it.
1525 * Makefile.in: Rebuild.
1526
0f33d40b
AM
15272001-08-13 Alan Modra <amodra@bigpond.net.au>
1528
22af9fd3
AM
1529 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1530 output_section is set non-NULL.
1531
0f33d40b
AM
1532 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1533 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1534 needlessly create an output_section_statement. Treat a correctly
1535 named output_section_statement with NULL bfd_section as compatible.
1536
55ab6103
HPN
15372001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1538
1539 * emultempl/generic.em: Support EXTRA_EM_FILE.
1540 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1541 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1542 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1543 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1544 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1545 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1546 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1547 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1548 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1549 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1550
24098abb
RH
15512001-08-12 Richard Henderson <rth@redhat.com>
1552
1553 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1554 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1555 scripttempl/v850.sc: Keep .jcr data.
1556
b9a8de1e 15572001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1558 Andrew Haley <aph@cambridge.redhat.com>
1559 Nick Clifton <nickc@redhat.com>
b9a8de1e 1560
146e7110 1561 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1562 Change type to file handle.
1563 * ld.h (had_script): Rename and retype.
1564 * ldfile.c (ldfile_open_command_file): Save the file handle
1565 used in saved_script_handle.
1566 * lexsup.c (parse_args): Do not allow -c option to alter
1567 saved_script_handle.
1568 * ldmain.c (main): Print out the linker script used if
1569 --verbose is given. Check saved_script_handle to obtain the
1570 external linker script used, or if NULL, dump the builtin
1571 script.
1572 * ld.texinfo: Document that --verbose now dumps the linker
1573 script used, regardless of whether it was an internal or an
1574 external script.
1575
0218d1e4
AJ
15762001-08-10 Andreas Jaeger <aj@suse.de>
1577
1578 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1579 to build warnings.
1580 * configure: Regenerate.
1581
5253f23b
AM
15822001-08-09 Alan Modra <amodra@bigpond.net.au>
1583
73810896
AM
1584 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1585
5253f23b
AM
1586 * scripttempl/elf.sc: Move non-text .dynamic section before
1587 .plt/.got/.sdata* group.
1588 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1589 (OTHER_SDATA_SECTIONS): Add.
1590 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1591 OTHER_GOT_SECTIONS.
1592 * emulparams/crislinux.sh: Likewise.
1593 * emulparams/elf32b4300.sh: Likewise.
1594 * emulparams/elf32bmip.sh: Likewise.
1595 * emulparams/elf32bmipn32.sh: Likewise.
1596 * emulparams/elf32bsmip.sh: Likewise.
1597 * emulparams/elf32btsmip.sh: Likewise.
1598 * emulparams/elf32ebmip.sh: Likewise.
1599 * emulparams/elf32elmip.sh: Likewise.
1600 * emulparams/elf32l4300.sh: Likewise.
1601 * emulparams/elf32lmip.sh: Likewise.
1602 * emulparams/elf32lsmip.sh: Likewise.
1603 * emulparams/elf32ltsmip.sh: Likewise.
1604 * emulparams/elf64bmip.sh: Likewise.
1605 * emulparams/elf64btsmip.sh: Likewise.
1606 * emulparams/elf64ltsmip.sh: Likewise.
1607
179c732c
AM
16082001-08-08 Alan Modra <amodra@bigpond.net.au>
1609
1610 * genscripts.sh: Source the emulparams script before each output
1611 script is generated so that variables like `RELOCATING' may affect
1612 variables defined in the emulparams script.
1613
3fd36710
AM
16142001-08-04 Alan Modra <amodra@bigpond.net.au>
1615
20713691
AM
1616 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1617 order.
1618
3fd36710
AM
1619 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1620 ie. iterate over wild_statement.section_list.
1621 (gld${EMULATION_NAME}_place_orphan): Likewise.
1622
de0b1853
SC
16232001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1624
1625 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1626 .fini[0-4] sections used by _exit
1627 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1628 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1629 * scripttempl/elfm68hc11.sc: Likewise.
1630
ff7e6f88
L
16312001-08-03 H.J. Lu <hjl@gnu.org>
1632
1633 * emultempl/beos.em (init): Add the missing initialization.
1634
b6bf44ba
AM
16352001-08-03 Alan Modra <amodra@bigpond.net.au>
1636
1637 * ld.texinfo (Input Section Basics): Clarify ordering of output
1638 sections.
1639 * ldlang.c (callback_t): Add wildcard_list param.
1640 (walk_wild_section): Remove "section" param. Rewrite for
1641 lang_wild_statement_type change. Remove unique_section_p test.
1642 (walk_wild_file): Remove "section" param.
1643 (walk_wild): Remove "section" and "file" params.
1644 (lang_gc_wild): Likewise.
1645 (wild): Likewise. Modify for lang_wild_statement_type change.
1646 (wild_sort): Likewise. Add "sec" param.
1647 (gc_section_callback): Likewise.
1648 (output_section_callback): Likewise. Do unique_section_p test.
1649 (map_input_to_output_sections): Modify call to wild.
1650 (lang_gc_sections_1): Likewise.
1651 (print_wild_statement): Modify for lang_wild_statement_type
1652 change.
1653 (lang_add_wild): Replace filename, filenames_sorted param with
1654 filespec. Replace section_name, sections_sorted,
1655 exclude_filename_list with section_list.
1656 * ldlang.h (lang_add_wild): Here too.
1657 (lang_wild_statement_type): Replace section_name, sections_sorted,
1658 and exclude_filename_list with section_list.
1659 * ldgram.y (current_file): Delete.
1660 (%union): Add wildcard_list.
1661 (file_NAME_list): Set type to wildcard_list. Build a linked list
1662 rather than calling lang_add_wild for each entry.
1663 (input_section_spec_no_keep): Call lang_add_wild here instead.
1664 * ld.h (struct wildcard_list): Declare.
1665 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1666
b044cda1
CW
16672001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1668
1669 * ldmain.c (main): initialize link_info.pei386_auto_import
1670 * pe-dll.c: new tables for auto-export filtering
1671 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 1672 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
1673 "by hand".
1674
16752001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1676
b6bf44ba
AM
1677 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1678 static variable current_sec (static struct sec *). Add
b044cda1 1679 forward declaration for add_bfd_to_link.
b6bf44ba
AM
1680 (process_def_file): Don't export undefined symbols. Do not
1681 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
1682 with new API.
1683 (pe_walk_relocs_of_symbol): New function.
1684 (generate_reloc): add optional extra debugging
b6bf44ba 1685 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 1686 line in output
b6bf44ba 1687 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
1688 (DATA auto-import support).
1689 (make_singleton_name_thunk): New function.
1690 (make_import_fixup_mark): New function.
1691 (make_import_fixup_entry): New function.
1692 (pe_create_import_fixup): New function.
b6bf44ba 1693 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 1694 char *.
b6bf44ba
AM
1695 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1696 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1697 pe_create_import_fixup.
1698 * emultempl/pe.em: add new options --enable-auto-import,
1699 --disable-auto-import, and --enable-extra-pe-debug.
1700 (make_import_fixup): New function.
1701 (pe_find_data_imports): New function.
1702 (pr_sym): New function.
b6bf44ba 1703 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1704 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1705 CODE.
1706
17072001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 1708
b044cda1
CW
1709 * ld.texinfo: add additional documentation for
1710 --export-all-symbols. Document --out-implib,
1711 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
1712 --dll-search-prefix, --enable-auto-import, and
1713 --disable-auto-import.
b044cda1
CW
1714 * ldint.texinfo: Add detailed documentation on auto-import
1715 implementation.
1716
156e34dd
NC
17172001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1718
1719 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1720 example.
1721
d6231427
AM
17222001-07-24 Alan Modra <amodra@bigpond.net.au>
1723
1724 * Makefile.am: Update dependencies with "make dep-am".
1725 * Makefile.in: Regenerate
1726
e14ec88b
AM
17272001-07-23 Alan Modra <amodra@bigpond.net.au>
1728
1729 * ldcref.c (check_section_sym_xref): New function.
1730 (check_nocrossrefs): Call it.
1731 (check_nocrossref): Interate over h->refs here instead of..
1732 (check_refs): ..here. Pass in the symbol name, section, and bfd
1733 rather than hash_entry pointers.
1734 (struct check_refs_info): Keep symbol name rather than hash entry.
1735 Remove "same".
1736 (check_reloc_refs): Tweak for above changes in check_refs_info.
1737 Only report references to section syms when symname is NULL to
1738 prevent duplicate messages for the same reloc.
1739
1b577b00
NC
17402001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1741
c7d701b0
NC
1742 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1743 available. Do not print NULL trees.
1744 (exp_print_token): Print unknown tokens with values > 126 as
1745 decimal values not ASCII characters.
1746
1545243b
NC
1747 * ldlang.c (lang_leave_overlay): If a region is specified assign
1748 it to all sections inside the overlay unless they have been
1749 assigned to the own, non-default, memory region.
1750
1b577b00
NC
1751 * README: Add header for consistency with other README files.
1752
5030876b
L
17532001-07-14 H.J. Lu <hjl@gnu.org>
1754
1755 * emultempl/elf32.em (output_prev_sec_find): Never return
1756 bfd_abs_section_ptr, bfd_com_section_ptr nor
1757 bfd_und_section_ptr.
1758
18c7a9a5
NC
17592001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1760
22af9fd3 1761 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1762 elf32.em.
1763 * Makefile.in: Regenerate.
1764
9ffecff1
MG
17652001-07-14 matthew green <mrg@eterna.com.au>
1766
1767 * configure.tgt (i386-*-netbsdelf*): New target.
1768 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1769
95500e1c
JJ
17702001-07-13 Jakub Jelinek <jakub@redhat.com>
1771
1772 * emultempl/elf32.em (output_prev_sec_find): New.
1773 (place_orphan): Use it.
1774
e97cb84f
L
17752001-07-11 H.J. Lu <hjl@gnu.org>
1776
1777 * ldmain.c (main): Fix typos in the last change.
1778
7333607e
JJ
17792001-07-11 Jakub Jelinek <jakub@redhat.com>
1780
1781 * ldmain.c (main): Disallow -F and -f without -shared.
1782
d29d80f2
NC
17832001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1784
1785 * emultempl/pe.em (after_open): Check for the output_bfd not
1786 having any coff_data structure allocated to it.
1787
c2a1a436
DB
17882001-07-09 David O'Brien <obrien@FreeBSD.org>
1789
1790 * emultempl/elf32.em: Do not assuming that contents of the buffer
1791 returned from basename function will remain unchanged accross other
1792 function calls.
1793
63653551
L
17942001-07-03 H.J. Lu <hjl@gnu.org>
1795
1796 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1797 2001-07-03. It creates dynamic entries even for static binaries.
1798
d303a449
L
17992001-07-03 Jakub Jelinek <jakub@redhat.com>
1800
1801 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1802 (DYNAMIC): Use it to reserve few dynamic entries for
1803 post-linking tools.
1804
9f22353f
AM
18052001-06-27 Alan Modra <amodra@bigpond.net.au>
1806
1807 * emulparams/hppa64linux.sh: New file.
1808 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1809 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1810 (ehppa64linux.c): Add rule to make it.
1811 Run "make dep-am".
1812 * Makefile.in: Regenerate.
1813
62bf86b4
HPN
18142001-06-21 Hans-Peter Nilsson <hp@axis.com>
1815
1816 * ld.texinfo (Options, -r): Mention restrictions when using
1817 different object formats.
1818
429d935d
HPN
18192001-06-19 Hans-Peter Nilsson <hp@axis.com>
1820
1821 * ldlang.c (lang_check): Emit fatal error if relocatable link
1822 between different object flavours with relocations in input.
1823
cb840a31
L
18242001-06-19 H.J. Lu <hjl@gnu.org>
1825
1826 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1827 (--version-script): Mention the language support.
1828
9bf03acc
L
18292001-06-19 H.J. Lu <hjl@gnu.org>
1830
1831 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1832
c45021f2
NC
18332001-06-18 H.J. Lu <hjl@gnu.org>
1834
b6bf44ba
AM
1835 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1836 (diststuff): Add $(MANS).
1837 * Makefile.in: Regenerated.
c45021f2 1838
b6bf44ba 1839 * ld.1: Removed.
c45021f2 1840
6caa99ab
HPN
18412001-06-18 Hans-Peter Nilsson <hp@axis.com>
1842
605d9b3a
HPN
1843 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1844 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1845 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1846 * ld.h (args_type): Remove member export_dynamic. All users
1847 changed to use struct bfd_link_info member.
1848
6caa99ab
HPN
1849 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1850 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1851 * Makefile.in: Regenerate.
1852
6f9efd97
L
18532001-06-18 H.J. Lu <hjl@gnu.org>
1854
1855 * ldlang.c (init_os): Add the newline to the einfo call.
1856 (lang_check): Likewise.
1857 (lang_do_version_exports_section): Likewise.
1858
5af9fd8b
L
18592001-06-15 H.J. Lu <hjl@gnu.org>
1860
1861 * lexsup.c (parse_args); Save optind to report unrecognized
1862 option.
1863
2a096f04
HPN
18642001-06-15 Hans-Peter Nilsson <hp@axis.com>
1865
7e66c3f5
HPN
1866 * ldlang.c (lang_check): Emit fatal error if relocatable link
1867 between different object flavours.
1868
2a096f04
HPN
1869 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1870 Set new link_info member export_dynamic.
1871 * ldmain.c (main): Initialize new link_info member export_dynamic.
1872
6770ec8c
NC
18732001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1874
1875 * ldlang.c (walk_wild): Only call walk_wild_file if
1876 lookup_name returns something.
b6bf44ba 1877 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 1878 (load_symbols): Change to a boolean function.
b6bf44ba 1879 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
1880 executable.
1881
8529105a
AM
18822001-06-08 Alan Modra <amodra@bigpond.net.au>
1883
1884 * ldlang.c (record_bfd_errors): Remove.
1885
1886 * emultempl/aix.em: Fix copyright dates.
1887
8f3aa7a0
AJ
18882001-06-07 Andreas Jaeger <aj@suse.de>
1889
1890 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1891 (TEXT_START_ADDR): Likewise.
1892
3277f888
AM
18932001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1894
1895 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1896
3763134d
DD
18972001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1898
1899 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1900
5929ebc0
L
19012001-05-31 H.J. Lu <hjl@gnu.org>
1902
1903 * ldlang.c (open_input_bfds): Don't change the bfd error
1904 handler whilst loading symbols.
1905
c04a062d
NC
19062001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1907
1908 * configure.tgt: Remove i370-mvs architecture, it is not currently
1909 supported.
1910
96fcab3e
L
19112001-05-25 H.J. Lu <hjl@gnu.org>
1912
1913 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1914 like emulparams/aixppc.sh.
1915
db8d4f23
L
19162001-05-25 H.J. Lu <hjl@gnu.org>
1917
1918 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1919 setting of output_filename after bfd_scan_arch.
1920 * emultempl/pe.em: Likewise.
1921
5f642101
L
19222001-05-25 H.J. Lu <hjl@gnu.org>
1923
1924 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1925 like emulparams/aixppc.sh.
1926
1927 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1928 instead of ${srcdir}/emultempl/stringify.sed.
1929
64e9ece0
TW
19302001-05-25 Timothy Wall <twall@oculustech.com>
1931
1932 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 1933 output.
64e9ece0 1934
c709b096
AM
19352001-05-25 Alan Modra <amodra@one.net.au>
1936
1937 * configure.host: Replace linuxoldld with linux*oldld.
1938 * configure.tgt: Likewise.
1939
6cbdcc6f
L
19402001-05-24 H.J. Lu <hjl@gnu.org>
1941
1942 * emultempl/stringify.sed: Removed again.
1943
86af25fe
L
19442001-05-24 H.J. Lu <hjl@gnu.org>
1945
1946 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1947 (gld${EMULATION_NAME}_before_parse): Initialize
1948 ldfile_output_architecture, ldfile_output_machine and
1949 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1950 * emultempl/beos.em: Likewise.
1951 * emultempl/elf32.em: Likewise.
1952 * emultempl/linux.em: Likewise.
1953 * emultempl/mipsecoff.em: Likewise.
1954 * emultempl/pe.em: Likewise.
1955 * emultempl/sunos.em: Likewise.
1956
3b1b01cf
TR
19572001-05-24 Tom Rix <trix@redhat.com>
1958
8f3aa7a0 1959 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
1960 udate import file format.
1961 (change_symbol_mode) New, same
1962 (is_syscall) New, same
1963 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1964 * emulparams/aixppc64.sh : same
1965 * emulparams/aixrs6.sh : same
1966 * emulparams/ppcmacos.sh : same
1967 * emultempl/aix.em : use strtoull to parse options
1968 * Makefile.am : add eaixppc64 emulation for xcoff64
1969 * Makefile.in : same
1970 * configure.tgt : same
1971
1972 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 1973 default data section offset to 0x20000000
3b1b01cf 1974 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 1975 loader and debug sections use the currect section offset.
3b1b01cf
TR
1976
1977 * emultempl/aix.em : Add xcoff64 support
1978 Add -binitfini support
8f3aa7a0 1979 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 1980 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 1981 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
1982 sections
1983
1984 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 1985
57e6abd2
AO
19862001-05-23 Alexandre Oliva <aoliva@redhat.com>
1987
1988 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1989 variable to avoid non-portable shell construct.
1990
d1cf510e
NC
19912001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1992
1993 * ldmain.c (get_emulation): Add -mips5 command line argument.
1994
506eee22
NC
19952001-05-22 Alexandre Oliva <aoliva@redhat.com>
1996
1997 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1998 (ELF_INTERPRETER_NAME): Define it.
1999 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2000 it.
2001 * configure.tgt (targ_emul, targ_extra_emuls)
2002 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2003 as primary, elf_i386 as extra.
2004 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2005 (eelf_i386_ldso.c): New rule.
2006 * Makefile.in: Rebuilt.
2007
20082001-05-22 Nick Clifton <nickc@redhat.com>
2009
2010 * lexsup.c (ld_options): Allow -I to be an alias for
2011 --dynamic-linker. This is for Solaris compatability.
2012 * ld.texinfo: Document that -I can be used.
2013 * ld.1: Regenerate.
2014
d1778b88
AM
20152001-05-16 Alan Modra <amodra@one.net.au>
2016
2017 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2018 whether an input section is the first one assigned to an output
2019 section.
2020 Assorted formatting fixes.
2021
02649152
DD
20222001-05-14 DJ Delorie <dj@delorie.com>
2023
2024 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2025 * Makefile.in: Ditto.
2026
579f31ac
JJ
20272001-05-11 Jakub Jelinek <jakub@redhat.com>
2028
2029 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2030 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2031 output sections.
2032 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2033
8550eb6e
JJ
20342001-05-11 Jakub Jelinek <jakub@redhat.com>
2035
2036 * ldlang.c (lang_process): Call bfd_merge_sections.
2037
8e5a525c
AM
20382001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2039
2040 * ldgram.y: Fix typo.
2041
1c9acd94
L
20422001-05-03 H.J. Lu <hjl@gnu.org>
2043
2044 * emultempl/elf32.em: Include "libiberty.h".
2045 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2046 basename of the bfd filename.
2047 (gld${EMULATION_NAME}_stat_needed): Likewise.
2048 (gld${EMULATION_NAME}_try_needed): Likewise.
2049 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2050
14fe918e
L
20512001-05-02 H.J. Lu <hjl@gnu.org>
2052
2053 * emultempl/pe.em: Include <ctype.h>.
2054
c7e40348
NC
20552001-05-02 Johan Rydberg <jrydberg@opencores.org>
2056
b6bf44ba 2057 * emulparams/elf32openrisc.sh: New file.
c7e40348 2058
b6bf44ba
AM
2059 * Makefile.am: Add OpenRISC target.
2060 * Makefile.in: Regenerated.
c7e40348 2061
b6bf44ba 2062 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2063
20642001-05-02 Nick Clifton <nickc@redhat.com>
2065
2066 * emultempl/aix.em: Replace buystring with xstrdup.
2067 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2068
d1b2b2dc
L
20692001-05-02 H.J. Lu <hjl@gnu.org>
2070
2071 * ldfile.c: Include "libiberty.h".
2072 * ldlex.l: Likewise.
2073
2074 * ldmisc.c (buystring): Removed.
2075 * ldmisc.h: Likewise.
2076
2077 * ldfile.c: Replace buystring with xstrdup.
2078 * ldlang.c: Likewise.
2079 * ldlex.l: Likewise.
2080 * ldmain.c: Likewise.
2081 * ldmisc.c: Likewise.
2082 * lexsup.c: Likewise.
2083 * mpw-eppcmac.c: Likewise.
2084
35714f2a
AJ
20852001-04-30 Andreas Jaeger <aj@suse.de>
2086
2087 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2088
884fb58e
NC
20892001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2090
b6bf44ba
AM
2091 * ldlang.c (load_symbols): Give emulation a chance
2092 to process unrecognized file before fatal error is
2093 reported, not after.
884fb58e 2094
87748b32
NC
20952001-04-27 Sean McNeil <sean@mcneil.com>
2096
2097 * configure.tgt: Add arm-vxworks target.
2098 * scripttempl/armcoff.sc: Support .text or .data as a section name
2099 prefix.
2100 Define _etext.
35714f2a 2101
7ce691ae
C
21022001-04-13 J.T. Conklin <jtc@redback.com>
2103
2104 * ld.texinfo: Document --fatal-warnings.
2105 * ld.1: Regenerate.
2106
2107 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2108 warnings have been turned into errors.
7ce691ae
C
2109 * lexsup.c (OPTION_WARN_FATAL): Define.
2110 (ld_options): Entry for --fatal-warnings.
2111 (parse_args): Handle OPTION_WARN_FATAL.
2112 * ld.h (ld_config_type): Add fatal_warnings field.
2113
f5fa8ca2
JJ
21142001-04-13 Jakub Jelinek <jakub@redhat.com>
2115
2116 * ldmain.c (main): Default to discard_sec_merge.
2117 * lexsup.c (OPTION_DISCARD_NONE): Define.
2118 (ld_options): Add --discard-none.
2119 (parse_args): Handle OPTION_DISCARD_NONE.
2120 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2121 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2122 all its input sections match.
2123
fdec3cfc
L
21242001-04-05 Steven J. Hill <sjhill@cotw.com>
2125
2126 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2127 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2128 (eelf32ltsmip.c): New target.
2129 (eelf64btsmip.c): Likewise.
2130 (eelf64ltsmip.c): Likewise.
2131 * Makefile.in: Regenerated.
2132
2133 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2134 target.
2135 (mips*-*-linux-gnu*): Likewise.
2136
2137 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2138 MIPS taget.
35714f2a 2139 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2140 target.
2141 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2142 endian target.
2143
589bad82
HPN
21442001-04-05 Hans-Peter Nilsson <hp@axis.com>
2145
2146 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2147 correct value of __Stext here.
2148 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2149 .startup section.
2150
2151 * emulparams/crislinux.sh: Remove FIXME.
2152
94202e16
AM
21532001-04-02 Alan Modra <alan@linuxcare.com.au>
2154
2155 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2156 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2157
1268a053
HPN
21582001-03-27 Hans-Peter Nilsson <hp@axis.com>
2159
2160 * configure.tgt (cris-*-*): Change default emulation to criself.
2161 (cris-*-*aout*): New rule.
2162
d85e9ff7
AM
21632001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2164
2165 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2166 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2167
0879a67a
AJ
21682001-03-26 Andreas Jaeger <aj@suse.de>
2169
2170 * ld.texinfo (Overview): Fix syntax in texi code.
2171
0285c67d
NC
21722001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2173
2174 * ld.texinfo: Put @c man indications to generate the ld man page.
2175 When generating man, define all the variables. Define SEEALSO
2176 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2177 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2178 (ld.1): Generate from ld.texinfo.
2179 * Makefile.in: Regenerate.
2180
c20ec07b
NC
21812001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2182
2183 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2184 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2185
cc5ce052
UD
21862001-03-17 Ulrich Drepper <drepper@redhat.com>
2187
2188 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2189 is an absolute path look only for this file and not along the path.
2190
a1ab1d2a
UD
21912001-03-17 Ulrich Drepper <drepper@redhat.com>
2192
2193 * emultempl/elf32.em (OPTION_GROUP): New macro.
2194 Add new option Bgroup to longopts.
2195 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2196 (gld*_list_options): Add -Bgroup and -z defs.
2197 * ld.1: Document -Bgroup and -z defs.
2198 * ld.texinfo: Likewise.
2199
788fca5a
MM
22002001-03-07 Michael Meissner <meissner@redhat.com>
2201
2202 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2203 with sections created by -fdata-sections.
2204 (.dynbss,.bss): Ditto.
2205
1c7566d1
AM
22062001-03-05 Alan Modra <alan@linuxcare.com.au>
2207
2208 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2209 after_allocation_default, not gld..._before_allocation.
2210
27b7e12d
AM
22112001-02-27 Alan Modra <alan@linuxcare.com.au>
2212
2213 * configure.in (BFD_VERSION): New.
2214 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2215 * configure: Regenerate.
2216 * Makefile.am: Run "make dep-am"
2217 * Makefile.in: Regenerate.
2218
2bc551c7
TW
22192001-02-26 Timothy Wall <twall@cygnus.com>
2220
2221 * emulparams/elf64_aix.sh: Add additional read-only sections;
2222 uncomment lines which are now required.
2223
1276aefa
NC
22242001-02-26 H.J. Lu <hjl@gnu.org>
2225
2226 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2227 that problems can be caught whilst loading symbols.
2228 (record_bfd_errors): New function: Report BFD errors and mark
2229 the executable output as being invalid.
1276aefa 2230
41c49998
TW
22312001-02-22 Timothy Wall <twall@cygnus.com>
2232
2233 * configure.host: Add configuration for ia64-*-aix*.
2234 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2235 Add dependencies for eelf64_aix.c.
2236 * Makefile.in: Regenerate.
2237 * configure.tgt: Add ia64-*-aix* mapping.
2238 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2239 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2240 AIX-specific test.
2241
78f85fd7
L
22422001-02-20 H.J. Lu <hjl@gnu.org>
2243
2244 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2245 false if we found the file.
2246
1ac7e077 22472001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2248
2249 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2250 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2251
e135f41b
NC
22522001-02-18 lars brinkhoff <lars@nocrew.org>
2253
2254 * Makefile.am: Add PDP-11 target.
2255 * configure.tgt: Likewise.
2256 * emulparams/pdp11.sh: New file.
2257
a842aceb
DB
22582001-02-17 David O'Brien <obrien@FreeBSD.org>
2259
2260 * configure.host: Add a generic FreeBSD configuration entry such that
2261 all [modern] FreeBSD systems on all platforms will look the same.
2262
24174db0
L
22632001-02-14 H.J. Lu <hjl@gnu.org>
2264
2265 * configure.tgt: Remove mention of earmelf_linux26.
2266
30c3c13a
RH
22672001-02-13 Richard Henderson <rth@redhat.com>
2268
2269 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2270
b46a87b1
L
22712001-02-13 H.J. Lu <hjl@gnu.org>
2272
2273 * ldexp.h (node_type): Add etree_provided.
2274 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2275 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2276 for etree_provided.
b46a87b1
L
2277 (exp_print_tree): Handle etree_provided.
2278 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2279 etree_provided.
2280
f3988fd9
RH
22812001-02-09 David Mosberger <davidm@hpl.hp.com>
2282
2283 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2284 .IA_64.unwind.* pattern to unwind table section and
2285 .IA_64.unwind_info* pattern to unwind info section.
2286
a85d7ed0
NC
22872001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2288
2289 * Makefile.am: Add linux target for S/390.
2290 * Makefile.in: Likewise.
2291 * configure.host: Likewise.
2292 * configure.tgt: Likewise.
2293 * emulparams/elf64_s390.sh: New file.
2294 * emulparams/elf_s390.sh: New file.
2295
780248c4
JJ
22962001-02-09 Jakub Jelinek <jakub@redhat.com>
2297
2298 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2299 targ_extra_libpath.
2300 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2301
0e2534bd
PB
23022001-02-06 Philip Blundell <philb@gnu.org>
2303
2304 * Makefile.am: Remove mention of earmelf_linux26.
2305 * Makefile.in: Regenerate.
2306
46c1ea57
PB
23072001-02-04 Philip Blundell <philb@gnu.org>
2308
2309 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2310 * emulparams/armelf_linux26.sh: Delete.
2311 * configure.tgt: Remove mention of armelf_linux26 emulation.
2312
0088edd2
NC
23132001-02-01 Nick Clifton <nickc@redhat.com>
2314
2315 * ld.1: Replace occurances of -oformat with --oformat.
2316
02aa14fb
AM
23172001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2318
2319 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2320 load_base is specified.
2321
f813923c
HPN
23222001-01-24 Hans-Peter Nilsson <hp@axis.com>
2323
2324 * emultempl/elf32.em: Correct spelling in comments and listed
2325 options.
2326
c1eb1488
AM
23272001-01-23 Alan Modra <alan@linuxcare.com.au>
2328
2329 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2330 default for the first section of a group of overlay sections.
2331
d9fc3714
AM
23322001-01-22 Alan Modra <alan@linuxcare.com.au>
2333
2334 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2335 * Makefile.in: Regenerate.
2336 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2337 Check for null tool_dir.
2338
6be0ca94
JW
23392001-01-16 Jim Wilson <wilson@redhat.com>
2340
2341 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2342 and IA_64.unwind.info.
2343
b9247304
L
23442001-01-16 H.J. Lu <hjl@gnu.org>
2345
2346 * ldlang.c (lang_check): Merge the private data only if the
2347 input file has contents.
2348
577a0623
AM
23492001-01-14 Alan Modra <alan@linuxcare.com.au>
2350
d952f17a
AM
2351 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2352
ffd6e9de
AM
2353 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2354 enabling search for libmilli. On a relocatable link, make .text
2355 sections unique.
2356 (LDEMUL_AFTER_PARSE): Define.
2357 (hppaelf_finish): Correct spelling of relocatable in comments.
2358
577a0623
AM
2359 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2360 rummage through the script for sections on the unique list.
2361 Correct length of strncmp for ".note".
2362 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2363
2364 * ldlang.c (unique_section_list): New var.
2365 (unique_section_p): New function.
2366 (walk_wild_section): Don't match sections on unique_section_list.
2367 (lang_add_unique): New function.
ffd6e9de 2368 Correct spelling of relocatable in comments.
577a0623
AM
2369
2370 * ldlang.h (struct unique_sections): Declare.
2371 (unique_section_list): Declare.
2372 (unique_section_p): Declare.
2373 (lang_add_unique): Declare.
2374
2375 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2376 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2377
2378 * ld.texinfo (--unique): Update.
2379
b7ed8fad
NC
23802001-01-13 Nick Clifton <nickc@redhat.com>
2381
2382 * lexsup.c (parse_args): Remove spurious white space.
2383
d0398d6a
NC
23842001-01-12 Nick Clifton <nickc@redhat.com>
2385
2386 * lexsup.c (parse_args): Update copyright date.
2387
350fdb00
PB
23882001-01-12 Philip Blundell <pb@futuretv.com>
2389
2390 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2391
60c6797e
KH
23922001-01-10 Kazu Hirata <kazu@hxi.com>
2393
2394 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2395 * scripttempl/h8300h.sc: Fix formatting.
2396 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2397 * scripttempl/h8500.sc: Likewise.
2398 * scripttempl/h8500b.sc: Likewise.
2399 * scripttempl/h8500c.sc: Likewise.
2400 * scripttempl/h8500m.sc: Likewise.
2401 * scripttempl/h8500s.sc: Likewise.
60c6797e 2402
482e8b32
DB
24032000-01-07 David O'Brien <obrien@BSDi.com>
2404
2405 * emultempl/elf32.em: Only perform Linux ld hints processing when
2406 targeting Linux.
2407
d7ed7ca6
PB
24082001-01-07 Philip Blundell <philb@gnu.org>
2409
2410 * ld.texinfo (Bug Reporting): Update email address for reports.
2411
0fc3347a
NC
24122000-12-31 Nick Clifton <nickc@redhat.com>
2413
2414 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2415 options by checking for a return value of '?' not -1.
2416
e4897a32
NC
24172000-12-28 Nick Clifton <nickc@redhat.com>
2418
2419 * lexsup.c (struct ld_option): Add new enum value:
2420 EXACTLY_TWO_DASHES.
2421 (ld_options[]): Change -omagic, -output and -oformat options
2422 to be EXACTLY_TWO_DASHES.
2423 (OUTPUT_COUNT): Use ARRAY_SIZE.
2424 (parse_args): Change parameter 'argc' to unsigned.
2425 Place EXACTLY_TWO_DASHES options into new really_longopts
2426 array.
2427 If getopt_long_only fails, try calling getopt_long using the
2428 really_longopts array.
2429 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2430 TWO_DASHES options.
2431
2432 * ldlex.h: Fix prototype of parse_args.
2433
2434 * ld.texinfo: Document that long options starting with 'o'
2435 must be preceeded by two dashes. Change example of a single
2436 dashed long option from -oformat to -trace-symbol.
2437
1122a5fc
NC
24382000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2439
2440 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2441 (longopts[]): New --no-default-excludes option.
2442 (gld_${EMULATION_NAME}_list_options): Document.
2443 (gld_${EMULATION_NAME}_parse_args): Handle.
2444
037849a9
NC
24452000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2446
2447 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2448 whitespace, it breaks the K&R C preprocessor.
2449
7ec229ce
DD
24502000-12-11 DJ Delorie <dj@redhat.com>
2451
2452 * ld.texinfo: Add notes about --whole-archive and gcc.
2453
b79e8c78
NC
24542000-11-18 Fred Fish <fnf@be.com>
2455
2456 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2457 (ld_options): Entry for --allow-shlib-undefined.
2458 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2459 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2460 to false.
2461 * ld.texinfo: Document new command line switch.
d952f17a 2462
9a8e2505
GK
24632000-12-12 Geoffrey Keating <geoffk@redhat.com>
2464
2465 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2466 .fixup is actually read/write.
2467 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2468 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2469 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2470
3b16e843 24712000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2472
2473 * NEWS: Add note about x86_64 architecture.
2474
93b63cd3
DD
24752000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2476
2477 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2478 Set DWARF2 sections to a VMA of zero.
2479
24f6971a
NC
24802000-12-01 Joel Sherrill <joel@OARcorp.com>
2481
d952f17a 2482 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2483 New targets.
2484 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2485 (sparc*-*-rtems*): Switched from a.out to ELF.
2486
2be3aa03
NC
24872000-11-30 Jan Hubicka <jh@suse.cz>
2488
2489 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2490 (eelf_x86_64.c): New.
2491 * Makefile.in: Regenerate.
2492 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2493 * emulparams/elf_x86_64.sh: New.
2494
8c899858
HPN
24952000-11-30 Hans-Peter Nilsson <hp@axis.com>
2496
2497 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2498 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2499
2500 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2501 merging non-a.out sections into CONSTRUCTING.
2502
e47b9e39
NC
25032000-11-28 Nick Clifton <nickc@redhat.com>
2504
2505 * ld.1 (COPYING): Mention that the GNU Free Documentation
2506 License is present in the sources, but not the output, and
2507 also available from the GNU website.
2508 (GNU Free Documentation License): Comment out this section.
2509
ad95f82a
DB
25102000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2511
2512 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2513 does not use them.
2514
fd89e65f
DB
25152000-11-25 David O'Brien <obrien@FreeBSD.org>
2516
2517 * ld.1: Remove old date so it does not give the impression the manpage
2518 is way out of date.
2519
077b8428
NC
25202000-11-24 Nick Clifton <nickc@redhat.com>
2521
2522 * configure.tgt (xscale-coff): Add target.
2523 (xscale-elf): Add target.
2524
49425d28
NC
25252000-11-24 Fred Fish <fnf@be.com>
2526
d952f17a
AM
2527 * ldmain.c (main): Remove redundant init of config.make_executable
2528 to true.
49425d28 2529
d3480244
RH
25302000-11-15 Richard Henderson <rth@redhat.com>
2531
2532 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2533
1ce7de8b
KH
25342000-11-14 Kazu Hirata <kazu@hxi.com>
2535
2536 * scripttempl/h8300.sc: Fix formatting.
2537 * scripttempl/h8300h.sc: Likewise.
2538 * scripttempl/h8300s.sc: Likewise.
2539
3b16e843 25402000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2541
2542 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2543
2e418547
PB
25442000-11-09 Philip Blundell <pb@futuretv.com>
2545
2546 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2547 around orphan sections whose names can be represented in C.
2548
c940e6fc
JW
25492000-11-07 Jim Wilson <wilson@redhat.com>
2550
2551 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2552 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2553
704c465c
NC
25542000-11-06 Nick Clifton <nickc@redhat.com>
2555
2556 * ld.texinfo: Add GNU Free Documentation License.
2557 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2558 * ld.1: Add GNU Free Documentation License.
704c465c 2559
dca7760f
AM
25602000-11-05 Alan Modra <alan@linuxcare.com.au>
2561
2562 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2563 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2564
2565 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2566 Move 2000-11-02 Makefile.in changes to this file.
2567 * Makefile.in: Regenerate.
2568
40a633d5
NC
25692000-11-03 Nick Clifton <nickc@redhat.com>
2570
2571 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2572 constructors and destructors.
2573 * scripttempl/h8300h.sc: Ditto.
2574 * scripttempl/h8300s.sc: Ditto.
2575 * scripttempl/h8500.sc: Ditto.
2576 * scripttempl/h8500b.sc: Ditto.
2577 * scripttempl/h8500c.sc: Ditto.
2578 * scripttempl/h8500m.sc: Ditto.
2579 * scripttempl/h8500s.sc: Ditto.
2580 * scripttempl/v850.sc: Ditto.
2581 * scripttempl/w65.sc: Ditto.
2582 * scripttempl/z8000.sc: Ditto.
2583
59ff2774
NC
25842000-11-02 Per Lundberg <plundis@chaosdev.org>
2585
2586 * Makefile.in (e_i386_chaos.c): New rule.
2587 (ALL_EMULATIONS): Added e_i386_chaos.o.
2588 * emulparams/elf_i386_chaos.sh: New file.
2589 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2590
645571e1
JJ
25912000-10-20 Jakub Jelinek <jakub@redhat.com>
2592
2593 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2594 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2595 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2596 library path suffix.
2597 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2598
c5975a45
HPN
25992000-10-18 Hans-Peter Nilsson <hp@axis.com>
2600
2601 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2602 for consecutive sections.
2603
ea20a7da
CC
26042000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2605
d952f17a
AM
2606 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2607 options.
2608 * ld.texinfo: Added notes about this new option.
ea20a7da 2609
6e45556a
NC
26102000-10-16 Nick Clifton <nickc@redhat.com>
2611
2612 * emultempl/pe.em (_after_open): Add tests of return values from
2613 bfd functions. Emit appropriate error messages if necessary.
2614
b9a69188
NC
26152000-10-13 Nick Clifton <nickc@redhat.com>
2616
2617 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
2618 local variables - they are not used, but leave in the call to
2619 bfd_canonicalize_symtab.
b9a69188
NC
2620 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2621 pe_dll_search_prefix.
2622
627427de 26232000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 2624
627427de
DD
2625 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2626 (longopts): New --dll-search-prefix option.
2627 (gld_${EMULATION_NAME}_list_options): Document.
2628 (gld_${EMULATION_NAME}_parse_args): Handle.
2629 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2630 dynamically, search for a dll named '<prefix><basename>.dll'
2631 in preference to 'lib<basename>.dll' if --dll-search-prefix
2632 is specified.
2633
24376d1b
AM
26342000-10-12 Alan Modra <alan@linuxcare.com.au>
2635
2636 * ldlang.c (section_already_linked): Set kept_section instead of
2637 sec->comdat->sec.
2638
e47d05ad
KH
26392000-10-10 Kazu Hirata <kazu@hxi.com>
2640
2641 * deffile.h: Fix formatting.
2642 * lexsup.c: Likewise.
2643 * mri.c: Likewise.
2644
23a87948
DD
26452000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2646
2647 * pe-dll.c (make_one): Do not generate code thunk for DATA
2648 exports.
2649 (process_def_file): deduce DATA flag for auto-export sumbols.
2650
86b1cc60
KH
26512000-10-09 Kazu Hirata <kazu@hxi.com>
2652
89cdebba
KH
2653 * ld.h: Fix formatting.
2654 * ldcref.c: Likewise.
2655 * ldctor.h: Likewise.
2656 * ldemul.c: Likewise.
2657 * ldemul.h: Likewise.
2658 * ldexp.c: Likewise.
2659 * ldexp.h: Likewise.
2660 * ldfile.c: Likewise.
2661 * ldfile.h: Likewise.
2662 * ldlang.c: Likewise.
2663 * ldlang.h: Likewise.
2664 * ldmain.c: Likewise.
7bfd51a3
KH
2665 * pe-dll.c: Likewise.
2666
2667 * pe-dll.c: Revert some formatting fixes.
86b1cc60 2668
d643799d
KH
26692000-10-08 Kazu Hirata <kazu@hxi.com>
2670
2671 * pe-dll.c: Fix formatting.
2672
08da4cac
KH
26732000-10-05 Kazu Hirata <kazu@hxi.com>
2674
2675 * ldlang.c: Fix formatting.
2676
c2a94a7a
DD
26772000-10-03 DJ Delorie <dj@redhat.com>
2678
2679 * pe-dll.c (fill_edata): initialize entire block
2680 (make_one): fill in correct section.
2681
8c95a62e
KH
26822000-10-03 Kazu Hirata <kazu@hxi.com>
2683
2684 * ldexp.c: Fix formatting.
2685
486e80e2
DD
26862000-10-02 DJ Delorie <dj@redhat.com>
2687
2688 * emultempl/pe.em (gld_*_after_open): detect case where there two
2689 import libraries for same dll; rename one to ensure proper link
2690 order.
2691
2692 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2693 typo
2694 (generate_edata): fix typo
2695
24dd9f75
HPN
26962000-09-29 Hans-Peter Nilsson <hp@axis.com>
2697
2698 * scripttempl/crisaout.sc (ENTRY): Now __start.
2699 (.text): Add default setting for __start.
2700 Remove CONSTRUCTORS handling.
2701 (/DISCARD/): Add .gnu.warning.*.
2702 * emulparams/crislinux.sh (ENTRY): Now __start.
2703 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2704 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2705 (ENTRY): Now __start.
2706 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2707 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2708
4de2d33d
KH
27092000-09-29 Kazu Hirata <kazu@hxi.com>
2710
5cc18311
KH
2711 * deffile.h: Fix formatting.
2712 * ld.h: Likewise.
2713 * ldcref.c: Likewise.
4de2d33d 2714 * ldctor.c: Likewise.
5cc18311 2715 * ldctor.h: Likewise.
4de2d33d 2716 * ldemul.c: Likewise.
5cc18311 2717 * ldemul.h: Likewise.
4de2d33d 2718 * ldexp.c: Likewise.
5cc18311 2719 * ldexp.h: Likewise.
4de2d33d 2720 * ldfile.c: Likewise.
5cc18311 2721 * ldfile.h: Likewise.
4de2d33d 2722 * ldlang.c: Likewise.
5cc18311
KH
2723 * ldlang.h: Likewise.
2724 * lexsup.c: Likewise.
2725 * mri.c: Likewise.
2726 * pe-dll.c: Likewise.
4de2d33d 2727
45b1f63c
DD
27282000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2729
2730 * pe-dll.c (process_def_file): Uninitialized data wasn't
2731 exported with --export-all-symbols switch.
d952f17a 2732
45b1f63c
DD
27332000-09-28 DJ Delorie <dj@redhat.com>
2734
2735 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2736 noname work properly.
2737
47d89dba
AM
27382000-09-28 Alan Modra <alan@linuxcare.com.au>
2739
2740 * ld.texinfo (HPPA ELF32): New section.
2741
2742 * emultempl/hppaelf.em (group_size): New.
2743 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2744 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2745 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2746 options to prevent abbreviations matching.
2747 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2748 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2749
36bdbeec
NC
27502000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2751
2752 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2753 on the m68*-*-elf target. Make it support COFF input objects.
2754
6d5e62f8
KH
27552000-09-21 Kazu Hirata <kazu@hxi.com>
2756
2757 * ldmain.c: Fix formatting.
2758 * ldmisc.c: Likewise.
2759 * ldver.c: Likewise.
2760 * ldwrite.c: Likewise.
2761
e2eb67d9
AM
27622000-09-21 Alan Modra <alan@linuxcare.com.au>
2763
2764 * ldwrite.c (clone_section): Silence gcc warnings.
2765
b3ea3584
AM
27662000-09-20 Alan Modra <alan@linuxcare.com.au>
2767
2768 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2769 out of memory failure.
2770
2771 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2772 (clone_section): Handle out of memory failures. Rename var to
2773 avoid c++ reserved word.
2774
25f72752
AM
27752000-09-18 Alan Modra <alan@linuxcare.com.au>
2776
2777 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2778 stub_name param to stub_sec_name.
2779 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2780
0752970e
NC
27812000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2782
2783 * emultempl/m68kelf.em: New file.
2784 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2785 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2786 * Makefile.in: Regenerate.
2787
92b7e9d8
AM
27882000-09-15 Alan Modra <alan@linuxcare.com.au>
2789
2790 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2791 only as needed.
2792
9b14b192
NC
27932000-09-13 Nick Clifton <nickc@redhat.com>
2794
2795 * ldmain.c (multiple_definition): Disable relaxation if
2796 multiple symbol definitions are encountered - otherwise the
2797 linker could abort with an assertion failure.
2798
891fa266
NC
27992000-09-10 Nick Clifton <nickc@redhat.com>
2800
2801 * mri.c: Fix formatting.
2802
5d64ca4e
L
28032000-09-07 H.J. Lu <hjl@gnu.org>
2804
2805 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2806 * configure: Rebuild.
2807
dd94604f
L
28082000-09-07 H.J. Lu <hjl@gnu.org>
2809
2810 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2811 * Makefile.in: Rebuild.
2812
71bfc0ae
AM
28132000-09-07 Alan Modra <alan@linuxcare.com.au>
2814
2815 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2816 broken list handling. Create __start_SECNAME and __stop_SECNAME
2817 when no place-holder. Add some comments. Test both SEC_CODE and
2818 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 2819 Handle case where no output section statement created.
71bfc0ae 2820
4a428502
AO
28212000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2822
2823 * configure.tgt (sh-*-linux*): Added.
2824 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2825 * Makefile.in: Rebuilt.
2826 * emulparams/shelf_linux.sh: New file.
2827 * emulparams/shlelf_linux.sh: New file.
2828
f9989030
AM
28292000-09-06 Alan Modra <alan@linuxcare.com.au>
2830
2831 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2832 try shuffling sections when the orphan happens to be the place
2833 holder. Keep count of unique section names generated so we speed
2834 the search for a new name.
2835
58cccadb
AO
28362000-09-06 Alexandre Oliva <aoliva@redhat.com>
2837
2838 * configure: Rebuilt with new libtool.m4.
2839
5b343f5a
NC
28402000-09-05 Nick Clifton <nickc@redhat.com>
2841
2842 * Makefile.in: Regenerate.
2843 * aclocal.m4: Regenerate.
2844 * configure: Regenerate.
2845 * config.in: Regenerate.
2846 * po/ld.pot: Regenerate.
2847
2848 * ldint.texinfo: Remove CVS revision marker - it foils local
2849 comparisons.
2850
2851 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 2852
a854a4a7
AM
28532000-09-05 Alan Modra <alan@linuxcare.com.au>
2854
3231d22e
AM
2855 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2856 to stub section flags.
2857 (hppa_for_each_input_file_wrapper): New.
2858 (hppa_lang_for_each_input_file): New.
2859 (lang_for_each_input_file): Define to call above.
2860 (multi_subspace): New.
2861 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2862 (PARSE_AND_LIST_PROLOGUE): Define.
2863 (PARSE_AND_LIST_LONGOPTS): Define.
2864 (PARSE_AND_LIST_OPTIONS): Define.
2865 (PARSE_AND_LIST_ARGS_CASES): Define.
2866 (hppaelf_finish): Call elf32_hppa_set_gp.
2867 (hppaelf_set_output_arch): Remove.
2868 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2869
2870 * emulparams/hppalinux.sh (ELFSIZE): Define.
2871 (MACHINE): Define.
2872 (OTHER_READONLY_SECTIONS): Define.
2873 (DATA_PLT): Define.
2874 (GENERATE_SHLIB_SCRIPT): Define.
2875
5f992e62
AM
2876 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2877 to const throughout. Change `void *' to `PTR' throughout.
2878 (lang_memory_default): Function is local to file, add `static'.
2879
2880 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2881 (ehppalinux.c): Likewise.
2882 (earmelf.c): Likewise.
2883 (earmelf_linux.c): Likewise.
2884 (earmelf_linux26.c): Likewise.
2885 * Makefile.in: Regenerate.
2886
a854a4a7
AM
2887 * ld.h (ld_config_type): Add unique_orphan_sections.
2888 * lexsup.c (OPTION_UNIQUE): Define.
2889 (ld_options): Add "--unique".
2890 (parse_args): Handle it.
2891 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2892 search for an existing output section if unique_orphan_sections is
2893 set. Make use of bfd_get_unique_section_name rather than
2894 duplicating code here.
2895 * ld.texinfo: Describe --unique.
2896
2897 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2898 optional arg to split-by-file.
2899 (parse_args): Handle them.
2900 * ld.texinfo: Update description of these options.
2901 * ldwrite.c (clone_section): Pass in the section name. Replace
2902 local code with bfd_get_unique_section_name.
2903 (split_sections): Tidy code and comments. Use a list traversal
2904 more appropriate to the list construction. Handle cooked section
2905 sizes. Split when split_by_reloc reached rather than exceeded.
2906 Track section size and split when split_by_file reached. Fix
2907 link_order_tail (even though it's not used).
2908 (ldwrite): Modify condition for calling split_sections to suit
2909 changed split_by_reloc and split_by_file.
2910 * ldmain.c (main): Init config.split_by_reloc and
2911 config.split_by_file to -1.
2912 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2913 Change split_by_file to bfd_size_type.
2914
18e03609
NC
29152000-09-02 Nick Clifton <nickc@redhat.com>
2916
2917 * configure.in: Increase version number to 2.10.91.
2918 * NEWS: Mention new ability to support removal of duplicate DWARF2
2919 debug information.
2920 * configure: Regenerate.
2921 * aclocal.m4: Regenerate.
2922 * config.in: Regenerate.
2923
3a9d486c
NC
29242000-09-02 Daniel Berlin <dberlin@redhat.com>
2925
2926 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2927 sections.
a2b64bed 2928 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
2929 * scripttempl/elfd10v.sc: Ditto.
2930 * scripttempl/elfd30v.sc: Ditto.
2931 * scripttempl/elfi370.sc: Ditto.
2932 * scripttempl/elfm68hc11.sc: Ditto.
2933 * scripttempl/elfm68hc12.sc: Ditto.
2934 * scripttempl/elfi386beos.sc: Ditto.
2935 * scripttempl/v850.sc: Ditto.
50bbae35 2936
ac48eca1
AO
29372000-08-31 Alexandre Oliva <aoliva@redhat.com>
2938
2939 * acinclude.m4: Include libtool and gettext macros from the
2940 top level.
2941 * aclocal.m4, configure: Rebuilt.
2942
c13b1b77
NC
29432000-08-25 Nick Clifton <nickc@redhat.com>
2944
2945 * ldlang.c (open_output): When choosing the target for a
2946 particular endianness, do nothing if the target is not
2947 supported.
2948
dcb0bd0e
L
29492000-08-25 H.J. Lu <hjl@gnu.org>
2950
2951 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2952 check -rpath nor LD_RUN_PATH for cross link.
2953 * ld.texinfo: Document the change.
2954
5bcac8a4
HPN
29552000-08-24 Hans-Peter Nilsson <hp@axis.com>
2956
2957 * NEWS: Mention support for CRIS.
2958
6dd8c765
L
29592000-08-23 H.J. Lu <hjl@gnu.org>
2960
2961 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2962 the current runpath list from bfd_elf_get_runpath_list ()
2963 before search.
2964
ec4eb78a
L
29652000-08-22 H.J. Lu <hjl@gnu.org>
2966
2967 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2968 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2969 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2970 trace_file_tries is non-zero.
2971 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2972 if trace_file_tries is non-zero.
2973
2974 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 2975 * NEWS: Mention it.
ec4eb78a 2976
22b36938
JE
29772000-08-14 Jason Eckhardt <jle@cygnus.com>
2978
2979 * NEWS: Mention i860 support.
2980
d73e9da0
AS
29812000-08-14 Andreas Schwab <schwab@suse.de>
2982
2983 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 2984 syntax.
d73e9da0 2985
9ac4db9c
GK
29862000-08-10 Geoff Keating <geoffk@cygnus.com>
2987
2988 * scripttempl/elf.sc: Add a comment giving the correspondence
2989 between sections, per-datum sections, and linkonce sections. Make
2990 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2991 .sbss2.
2992
165589e4
JE
29932000-08-10 Jason Eckhardt <jle@cygnus.com>
2994
2995 * emulparams/elf32_i860.sh: New file.
2996 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2997 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2998 (eelf32_i860.c): New rule.
2999 * Makefile.in: Regenerate.
3000
345a835d
NC
30012000-08-10 Nick Clifton <nickc@cygnus.com>
3002
3003 * emulparams/mipspe.sh (ENTRY): Add definition.
3004
e374f1d9
NC
30052000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3006
3007 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3008 in error message.
3009
236d5abf
NC
30102000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3011
3012 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3013 the final size of .bss section.
3014 * scripttempl/elfm68hc12.sc: Likewise.
3015
4b209b22
AM
30162000-08-04 Alan Modra <alan@linuxcare.com.au>
3017
3018 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3019 gld${EMULATION_NAME}_parse_args for consistency. Combine
3020 lastoptind and prevoptind vars, and keep track of last optind.
3021 (gld_${EMULATION_NAME}_list_options): Rename to
3022 gld${EMULATION_NAME}_list_options.
3023
28423a68
AM
30242000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3025
3026 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3027 (i586-sco-sysv5uw7.1.0).
3028
b2009ff7
L
30292000-07-27 H.J. Lu <hjl@gnu.org>
3030
3031 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3032 (PARSE_AND_LIST_PROLOGUE): New.
3033 (PARSE_AND_LIST_LONGOPTS): Likewise.
3034 (PARSE_AND_LIST_OPTIONS): Likewise.
3035 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3036 (PARSE_AND_LIST_EPILOGUE): Likewise.
3037
04925e1e
AM
30382000-07-28 Alan Modra <alan@linuxcare.com.au>
3039
41392f03
AM
3040 * emultempl/armelf.em: Elide functions common to elf32.em,
3041 ie. most of the file.
3042 (arm_elf_after_open): New. Do arm specific things then call
3043 gld${EMULATION_NAME}_after_open.
3044 (arm_elf_before_allocation): New. Call
3045 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3046 (PARSE_AND_LIST_PROLOGUE): Define.
3047 (PARSE_AND_LIST_SHORTOPTS): Define.
3048 (PARSE_AND_LIST_LONGOPTS): Define.
3049 (PARSE_AND_LIST_OPTIONS): Define.
3050 (PARSE_AND_LIST_ARGS_CASES): Define.
3051 (LDEMUL_AFTER_OPEN): Define.
3052 (LDEMUL_BEFORE_ALLOCATION): Define.
3053 (LDEMUL_BEFORE_PARSE): Define.
3054 (LDEMUL_FINISH): Define.
3055
3056 * emultempl/hppaelf.em: Similarly zap most of this file.
3057 (hppaelf_add_stub_section): Prototype.
3058 (hppaelf_layaout_sections_again): Prototype.
3059 (hook_in_stub): Prototype.
3060 (LDEMUL_SET_OUTPUT_ARCH): Define.
3061 (LDEMUL_FINISH): Define.
3062 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3063
3064 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3065 (EXTRA_EM_FILE): New.
3066 * emulparams/armelf_linux.sh: Likewise.
3067 * emulparams/armelf_linux26.sh: Likewise.
3068 * emulparams/hppalinux.sh: Likewise.
3069 * emulparams/hppaelf.sh: Likewise.
3070 (NOP): Define.
3071
3072 * emultempl/elf32.em: Fix formatting.
3073 (EXTRA_EM_FILE): Source it.
3074 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3075 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3076 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3077 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3078 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3079 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3080 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3081 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3082 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3083 allow functions in this file to be overridden.
3084 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3085
3086 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3087
04925e1e
AM
3088 * emultempl/elf32.em: Reorganize file.
3089
88cdf297
NC
30902000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3091
3092 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3093 specific option to fit 64-bit executable in the lower
3094 31-bit address range. This is done by changing start
3095 address of .interp (the very first section of executable)
3096 and then setting EF_ALPHA_32BIT elf header flag.
3097
20bccb34
NC
30982000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3099
3100 * emultempl/m68kcoff.em: New file.
3101 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3102 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3103 generic.em.
3104 * Makefile.in: Regenerate.
3105
699845ef
L
31062000-07-20 H.J. Lu <hjl@gnu.org>
3107
3108 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3109 and "disable-new-dtags" to stop getopt from treating -d/-e as
3110 abbreviations for these options.
3111
6c1439be
L
31122000-07-20 H.J. Lu <hjl@gnu.org>
3113
3114 * ld.texinfo: Add documentation for --disable-new-dtags and
3115 --enable-new-dtags.
3116
3117 * ldmain.c (main): Initialize link_info.new_dtags to false.
3118
3119 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3120 --disable-new-dtags and --enable-new-dtags.
3121 (gld_${EMULATION_NAME}_list_options): Likewise.
3122
28c309a2
NC
31232000-07-05 Kenneth Block <krblock@computer.org>
3124
a2b64bed
NC
3125 * lexsup.c: Add optional style to demangle switch
3126 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3127
9d06555c
HPN
31282000-07-20 Hans-Peter Nilsson <hp@axis.com>
3129
3130 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3131 ecrislinux.o.
3132 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3133 Regenerate dependencies.
3134 * Makefile.in: Rebuild.
3135 * configure.tgt (cris-*-*): New target.
3136 * emulparams/crisaout.sh, emulparams/criself.sh,
3137 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3138 * po/POTFILES.in, po/ld.pot: Regenerate.
3139
19e3be22
L
31402000-07-20 H.J. Lu <hjl@gnu.org>
3141
3142 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3143 Print out ignored -z options.
3144
e0ee487b
L
31452000-07-19 H.J. Lu <hjl@gnu.org>
3146
19e3be22
L
3147 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3148 (PARSE_AND_LIST_PROLOGUE): New.
3149 (PARSE_AND_LIST_LONGOPTS): Likewise.
3150 (PARSE_AND_LIST_OPTIONS): Likewise.
3151 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3152
3153 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3154
3155 * lexsup.c (ld_options): Comment out 'z'.
3156 (parse_args): Likewise.
3157
3158 * emultempl/elf32.em: Include "elf/common.h".
3159 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3160 options.
3161 (gld_${EMULATION_NAME}_list_options): Likewise.
3162
3163 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3164
49e56c49
L
31652000-07-19 H.J. Lu <hjl@gnu.org>
3166
3167 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3168 bfd_elf_set_dt_needed_soname ().
3169
9d68bc82
DD
31702000-07-18 DJ Delorie <dj@cygnus.com>
3171
3172 * pe-dll.c (pe_dll_id_target): check object target name also
3173
53db15ed
HPN
31742000-07-18 Hans-Peter Nilsson <hp@axis.com>
3175
3176 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3177 ${INIT_END} if relocating.
3178 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3179
0ad8cf4c
DD
31802000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3181
a2b64bed 3182 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3183 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3184 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3185 errors introduced by the old dynamic lib search order.
3186
874c8c99
DD
31872000-07-17 DJ Delorie <dj@cygnus.com>
3188
3189 * pe-dll.c (process_def_file): auto-export data items also
3190 (pe_process_import_defs): also see if _imp_ form needed
3191
5b4cf3f4
DD
31922000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3193
3194 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3195 for dll import libraries
3196
062739d1
NC
31972000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3198
3199 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3200 gcc 2.95.2 and later.
062739d1 3201
1c64c4ed
NC
32022000-07-11 Kazu Hirata <kazu@hxi.com>
3203
50bbae35
AM
3204 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3205 message.
1c64c4ed 3206
b71e2778
AM
32072000-07-10 Alan Modra <alan@linuxcare.com.au>
3208
3209 * ldemul.h (struct lang_input_statement_struct): Remove forward
3210 declaration.
3211 (struct search_dirs): Likewise.
3212 * ldfile.h (struct lang_input_statement_struct): Likewise.
3213 Protect file from multiple inclusion.
3214 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3215 declaration from macro to file scope.
3216
3217 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3218 * ldgram.y: Likewise here.
3219 * ldlang.c: And here.
3220 * ldmain.c: And here.
3221 * mpw-elfmips.c: And here.
3222 * mpw-eppcmac.c: And here.
3223 * emultempl/aix.em: And here.
3224 * emultempl/armcoff.em: And here.
3225 * emultempl/armelf.em: And here.
3226 * emultempl/armelf_oabi.em: And here.
3227 * emultempl/beos.em: And here.
3228 * emultempl/elf32.em: And here.
3229 * emultempl/hppaelf.em: And here.
3230 * emultempl/linux.em: And here.
3231 * emultempl/lnk960.em: And here.
3232 * emultempl/pe.em: And here.
3233 * emultempl/sunos.em: And here.
3234 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3235 * mpw-idtmips.c: Ditto.
3236 * emultempl/generic.em: Ditto.
3237 * emultempl/gld960.em: Ditto.
3238 * emultempl/gld960c.em: Ditto.
3239 * emultempl/mipsecoff.em: Ditto.
3240 * emultempl/ticoff.em: Ditto.
3241 * emultempl/vanilla.em: Ditto.
3242
3243 * pe-dll.c: Include ldfile.h
3244 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3245
3246 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3247 arguments to bfd_elf32_size_dynamic_sections call.
3248 (gldelf32ebmip_place_orphan): Add missing arguments to
3249 lang_leave_output_section_statement call.
3250
2ef53d66
L
32512000-07-10 H.J. Lu <hjl@gnu.org>
3252
3253 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3254 DLL_SUPPORT.
3255 (strhash): Likewise.
3256 (compute_dll_image_base): Likewise.
3257 (pe_undef_found_sym): Likewise.
3258 (pe_undef_cdecl_match): Likewise.
3259 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3260 argument "arch" with ATTRIBUTE_UNUSED.
3261
9a8cbb09
AM
32622000-07-10 Alan Modra <alan@linuxcare.com.au>
3263
3264 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3265
3266 From Ryan Bradetich <rbradetich@uswest.net>
3267 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3268
4900fc06
AM
32692000-07-09 Alan Modra <alan@linuxcare.com.au>
3270
3271 Changes to create multiple linker stubs, positioned immediately
3272 before the section where they are required.
3273 * emultempl/hppaelf.em: Include elf32-hppa.h.
3274 (stub_sec, file_chain): Delete.
3275 (hppaelf_create_output_section_statements): Don't make a stub
3276 section here.
3277 (hook_stub_info): New struct.
3278 (hook_in_stub): New function.
3279 (hppaelf_add_stub_section): New function.
3280 (hppaelf_finish): Do nothing for relocateable links. Modify the
3281 call to elf32_hppa_size_stubs. Move code for updating section
3282 layout from here...
3283 (hppaelf_layaout_sections_again): ..to here, a new function.
3284
3285 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3286 broken list handling. Pass in a pointer to the list.
3287 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3288 for above changes.
3289 (hppaelf_before_parse): Prototype.
3290 (hppaelf_set_output_arch): Prototype.
3291 (hppaelf_create_output_section_statements): Prototype.
3292 (hppaelf_delete_padding_statements): Prototype.
3293 (hppaelf_finish): Prototype.
3294
3295 Merge from elf32.em
3296 * emultempl/hppaelf.em: Include ctype.h.
3297 (struct orphan_save): New.
3298 (gld${EMULATION_NAME}_place_orphan): New.
3299 (output_rel_find): New.
3300 (hppaelf_get_script): Update from elf32.em.
3301 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3302 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3303 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3304
3305 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3306 ehppalinux.o, sort it. Regenerate dependencies.
3307 (ehppalinux.c): Depend on hppaelf.em
3308 * Makefile.in: Regenerate.
3309
3310 * configure.tgt: targ_emul=hppalinux for hppa*linux
3311
3312 * emulparams/hppalinux.sh: New.
3313 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3314
227aeb07
AM
33152000-07-08 Alan Modra <alan@linuxcare.com.au>
3316
3317 * lexsup.c (parse_args): Copy section name.
3318
28609fd4 33192000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3320
2ef53d66 3321 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3322 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3323 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3324 static lib (libfoo.a) if none of the above are found.
3325
5f577f7d
DD
33262000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3327
50bbae35 3328 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3329 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3330 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3331 (gld_${EMULATION_NAME}_parse): Handle.
3332 (strhash): New static function.
50bbae35 3333 (compute_dll_image_base): New static function.
5f577f7d
DD
3334 (gld_${EMULATION_NAME}_set_symbols): Use.
3335
9a8cbb09 33362000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3337
3338 * MAINTAINERS: new
3339
3548145d 33402000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3341
3342 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3343 * emulparams/elf32btsmip.sh: New file.
3344 * Makefile.am: Add traditional mips target.
3345 * Makefile.in: Rebuild.
3346
67798033
L
33472000-07-01 H.J. Lu <hjl@gnu.org>
3348
3349 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3350 automake to use YLWRAP.
3351 * Makefile.in: Rebuild.
3352
0bdaf48b
AM
33532000-07-01 Alan Modra <alan@linuxcare.com.au>
3354
3355 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3356 (CLEANFILES): Add DEPA.
3357 * Makefile.in: Regenerate.
3358
c9e769c2
TW
33592000-06-30 Timothy Wall <twall@ppc>
3360
3361 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3362 the page in the upper octet of the address.
3363
65aa24b6
NC
33642000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3365
3366 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3367
4667035e
AM
33682000-06-24 Alan Modra <alan@linuxcare.com.au>
3369
3370 * NEWS: arm-elf does --gc-sections too.
3371
1581f8c9
AM
33722000-06-22 Alan Modra <alan@linuxcare.com.au>
3373
3374 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3375 find one.
3376 * Makefile.in: Regenerate.
3377
01580992
L
33782000-06-21 H.J. Lu <hjl@gnu.org>
3379
3380 * Makefile.am: Rebuild dependency.
3381 * Makefile.in: Rebuild.
3382
bbeb2e03
L
33832000-06-20 H.J. Lu <hjl@gnu.org>
3384
3385 * Makefile.am: Rebuild dependency.
3386 * Makefile.in: Rebuild.
3387
74459f0e
TW
33882000-06-20 Timothy Wall <twall@cygnus.com>
3389
3390 * scripttempl/tic54xcoff.sc: New.
3391 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3392 * gen-doc.texi: Add flag for TI COFF.
3393 * ld.texinfo: Add documentation for TI COFF handling switches.
3394 * emultempl/ticoff.em: New. TI COFF handling.
3395 * configure.tgt: Add tic54x target.
3396 * Makefile.am: Add tic54x target.
3397 * Makefile.in: Ditto.
3398
2ab47eed
AM
33992000-06-20 Alan Modra <alan@linuxcare.com.au>
3400
3401 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3402 checking for backslashes.
3403
919e4093
AM
34042000-06-19 Alan Modra <alan@linuxcare.com.au>
3405
3406 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3407
987fd5b4
AM
34082000-06-18 Alan Modra <alan@linuxcare.com.au>
3409
3410 * NEWS: Update list of targets supporting --gc-sections.
3411
3412 * scripttempl/elf.sc: KEEP .eh_frame contents.
3413 * scripttempl/elfd30v.sc: Same here.
3414
60bcf0fa
NC
34152000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3416
3417 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3418 and m68hc11 (elf).
3419 * Makefile.in: Rebuild.
3420 * configure.tgt: Recognize m68hc12 and m68hc11.
3421 * scripttempl/elfm68hc12.sc: New file.
3422 * emulparams/m68hc12elfb: New emulation.
3423 * emulparams/m68hc12elf: New emulation.
3424 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3425 (includes a memory.x script to define the ROM and RAM banks).
3426 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3427 New configuration files for support of Motorola 68hc11
3428
c7c54483
AM
34292000-06-15 Alan Modra <alan@linuxcare.com.au>
3430
3431 * ldmain.c (main): Only change SEC_READONLY for final link.
3432
bcef29e6
L
34332000-06-13 H.J. Lu <hjl@gnu.org>
3434
3435 * configure: Regenerate.
3436
946efd95
DB
34372000-06-08 David O'Brien <obrien@FreeBSD.org>
3438
3439 * configure.in (VERSION): Update to show this is the CVS mainline.
3440
57a6fd07
DB
34412000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3442
3443 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3444 input objects to be ECOFF.
3445 (check_sections): einfo takes %B, not %P, to print a BFD name.
3446
e06cae36
L
34472000-06-05 Michael Matz <matz@ifh.de>
3448
3449 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3450 version scripts.
e06cae36 3451
d952f17a 3452 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3453
2f0b56c0
DC
34542000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3455
3456 * emulparams/avr1200.sh (STACK): Define as 0.
3457 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3458 * emulparams/avr4433.sh (STACK): Likewise.
3459 * emulparams/avr44x4.sh (STACK): Likewise.
3460 * emulparams/avr85xx.sh (STACK): Likewise.
3461 * emulparams/avrmega103.sh (STACK): Likewise.
3462 * emulparams/avrmega161.sh (STACK): Likewise.
3463 * emulparams/avrmega603.sh (STACK): Likewise.
3464 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3465 (__stack): Define from ${STACK} for main().
3466
2114f57b
AM
34672000-05-26 Alan Modra <alan@linuxcare.com.au>
3468
3469 * Makefile.am: Update dependencies with "make dep-am"
3470 * Makefile.in: Regenerate.
3471
5af11cab
AM
34722000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3473
3474 * ldmain.c: Include filenames.h.
3475 (set_scripts_dir): Support backslashes in program name.
3476
1f0df59a
NC
34772000-05-22 Igor Shevlyakov <igor@windriver.com>
3478
3479 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3480 read-only, don't forget to reset SEC_READONLY because it
3481 could be already set.
1f0df59a 3482
176355da
NC
34832000-05-22 Thomas de Lellis <tdel@windriver.com>
3484
50bbae35
AM
3485 * ld.1: Add documentation for new command line option:
3486 --section-start <sectionname>=<sectionorg>
3487 This is a generic version of -Ttext etc. which accepts
3488 any section name as a parameter instead of just text/data/
3489 bss.
3490 * ld.texinfo: More docs.
3491 * NEWS: More docs.
3492 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3493 (ld_options): Add new option.
50bbae35 3494
8c5ff972
L
34952000-05-18 H.J. Lu <hjl@gnu.org>
3496
3497 * lexsup.c (parse_args): `i' == `r', not `q'.
3498
3b16e843 34992000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3500
3501 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3502
a712da20
NC
35032000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3504 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3505
a712da20
NC
3506 Add support for '-q' == '--emit-relocs' switch.
3507 * ldmain.c (main): Default to false.
3508 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3509 * NEWS: Describe the emitrelocations switch.
3510 * ld.texinfo: Describe the emitrelocations switch.
3511
690a460e
NC
35122000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3513
a2b64bed 3514 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3515 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3516 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3517 link options.
50bbae35 3518
c2f1343c
AM
35192000-05-15 David O'Brien <obrien@FreeBSD.org>
3520
3521 * lexsup.c (parse_args): Update the year in the copyright notice.
3522
897083bd
AM
35232000-05-13 Alan Modra <alan@linuxcare.com.au>
3524
3525 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3526 Replace defines with those from intl/libgettext.h to quieten gcc
3527 warnings.
3528
cd4c806a
L
35292000-05-10 H.J. Lu <hjl@gnu.org>
3530
3531 * ldlang.c (open_input_bfds): Don't load the same file within
3532 a group again if the whole archive has been loaded already.
3533
93697284
AM
35342000-05-03 Alan Modra <alan@linuxcare.com.au>
3535
3536 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3537 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3538 strtoul.
3539
3b16e843 35402000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3541
99a4150f 3542 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3543
ebd6fc29
JW
3544 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3545 host "ia64-*-linux-gnu*".
3546
a1934524
AM
35472000-04-29 Andreas Jaeger <aj@suse.de>
3548
3549 * ld.h: Correctly check GCC version.
3550
3b16e843 35512000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3552
3553 * Makefile.am: Add PA64 support. Add missing dependencies for
3554 PA32 elf support.
3555 * Makefile.in: Rebuilt.
3556 * configure.tgt: Add PA64 support (currently disabled).
3557
aea4bd9d
AM
35582000-04-25 Alan Modra <alan@linuxcare.com.au>
3559
3560 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3561 (output_rel_find): New function.
3562 (hold_section, hold_use): Delete.
3563 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3564 hold_interp): Make local to place_orphan.
3565 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3566 rather than place_section to find possible previous use of orphan.
3567 Similarly find the place-holder output sections. Use returned
3568 value from lang_enter_output_section_statement rather than calling
3569 lang_output_section_statement_lookup.
3570 * emultempl/armelf.em: Same here.
3571 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3572
3573 * ldlang.c (lang_enter_output_section_statement): Return output
3574 section statement.
3575 * ldlang.h (lang_enter_output_section_statement): Change
3576 declaration too.
3577
3578 * ldlang.h (lang_output_section_statement): Export it.
3579 * ldlang.c (lang_output_section_statement): Ditto.
3580
2b5fc1f5
NC
35812000-04-24 Nick Clifton <nickc@cygnus.com>
3582
3583 * ld.texinfo (Output Section Data): Add note that section data
3584 commands cannot appear outside of section directives.
3585
d8475ff6
JL
35862000-04-2 Matthew Green <mrg@cygnus.com>
3587
3588 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3589
3b16e843
NC
35902000-04-21 Richard Henderson <rth@cygnus.com>
3591 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
3592
3593 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3594 (eelf64_ia64.c): New rule.
3595 * Makefile.in: Rebuild.
3596 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3597 * emulparams/elf64_ia64.sh: New file.
50bbae35 3598
c9637625
RH
35992000-04-21 Richard Henderson <rth@cygnus.com>
3600
3601 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3602
28ea9521
AM
36032000-04-19 Alan Modra <alan@linuxcare.com.au>
3604
3605 * dep-in.sed: Match space at start of file name, not at end.
3606
20d04697
L
36072000-04-18 H.J. Lu <hjl@gnu.org>
3608
3609 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3610 lang_leave_output_section_statement () after calling
3611 lang_enter_output_section_statement ().
3612 * emultempl/armelf.em: Likewise.
3613
5ba47421
AM
36142000-04-18 Alan Modra <alan@linuxcare.com.au>
3615
3616 * emultempl/elf32.em (struct orphan_save): Add section field.
3617 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3618 better order, and place first orphan section as we did before the
3619 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3620 Don't call make_bfd_section here, let wild_doit do the job for us.
3621 Don't build a statement list when we'll only throw it away.
3622 * emultempl/armelf.em: Ditto.
3623 * emultempl/pe.em: Similarly.
3624
bdbe5705
GK
36252000-04-14 Geoff Keating <geoffk@cygnus.com>
3626
3627 * scripttempl/elfppc.sc: Remove.
3628 * emulparams/elf32ppc.sh: Use elf.sc.
3629 * emulparams/elf32lppc.sh: Use elf.sc.
3630 * emulparams/elf32ppclinux.sh: Use elf.sc.
3631 * emulparams/elf32ppcsim.sh: New file.
3632 * emulparams/elf32lppcsim.sh: New file.
3633 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3634 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3635 * Makefile.in: Regenerate.
3636 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3637
01cc8ff8
AM
36382000-04-14 Alan Modra <alan@linuxcare.com.au>
3639
5ba47421 3640 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 3641 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
3642 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3643 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
3644 Also set all relocateable section start addresses.
3645
6c86c541
GK
36462000-04-13 Geoff Keating <geoffk@cygnus.com>
3647
3648 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3649 Add new BSS_PLT variable for when .plt need not be contained in
3650 the file. Move _etext so that it is also after .fini, and provide
3651 both etext and _etext with a leading underscore. Mark the start
3652 and end of .sbss.
3653
6a345e87
AM
36542000-04-12 Alan Modra <alan@linuxcare.com.au>
3655
3656 * emultempl/elf32.em (struct orphan_save): New.
3657 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3658 hold_interp): Make them struct orphan_save.
3659 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3660 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3661 the end of the relevant section list. Also add associated section
3662 statements to the end of any previous orphan statements.
3663 * emultempl/armelf.em: Similarly.
3664 * emultempl/pe.em: Similarly.
3665
8be86746
AM
36662000-04-11 Alan Modra <alan@linuxcare.com.au>
3667
3668 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3669
3b16e843 36702000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 3671
a2d91340 3672 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 3673 --enable-build-warnings option.
a2d91340
AC
3674 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3675 * Makefile.in, configure: Re-generate.
3676
41b49281
AM
36772000-04-04 Alan Modra <alan@linuxcare.com.au>
3678
8ad3436c
AM
3679 * po/ld.pot: Regenerate.
3680
3681 * lexsup.c (help): Restore translated part of bug string.
3682
41b49281
AM
3683 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3684 (DEP): Quote when passing vars to sub-make. Add warning message
3685 to end.
3686 (DEP1): Rewrite for "gcc -MM".
3687 (CLEANFILES): Add DEP2.
3688 Update dependencies.
3689 * Makefile.in: Regenerate.
3690
c20f4f8c
AM
36912000-04-03 Alan Modra <alan@linuxcare.com.au>
3692
3693 * ld.h: #include "bin-bugs.h"
3694 * lexsup.c (help): Use REPORT_BUGS_TO.
3695
adde6300
AM
36962000-03-27 Denis Chertykov <denisc@overta.ru>
3697
3698 * configure.tgt (avr-*-*): New target support.
3699 * Makefile.am: Likewise.
3700 * scripttempl/elf32avr.sc: New script file.
3701 * emulparams/avr1200.sh: New file.
3702 * emulparams/avr23xx.sh: New file.
3703 * emulparams/avr4433.sh New file.
3704 * emulparams/avr44x4.sh New file.
3705 * emulparams/avr85xx.sh New file.
3706 * emulparams/avrmega103.sh New file.
3707 * emulparams/avrmega161.sh New file.
3708 * emulparams/avrmega603.sh New file.
3709 * Makefile.in: Regenerate.
3710
9282ff41
L
37112000-03-09 Andreas Jaeger <aj@suse.de>
3712
3713 * Makefile.am (check-DEJAGNU): Also unset LANG.
3714 * Makefile.in: Rebuild.
3715
a9998805
ILT
37162000-03-06 Ian Lance Taylor <ian@zembu.com>
3717
3718 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3719 archive.
3720
f9bc20e7
NC
37212000-03-02 H.J. Lu <hjl@gnu.org>
3722
3723 * emulparams/elf32mcore.sh: Include "getopt.h".
3724
4e277b38
ILT
37252000-03-01 Ian Lance Taylor <ian@zembu.com>
3726
3727 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3728
f0c87f88
NC
37292000-03-01 H.J. Lu <hjl@gnu.org>
3730
3731 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3732 * emulparams/shpe.sh: Likewise.
3733
37342000-03-01 Nick Clifton <nickc@cygnus.com>
3735
3736 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3737 to unused parameters.
3738
3739 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3740 functions only used by DLL code.
3741 (_place_orphan): Initialise 'dollar'.
3742
b6f29aaa
L
37432000-03-01 H.J. Lu <hjl@gnu.org>
3744
3745 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3746 indicate if the undefined symbol is a fatal error or not.
3747 Don't delete the output file if "fatal" is false.
3748
af28fce3
L
37492000-02-29 H.J. Lu <hjl@gnu.org>
3750
50bbae35 3751 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
3752 Set LC_COLLATE and LC_ALL to null and export them. It is for
3753 sort which expects the C locale.
3754 Add $(LIBS) to all $(HOSTING_LIBS).
3755 * Makefile.in: Rebuild.
3756
40d109bf
AM
37572000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3758
3759 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3760 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3761 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3762 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3763 find_potential_libraries.
3764
db5be682
JB
37652000-02-28 Jim Blandy <jimb@redhat.com>
3766
3767 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3768 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3769 filename, so in something like `foo, bar' the comma is considered
3770 part of the first filename, `foo,'.
3771 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3772
3558ff4c
ILT
37732000-02-27 Loren J. Rittle <ljrittle@acm.org>
3774
3775 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3776 host "i[3456]86-*-freebsdelf*".
3777
4eee2681
ILT
37782000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3779
3780 * scripttempl/i386go32.sc: Move misplaced semicolons.
3781
8d75d12d
ILT
37822000-02-25 Ian Lance Taylor <ian@zembu.com>
3783
3784 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3785 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3786 (eelf64hppa.c, ehppaelf.c): Remove targets.
3787 * Makefile.in: Rebuild.
3788
a1836d49
AO
37892000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3790
ad51fb57
AO
3791 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3792 GNU/Linux/sparc, but keep the default as 32.
3793
a1836d49
AO
3794 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3795 it default if sparcv9 or sparc64.
3796
344a211f
NC
37972000-02-24 Nick Clifton <nickc@cygnus.com>
3798
3799 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3800 * Makefile.in: Regenerate.
3801 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3802
3803 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3804 find_potential_libraries.
3805 * ldemul.c (ldemul_find_potential_libraries): New function.
3806
3807 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 3808 exported.
344a211f
NC
3809 (ldfile_open_file): Call ldemul_find_potential_libraries.
3810 * ldfile.h: Add prototype for ldfile_open_file_search.
3811
3812 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3813
3814 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3815 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3816
3817 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3818 (gld_X_find_potential_libraries): New function. Search for
3819 libraries called "*.lib".
3820
a2b64bed 3821 * scripttempl/pe.sc: Add .pdata section.
344a211f 3822
eaba1dd3
RH
38232000-02-23 Richard Henderson <rth@cygnus.com>
3824
3825 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3826 Add and use memory regions.
3827
5b93d8bb
AM
38282000-02-23 Linas Vepstas (linas@linas.org)
3829
3830 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3831
3832 * Makefile.am: Add support for Linux/IBM 370.
3833 * configure.tgt: Likewise.
3834
3835 * Makefile.in: Regenerate.
3836
f6af82bd
AM
38372000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3838
3839 * ldlang.c (print_input_section, print_data_statement,
3840 print_reloc_statement, print_padding_statement, insert_pad,
3841 size_input_section, lang_check_section_addresses,
3842 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 3843 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
3844 (lang_do_assignments): Also change `size' to unsigned.
3845
9e673ad1
RH
38462000-02-16 Richard Henderson <rth@cygnus.com>
3847
3848 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3849
562d3460
TW
38502000-02-16 Timothy Wall <twall@cygnus.com>
3851
3852 * mri.c (mri_draw_tree): Add default LMA region argument to call
3853 to lang_leave_output_section_statement.
3854 * ldlang.h: Update prototypes with LMA region arguments.
3855 * ldlang.c (lang_size_sections): Encapsulate region bounds
3856 checking in os_check_region call.
3857 (os_check_region): New function.
3858 (lang_output_section_statement_lookup): Initialize lma_region.
3859 (lang_leave_output_section_statement): Add LMA region argument.
3860 (lang_leave_overlay): Ditto.
3861 * ldgram.y: Handle LMA region syntax.
3862 * ld.texinfo (Output Section Description): Describe LMA region usage.
3863 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 3864 lma region in call to lang_leave_output_section_statement.
562d3460 3865 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 3866 lma region in call to lang_leave_output_section_statement.
562d3460 3867 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 3868 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
3869
3870
9e4ed18c
TW
38712000-02-04 Timothy Wall <twall@redhat.com>
3872
3873 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3874 octets when calculating section end addresses.
3875
32edc927
TW
38762000-02-04 Timothy Wall <twall@redhat.com>
3877
3878 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3879
4cbfc3ac
TW
38802000-02-03 Timothy Wall <twall@redhat.com>
3881
a2b64bed 3882 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 3883 octet count.
a2b64bed 3884 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
3885 print_reloc_statement, print_padding_statement): Print target
3886 address values and section sizes as bytes, not octets.
3887 (insert_pad) Calculate padding size in octets, and adjust "dot"
3888 by bytes.
3889 (size_input_section) Always adjust "dot" by bytes, not octets.
3890 (lang_check_section_addresses, lang_do_assignments) Adjust
3891 "dot" by bytes, not octets. Use the larger of the directive size
3892 or octets_per_byte for the number of octets actually allocated in
3893 the output section.
3894 (lang_set_startof) Make sure STARTOF returns a target address.
3895 (lang_one_common) Record size changes in octets.
3896 (lang_abs_symbol_at_end_of) Section end symbol's value is
3897 recorded in target bytes.
3898 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3899 to be clear about behavior when an octet is smaller than one byte.
50bbae35 3900
305c7206
AM
39012000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3902
3903 * ldcref.c (output_cref): Don't pass message strings to printf
3904 as format arg.
3905 Update copyright.
3906
3907 * ldmisc.c (vfinfo): Same here.
3908 Update copyright.
3909
e1c47aa4
AM
39102000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3911
3912 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3913 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3914 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3915 Add missing NULL initialisers, and comments.
3916
3917 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3918
13392b77
NC
39192000-01-21 Nick Clifton <nickc@cygnus.com>
3920
3921 * ldlang.c (lang_size_sections): Fix typo in comment.
3922
cce4c4c5
NC
39232000-01-18 H.J. Lu <hjl@gnu.org>
3924
3925 * ldlang.c (lang_size_sections): Also update the current
3926 address of a region if the SEC_NEVER_LOAD bit is not set.
3927
0decc840
NC
39282000-01-10 Philip Blundell <pb@futuretv.com>
3929
3930 * configure.tgt (arm*-*-conix*): New target.
3931
4e53152f
NC
39322000-01-07 Nick Clifton <nickc@cygnus.com>
3933
3934 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
3935 line switches with -Wl, (or whatever is appropriate) if it is
3936 being invoked by a comnpiler driver program.
50bbae35 3937 Fix description of the behaviour of the -n command line switch.
4e53152f 3938
3b16e843 39392000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
3940
3941 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3942 (name_list): New.
3943 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3944 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3945 (exclude_name_list): New.
3946 ldlang.c (walk_wild_section): Support list of excluded files.
3947 (print_wild_statement): Likewise.
3948 (lang_add_wild): Likewise.
3949 * ldlang.h (lang_wild_statement_type): Likewise.
3950 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 3951
5aaace27
NC
39522000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3953
870df5dc
NC
3954 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3955 (process_def_file): Use.
3956 (pe_dll_compat_implib): New variable.
3957 (make_one): Use.
50bbae35 3958
870df5dc
NC
3959 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3960 pe_dll_compat_implib.
50bbae35
AM
3961
3962 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
3963 compat-implib options.
3964 (gld_${EMULATION_NAME}_list_options): List new options.
3965 (gld_${EMULATION_NAME}_parse_args): Handle.
3966
50bbae35 3967 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 3968 dll.
50bbae35
AM
3969
3970 * deffilep.y (opt_name): Allow "." in name.
5aaace27 3971
2f6d2f85 3972For older changes see ChangeLog-9899
252b5132
RH
3973\f
3974Local Variables:
3975mode: change-log
3976left-margin: 8
3977fill-column: 74
3978version-control: never
3979End:
This page took 0.341047 seconds and 4 git commands to generate.