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