2000-09-12 Kazu Hirata <kazu@hxi.com>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
891fa266
NC
12000-09-10 Nick Clifton <nickc@redhat.com>
2
3 * mri.c: Fix formatting.
4
5d64ca4e
L
52000-09-07 H.J. Lu <hjl@gnu.org>
6
7 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
8 * configure: Rebuild.
9
dd94604f
L
102000-09-07 H.J. Lu <hjl@gnu.org>
11
12 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
13 * Makefile.in: Rebuild.
14
71bfc0ae
AM
152000-09-07 Alan Modra <alan@linuxcare.com.au>
16
17 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
18 broken list handling. Create __start_SECNAME and __stop_SECNAME
19 when no place-holder. Add some comments. Test both SEC_CODE and
20 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 21 Handle case where no output section statement created.
71bfc0ae 22
4a428502
AO
232000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
24
25 * configure.tgt (sh-*-linux*): Added.
26 * Makefile.am: Added eshelf_linux and eshlelf_linux.
27 * Makefile.in: Rebuilt.
28 * emulparams/shelf_linux.sh: New file.
29 * emulparams/shlelf_linux.sh: New file.
30
f9989030
AM
312000-09-06 Alan Modra <alan@linuxcare.com.au>
32
33 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
34 try shuffling sections when the orphan happens to be the place
35 holder. Keep count of unique section names generated so we speed
36 the search for a new name.
37
58cccadb
AO
382000-09-06 Alexandre Oliva <aoliva@redhat.com>
39
40 * configure: Rebuilt with new libtool.m4.
41
5b343f5a
NC
422000-09-05 Nick Clifton <nickc@redhat.com>
43
44 * Makefile.in: Regenerate.
45 * aclocal.m4: Regenerate.
46 * configure: Regenerate.
47 * config.in: Regenerate.
48 * po/ld.pot: Regenerate.
49
50 * ldint.texinfo: Remove CVS revision marker - it foils local
51 comparisons.
52
53 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 54
a854a4a7
AM
552000-09-05 Alan Modra <alan@linuxcare.com.au>
56
3231d22e
AM
57 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
58 to stub section flags.
59 (hppa_for_each_input_file_wrapper): New.
60 (hppa_lang_for_each_input_file): New.
61 (lang_for_each_input_file): Define to call above.
62 (multi_subspace): New.
63 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
64 (PARSE_AND_LIST_PROLOGUE): Define.
65 (PARSE_AND_LIST_LONGOPTS): Define.
66 (PARSE_AND_LIST_OPTIONS): Define.
67 (PARSE_AND_LIST_ARGS_CASES): Define.
68 (hppaelf_finish): Call elf32_hppa_set_gp.
69 (hppaelf_set_output_arch): Remove.
70 (LDEMUL_SET_OUTPUT_ARCH): Remove.
71
72 * emulparams/hppalinux.sh (ELFSIZE): Define.
73 (MACHINE): Define.
74 (OTHER_READONLY_SECTIONS): Define.
75 (DATA_PLT): Define.
76 (GENERATE_SHLIB_SCRIPT): Define.
77
5f992e62
AM
78 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
79 to const throughout. Change `void *' to `PTR' throughout.
80 (lang_memory_default): Function is local to file, add `static'.
81
82 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
83 (ehppalinux.c): Likewise.
84 (earmelf.c): Likewise.
85 (earmelf_linux.c): Likewise.
86 (earmelf_linux26.c): Likewise.
87 * Makefile.in: Regenerate.
88
a854a4a7
AM
89 * ld.h (ld_config_type): Add unique_orphan_sections.
90 * lexsup.c (OPTION_UNIQUE): Define.
91 (ld_options): Add "--unique".
92 (parse_args): Handle it.
93 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
94 search for an existing output section if unique_orphan_sections is
95 set. Make use of bfd_get_unique_section_name rather than
96 duplicating code here.
97 * ld.texinfo: Describe --unique.
98
99 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
100 optional arg to split-by-file.
101 (parse_args): Handle them.
102 * ld.texinfo: Update description of these options.
103 * ldwrite.c (clone_section): Pass in the section name. Replace
104 local code with bfd_get_unique_section_name.
105 (split_sections): Tidy code and comments. Use a list traversal
106 more appropriate to the list construction. Handle cooked section
107 sizes. Split when split_by_reloc reached rather than exceeded.
108 Track section size and split when split_by_file reached. Fix
109 link_order_tail (even though it's not used).
110 (ldwrite): Modify condition for calling split_sections to suit
111 changed split_by_reloc and split_by_file.
112 * ldmain.c (main): Init config.split_by_reloc and
113 config.split_by_file to -1.
114 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
115 Change split_by_file to bfd_size_type.
116
18e03609
NC
1172000-09-02 Nick Clifton <nickc@redhat.com>
118
119 * configure.in: Increase version number to 2.10.91.
120 * NEWS: Mention new ability to support removal of duplicate DWARF2
121 debug information.
122 * configure: Regenerate.
123 * aclocal.m4: Regenerate.
124 * config.in: Regenerate.
125
3a9d486c
NC
1262000-09-02 Daniel Berlin <dberlin@redhat.com>
127
128 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
129 sections.
130 * scripttempl/elf32var.sc: Ditto.
131 * scripttempl/elfd10v.sc: Ditto.
132 * scripttempl/elfd30v.sc: Ditto.
133 * scripttempl/elfi370.sc: Ditto.
134 * scripttempl/elfm68hc11.sc: Ditto.
135 * scripttempl/elfm68hc12.sc: Ditto.
136 * scripttempl/elfi386beos.sc: Ditto.
137 * scripttempl/v850.sc: Ditto.
50bbae35 138
ac48eca1
AO
1392000-08-31 Alexandre Oliva <aoliva@redhat.com>
140
141 * acinclude.m4: Include libtool and gettext macros from the
142 top level.
143 * aclocal.m4, configure: Rebuilt.
144
c13b1b77
NC
1452000-08-25 Nick Clifton <nickc@redhat.com>
146
147 * ldlang.c (open_output): When choosing the target for a
148 particular endianness, do nothing if the target is not
149 supported.
150
dcb0bd0e
L
1512000-08-25 H.J. Lu <hjl@gnu.org>
152
153 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
154 check -rpath nor LD_RUN_PATH for cross link.
155 * ld.texinfo: Document the change.
156
5bcac8a4
HPN
1572000-08-24 Hans-Peter Nilsson <hp@axis.com>
158
159 * NEWS: Mention support for CRIS.
160
6dd8c765
L
1612000-08-23 H.J. Lu <hjl@gnu.org>
162
163 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
164 the current runpath list from bfd_elf_get_runpath_list ()
165 before search.
166
ec4eb78a
L
1672000-08-22 H.J. Lu <hjl@gnu.org>
168
169 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
170 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
171 LD_LIBRARY_PATH for native linker. Display the needed DSO if
172 trace_file_tries is non-zero.
173 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
174 if trace_file_tries is non-zero.
175
176 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 177 * NEWS: Mention it.
ec4eb78a 178
22b36938
JE
1792000-08-14 Jason Eckhardt <jle@cygnus.com>
180
181 * NEWS: Mention i860 support.
182
d73e9da0
AS
1832000-08-14 Andreas Schwab <schwab@suse.de>
184
185 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 186 syntax.
d73e9da0 187
9ac4db9c
GK
1882000-08-10 Geoff Keating <geoffk@cygnus.com>
189
190 * scripttempl/elf.sc: Add a comment giving the correspondence
191 between sections, per-datum sections, and linkonce sections. Make
192 the comment true even for .bss, .sdata, .sdata2, .sbss, and
193 .sbss2.
194
165589e4
JE
1952000-08-10 Jason Eckhardt <jle@cygnus.com>
196
197 * emulparams/elf32_i860.sh: New file.
198 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
199 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
200 (eelf32_i860.c): New rule.
201 * Makefile.in: Regenerate.
202
345a835d
NC
2032000-08-10 Nick Clifton <nickc@cygnus.com>
204
205 * emulparams/mipspe.sh (ENTRY): Add definition.
206
e374f1d9
NC
2072000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
208
209 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
210 in error message.
211
236d5abf
NC
2122000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
213
214 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
215 the final size of .bss section.
216 * scripttempl/elfm68hc12.sc: Likewise.
217
4b209b22
AM
2182000-08-04 Alan Modra <alan@linuxcare.com.au>
219
220 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
221 gld${EMULATION_NAME}_parse_args for consistency. Combine
222 lastoptind and prevoptind vars, and keep track of last optind.
223 (gld_${EMULATION_NAME}_list_options): Rename to
224 gld${EMULATION_NAME}_list_options.
225
28423a68
AM
2262000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
227
228 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
229 (i586-sco-sysv5uw7.1.0).
230
b2009ff7
L
2312000-07-27 H.J. Lu <hjl@gnu.org>
232
233 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
234 (PARSE_AND_LIST_PROLOGUE): New.
235 (PARSE_AND_LIST_LONGOPTS): Likewise.
236 (PARSE_AND_LIST_OPTIONS): Likewise.
237 (PARSE_AND_LIST_ARGS_CASES): Likewise.
238 (PARSE_AND_LIST_EPILOGUE): Likewise.
239
04925e1e
AM
2402000-07-28 Alan Modra <alan@linuxcare.com.au>
241
41392f03
AM
242 * emultempl/armelf.em: Elide functions common to elf32.em,
243 ie. most of the file.
244 (arm_elf_after_open): New. Do arm specific things then call
245 gld${EMULATION_NAME}_after_open.
246 (arm_elf_before_allocation): New. Call
247 gld${EMULATION_NAME}_before_allocation then do arm specifics.
248 (PARSE_AND_LIST_PROLOGUE): Define.
249 (PARSE_AND_LIST_SHORTOPTS): Define.
250 (PARSE_AND_LIST_LONGOPTS): Define.
251 (PARSE_AND_LIST_OPTIONS): Define.
252 (PARSE_AND_LIST_ARGS_CASES): Define.
253 (LDEMUL_AFTER_OPEN): Define.
254 (LDEMUL_BEFORE_ALLOCATION): Define.
255 (LDEMUL_BEFORE_PARSE): Define.
256 (LDEMUL_FINISH): Define.
257
258 * emultempl/hppaelf.em: Similarly zap most of this file.
259 (hppaelf_add_stub_section): Prototype.
260 (hppaelf_layaout_sections_again): Prototype.
261 (hook_in_stub): Prototype.
262 (LDEMUL_SET_OUTPUT_ARCH): Define.
263 (LDEMUL_FINISH): Define.
264 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
265
266 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
267 (EXTRA_EM_FILE): New.
268 * emulparams/armelf_linux.sh: Likewise.
269 * emulparams/armelf_linux26.sh: Likewise.
270 * emulparams/hppalinux.sh: Likewise.
271 * emulparams/hppaelf.sh: Likewise.
272 (NOP): Define.
273
274 * emultempl/elf32.em: Fix formatting.
275 (EXTRA_EM_FILE): Source it.
276 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
277 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
278 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
279 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
280 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
281 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
282 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
283 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
284 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
285 allow functions in this file to be overridden.
286 (PARSE_AND_LIST_SHORTOPTS): Handle it.
287
288 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
289
04925e1e
AM
290 * emultempl/elf32.em: Reorganize file.
291
88cdf297
NC
2922000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
293
294 * emulparams/elf64alpha.sh: Implement "-taso" emulation
295 specific option to fit 64-bit executable in the lower
296 31-bit address range. This is done by changing start
297 address of .interp (the very first section of executable)
298 and then setting EF_ALPHA_32BIT elf header flag.
299
20bccb34
NC
3002000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
301
302 * emultempl/m68kcoff.em: New file.
303 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
304 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
305 generic.em.
306 * Makefile.in: Regenerate.
307
699845ef
L
3082000-07-20 H.J. Lu <hjl@gnu.org>
309
310 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
311 and "disable-new-dtags" to stop getopt from treating -d/-e as
312 abbreviations for these options.
313
6c1439be
L
3142000-07-20 H.J. Lu <hjl@gnu.org>
315
316 * ld.texinfo: Add documentation for --disable-new-dtags and
317 --enable-new-dtags.
318
319 * ldmain.c (main): Initialize link_info.new_dtags to false.
320
321 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
322 --disable-new-dtags and --enable-new-dtags.
323 (gld_${EMULATION_NAME}_list_options): Likewise.
324
28c309a2
NC
3252000-07-05 Kenneth Block <krblock@computer.org>
326
50bbae35
AM
327 * ld/lexsup.c: Add optional style to demangle switch
328 * ld/ld.texinfo: Document optional style to demangle switch.
329
9d06555c
HPN
3302000-07-20 Hans-Peter Nilsson <hp@axis.com>
331
332 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
333 ecrislinux.o.
334 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
335 Regenerate dependencies.
336 * Makefile.in: Rebuild.
337 * configure.tgt (cris-*-*): New target.
338 * emulparams/crisaout.sh, emulparams/criself.sh,
339 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
340 * po/POTFILES.in, po/ld.pot: Regenerate.
341
19e3be22
L
3422000-07-20 H.J. Lu <hjl@gnu.org>
343
344 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
345 Print out ignored -z options.
346
e0ee487b
L
3472000-07-19 H.J. Lu <hjl@gnu.org>
348
19e3be22
L
349 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
350 (PARSE_AND_LIST_PROLOGUE): New.
351 (PARSE_AND_LIST_LONGOPTS): Likewise.
352 (PARSE_AND_LIST_OPTIONS): Likewise.
353 (PARSE_AND_LIST_ARGS_CASES): Likewise.
354
355 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
356
357 * lexsup.c (ld_options): Comment out 'z'.
358 (parse_args): Likewise.
359
360 * emultempl/elf32.em: Include "elf/common.h".
361 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
362 options.
363 (gld_${EMULATION_NAME}_list_options): Likewise.
364
365 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 366
49e56c49
L
3672000-07-19 H.J. Lu <hjl@gnu.org>
368
369 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
370 bfd_elf_set_dt_needed_soname ().
371
9d68bc82
DD
3722000-07-18 DJ Delorie <dj@cygnus.com>
373
374 * pe-dll.c (pe_dll_id_target): check object target name also
375
53db15ed
HPN
3762000-07-18 Hans-Peter Nilsson <hp@axis.com>
377
378 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
379 ${INIT_END} if relocating.
380 (.fini): Likewise ${FINI_START} and ${FINI_END}.
381
0ad8cf4c
DD
3822000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
383
384 * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
385 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
386 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
387 errors introduced by the old dynamic lib search order.
388
874c8c99
DD
3892000-07-17 DJ Delorie <dj@cygnus.com>
390
391 * pe-dll.c (process_def_file): auto-export data items also
392 (pe_process_import_defs): also see if _imp_ form needed
393
5b4cf3f4
DD
3942000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
395
396 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
397 for dll import libraries
398
062739d1
NC
3992000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
400
401 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
402 gcc 2.95.2 and later.
403
1c64c4ed
NC
4042000-07-11 Kazu Hirata <kazu@hxi.com>
405
50bbae35
AM
406 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
407 message.
1c64c4ed 408
b71e2778
AM
4092000-07-10 Alan Modra <alan@linuxcare.com.au>
410
411 * ldemul.h (struct lang_input_statement_struct): Remove forward
412 declaration.
413 (struct search_dirs): Likewise.
414 * ldfile.h (struct lang_input_statement_struct): Likewise.
415 Protect file from multiple inclusion.
416 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
417 declaration from macro to file scope.
418
419 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
420 * ldgram.y: Likewise here.
421 * ldlang.c: And here.
422 * ldmain.c: And here.
423 * mpw-elfmips.c: And here.
424 * mpw-eppcmac.c: And here.
425 * emultempl/aix.em: And here.
426 * emultempl/armcoff.em: And here.
427 * emultempl/armelf.em: And here.
428 * emultempl/armelf_oabi.em: And here.
429 * emultempl/beos.em: And here.
430 * emultempl/elf32.em: And here.
431 * emultempl/hppaelf.em: And here.
432 * emultempl/linux.em: And here.
433 * emultempl/lnk960.em: And here.
434 * emultempl/pe.em: And here.
435 * emultempl/sunos.em: And here.
436 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
437 * mpw-idtmips.c: Ditto.
438 * emultempl/generic.em: Ditto.
439 * emultempl/gld960.em: Ditto.
440 * emultempl/gld960c.em: Ditto.
441 * emultempl/mipsecoff.em: Ditto.
442 * emultempl/ticoff.em: Ditto.
443 * emultempl/vanilla.em: Ditto.
444
445 * pe-dll.c: Include ldfile.h
446 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
447
448 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
449 arguments to bfd_elf32_size_dynamic_sections call.
450 (gldelf32ebmip_place_orphan): Add missing arguments to
451 lang_leave_output_section_statement call.
452
2ef53d66
L
4532000-07-10 H.J. Lu <hjl@gnu.org>
454
455 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
456 DLL_SUPPORT.
457 (strhash): Likewise.
458 (compute_dll_image_base): Likewise.
459 (pe_undef_found_sym): Likewise.
460 (pe_undef_cdecl_match): Likewise.
461 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
462 argument "arch" with ATTRIBUTE_UNUSED.
463
9a8cbb09
AM
4642000-07-10 Alan Modra <alan@linuxcare.com.au>
465
466 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
467
468 From Ryan Bradetich <rbradetich@uswest.net>
469 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 470
4900fc06
AM
4712000-07-09 Alan Modra <alan@linuxcare.com.au>
472
473 Changes to create multiple linker stubs, positioned immediately
474 before the section where they are required.
475 * emultempl/hppaelf.em: Include elf32-hppa.h.
476 (stub_sec, file_chain): Delete.
477 (hppaelf_create_output_section_statements): Don't make a stub
478 section here.
479 (hook_stub_info): New struct.
480 (hook_in_stub): New function.
481 (hppaelf_add_stub_section): New function.
482 (hppaelf_finish): Do nothing for relocateable links. Modify the
483 call to elf32_hppa_size_stubs. Move code for updating section
484 layout from here...
485 (hppaelf_layaout_sections_again): ..to here, a new function.
486
487 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
488 broken list handling. Pass in a pointer to the list.
489 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
490 for above changes.
491 (hppaelf_before_parse): Prototype.
492 (hppaelf_set_output_arch): Prototype.
493 (hppaelf_create_output_section_statements): Prototype.
494 (hppaelf_delete_padding_statements): Prototype.
495 (hppaelf_finish): Prototype.
496
497 Merge from elf32.em
498 * emultempl/hppaelf.em: Include ctype.h.
499 (struct orphan_save): New.
500 (gld${EMULATION_NAME}_place_orphan): New.
501 (output_rel_find): New.
502 (hppaelf_get_script): Update from elf32.em.
503 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
504 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 505 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
506
507 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
508 ehppalinux.o, sort it. Regenerate dependencies.
509 (ehppalinux.c): Depend on hppaelf.em
510 * Makefile.in: Regenerate.
511
512 * configure.tgt: targ_emul=hppalinux for hppa*linux
513
514 * emulparams/hppalinux.sh: New.
515 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
516
227aeb07
AM
5172000-07-08 Alan Modra <alan@linuxcare.com.au>
518
519 * lexsup.c (parse_args): Copy section name.
520
28609fd4 5212000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 522
2ef53d66 523 * emultempl/pe.em: institute the following search order for
602e90d3
DD
524 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
525 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
526 static lib (libfoo.a) if none of the above are found.
527
5f577f7d
DD
5282000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
529
50bbae35 530 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 531 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 532 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
533 (gld_${EMULATION_NAME}_parse): Handle.
534 (strhash): New static function.
50bbae35 535 (compute_dll_image_base): New static function.
5f577f7d
DD
536 (gld_${EMULATION_NAME}_set_symbols): Use.
537
9a8cbb09 5382000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
539
540 * MAINTAINERS: new
541
3548145d 5422000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
543
544 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
545 * emulparams/elf32btsmip.sh: New file.
546 * Makefile.am: Add traditional mips target.
547 * Makefile.in: Rebuild.
548
67798033
L
5492000-07-01 H.J. Lu <hjl@gnu.org>
550
551 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
552 automake to use YLWRAP.
553 * Makefile.in: Rebuild.
554
0bdaf48b
AM
5552000-07-01 Alan Modra <alan@linuxcare.com.au>
556
557 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
558 (CLEANFILES): Add DEPA.
559 * Makefile.in: Regenerate.
560
c9e769c2
TW
5612000-06-30 Timothy Wall <twall@ppc>
562
563 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
564 the page in the upper octet of the address.
565
65aa24b6
NC
5662000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
567
568 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
569
4667035e
AM
5702000-06-24 Alan Modra <alan@linuxcare.com.au>
571
572 * NEWS: arm-elf does --gc-sections too.
573
1581f8c9
AM
5742000-06-22 Alan Modra <alan@linuxcare.com.au>
575
576 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
577 find one.
578 * Makefile.in: Regenerate.
579
01580992
L
5802000-06-21 H.J. Lu <hjl@gnu.org>
581
582 * Makefile.am: Rebuild dependency.
583 * Makefile.in: Rebuild.
584
bbeb2e03
L
5852000-06-20 H.J. Lu <hjl@gnu.org>
586
587 * Makefile.am: Rebuild dependency.
588 * Makefile.in: Rebuild.
589
74459f0e
TW
5902000-06-20 Timothy Wall <twall@cygnus.com>
591
592 * scripttempl/tic54xcoff.sc: New.
593 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
594 * gen-doc.texi: Add flag for TI COFF.
595 * ld.texinfo: Add documentation for TI COFF handling switches.
596 * emultempl/ticoff.em: New. TI COFF handling.
597 * configure.tgt: Add tic54x target.
598 * Makefile.am: Add tic54x target.
599 * Makefile.in: Ditto.
600
2ab47eed
AM
6012000-06-20 Alan Modra <alan@linuxcare.com.au>
602
603 * ldmain.c (set_scripts_dir): Correct pointer comparison when
604 checking for backslashes.
605
919e4093
AM
6062000-06-19 Alan Modra <alan@linuxcare.com.au>
607
608 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
609
987fd5b4
AM
6102000-06-18 Alan Modra <alan@linuxcare.com.au>
611
612 * NEWS: Update list of targets supporting --gc-sections.
613
614 * scripttempl/elf.sc: KEEP .eh_frame contents.
615 * scripttempl/elfd30v.sc: Same here.
616
60bcf0fa
NC
6172000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
618
619 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
620 and m68hc11 (elf).
621 * Makefile.in: Rebuild.
622 * configure.tgt: Recognize m68hc12 and m68hc11.
623 * scripttempl/elfm68hc12.sc: New file.
624 * emulparams/m68hc12elfb: New emulation.
625 * emulparams/m68hc12elf: New emulation.
626 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
627 (includes a memory.x script to define the ROM and RAM banks).
628 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
629 New configuration files for support of Motorola 68hc11
630
c7c54483
AM
6312000-06-15 Alan Modra <alan@linuxcare.com.au>
632
633 * ldmain.c (main): Only change SEC_READONLY for final link.
634
bcef29e6
L
6352000-06-13 H.J. Lu <hjl@gnu.org>
636
637 * configure: Regenerate.
638
946efd95
DB
6392000-06-08 David O'Brien <obrien@FreeBSD.org>
640
641 * configure.in (VERSION): Update to show this is the CVS mainline.
642
57a6fd07
DB
6432000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
644
645 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
646 input objects to be ECOFF.
647 (check_sections): einfo takes %B, not %P, to print a BFD name.
648
e06cae36
L
6492000-06-05 Michael Matz <matz@ifh.de>
650
651 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
652 version scripts.
653
654 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
655
2f0b56c0
DC
6562000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
657
658 * emulparams/avr1200.sh (STACK): Define as 0.
659 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
660 * emulparams/avr4433.sh (STACK): Likewise.
661 * emulparams/avr44x4.sh (STACK): Likewise.
662 * emulparams/avr85xx.sh (STACK): Likewise.
663 * emulparams/avrmega103.sh (STACK): Likewise.
664 * emulparams/avrmega161.sh (STACK): Likewise.
665 * emulparams/avrmega603.sh (STACK): Likewise.
666 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
667 (__stack): Define from ${STACK} for main().
668
2114f57b
AM
6692000-05-26 Alan Modra <alan@linuxcare.com.au>
670
671 * Makefile.am: Update dependencies with "make dep-am"
672 * Makefile.in: Regenerate.
673
5af11cab
AM
6742000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
675
676 * ldmain.c: Include filenames.h.
677 (set_scripts_dir): Support backslashes in program name.
678
1f0df59a
NC
6792000-05-22 Igor Shevlyakov <igor@windriver.com>
680
681 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
682 read-only, don't forget to reset SEC_READONLY because it
683 could be already set.
1f0df59a 684
176355da
NC
6852000-05-22 Thomas de Lellis <tdel@windriver.com>
686
50bbae35
AM
687 * ld.1: Add documentation for new command line option:
688 --section-start <sectionname>=<sectionorg>
689 This is a generic version of -Ttext etc. which accepts
690 any section name as a parameter instead of just text/data/
691 bss.
692 * ld.texinfo: More docs.
693 * NEWS: More docs.
694 * lexsup.c: (parse_args): Recognize new command line option.
176355da 695 (ld_options): Add new option.
50bbae35 696
8c5ff972
L
6972000-05-18 H.J. Lu <hjl@gnu.org>
698
699 * lexsup.c (parse_args): `i' == `r', not `q'.
700
0b76fe77
JL
701Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
702
703 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
704
a712da20
NC
7052000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
706 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 707
a712da20
NC
708 Add support for '-q' == '--emit-relocs' switch.
709 * ldmain.c (main): Default to false.
710 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
711 * NEWS: Describe the emitrelocations switch.
712 * ld.texinfo: Describe the emitrelocations switch.
713
690a460e
NC
7142000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
715
716 * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
717 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
718 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
719 link options.
50bbae35 720
c2f1343c
AM
7212000-05-15 David O'Brien <obrien@FreeBSD.org>
722
723 * lexsup.c (parse_args): Update the year in the copyright notice.
724
897083bd
AM
7252000-05-13 Alan Modra <alan@linuxcare.com.au>
726
727 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
728 Replace defines with those from intl/libgettext.h to quieten gcc
729 warnings.
730
cd4c806a
L
7312000-05-10 H.J. Lu <hjl@gnu.org>
732
733 * ldlang.c (open_input_bfds): Don't load the same file within
734 a group again if the whole archive has been loaded already.
735
93697284
AM
7362000-05-03 Alan Modra <alan@linuxcare.com.au>
737
738 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
739 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
740 strtoul.
741
ebd6fc29
JW
742Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
743
99a4150f 744 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 745
ebd6fc29
JW
746 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
747 host "ia64-*-linux-gnu*".
748
a1934524
AM
7492000-04-29 Andreas Jaeger <aj@suse.de>
750
751 * ld.h: Correctly check GCC version.
752
730a39a0
JL
753Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
754
755 * Makefile.am: Add PA64 support. Add missing dependencies for
756 PA32 elf support.
757 * Makefile.in: Rebuilt.
758 * configure.tgt: Add PA64 support (currently disabled).
759
aea4bd9d
AM
7602000-04-25 Alan Modra <alan@linuxcare.com.au>
761
762 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
763 (output_rel_find): New function.
764 (hold_section, hold_use): Delete.
765 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
766 hold_interp): Make local to place_orphan.
767 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
768 rather than place_section to find possible previous use of orphan.
769 Similarly find the place-holder output sections. Use returned
770 value from lang_enter_output_section_statement rather than calling
771 lang_output_section_statement_lookup.
772 * emultempl/armelf.em: Same here.
773 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
774
775 * ldlang.c (lang_enter_output_section_statement): Return output
776 section statement.
777 * ldlang.h (lang_enter_output_section_statement): Change
778 declaration too.
779
780 * ldlang.h (lang_output_section_statement): Export it.
781 * ldlang.c (lang_output_section_statement): Ditto.
782
2b5fc1f5
NC
7832000-04-24 Nick Clifton <nickc@cygnus.com>
784
785 * ld.texinfo (Output Section Data): Add note that section data
786 commands cannot appear outside of section directives.
787
d8475ff6
JL
7882000-04-2 Matthew Green <mrg@cygnus.com>
789
790 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
791
800eeca4
JW
792Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
793 David Mosberger <davidm@hpl.hp.com>
794
795 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
796 (eelf64_ia64.c): New rule.
797 * Makefile.in: Rebuild.
798 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
799 * emulparams/elf64_ia64.sh: New file.
50bbae35 800
c9637625
RH
8012000-04-21 Richard Henderson <rth@cygnus.com>
802
803 * scripttempl/elfd30v.sc: Place .gcc_except_table.
804
28ea9521
AM
8052000-04-19 Alan Modra <alan@linuxcare.com.au>
806
807 * dep-in.sed: Match space at start of file name, not at end.
808
20d04697
L
8092000-04-18 H.J. Lu <hjl@gnu.org>
810
811 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
812 lang_leave_output_section_statement () after calling
813 lang_enter_output_section_statement ().
814 * emultempl/armelf.em: Likewise.
815
5ba47421
AM
8162000-04-18 Alan Modra <alan@linuxcare.com.au>
817
818 * emultempl/elf32.em (struct orphan_save): Add section field.
819 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
820 better order, and place first orphan section as we did before the
821 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
822 Don't call make_bfd_section here, let wild_doit do the job for us.
823 Don't build a statement list when we'll only throw it away.
824 * emultempl/armelf.em: Ditto.
825 * emultempl/pe.em: Similarly.
826
bdbe5705
GK
8272000-04-14 Geoff Keating <geoffk@cygnus.com>
828
829 * scripttempl/elfppc.sc: Remove.
830 * emulparams/elf32ppc.sh: Use elf.sc.
831 * emulparams/elf32lppc.sh: Use elf.sc.
832 * emulparams/elf32ppclinux.sh: Use elf.sc.
833 * emulparams/elf32ppcsim.sh: New file.
834 * emulparams/elf32lppcsim.sh: New file.
835 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
836 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
837 * Makefile.in: Regenerate.
838 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
839
01cc8ff8
AM
8402000-04-14 Alan Modra <alan@linuxcare.com.au>
841
5ba47421 842 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 843 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
844 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
845 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
846 Also set all relocateable section start addresses.
847
6c86c541
GK
8482000-04-13 Geoff Keating <geoffk@cygnus.com>
849
850 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
851 Add new BSS_PLT variable for when .plt need not be contained in
852 the file. Move _etext so that it is also after .fini, and provide
853 both etext and _etext with a leading underscore. Mark the start
854 and end of .sbss.
855
6a345e87
AM
8562000-04-12 Alan Modra <alan@linuxcare.com.au>
857
858 * emultempl/elf32.em (struct orphan_save): New.
859 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
860 hold_interp): Make them struct orphan_save.
861 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
862 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
863 the end of the relevant section list. Also add associated section
864 statements to the end of any previous orphan statements.
865 * emultempl/armelf.em: Similarly.
866 * emultempl/pe.em: Similarly.
867
8be86746
AM
8682000-04-11 Alan Modra <alan@linuxcare.com.au>
869
870 * ld.texinfo (Simple Example): Remove extraneous paragraph.
871
a2d91340 872Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 873
a2d91340 874 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 875 --enable-build-warnings option.
a2d91340
AC
876 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
877 * Makefile.in, configure: Re-generate.
878
41b49281
AM
8792000-04-04 Alan Modra <alan@linuxcare.com.au>
880
8ad3436c
AM
881 * po/ld.pot: Regenerate.
882
883 * lexsup.c (help): Restore translated part of bug string.
884
41b49281
AM
885 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
886 (DEP): Quote when passing vars to sub-make. Add warning message
887 to end.
888 (DEP1): Rewrite for "gcc -MM".
889 (CLEANFILES): Add DEP2.
890 Update dependencies.
891 * Makefile.in: Regenerate.
892
c20f4f8c
AM
8932000-04-03 Alan Modra <alan@linuxcare.com.au>
894
895 * ld.h: #include "bin-bugs.h"
896 * lexsup.c (help): Use REPORT_BUGS_TO.
897
adde6300
AM
8982000-03-27 Denis Chertykov <denisc@overta.ru>
899
900 * configure.tgt (avr-*-*): New target support.
901 * Makefile.am: Likewise.
902 * scripttempl/elf32avr.sc: New script file.
903 * emulparams/avr1200.sh: New file.
904 * emulparams/avr23xx.sh: New file.
905 * emulparams/avr4433.sh New file.
906 * emulparams/avr44x4.sh New file.
907 * emulparams/avr85xx.sh New file.
908 * emulparams/avrmega103.sh New file.
909 * emulparams/avrmega161.sh New file.
910 * emulparams/avrmega603.sh New file.
911 * Makefile.in: Regenerate.
912
9282ff41
L
9132000-03-09 Andreas Jaeger <aj@suse.de>
914
915 * Makefile.am (check-DEJAGNU): Also unset LANG.
916 * Makefile.in: Rebuild.
917
a9998805
ILT
9182000-03-06 Ian Lance Taylor <ian@zembu.com>
919
920 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
921 archive.
922
f9bc20e7
NC
9232000-03-02 H.J. Lu <hjl@gnu.org>
924
925 * emulparams/elf32mcore.sh: Include "getopt.h".
926
4e277b38
ILT
9272000-03-01 Ian Lance Taylor <ian@zembu.com>
928
929 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
930
f0c87f88
NC
9312000-03-01 H.J. Lu <hjl@gnu.org>
932
933 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
934 * emulparams/shpe.sh: Likewise.
935
9362000-03-01 Nick Clifton <nickc@cygnus.com>
937
938 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
939 to unused parameters.
940
941 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
942 functions only used by DLL code.
943 (_place_orphan): Initialise 'dollar'.
944
b6f29aaa
L
9452000-03-01 H.J. Lu <hjl@gnu.org>
946
947 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
948 indicate if the undefined symbol is a fatal error or not.
949 Don't delete the output file if "fatal" is false.
950
af28fce3
L
9512000-02-29 H.J. Lu <hjl@gnu.org>
952
50bbae35 953 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
954 Set LC_COLLATE and LC_ALL to null and export them. It is for
955 sort which expects the C locale.
956 Add $(LIBS) to all $(HOSTING_LIBS).
957 * Makefile.in: Rebuild.
958
40d109bf
AM
9592000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
960
961 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
962 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
963 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
964 (ld_emulation_xfer_struct): Add missing NULL initialiser for
965 find_potential_libraries.
966
db5be682
JB
9672000-02-28 Jim Blandy <jimb@redhat.com>
968
969 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 970 list entries; the lexer considers commas to be valid part of a
db5be682
JB
971 filename, so in something like `foo, bar' the comma is considered
972 part of the first filename, `foo,'.
973 * ld.texinfo: Update section on EXCLUDE_FILE lists.
974
3558ff4c
ILT
9752000-02-27 Loren J. Rittle <ljrittle@acm.org>
976
977 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
978 host "i[3456]86-*-freebsdelf*".
979
4eee2681
ILT
9802000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
981
982 * scripttempl/i386go32.sc: Move misplaced semicolons.
983
8d75d12d
ILT
9842000-02-25 Ian Lance Taylor <ian@zembu.com>
985
986 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
987 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
988 (eelf64hppa.c, ehppaelf.c): Remove targets.
989 * Makefile.in: Rebuild.
990
a1836d49
AO
9912000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
992
ad51fb57
AO
993 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
994 GNU/Linux/sparc, but keep the default as 32.
995
a1836d49
AO
996 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
997 it default if sparcv9 or sparc64.
998
344a211f
NC
9992000-02-24 Nick Clifton <nickc@cygnus.com>
1000
1001 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1002 * Makefile.in: Regenerate.
1003 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1004
1005 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1006 find_potential_libraries.
1007 * ldemul.c (ldemul_find_potential_libraries): New function.
1008
1009 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 1010 exported.
344a211f
NC
1011 (ldfile_open_file): Call ldemul_find_potential_libraries.
1012 * ldfile.h: Add prototype for ldfile_open_file_search.
1013
1014 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1015
1016 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1017 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1018
1019 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1020 (gld_X_find_potential_libraries): New function. Search for
1021 libraries called "*.lib".
1022
1023 * scriptempl/pe.sc: Add .pdata section.
1024
eaba1dd3
RH
10252000-02-23 Richard Henderson <rth@cygnus.com>
1026
1027 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1028 Add and use memory regions.
1029
5b93d8bb
AM
10302000-02-23 Linas Vepstas (linas@linas.org)
1031
1032 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1033
1034 * Makefile.am: Add support for Linux/IBM 370.
1035 * configure.tgt: Likewise.
1036
1037 * Makefile.in: Regenerate.
1038
f6af82bd
AM
10392000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1040
1041 * ldlang.c (print_input_section, print_data_statement,
1042 print_reloc_statement, print_padding_statement, insert_pad,
1043 size_input_section, lang_check_section_addresses,
1044 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 1045 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
1046 (lang_do_assignments): Also change `size' to unsigned.
1047
9e673ad1
RH
10482000-02-16 Richard Henderson <rth@cygnus.com>
1049
1050 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1051
562d3460
TW
10522000-02-16 Timothy Wall <twall@cygnus.com>
1053
1054 * mri.c (mri_draw_tree): Add default LMA region argument to call
1055 to lang_leave_output_section_statement.
1056 * ldlang.h: Update prototypes with LMA region arguments.
1057 * ldlang.c (lang_size_sections): Encapsulate region bounds
1058 checking in os_check_region call.
1059 (os_check_region): New function.
1060 (lang_output_section_statement_lookup): Initialize lma_region.
1061 (lang_leave_output_section_statement): Add LMA region argument.
1062 (lang_leave_overlay): Ditto.
1063 * ldgram.y: Handle LMA region syntax.
1064 * ld.texinfo (Output Section Description): Describe LMA region usage.
1065 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 1066 lma region in call to lang_leave_output_section_statement.
562d3460 1067 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 1068 lma region in call to lang_leave_output_section_statement.
562d3460 1069 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 1070 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
1071
1072
9e4ed18c
TW
10732000-02-04 Timothy Wall <twall@redhat.com>
1074
1075 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1076 octets when calculating section end addresses.
1077
32edc927
TW
10782000-02-04 Timothy Wall <twall@redhat.com>
1079
1080 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1081
4cbfc3ac
TW
10822000-02-03 Timothy Wall <twall@redhat.com>
1083
1084 * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1085 octet count.
1086 * ld/ldlang.c (print_input_section, print_data_statement,
1087 print_reloc_statement, print_padding_statement): Print target
1088 address values and section sizes as bytes, not octets.
1089 (insert_pad) Calculate padding size in octets, and adjust "dot"
1090 by bytes.
1091 (size_input_section) Always adjust "dot" by bytes, not octets.
1092 (lang_check_section_addresses, lang_do_assignments) Adjust
1093 "dot" by bytes, not octets. Use the larger of the directive size
1094 or octets_per_byte for the number of octets actually allocated in
1095 the output section.
1096 (lang_set_startof) Make sure STARTOF returns a target address.
1097 (lang_one_common) Record size changes in octets.
1098 (lang_abs_symbol_at_end_of) Section end symbol's value is
1099 recorded in target bytes.
1100 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
1101 to be clear about behavior when an octet is smaller than one byte.
50bbae35 1102
305c7206
AM
11032000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1104
1105 * ldcref.c (output_cref): Don't pass message strings to printf
1106 as format arg.
1107 Update copyright.
1108
1109 * ldmisc.c (vfinfo): Same here.
1110 Update copyright.
1111
e1c47aa4
AM
11122000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1113
1114 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1115 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1116 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1117 Add missing NULL initialisers, and comments.
1118
1119 * testsuite/ld-srec/sr3.cc (__rethrow): New.
1120
13392b77
NC
11212000-01-21 Nick Clifton <nickc@cygnus.com>
1122
1123 * ldlang.c (lang_size_sections): Fix typo in comment.
1124
cce4c4c5
NC
11252000-01-18 H.J. Lu <hjl@gnu.org>
1126
1127 * ldlang.c (lang_size_sections): Also update the current
1128 address of a region if the SEC_NEVER_LOAD bit is not set.
1129
0decc840
NC
11302000-01-10 Philip Blundell <pb@futuretv.com>
1131
1132 * configure.tgt (arm*-*-conix*): New target.
1133
4e53152f
NC
11342000-01-07 Nick Clifton <nickc@cygnus.com>
1135
1136 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
1137 line switches with -Wl, (or whatever is appropriate) if it is
1138 being invoked by a comnpiler driver program.
50bbae35 1139 Fix description of the behaviour of the -n command line switch.
4e53152f 1140
18625d54
CM
1141Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
1142
1143 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
1144 (name_list): New.
1145 * ld.texinfo (EXCLUDE_FILE): Update documentation.
1146 * ldgram.y (wildcard_spec): Support a list of excluded_files.
1147 (exclude_name_list): New.
1148 ldlang.c (walk_wild_section): Support list of excluded files.
1149 (print_wild_statement): Likewise.
1150 (lang_add_wild): Likewise.
1151 * ldlang.h (lang_wild_statement_type): Likewise.
1152 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 1153
5aaace27
NC
11542000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1155
870df5dc
NC
1156 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1157 (process_def_file): Use.
1158 (pe_dll_compat_implib): New variable.
1159 (make_one): Use.
50bbae35 1160
870df5dc
NC
1161 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1162 pe_dll_compat_implib.
50bbae35
AM
1163
1164 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
1165 compat-implib options.
1166 (gld_${EMULATION_NAME}_list_options): List new options.
1167 (gld_${EMULATION_NAME}_parse_args): Handle.
1168
50bbae35 1169 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 1170 dll.
50bbae35
AM
1171
1172 * deffilep.y (opt_name): Allow "." in name.
5aaace27 1173
e6869249
NC
11741999-12-02 Nick Clifton <nickc@cygnus.com>
1175
1176 * Makefile.am: Fix arm-epoc-pe dependencies.
1177 * Makefile.in: Regenerate.
50bbae35 1178
e6869249
NC
1179 * emulparams/arm_epoc_pe.sh (SCRIPT_NAME): Set to epocpe.
1180
1181 * scripttempl/epocpe.sc: New file: copy of pe.sc, customised for
1182 EPOC by placing .rdata into .text.
1183
e4dabd0e
AS
11841999-11-26 Andreas Schwab <schwab@suse.de>
1185
1186 * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
1187 STRINGIFY. Use yes/no instead of true/false as value for cache
1188 variable.
1189 * configure: Regenerate.
1190
50e05050
NC
11911999-11-24 Nick Clifton <nickc@cygnus.com>
1192
1193 * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
1194 attributes in order to be checked.
1195
33275c22
NC
11961999-11-22 Nick Clifton <nickc@cygnus.com>
1197
1198 * ldlang.c (lang_check_section_addresses): Fix test to determine
1199 if a section should be tested.
1200 (IGNORE_SECTION): New macro.
1201
93a6d436
JL
1202Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
1203
1204 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1205 Clean up code to use EXTRA_SHLIB_EXTENSION.
1206
829ce307
NC
12071999-11-03 Nick Clifton <nickc@cygnus.com>
1208
1209 * emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
1210 * emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.
1211
9503fd87
ILT
12121999-11-01 Steve Chamberlain <sac@pobox.com>
1213
1214 * ldlang.c (section_already_linked): Rework to use hash table.
1215 (already_linked_newfunc): New function.
1216 (already_linked_table_init): New function.
1217 (already_linked_table_free): New function.
1218 (lang_process): Initialize and free the already_linked hash table.
1219
d7498c1e
ILT
12201999-10-27 Andreas Jaeger <aj@suse.de>
1221
50bbae35 1222 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
d7498c1e
ILT
1223 target "mips*-*-linux-gnu*".
1224
29c4c6b5
NC
12251999-10-27 Scott Bambrough <scottb@netwinder.org>
1226
1227 * emultempl/armelf.em: Include ctype.h to prevent compile time
50bbae35 1228 warnings.
29c4c6b5 1229
1ac6a752
NC
12301999-10-26 Nick Clifton <nickc@cygnus.com>
1231
1232 * emultempl/armcoff.em (gld{}_finish): Remove extraneous
1233 underscore from prototype.
1234 * emultempl/armelf.em (gld{}_finish): Remove extraneous
1235 underscore from prototype.
1236
cfd0966c
GK
12371999-10-07 Geoffrey Keating <geoffk@cygnus.com>
1238
1239 * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
1240 being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
1241 (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
1242 (.rel.sbss): Make like .rel.bss.
1243 (.rela.sbss): Make like .rel.bss.
1244 (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
1245 ld -r.
1246 (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
1247 .dynsbss.
1248
6eec49fc
DD
12491999-09-29 Andrew Haley <aph@cygnus.com>
1250
1251 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
1252 merging sections when not relocating.
1253
8a5b676c
DD
12541999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
1255
1256 * pe-dll.c (process_def_file): Move the offset lookup from here to
1257 (fill_exported_offsets): here. New static function.
1258 (fill_edata): Use.
50bbae35 1259
7c9e78f8
DD
12601999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
1261
1262 * deffilep.y (tokens): Add upper and lower case versions of DATA,
1263 CONSTANT, NONAME and PRIVATE tokens.
1264 (command): Use DATAU.
1265 (expline): Allow for drectve syntax as well.
1266 (exp_opt_list): Likewise.
1267 (exp_opt): Likewise.
1268 * pe-dll.c (make_one): Only generate the idata entries for data
1269 symbols.
1270
13d92f2c
GK
12711999-09-28 Geoffrey Keating <geoffk@cygnus.com>
1272
1273 * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
1274 in .sdata too.
1275
3c9cf3a3
NC
12761999-09-26 Nick Clifton <nickc@cygnus.com>
1277
1278 * scripttempl/elf.sc (.bss): Accept sections named .bss.*
1279 (.sbss): Accept sections names .sbss.*
1280
be2153ad
NC
12811999-09-22 Nick Clifton <nickc@cygnus.com>
1282
690a460e 1283 * Makefile.am: Add earm_epoc_pe.c build target.
be2153ad 1284
26040066
JL
1285Sat Sep 18 07:57:10 1999 Jeffrey A Law (law@cygnus.com)
1286
1287 * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
1288 they've been renamed to ".stub", which is handled automatically
1289 by elf.sc.
1290
1291Fri Sep 17 11:00:33 1999 Jeffrey A Law (law@cygnus.com)
1292
1293 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
1294 (DATA_START_SYMBOLS): Kill __hp_load_map definition
1295
42d106a8
JL
1296Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
1297
d3cc5bd6
JL
1298 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1299 Use the same filename extension for the bfd_elf_dt_needed_name call
1300 as we did for finding the library.
1301
88e99a39
JL
1302 * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
1303 (OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
1304
42d106a8
JL
1305 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define.
1306
833be1c7
JL
1307Wed Sep 15 02:47:43 1999 Jeffrey A Law (law@cygnus.com)
1308
97444aea
JL
1309 * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
1310 (SHLIB_DATA_ADDR): Likewise.
1311
1312 * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
1313
6ddeca85 1314 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): No longer combine
833be1c7
JL
1315 the .plt, .dlt, .opd into a single output section. Provide values
1316 for __gp and __hp_load_map.
1317
a8100d5b
MM
13181999-09-14 Michael Meissner <meissner@cygnus.com>
1319
1320 * configure.in (Canonicalization of target names): Remove adding
1321 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
1322 generates $ac_config_sub with a ${CONFIG_SHELL} already.
1323 * configure: Regenerate.
1324
e4e24acb
DD
13251999-09-14 Donn Terry <donn@interix.com>
1326
50bbae35 1327 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
e4e24acb
DD
1328 terminating null.
1329
93a6d436
JL
13301999-09-14 Ulrich Drepper <drepper@cygnus.com>
1331
1332 * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
1333 * config.in: Add EXTRA_SHLIB_EXTENSION.
1334
1335 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1336 Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
1337 is defined.
1338
cf865442
NC
13391999-09-14 Nick Clifton <nickc@cygnus.com>
1340
1341 * Makefile.in: Add earm_epoc_pe.c build target.
1342
2491f110
JL
1343Tue Sep 14 05:26:34 1999 Jeffrey A Law (law@cygnus.com)
1344
1345 * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt.
1346
361d94e7
ILT
13471999-09-13 Donn Terry <donn@interix.com>
1348
1349 * emultempl/pe.em: Remove the output file at the start, in case it
1350 is not writable.
1351
9169713a
JL
1352Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
1353
070f1aed
JL
1354 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
1355 Search for file with .sl extension if no file with a .so extension
1356 is found.
1357
9169713a
JL
1358 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
1359 at the start of the .dlt output section.
1360
1069dd8d
ILT
13611999-09-12 Ian Lance Taylor <ian@zembu.com>
1362
45455cdd
ILT
1363 * pe.em: Don't include "../bfd/libbfd.h".
1364 (gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
1365 bfd_alloc.
1366
1069dd8d
ILT
1367 * pe-dll.h: New file.
1368 * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed
1369 to avoid warnings.
1370 (edata_sz, reloc_sz): Change from int to size_t.
1371 (pe_details_type): Change type of imagebase_reloc from int to
1372 unsigned int.
1373 (pe_detail_list): Fully initialize last entry.
1374 (pe_dll_id_target): Change parameter to const.
1375 (pe_dll_generate_def_file): Likewise.
1376 (pe_dll_generate_implib): Likewise.
1377 (pe_implied_import_dll): Likewise. Change dll_name to const.
1378 * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in
1379 pe-dll.h.
1380 (init): Fully initialize __dll__ entry.
1381 (gld_${EMULATION_NAME}_after_open): Remove unused variables
1382 sequence, elt, and i.
1383 * deffile.h: Add preprocessor guard.
1384 * deffilep.y (def_debug): Remove.
1385 * Makefile.am: Rebuild dependencies.
1386 (HFILES): Add pe-dll.h.
1387
2be9b2c7
ILT
13881999-09-12 Donn Terry <donn@interix.com>
1389
45455cdd
ILT
1390 * ld.h (ld_abort): Declare.
1391 (abort): Define.
1392 * ldmisc.c (ld_abort): Define.
1393
be4514d3
ILT
1394 * scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
1395 Move .bss section after .rdata. Move .reloc section after .rsrc.
1396
d98dd8ba
ILT
1397 * lexsup.c (parse_args): Use strtoul for --split-by-reloc
1398 argument.
1399
03983865
ILT
1400 * lexsup.c (parse_args): If we get an unrecognized argument,
1401 mention --help.
1402
bb8fe706
ILT
1403 * ldlang.c (section_already_linked): Use comdat information if it
1404 is available.
1405
2be9b2c7
ILT
1406 * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
1407 OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
1408 (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
1409 defined, rather than a.exe.
1410 (init): Define __subsystem__ as ${SUBSYSTEM}.
1411 (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
1412 name.
1413
1b69a0bf
ILT
14141999-09-12 Ian Lance Taylor <ian@zembu.com>
1415
1416 * ldlang.c (open_output): Change local variable desired_endian
1417 from int to enum bfd_endian.
1418
be4514d3 1419 * emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
1b69a0bf
ILT
1420 INITIAL_SYMBOL_CHAR.
1421 * emulparams/armpe.sh: Likewise.
1422 * emulparams/morepe.sh: Likewise.
1423 * emulparams/ppcpe.sh: Likewise.
be4514d3
ILT
1424 * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
1425 (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1b69a0bf 1426
904ecb2d
JL
1427Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
1428
e5b08bf0
JL
1429 * emulparms/elf64hppa.sh (LIB_PATH): Define.
1430
904ecb2d
JL
1431 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
1432 unwinders so that they are closer to the text section.
1433 (OTHER_BSS_SECTIONS): Define.
1434 (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
1435 (INIT_START, INIT_END): Define.
1436 (FINI_START, FINI_END): Define.
1437 * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
1438 FINI_START, FINI_END and OTHER_BSS_SECTIONS.
1439
7e4d694e
JL
1440Thu Sep 9 21:43:58 1999 Jeffrey A Law (law@cygnus.com)
1441
1442 * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
1443 (DATA_ADDR): Define.
1444
2f2bc1bb
RH
14451999-09-09 Stan Shebs <shebs@andros.cygnus.com>
1446
1447 * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
1448
1d0a3c9c
AS
14491999-09-09 Andreas Schwab <schwab@suse.de>
1450
1451 * ld.texinfo: Fix arguments of @var to not contain punctuation.
1452
040266ab
JL
1453Thu Sep 9 05:52:34 1999 Jeffrey A Law (law@cygnus.com)
1454
1455 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.
1456
14571999-09-08 Ulrich Drepper <drepper@cygnus.com>
1458
1459 * emulparams/elf64hppa.sh (ELFSIZE): New. Set to 64.
1460
1461Wed Sep 8 00:07:39 1999 Jeffrey A Law (law@cygnus.com)
1462
1463 * emulparms/elf64hppa.sh (ENTRY): Define to main.
1464
1c56fb87
NC
14651999-09-03 Scott Bambrough <scottb@netwinder.org>
1466
6ddeca85 1467 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1c56fb87
NC
1468 target "arm*-*-linux-gnu*"
1469
c6c8c6dc
ILT
14701999-09-04 Steve Chamberlain <sac@pobox.com>
1471
1472 * configure.tgt (pjl-*-*, pj-*-*): New targets.
1473 * emulparams/pjelf.sh: New file.
1474 * emulparams/pjlelf.sh: New file.
50bbae35 1475 * scripttempl/pj.sc: New file.
c6c8c6dc
ILT
1476 * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
1477 (epjelf.o, epjlelf.o): New targets.
1478 * Makefile.in: Rebuild.
1479
4b69d4ad
JL
1480Fri Sep 3 20:17:08 1999 Jeffrey A Law (law@cygnus.com)
1481
1482 * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
1483 (OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
1484
f6e143a1
JL
1485Thu Sep 2 14:32:03 1999 Jeffrey A Law (law@cygnus.com)
1486
1487 * emulparams/elf64hppa.sh: New file.
1488 * configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
1489 * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
1490 (eelf64hppa.c): Add dependencies.
1491 * Makefile.in: Rebuilt.
1492
0f1ee889
NC
14931999-08-25 Philip Blundell <pb@nexus.co.uk>
1494
1495 * emulparams/armelf.sh (OTHER_BSS_SYMBOLS): Add __end__.
1496 * emulparams/armelf_linux.sh: Likewise.
1497 * emulparams/armelf_linux26.sh: Likewise.
1498
8959586a
NC
14991999-08-24 Nick Clifton <nickc@cygnus.com>
1500
1501 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
1502
1503 * configure.tgt (arm-*-netbsd*): New target.
1504 * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o.
1505 (earmnbsd.c): New rule with deps.
1506 * Makefile.on: Regenerate.
1507 * emulparams/armnbsd.sh: New file.
1508
3b108066
NC
15091999-08-23 Nick Clifton <nickc@cygnus.com>
1510
093505ad
NC
1511 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
1512 Implement --base-file command line switch.
1513
3b108066
NC
1514 * emultempl/elf32.em: Add ability for individual targets to have
1515 their own command line switches by defining PARSE_AND_LIST_ARGS.
1516
cd5d26f2
AS
15171999-08-19 Andreas Schwab <schwab@suse.de>
1518
1519 * configure.host: Use ${CC} instead of gcc for finding compiler
1520 related files.
1521
0811443a
NC
15221999-08-11 Nick Clifton <nickc@cygnus.com>
1523
1524 * scripttempl/mcorepe.sc (OUTPUT_FORMAT): Fix typo.
1525
9c9ef45f
ILT
15261999-08-09 Mark Elbrecht <snowball3@bigfoot.com>
1527
1528 * scripttempl/i386go32.sc: Handle g++ exception sections.
1529
fe9edd22
ILT
15301999-08-09 Ian Lance Taylor <ian@zembu.com>
1531
1532 From Wally Iimura <iimura@microunity.com>:
1533 * ldlang.c (lang_size_sections): When checking whether an address
1534 is within a region, don't get confused by wrapping around at the
1535 end of the address space.
1536
f4162f5c
ILT
15371999-08-08 Ian Lance Taylor <ian@zembu.com>
1538
667f5177
ILT
1539 * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
1540 SEC_SMALL_DATA.
1541
f4162f5c
ILT
1542 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
1543 MKDEP. Rebuild dependencies.
1544 * Makefile.in: Rebuild.
1545
ae97059c
ILT
15461999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
1547
1548 * configure.host (sparc-*-linux-gnu*): New host.
1549 (sparc64-*-linux-gnu*): New host.
1550
597e2591
ILT
15511999-08-06 Ian Lance Taylor <ian@zembu.com>
1552
3d9f6277
ILT
1553 * lexsup.c (is_num): Reindent.
1554 (parse_args): Mention program name in error message.
1555
597e2591
ILT
1556 * emultempl/ostring.sed: Rename from stringify.sed.
1557 * emultempl/astring.sed: New file.
1558 * Makefile.am (stringify.sed): New target.
1559 (GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
1560 stringify.sed.
1561 * configure.in: Define and substitute STRINGIFY.
1562 * emultempl/*.em: Use stringify.sed from build directory rather
1563 than source directory.
1564 * emultempl/elf32.em: Use stringify.sed rather than inline sed
1565 script.
1566 * emultempl/gld960.em, emultempl/gld960c.em: Likewise.
1567 * emultempl/hppaelf.em, emultempl/linux.em: Likewise.
1568 * emultempl/lnk960.em, emultempl/sunos.em: Likewise.
1569 * configure, Makefile.in: Rebuild.
1570
a7e78dae
ILT
15711999-08-05 Donn Terry <donn@interix.com>
1572
1573 * emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
3d9f6277 1574 INITIAL_SYMBOL_CHAR.
a7e78dae
ILT
1575 * emulparams/i386pe_posix.sh: New file.
1576 * Makefile.am (YACC): If bison is not in the source tree, use
1577 @YACC@ rather than bison -y.
1578 (LEX): If flex is not in the source tree, use @LEX@ rather than
1579 flex.
1580 (ALL_EMULATIONS): Add ei386pe_posix.o.
1581 (ei386pe_posix.c): New target.
1582 * configure.tgt (i[3456]86-*-interix*): New target.
1583 * configure.host (i[3456]86-pc-interix*): New host.
1584 * Makefile.in: Rebuild.
1585
18069efc
ILT
15861999-08-03 Ian Lance Taylor <ian@zembu.com>
1587
1588 * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
1589 * emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
1590
f7cc0a4d
ILT
15911999-08-03 H.J. Lu <hjl@gnu.org>
1592
1593 * Makefile.am (ALL_EMULATIONS): Remove ego32.o.
1594 (ego32.c): Remove.
1595 * Makefile.in: Rebuild.
1596
5fa803d3
NC
15971999-07-22 Philip Blundell <pb@nexus.co.uk>
1598
1599 * emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
1600 (OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
1601 * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.
1602
1603 * configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
1604 thumb-*-linux-gnu*): New targets.
1605
b4089fdd 16061999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
8f36e47c 1607
5a1bd109
ILT
1608 * scripttempl/i386go32.sc: Add handling of linkonce sections.
1609
8f36e47c 1610 * configure.bat: Remove; obsolete.
b4089fdd
ILT
1611 * emulparams/go32.sh: Remove; obsolete.
1612 * scripttempl/go32coff.sc: Remove; obsolete.
8f36e47c 1613
41d390a7
ILT
16141999-07-21 H.J. Lu <hjl@gnu.org>
1615
1616 * configure.tgt (mips*el-*-vxworks*): New target.
1617
16181999-07-21 Brad M. Garcia <bgarcia@fore.com>
1619
1620 * configure.tgt (i[3456]86-*-vxworks*): New target.
1621
7c83b342
DE
1622Tue Jul 20 15:18:46 1999 Bob Manson <manson@charmed.cygnus.com>
1623
1624 * ldlang.c (lang_gc_sections): Only handle the start symbol
1625 specially if there is one.
1626
0ca63823
MM
1627Mon Jul 19 14:19:14 1999 Mark P. Mitchell <mark@codesourcery.com>
1628
1629 * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
1630 .MIPS.events and .MIPS.content handling.
1631 * emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
1632
e50d8076
NC
16331999-07-17 Nick Clifton <nickc@cygnus.com>
1634
1635 * ldlang.c (get_target): New function: Return true iff the
1636 given target is the target being sought.
1637 (stricpy): New function: Like strcpy but convert to lower
1638 case as well.
1639 (strcut): New function: Like strstr but remove the located
1640 substring as well.
1641 (name_compare): New function: Compute a compatability rating
1642 for two target names.
1643 (winner): New variable: Best target found by
1644 closest_target_match() so far.
1645 (closest_target_match): New function: Find the target which is
1646 the closest match to the original target.
1647 (get_first_input_target): New function: Find the target format
1648 of the first of the linker's input file.
1649 (open_output): Be more clever about deciding the output target
6ddeca85 1650 format.
e50d8076 1651
e76d716a
RH
16521999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1653
1654 * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
1655
88659ef5
MM
1656Thu Jul 15 15:55:15 1999 Mark P. Mitchell <mark@codesourcery.com>
1657
1658 * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6.
1659
2844ed43
ILT
16601999-07-15 Ian Lance Taylor <ian@zembu.com>
1661
1662 * configure.in: Bump version number to 2.9.5.
1663 * configure: Rebuild.
1664
0eaf9820
RH
16651999-07-14 Richard Henderson <rth@cygnus.com>
1666
1667 * ldlang.c (wild_doit): Copy SEC_SHORT to output section.
1668
1669 * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
1670 same order seen for the main sections. Add
1671 OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
1672
5d341b0e
AS
16731999-07-12 Andreas Schwab <schwab@suse.de>
1674
49bdcdba
AS
1675 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
1676 structure initializations.
1677
5d341b0e
AS
1678 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
1679 comma in initializer.
1680
87f2a346
ILT
16811999-07-11 Ian Lance Taylor <ian@zembu.com>
1682
1683 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1684 as appropriate. Fill in structure initializations.
1685
b90d1146
ILT
16861999-07-10 Ian Lance Taylor <ian@zembu.com>
1687
1688 * ldfile.c: Revert patch of 1999-07-08.
1689 (ldfile_try_open_bfd): If we are searching for the file, skip
1690 files with an incompatible architecture.
1691
6da0974a
NC
16921999-07-09 Nick Clifton <nickc@cygnus.com>
1693
1694 * scripttempl/armcoff.sc (OUTPUT_FORMAT): Include big endian and
1695 little endian formats.
1696
7a274639
NC
16971999-07-08 Felix Lee <flee@cygnus.com>
1698
1699 * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
1700
99f8f232
RH
17011999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
1702
1703 * ldfile.c (ldfile_open_file_search): Skip libraries made for
1704 incompatible architectures in the search path. Let the user know
1705 about any such skips.
1706
5c61c5ab
JL
1707Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
1708
6ddeca85 1709 * configure.tgt (hppa*-linux-gnu*): New target.
5c61c5ab 1710
22c675a7
MM
17111999-07-07 Mark Mitchell <mark@codesourcery.com>
1712
1713 * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
1714 (eelf64bmip): New target.
1715 * Makefile.in: Regenerated.
1716 * configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
1717 * emulparams/elf64bmip.sh: New file.
1718
f11523b0
NC
17191999-07-05 Nick Clifton <nickc@cygnus.com>
1720
1721 * emultempl/pe.em (after_open): Abort if input format is ARM and
6ddeca85 1722 output format is not.
f11523b0 1723 * emultempl/armcoff.em (after_open): Abort if input format is ARM
6ddeca85 1724 and output format is not.
f11523b0 1725 * emultempl/armelf.em (after_open): Abort if input format is ARM
6ddeca85 1726 and output format is not.
f11523b0 1727
39e878bf
ILT
17281999-07-02 Ian Lance Taylor <ian@zembu.com>
1729
1730 * ldlang.c: Revert change of 1999-06-23.
1731
dc831978
MM
17321999-06-30 Mark Mitchell <mark@codesourcery.com>
1733
1734 * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
1735 (eelf32bmipn32.c): New target.
1736 * Makefile.in: Regenerated.
1737 * configure.tgt (mips-sgi-irix6*): Make n32 the default
1738 emulation.
1739 * emulparams/elf32bmipn32.sh: New file.
6ddeca85 1740
a0290afa
NC
17411999-06-28 Jim Pick <jim@jimpick.com>
1742
1743 * emultempl/armelf.em: Added code so that .xs linker scripts are
1744 called so that ARM shared libraries are built correctly.
1745
3dbf70a2
MM
17461999-06-22 Mark Mitchell <mark@codesourcery.com>
1747
1748 * ldmain.c (main): Initialize link_info.init_function and
1749 link_info.fini_function.
1750 * lexsup.c (OPTION_INIT): New macro.
1751 (OPTION_FINI): Likewise.
1752 (ld_options): Add descriptions for them.
1753 (parse_args): Handle them.
1754
7b9eea34
ILT
17551999-06-23 Ian Lance Taylor <ian@zembu.com>
1756
1757 * ldlang.c (section_already_linked): Only discard link once
1758 sections if we are building constructors.
1759
5c6bbab8
NC
17601999-06-22 Nick Clifton <nickc@cygnus.com>
1761
1762 * ld.texinfo (Location Counter): Describe behaviour of
1763 location counter inside section statements.
1764
a8e53fb0
MM
17651999-06-20 Mark Mitchell <mark@codesourcery.com>
1766
1767 * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
1768 controlling whether or not .rodata is in the data segment or the
1769 text segment.
1770
6f798e5c
NC
17711999-06-18 Nick Clifton <nickc@cygnus.com>
1772
1773 * emultempl/pe.em: Add new command line switch --thumb-entry.
1774 * emultempl/armelf.em: Add new command line switch --thumb-entry.
1775 * emultempl/armcoff.em: Add new command line switch --thumb-entry.
6ddeca85 1776 * ld.texinfo: Document new ARM command line switch: --thumb-entry.
50bbae35 1777
ba2be581
RH
17781999-06-20 H.J. Lu <hjl@gnu.org>
1779
1780 * configure.in (all_libpath): Accumulate across all enabled targets.
1781
f97f7300
RH
1782Sun Jun 20 14:10:33 1999 Richard Henderson <rth@cygnus.com>
1783
1784 * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
1785 DEFAULT_EMULATION.
1786 * emultempl/elf32.em: Likewise.
1787 * emultempl/sunos.em: Likewise.
1788
3336653a
RH
1789Fri Jun 18 15:24:48 1999 Richard Henderson <rth@cygnus.com>
1790
1791 * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
1792 * configure.in (all_emuls): Add targ_extra_libpath.
1793 (all_libpath, EMULATION_LIBPATH): Define.
1794 * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
1795 * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
1796
308b1ffd
AS
1797Mon Jun 14 10:38:36 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1798
1799 * ld.texinfo: Fix use of @item vs. @itemx.
1800
aa8804e4
ILT
18011999-06-13 Ian Lance Taylor <ian@zembu.com>
1802
1803 From Thomas Zenker <thz@lennartz-electronic.de>:
1804 * ldgram.y (attributes_opt): Use attributes_list instead of NAME.
1805 (attributes_list, attributes_string): New nonterminals.
1806 * ldlang.c (lang_set_flags): Add invert parameter. Don't handle
1807 '!'.
1808 * ldlang.c (lang_set_flags): Update declaration.
1809
2a275620
ILT
18101999-06-12 Ian Lance Taylor <ian@zembu.com>
1811
1812 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
1813 entry_symbol as an undefined symbol when doing a relocateable
1814 link. From <jeffdb@goodnet.com>.
1815
2641b0c9
ILT
18161999-06-12 David O'Brien <obrien@freebsd.org>
1817
1818 * configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
1819
f75692fe
NC
18201999-06-09 Nick Clifton <nickc@cygnus.com>
1821
1822 * lexsup.c (help): Restore previous format of output.
1823
434d1125
NC
18241999-06-04 Nick Clifton <nickc@cygnus.com>
1825
1826 * emultempl/pe.em: If compiling for arm_epoc_pe rename
1827 interworking functions to avoid a name space clash.
1828
4305932a
RH
18291999-06-02 Jason Merrill <jason@yorick.cygnus.com>
1830
1831 * scripttempl/v850.sc: Add initp support.
1832
46d23b7c
NC
18331999-06-02 Nick Clifton <nickc@cygnus.com>
1834
1835 * emultempl/pe.em: Rename global arm interworking functions to
1836 avoid name collision when all targets BFD is built.
1837
cd785be6
RH
18381999-05-30 Cort Dougan <cort@attis.cs.nmt.edu>
1839
1840 * Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
1841 * configure.tgt (powerpc-*-linux-gnu): Use it.
1842 * emulparams/elf32ppclinux.sh: New file.
1843
511ab9e9
ILT
18441999-05-29 Ian Lance Taylor <ian@zembu.com>
1845
1846 * ld.texinfo (Options): Clarify that options which refer to files
1847 must be properly ordered.
1848
7ca69e9e
NC
18491999-05-29 Nick Clifton <nickc@cygnus.com>
1850
1851 * emultempl/armelf.em (..._parse_args): New function: Parse
1852 command line option. Accept arm-elf specific command line option
1853 '-p' or '--no-pipeline-knowledge'.
1854 (..._list_options): New function: Describe the new command line
1855 option.
1856 (..._before_allocation): Pass the value of the new variable
1857 no_pipeline_knowledge to bfd_elf32_arm_process_before_allocation.
6ddeca85 1858
7ca69e9e
NC
1859 * emultemp/armelf_oabi.em (..._before_allocation): Pass zero as
1860 the third parameter to bfd_elf32_arm_process_before_allocation.
1861
b3043ee4
NC
18621999-05-28 Nick Clifton <nickc@cygnus.com>
1863
1864 * lexsup.c (help): Minor formatting changes.
1865
0ccf812a
ILT
18661999-05-28 Martin Dorey <mdorey@madge.com>
1867
1868 * configure.tgt (i960-*-elf*): New target.
1869 * emulparams/elf32_i960.sh: New file.
1870 * Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
1871 (eelf32_i960.c): New target.
1872 * Makefile.in: Rebuild.
1873
a13cba0d
NC
18741999-05-26 Nick Clifton <nickc@cygnus.com>
1875
6ddeca85 1876 * emulparams/armelf_oabi.sh (TEMPLATE_NAME): Set to armelf_oabi.
a13cba0d 1877
31ce0628
NC
18781999-05-24 Philip Blundell <philb@gnu.org>
1879
1880 * emultempl/armelf.em (before_parse): Set config.dynamic_link and
50bbae35 1881 config.has_shared.
31ce0628
NC
1882 * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
1883 * emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise.
1884
1220a729
NC
18851999-04-13 Philip Blundell <philb@gnu.org>
1886
1887 * emultempl/armelf.em: Add definitions related to shared objects
1888 (copied from elf32.em).
1889
3699964a
AS
1890Wed May 19 12:44:26 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1891
1892 * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
1893 earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
1894 * Makefile.in: Regenerated.
1895
06f2f02a
NC
18961999-05-16 Nick Clifton <nickc@cygnus.com>
1897
1898 * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Define.
1899 (TEMPLATE_NAME): Define.
1900
de24ad21
RH
1901Thu May 13 09:48:09 1999 Joel Sherrill (joel@OARcorp.com)
1902
1903 * configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
1904 (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
1905
c6c37250
DD
19061999-05-10 DJ Delorie <dj@cygnus.com>
1907
1908 * scripttempl/pe.sc: Specify the output arch, which Ian says is
1909 the Right Thing to do.
1910
1911 * emultempl/pe.em: various changes to parameterize the
1912 target-specific information.
1913 (gld_i386pe_after_open): Detect and fix MS import libraries
1914 by renaming the member objects (which are all named the same).
1915
1916 * pe-dll.c: various changes to parameterize the target-specific
1917 information.
1918 (generate_reloc): support relocs more generically to allow for
1919 expansion.
1920 (pe_exe_build_sections): new; used to add .relocs to .exes
1921 (pe_exe_fill_sections): ditto
1922
626e0105
CM
19231999-05-10 Catherine Moore <clm@cygnus.com>
1924
1925 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
1926 Check for TARGET_IS_arm_epoc_pe.
1927 (gld_${EMULATION_NAME}_before_allocation): Likewise.
1928
4dec4d4e
RH
19291999-05-12 Anthony Green <green@cygnus.com>
1930
1931 * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
1932 output_section_callback, gc_section_callback): New functions for
1933 generic section walks.
1934 (wild, lang_gc_wild): Use walk_wild.
1935 (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
1936 walk_wild_file.
1937 (wild_section, lang_gc_wild_section): Deleted. Common logic moved
1938 to walk_fild_section. Unique logic moved into callbacks
1939 output_section_callback and gc_section_callback.
1940
252b5132
RH
19411999-04-26 Tom Tromey <tromey@cygnus.com>
1942
1943 * aclocal.m4, configure: Updated for new version of libtool.
1944
252b5132
RH
19451999-04-12 Philip Blundell <pb@nexus.co.uk>
1946
6ddeca85 1947 * emulparams/armelf_linux.sh: New file. Support for ARM
252b5132
RH
1948 GNU/Linux ELF ABI.
1949 * emulparams/armelf_linux26.sh: New file. APCS-26 version of above.
1950 * configure.tgt: For arm*-*-linux-gnu*, set default emulation to
1951 `armelf_linux', and also include `armelf_linux26' and `armelf'.
1952 * Makefile.am: Add rules to make earmlinux.c and earmlinux26.c.
1953 (ALL_EMULATIONS): Add earmlinux.o and earmlinux26.o.
1954 * Makefile.in: Regenerate.
1955
19561999-04-11 Richard Henderson <rth@cygnus.com>
1957
1958 * Makefile.am (ALL_EMULATIONS): Add elf_i386_be.o.
1959 * configure.tgt (i[3456]86-*-beos*): Use it.
1960 * emulparams/elf_i386_be.sh: New file.
1961 * Makefile.in: Rebuild.
1962
1963 * configure.in (environ): Detect declaration.
1964 * ldmain.c (main): Don't declare environ.
1965 * sysdep.h (environ): Declare if needed.
1966 * configure, config.in: Rebuild.
1967
19681999-04-11 Richard Henderson <rth@cygnus.com>
1969
1970 * ldgram.y (ldgram_vers_current_lang): New.
1971 (vers_defns): Accept `extern "lang" { }' syntax.
1972 * ldlex.l (vers_node_nesting): New.
1973 (V_IDENTIFIER): Accept . and $ in symbols.
1974 (VERS_NODE): Accept `extern "lang" { }' tokens. Nest VERS_NODE states.
1975 * ldlang.c (lang_new_vers_regex): New `lang' argument. Update callers.
1976 (lang_vers_match_lang_c): New function.
1977 (lang_vers_match_lang_cplusplus): New function.
1978 (lang_vers_match_lang_java): New function.
1979 (lang_do_version_exports_section): Fix iteration. Don't free
1980 section contents, as it is still in use by the patterns.
1981
19821999-04-10 Richard Henderson <rth@cygnus.com>
1983
1984 * ldmain.c (main): Init link_info.no_undefined.
1985 * lexsup.c: Add command-line option --no-undefined.
1986
252b5132
RH
19871999-04-06 Ian Lance Taylor <ian@zembu.com>
1988
1989 * ld.h (LC_MESSAGES): Never define.
1990 * ldmain.c (main): Don't pass LC_MESSAGES to setlocale if the
1991 system does not define it.
1992
19931999-04-06 H.J. Lu <hjl@gnu.org>
1994
1995 * ldmain.h (demangling): Declare.
1996 * ldmain.c (demangling): New global variable.
1997 (main): Initialize demangling.
1998 * ldmisc.c (vfinfo): Don't demangle symbol if ! demangling.
1999 * lexsup.c (ld_options, parse_args): Handle --demangle and
2000 --no-demangle.
2001 * ld.texinfo, ld.1: Document --demangle/--no-demangle.
2002
2003 * ldlex.l (V_IDENTIFIER): Allow '.' in symbol.
2004
20051999-04-05 Chris Torek <torek@BSDI.COM>
2006
2007 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Check that
2008 a shared library really exists, avoiding broken symlinks.
2009
2010 * ldfile.c (ldfile_open_file): Generate a better error message if
2011 we can't find a -l file.
2012
20131999-04-05 DJ Delorie <dj@cygnus.com>
2014
2015 * configure.tgt (i386-*-pe): add targ_extra_ofiles for other PE
2016 targets (i386-pe and i386-winnt)
2017
20181999-04-04 Ian Lance Taylor <ian@zembu.com>
2019
2020 * deffilep.y: Include "sysdep.h" and "ldmisc.h".
2021 (def_file_add_directive): Change return type to void. Remove
2022 unused locals sh_reserve, sh_commit, and j.
2023 (def_ungetc): Always return a value.
2024 (def_lex): Correct parenthesization of || within &&.
2025 * deffile.h (def_file_add_directive): Update declaration.
2026 * pe-dll.c: Include <time.h>, <ctype.h>, and "ldemul.h".
2027 (generate_edata): Remove unused local i.
2028 (quoteput): Add cast to avoid warning.
2029 (pe_dll_generate_def_file): Fix type in format string.
2030 (quick_symbol): Remove unused local blhe.
2031 (pe_dll_generate_implib): Add cast to avoid warning.
2032 (pe_process_import_defs): Remove unused locals ar_head, ar_tail,
2033 and n.
2034 (pe_as16): Comment out.
2035
20361999-04-04 Don Bowman <don@pixsci.com>
2037
2038 * configure.tgt: Add mips*-*-vxworks* target.
2039
20401999-03-31 Nick Clifton <nickc@cygnus.com>
2041
2042 * Makefile.in (ALL_EMULATIONS): Add earm_epoc_pe.o
2043 Add build rule and dependencies for earm_epoc_pe.c.
2044
2045 * emulparams/arm_epoc_pe.sh: New file.
2046
2047 * configure.tgt: Add 'targ_extra_ofiles' for ARM based PE
6ddeca85 2048 targets.
252b5132
RH
2049
20501999-03-31 Philip Blundell <pb@nexus.co.uk>
2051
2052 * configure.tgt: Match `arm*-*-linux-gnu*' not
50bbae35 2053 `armv*-*-linux-gnu'.
252b5132
RH
2054
20551999-03-26 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2056
2057 * scripttempl/elf.sc: Put the .eh_frame and .gcc_except_table
2058 sections in the data segment.
2059
2060Fri Mar 26 12:05:51 1999 Catherine Moore <clm@cygnus.com>
2061
2062 * ld.h (wildcard_spec): Add exclude_name.
6ddeca85 2063 * ldgram.y (EXCLUDE_FILE): New token.
252b5132
RH
2064 (wildcard_spec): Set exclude_name.
2065 (file_NAME_list): Recognize EXCLUDE_FILE.
50bbae35 2066 * ldlang.c (wild_section): Check for excluded files.
252b5132
RH
2067 (print_wild_statement): Print excluded files.
2068 (lang_add_wild): New argument exclude_filename.
2069 Set exclude_filename.
2070 * ldlang.h (lang_wild_statement_type): Add exclude_filename.
2071 * ldlex.l: New token EXCLUDE_FILE.
2072 * mri.c (mri_draw_tree): Add argument to lang_add_wild.
2073 * scripttempl/elf.sc (CTOR, DTOR): Exclude crtend.o from ctor wildcard.
2074 Reorder sorted and unsorted ctors.
2075 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
2076 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
2077 * scripttempl/elfppc.sc (CTOR, DTOR): Likewise.
50bbae35 2078
252b5132
RH
20791999-03-26 Nick Clifton <nickc@cygnus.com>
2080
2081 * ldlang.c (lang_gc_sections): If entry_symbol is not defined,
2082 default to "start".
2083
20841999-03-03 Nick Clifton <nickc@cygnus.com>
2085
2086 * scripttempl/elf.sc: Add explicit placements for the .eh_frame
50bbae35 2087 and .gcc_except_table sections.
252b5132
RH
2088
2089Wed Mar 3 09:13:34 1999 Catherine Moore <clm@cygnus.clm>
50bbae35
AM
2090
2091 * scripttempl/elf.sc: Remove .end.ctors and .end.dtors
2092 sections. Reorder .ctors section entries.
2093 * scripttempl/elfd10v.sc: Likewise.
2094 * scripttempl/elfd30v.sc: Likewise.
2095 * scripttempl/elfppc.sc: Likewise.
252b5132
RH
2096
20971999-02-26 Jim Lemke <jlemke@cygnus.com>
2098
2099 * ldmain.c (main): Wrong error msg for -r and --mpc860c0.
2100
21011999-02-25 Nick Clifton <nickc@cygnus.com>
2102
2103 * ldlang.c (lang_check_section_addresses): Remove extraneous
50bbae35 2104 backslash.
252b5132
RH
2105
2106Thu Feb 25 15:07:24 1999 Catherine Moore <clm@cygnus.com>
2107
2108 * scripttempl/elf.sc: Don't gather .ctor and .dtor sections
50bbae35 2109 for relocateable links.
252b5132
RH
2110 * scripttempl/elfd10v.sc: Likewise.
2111 * scripttempl/elfd30v.sc: Likewise.
2112 * scripttempl/elfppc.sc: Likewise.
50bbae35 2113
252b5132
RH
21141999-02-22 Jim Lemke <jlemke@cygnus.com>
2115
2116 * ldint.texinfo: remove extraneous right brace.
2117 * ldmain.c (main): initialize and check option "mpc860c0".
2118 * lexsup.c (ld_options, parse_args): add option "mpc860c0".
2119
2120Wed Feb 17 12:10:06 1999 Stan Cox <scox@cygnus.com>
2121
2122 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Remove special
50bbae35 2123 .reginfo section handling.
252b5132
RH
2124 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Likewise.
2125 * emulparams/elf32elmip.sh (INITIAL_READONLY_SECTIONS): Removed
2126 * emulparams/elf32ebmip.sh (INITIAL_READONLY_SECTIONS): Removed
2127
21281999-02-17 Nick Clifton <nickc@cygnus.com>
2129
2130 Patch from: Scott Bambrough <scottb@corelcomputer.com>
50bbae35 2131
252b5132 2132 * configure.tgt: Added armv*-*-linux-gnu to $targ_emul
50bbae35 2133 recognition.
252b5132
RH
2134
2135Wed Feb 17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
50bbae35
AM
2136
2137 * emultempl/armelf_oabi.em
2138 (bfd_elf32_arm_allocate_interworking_sections,
2139 bfd_elf32_arm_get_bfd_for_interworking,
2140 bfd_elf32_arm_process_before_allocation): Define them to use the
2141 old ABI versions of the functions.
252b5132
RH
2142
2143Tue Feb 16 16:48:19 1999 Ian Lance Taylor <ian@cygnus.com>
2144
2145 * configure.in: Change AC_PREREQ to 2.13. Change AM_PROG_INSTALL
2146 to AC_PROG_INSTALL. Change AM_EXEEXT to AC_EXEEXT.
2147 * Makefile.am (earmelf_oabi.c): Changes spaces to tab.
2148 * acconfig.h: Remove.
2149 * aclocal.m4: Rebuild.
2150 * configure: Rebuild.
2151 * Makefile.in: Rebuild.
2152
2153Mon Feb 15 18:21:48 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
2154
2155 * ldexp.h (struct etree_value_type): Change valid onto valid_p.
2156
2157 * ldexp.c (new_abs): Ditto.
2158 (new_rel, new_rel_from_section, fold_binary, invalid, fold_name,
50bbae35
AM
2159 exp_fold_tree, exp_binop, exp_trinop, stat_alloc,
2160 exp_get_abs_int): Ditto
252b5132
RH
2161
2162 * ldlang.c (print_assignment, lang_size_sections,
2163 lang_do_assignments): Ditto.
50bbae35 2164
252b5132
RH
21651999-02-11 Nick Clifton <nickc@cygnus.com>
2166
2167 * ldlang.c (lang_check_section_addresses): New function: Check
2168 addresses assigned to section for overlaps.
2169 (lang_process): Call lang_check_section_addresses if suitable.
2170
2171 * ld.h: Add new boolean field to args_type structure:
2172 'check_section_addresses'.
2173
2174 * ldmain.c: Initialise check_section_addresses field to true.
2175
2176 * lexsup.c: Add new command line options '--no-check-sections' and
2177 '--check-sections'.
2178
2179 * ld.texinfo: Document new command line options '--check-sections'
2180 and '--no-check-sections'.
2181
21821999-02-08 Nick Clifton <nickc@cygnus.com>
2183
2184 * configure.tgt: Add support for StrongARM target.
2185
2186Wed Feb 3 19:41:01 1999 Ian Lance Taylor <ian@cygnus.com>
2187
2188 * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once. Check for
2189 an owner of a section before using it to look up a reloc type.
2190 Don't set SEC_KEEP for the absolute section.
2191
2192Mon Feb 1 11:39:46 1999 Catherine Moore <clm@cygnus.com>
2193
50bbae35
AM
2194 * Makefile.am (earmelf_oabi.o): New.
2195 * Makefile.in: Regenerate.
2196 * configure.tgt (arm-*-oabi): New.
2197 (thumb-*-oabi): New.
2198 * emulparams/armelf_oabi.sh: New.
2199 * emultempl/armelf_oabi.em: New.
252b5132
RH
2200
22011999-01-31 17:57:31 1998 Michael Meissner <meissner@cygnus.com>
2202
2203 * scripttempl/elfppc.sc: Add support for -fleading-underscores
2204 switch in all linker generated symbols.
2205
2206 * configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
2207 powerpc{,le}-*-eabi.
2208
2209Wed Jan 20 17:01:48 1999 Ian Lance Taylor <ian@cygnus.com>
2210
2211 * configure.tgt (i[3456]86-*-solaris2*): New target. From Pavel
2212 Roskin <pavel_roskin@geocities.com>.
2213
22141999-01-19 Nick Clifton <nickc@cygnus.com>
2215
2216 * ldlang.c (lang_size_sections): Count loadable sections as
50bbae35 2217 contributing to the size of the current segment.
252b5132
RH
2218
22191999-01-15 Nick Clifton <nickc@cygnus.com>
2220
2221 * ldlang.c (lang_size_sections): Only update the current
50bbae35
AM
2222 address of a region if the section just placed into it is an
2223 allocated section.
252b5132
RH
2224
22251999-01-12 Nick Clifton <nickc@cygnus.com>
2226
2227 * Makefile.am: Replace efr30.o with eelf32fr30.o.
2228 * Makefile.in: Regenerate.
2229
2230 * configure.tgt: Replace fr30 with elf32fr30.
2231
2232 * emulparams/elf32fr30.sh: New file: Replaces fr30.sh, and uses
2233 generic elf.sc script. Also replaces the .stack section with a
2234 user definable symbol __stack.
2235
22361999-01-11 Nick Clifton <nickc@cygnus.com>
2237
2238 * scripttempl/fr30.sc: Fill .init and .fini sections with NOP
50bbae35 2239 pattern.
252b5132
RH
2240
22411999-01-03 Ken Raeburn <raeburn@cygnus.com>
2242
2243 * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU,
2244 HOSTING_CRT0, HOSTING_LIBS; the test suite can extract them from
2245 configure.host and configure.tgt now.
2246 * Makefile.in: Rebuild.
2247
22481998-12-27 Ulrich Drepper <drepper@cygnus.com>
2249
2250 * lexsup.c (parse_args, case OPTION_RPATH): Avoid adding duplicate
2251 elements to rpath.
2252
2253Thu Dec 10 11:12:28 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2254
2255 * Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
2256 (ALL_EMUL_EXTRA_OFILES): New variable. Put them here instead.
2257 * configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
2258 if configuring with all targets.
2259 * configure, Makefile.in, aclocal.m4: Rebuild.
2260
2261 * emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
2262 (pe_dll_do_default_excludes): Removed, unused.
2263 (pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
2264 pe_dll_stdcall_aliases): Don't initialize them, this file may be
2265 compiled more than once.
2266 * pe-dll.c (pe_def_file, pe_dll_export_everything,
2267 pe_dll_do_default_excludes, pe_dll_kill_ats,
2268 pe_dll_stdcall_aliases): Define and initialize them here instead.
2269 (generate_reloc): Fix allocation of reloc_addresses array to use
2270 bfd_vma instead of unsigned long. Fix element size in qsort call.
2271 (reloc_sort): Compare pointers to bfd_vma instead of unsigned
2272 long.
2273
2274Mon Dec 7 21:10:09 1998 J.J. van der Heijden <j.j.vanderheijden@student.utwente.nl>
2275
2276 * configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
2277 files.
2278
2279Sun Dec 6 16:33:33 1998 Ian Lance Taylor <ian@cygnus.com>
2280
2281 * configure.tgt (m68*-*-gnu*): New target. From Aymeric Vincent
2282 <aymeric.vincent@emi.u-bordeaux.fr>.
2283
22841998-12-04 Nick Clifton <nickc@cygnus.com>
2285
2286 * emulparams/fr30.sh (TEXT_START_ADDR): Change TEXT_START_ADDR
2287 from 0x100000 to 0x10000 so that it fits in 20 bits.
2288
2289Sat Nov 28 22:32:20 1998 Ian Lance Taylor <ian@cygnus.com>
2290
2291 * ldemul.h (ldemul_recognized_file): Declare.
2292
2293Sat Nov 28 22:30:55 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2294
2295 * ldlang.c (lang_add_wild): Don't pretend that there is an input
2296 file if the filename is a wildcard pattern.
2297
22981998-11-25 DJ Delorie <dj@cygnus.com>
2299
2300 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
2301 * ldemul.c (ldemul_recognized_file): new function, new hook
2302 * ldint.texinfo: document new hook.
2303 * ldlang.c (load_symbols): call recognized_hook for all objects we
2304 do recognize, in case the emulation needs to handle them
2305 specially. PE DLLs use this.
2306 * pe-dll.c (pe_dll_generate_def_file): take out hack and debug
2307 printfs
2308 * emultempl/pe.em (gld_i386_recognized_file): new function
2309 (gld_i486_unrecognized_file): take out hack
2310
23111998-11-23 DJ Delorie <dj@cygnus.com>
2312
2313 * pe-dll.c (fill_edata): fill in timestamp
2314 (make_head): name object files sequentially to ensure
2315 they link in the right order.
2316 (make_tail): same here
2317 (pe_process_import_defs): use sequential names for bfds to ensure
2318 proper link order.
2319 (pe_implied_import_dll): new function; handles linking directly
2320 against DLLs by simulating IMPORTS directives. * emultempl/pe.em
2321 (gld_i386pe_before_parse): hack bfd to not recognize .dll files
2322 via bfd_pe_dll_not_recognized_hack
2323
23241998-11-23 DJ Delorie <dj@cygnus.com>
2325
2326 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
2327 pe_dll_add_excludes
2328
2329Mon Nov 23 14:36:18 1998 Nick Clifton <nickc@cygnus.com>
2330
2331 * emultempl/pe.em (after_parse): Only create an undefined entry
2332 symbol if one has been specified.
2333
23341998-11-23 DJ Delorie <dj@cygnus.com>
2335
2336 * emultempl/pe.em (gld_i386pe_after_open): call
2337 pe_process_import_defs
2338 * pe-dll.c (pe_dll_generate_def_file): calculate BASE from
2339 pe_data, only print if actually set. Print version only if
2340 set.
2341 (save_relocs): save relocs for both input and output.
2342 (make_one): support internal/external different names.
2343 (pe_dll_generate_implib): support new make_one
2344 (pe_process_import_defs): new function; handles IMPORT
2345 directives in .def files.
2346
2347Fri Nov 20 13:06:49 1998 Nick Clifton <nickc@cygnus.com>
2348
2349 * ldmisc.c (vfinfo): Cope with empty symbol names.
2350
2351Thu Nov 19 13:31:15 1998 Nick Clifton <nickc@cygnus.com>
2352
2353 * scripttempl/pe.sc: Add provision of '_end' symbol.
2354
2355Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
2356
2357 * configure.tgt: change refs from cygwin32* to cygwin*.
2358 * aclocal.m4: regenerate
2359 * configure.in: don't need to call AM_CYGWIN32.
2360 * configure: regenerate
2361
2362Mon Nov 16 22:14:07 1998 DJ Delorie <dj@cygnus.com>
2363
2364 * emultempl/pe.em (gld_i386_finish): generate import library
2365 * deffile.h: add hint member.
2366 * pe-dll.c (pe_dll_generate_implib): New function with helpers;
50bbae35 2367 generates the import library directly from the export table.
252b5132
RH
2368 (fill_edata): remember the actual hint for the import library.
2369
2370Sat Nov 14 14:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
2371
2372 * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>.
2373
2374Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
2375
2376 * po/ld.pot: Regenerated.
2377 * po/POTFILES.in: Regenerated.
2378 * configure: Regenerated.
2379 * aclocal.m4: Regenerated.
2380 * Makefile.in: Regenerated.
2381
2382Wed Nov 11 18:10:15 1998 DJ Delorie <dj@cygnus.com>
2383
2384 * pe-dll.c (generate_reloc): don't output PE relocs for sections
50bbae35 2385 that won't be loaded.
252b5132
RH
2386
2387Wed Nov 11 13:44:54 1998 DJ Delorie <dj@cygnus.com>
2388
2389 * pe-dll.c (fill_edata): don't strip underscores
2390
2391Tue Nov 10 21:28:19 1998 DJ Delorie <dj@cygnus.com>
2392
2393 * ld.texinfo: added i386pe option summary
2394
2395Tue Nov 10 17:53:17 1998 DJ Delorie <dj@cygnus.com>
2396
2397 * pe-dll.c (process_def_file): properly note undefined exported
50bbae35 2398 symbols, clean up old code.
252b5132
RH
2399 (pe_dll_generate_def_file): don't crash if pe_def_file is NULL
2400 * emultempl/pe.em (gld_i386_parse_args): add
50bbae35 2401 (en/dis)able-stdcall-fixups
252b5132
RH
2402 (pe_fixup_stdcalls): warn about stdcall fixups
2403 (gld_i386_unrecognized_file): make exported symbols undefs so that
50bbae35 2404 archive members get pulled in
252b5132
RH
2405
2406Tue Nov 10 14:50:51 1998 Catherine Moore <clm@cygnus.com>
2407
50bbae35
AM
2408 * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
2409 .fini, .dtors and .ctors. Add .data and .text
2410 wildcards to support section garbage collection.
252b5132
RH
2411
2412Mon Nov 9 22:52:50 1998 DJ Delorie <dj@indy.delorie.com>
2413
2414 * deffilep.y: properly handle relocs with multiple def_files,
2415 cache import module names
2416
2417Mon Nov 9 22:44:58 1998 DJ Delorie <dj@cygnus.com>
2418
2419 * pe-dll.c (process_def_file): don't assume exports won't move
2420 during a realloc
2421
2422Mon Nov 9 16:41:30 1998 DJ Delorie <dj@cygnus.com>
2423
2424 * pe-dll.c: New file; direct support for PE DLLs
2425 * deffile.h: New file; direct support for PE DLLs
2426 * deffilep.y: New file; direct support for PE DLLs
2427 * emultempl/pe.em: add direct support for PE DLLs
2428 * configure.tgt: allow target-specific extra files
2429 * configure.in: allow target-specific extra files
2430 * ldlang.c (lang_add_assignment): return the assignment so that
50bbae35
AM
2431 one can change the value later based on the object files (pe-dll
2432 DEF files do this)
252b5132
RH
2433 * ldint.texinfo: add section for emulation walkthrough
2434 * Makefile.am: add new files and target-specific extra files
2435 * emultempl/pe.em (gld_i386_list_options): list dll-specific
2436 options.
2437 * pe-dll.c (process_def_file): auto-export everything if
2438 nothing is otherwise exported.
50bbae35 2439
252b5132
RH
2440Wed Nov 4 16:39:18 1998 Nick Clifton <nickc@cygnus.com>
2441
2442 * Makefile.am: Add support for FR30 target.
2443 * configure.tgt: Add support for FR30 target.
2444 * Makefile.in: Regenerate.
2445 * emulparams/fr30.sh: New file.
2446 * scripttemp/fr30.sc: New file.
50bbae35 2447
252b5132
RH
2448Mon Nov 2 14:47:15 1998 Catherine Moore <clm@cygnus.com>
2449
50bbae35
AM
2450 * ldmain.c (main): Don't report error for dynamic links and
2451 --gc-sections.
252b5132
RH
2452
24531998-10-26 16:05 Ulrich Drepper <drepper@cygnus.com>
2454
2455 * lexsup.c (ld_options): Change text of -O to Optimize output file".
2456 (parse_args): Set link_info.optimize based on -O argument.
2457 * ldmain.c (main): Initialize link_info.optimze to false.
2458 * ld.texinfo: Describe -O option.
2459 * ld.1: Likewise.
2460
2461Mon Oct 12 14:29:56 1998 Nick Clifton <nickc@cygnus.com>
2462
2463 * scripttempl/v850.sc: Move .sbss and .scommon sections into their
2464 own segment, so that they can be next to the .bss section and so
2465 initialised by the same piece of code.
2466
2467Fri Oct 9 15:59:52 1998 Catherine Moore <clm@cygnus.com>
2468
50bbae35
AM
2469 * scripttempl/elf.sc: Merge .sdata.* etc sections.
2470 * ldctor.c (ldctor_build_sets): Set SEC_KEEP for
2471 ctor sections.
252b5132
RH
2472
2473Mon Oct 5 09:40:43 1998 Catherine Moore <clm@cygnus.com>
2474
50bbae35
AM
2475 * ldmain.c (main): Error if --gc-sections and
2476 dyanmic linking.
2477 * scripttempl/v850.sc: Add KEEP attribute to .init,
2478 .fini, .dtors and .ctors. Add .data and .text
2479 wildcards to support section garbage collection.
252b5132
RH
2480
2481Wed Sep 30 11:19:15 1998 Nick Clifton <nickc@cygnus.com>
2482
2483 * scripttempl/v850.sc: Rename .call_table section to
2484 .call_table_data and create a new section called
2485 .call_table_text.
2486
2487Sun Sep 20 00:43:26 1998 Ian Lance Taylor <ian@cygnus.com>
2488
2489 * scripttempl/elf.sc: Add alignment at the end of the .bss
2490 section, so that it is included in the memsize of the segment.
2491
2492Fri Sep 18 13:42:42 1998 Catherine Moore <clm@cygnus.com>
2493
50bbae35
AM
2494 * emultempl/elf32.em (gld_place_orphan): Don't process for
2495 sections with SEC_EXCLUDE flag.
252b5132
RH
2496
2497Fri Sep 4 09:24:02 1998 Nick Clifton <nickc@cygnus.com>
2498
2499 * emulparams/d30velf.sh (TEXT_SIZE): Increased to 2000K.
2500 (DATA_SIZE): Increased to 2000K.
2501
2502Thu Sep 3 17:30:58 1998 Richard Henderson <rth@cygnus.com>
2503
2504 * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
2505
2506Mon Aug 31 01:06:00 1998 Catherine Moore <clm@cygnus.com>
2507
50bbae35
AM
2508 * Makefile.am: Change armelf.sc to elf.sc
2509 * Makefile.in: Regenerate.
252b5132
RH
2510
2511Mon Aug 31 11:12:04 1998 Catherine Moore <clm@cygnus.com>
2512
50bbae35
AM
2513 * emulparams/armelf.sh: Change SCRIPT_NAME to
2514 elf. Change TEXT_START_ADDR to 0x8000. Define
2515 OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
2516 OTHER_BSS_END_SYMBOLS.
2517 * scripttempl/elf.sc: Modify to use
2518 OTHER_BSS_END_SYMBOLS.
2519 * scripttempl/elfarm.sc: Remove file.
252b5132
RH
2520
2521Tue Aug 18 12:05:34 1998 Catherine Moore <clm@cygnus.com>
2522
50bbae35
AM
2523 * emultempl/armelf.em (gld_armelf_before_allocation):
2524 Add bfd_ prefix to elf32_arm_process_before_allocation
2525 and elf32_arm_allocate_interworking_sections.
2526 (gld_armelf_after_open): Add bfd_ prefix to
2527 elf32_arm_get_bfd_for_interworking.
252b5132
RH
2528
2529Fri Aug 14 15:34:29 1998 Ian Lance Taylor <ian@cygnus.com>
2530
2531 * Makefile.am: Rebuild dependencies.
2532 * Makefile.in: Rebuild.
2533
2534 * ldgram.y: Include "ldctor.h".
2535 (statement): Accept SORT around CONSTRUCTORS.
2536 * ldctor.c: Include <ctype.h>.
2537 (constructors_sorted): New global variable.
2538 (ctor_prio, ctor_cmp): New static functions.
2539 (ldctor_build_sets): Sort constructors if requested.
2540 * ldctor.h (constructors_sorted): Declare.
2541 * ldlang.c (print_statement): Print sorted CONSTRUCTORS
2542 correctly.
2543 * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
2544 * ld.texinfo (Output Section Keywords): Document SORT
50bbae35 2545 (CONSTRUCTORS).
252b5132
RH
2546
2547Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>
2548
50bbae35
AM
2549 * emulparams/armelf.sh: Define TEMPLATE_NAME to armelf.
2550 * scripttempl/elfarm.sc: Include .glue_7t and .glue7
2551 sections.
2552 * emultempl/armelf.em: New file.
252b5132
RH
2553
2554Thu Aug 13 12:52:45 1998 H.J. Lu <hjl@gnu.org>
2555
2556 * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
2557 * Makefile.in: Rebuild.
2558
2559Tue Aug 11 16:17:01 1998 Catherine Moore <clm@cygnus.com>
2560
50bbae35
AM
2561 * scripttempl/elfarm.sc: Change text start address
2562 back to zero.
252b5132
RH
2563
2564Tue Aug 11 10:01:12 1998 Jeffrey A Law (law@cygnus.com)
2565
2566 * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
2567 * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
2568
2569Sun Aug 9 20:31:27 1998 Catherine Moore <clm@cygnus.com>
2570
50bbae35
AM
2571 * scripttempl/elfarm.sc: Set text start address to
2572 0x8000. Add __bss_end definition.
252b5132
RH
2573
2574Sat Aug 1 11:47:37 1998 Catherine Moore <clm@cygnus.com>
2575
50bbae35
AM
2576 * scripttempl/elfarm.sc: New file.
2577 * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
252b5132
RH
2578
2579Fri Jul 31 15:56:16 1998 Catherine Moore <clm@cygnus.com>
2580
50bbae35
AM
2581 * emulparams/armelf.sh: New file.
2582 * configure.tgt: Recognize thumb-elf and arm-elf.
2583 * Makefile.am (earmelf.o): New.
2584 * Makefile.in: Rebuild.
252b5132
RH
2585
2586Fri Jul 24 12:00:57 1998 Ian Lance Taylor <ian@cygnus.com>
2587
2588 * Makefile.am (install-exec-local): Don't remove the file before
2589 checking whether $(bindir) == $(tooldir)/bin. From Maciej
2590 W. Rozycki <macro@ds2.pg.gda.pl>.
2591 * Makefile.in: Rebuild.
2592
2593 * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
2594
2595Thu Jul 23 11:15:12 1998 Ian Lance Taylor <ian@cygnus.com>
2596
2597 * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
2598 alignment of end symbol.
2599 * scripttempl/elf.sc: Likewise.
2600 * emulparams/sun4.sh (ALIGNMENT): Define.
2601 * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
2602 * ldint.texinfo (emulation parameters): Document ALIGNMENT.
2603
2604 * lexsup.c (parse_args): Add missing break statement.
2605
2606 * ldlang.c (lang_gc_sections_1): Add default case to switch to
2607 avoid warnings.
2608
2609Tue Jul 14 15:42:17 1998 Richard Henderson <rth@cygnus.com>
2610
2611 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
2612 * Makefile.am (ei386beos.o): New.
2613 * emulparams/i386beos.sh: New file.
2614 * emultempl/beos.em, scripttempl/i386beos.sc: New file.
2615
2616Tue Jul 14 15:35:42 1998 Richard Henderson <rth@cygnus.com>
2617
2618 * lexsup.c: New option --version-exports-section.
2619 * ld.h (struct args_type): Add version_exports_section.
2620 * ldlang.c (lang_do_version_exports_section): New function.
2621 (lang_process): Call it.
2622
2623Mon Jul 13 13:20:23 1998 Steve Chamberlain <sac@transmeta.com>
2624
2625 * ldlex.l: Accept ASSERT.
2626 * ldgram.y (exp): Add ASSERT_K case.
2627 * ldexp.h (node_type): Add etree_assert to node_class enum.
2628 (etree_type): Add assert_s field.
2629 (exp_assert): Declare.
2630 * ldexp.c (exp_fold_tree): Handle etree_assert.
2631 (exp_assert): New function.
2632 (exp_print_tree): Handle etree_assert.
2633 * ld.texinfo (Miscellaneous Commands): Document ASSERT.
2634
2635Wed Jul 8 14:03:12 1998 Ian Lance Taylor <ian@cygnus.com>
2636
2637 * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
2638 conflicts with system header files. Change all uses.
2639
2640 * Makefile.am (MAINTAINERCLEANFILES): Define.
2641 * Makefile.in: Rebuild.
2642
2643Tue Jul 7 18:03:22 1998 Ian Lance Taylor <ian@cygnus.com>
2644
2645 * Makefile.am (ldver.texi): New target.
2646 (ld.info, ld.dvi): Depend upon ldver.texi.
2647 * ld.texinfo: Include ldver.texi. Mention version number on title
2648 page and in top node.
2649 * Makefile.in: Rebuild.
2650
2651Mon Jul 6 14:55:13 1998 Ian Lance Taylor <ian@cygnus.com>
2652
2653 * configure.tgt (i[3456]86-*-solaris*): New target.
2654
2655Fri Jul 3 14:19:06 1998 Ian Lance Taylor <ian@cygnus.com>
2656
2657 * ldlang.c (wild_section): Don't get an assertion failure if the
2658 section is discarded.
2659
2660 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
2661 * emultempl/pe.em (sort_by_file_name): Remove.
2662 (sort_by_section_name): Remove.
2663 (sort_sections_1, sort_sections): Remove.
2664 (gld_${EMULATION_NAME}_before_allocation): Don't call
2665 sort_sections.
2666 (hold_section, hold_section_name): New static variables.
2667 (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
2668 (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good
2669 place to put the section. Align the section. Sort the input
2670 sections by name.
2671 (gld_${EMULATION_NAME}_place_section): New static function.
2672
2673 * ldlang.c (wild_sort): When sorting by file name, sort by archive
2674 name first.
2675
2676 * emultempl/pe.em (set_pe_subsystem): Don't call
2677 ldlang_add_undef.
2678 (gld_${EMULATION_NAME}_after_parse): New static function.
2679 (ld_${EMULATION_NAME}_emulation): Use new after_parse function
2680 rather than after_parse_default.
2681
2682 * ldgram.y (extern_name_list): Do not require symbols to be
2683 separated by commas.
2684 (ifile_p1): Add EXTERN.
2685 * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
2686 mode.
2687 * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
2688 (Miscellaneous Commands): Document EXTERN.
2689
2690Wed Jul 1 19:40:34 1998 Richard Henderson <rth@cygnus.com>
2691
2692 * ld.h (args_type): Add gc_sections.
2693 * ldgram.y (ldgram_had_keep, KEEP): New.
2694 (input_section_spec_no_keep): Rename from old input_section_spec.
2695 (input_section_spec): New. Recognize KEEP.
2696 * ldlang.c (wild_section): Handle keep sections.
2697 (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
2698 (lang_gc_sections_1, lang_gc_sections): New.
2699 (lang_process): Invoke lang_gc_sections.
2700 (lang_add_wild): Add keep argument. Update all callers.
2701 * ldlang.h (lang_wild_statement_struct): Add keep_sections.
2702 * ldlex.l (KEEP): Match it.
2703 * ldmain.c (main): Error on -r and --gc-sections.
2704 * lexsup.c: Add --gc-sections.
2705
2706 * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
2707 Mark startup sections with KEEP.
2708 * scripttempl/elfppc.sc: Likewise.
2709
2710 * ld.texinfo: Update for --gc-sections and KEEP.
2711
2712Wed Jul 1 15:21:20 1998 Ian Lance Taylor <ian@cygnus.com>
2713
2714 From Peter Jordan <pjordan@chla.usc.edu>:
2715 * scripttempl/i386go32.sc: Correct constructor handling for -u.
2716
2717Tue Jun 23 15:17:27 1998 Ian Lance Taylor <ian@cygnus.com>
2718
2719 * Makefile.am (install-data-local): Make ldscripts subdirectory.
2720 * Makefile.in: Rebuild.
2721
2722Tue Jun 23 15:17:04 1998 Mike Stump <mrs@wrs.com>
2723
2724 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
2725 with the program transform name.
2726 * Makefile.in: Rebuild.
2727
2728Sun Jun 21 23:55:16 1998 Jeffrey A Law (law@cygnus.com)
2729
2730 * ld.texinfo: Note that -relax may make symbolic debugging
2731 impossible on some platforms.
2732
2733Tue Jun 16 12:51:13 1998 Geoff Keating <geoffk@ozemail.com.au>
2734
2735 * Makefile.am (Makefile): Remove target.
2736 (config.status): New target.
2737 * Makefile.in: Rebuild.
2738
2739 * configure.host (powerpc*-*-linux-gnu*): New host.
2740
2741Fri Jun 12 17:38:07 1998 Doug Evans <devans@seba.cygnus.com>
2742
2743 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
2744
2745 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
2746 stack to 8MB.
2747
2748Fri Jun 12 19:33:17 1998 Ian Lance Taylor <ian@cygnus.com>
2749
2750 * Makefile.am (HFILES): Remove config.h.
2751 (EMULATION_OFILES, POTFILES): Move patch of May 14 from
2752 Makefile.in to Makefile.am.
2753 (earmcoff.c): Depend upon armcoff.em, not generic.em.
2754 * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
2755 ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
2756 * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
2757
2758Fri Jun 12 13:43:17 1998 Tom Tromey <tromey@cygnus.com>
2759
2760 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
2761 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2762
2763Tue Jun 9 09:36:48 1998 Nick Clifton <nickc@cygnus.com>
2764
2765 * ldlang.c (lang_finish): Add CONST type modifier to declaration
2766 of 'send'.
2767
2768Fri Jun 5 18:19:59 1998 Ian Lance Taylor <ian@cygnus.com>
2769
2770 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
2771 config.has_shared to true.
2772 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
2773 Likewise.
2774 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
2775 Likewise.
2776
2777Tue Jun 2 12:55:03 1998 Ian Lance Taylor <ian@cygnus.com>
2778
2779 * ldlang.c (lang_finish): If the entry symbol is not found, try
2780 parsing it as a number.
2781 * ld.texinfo (Options): Document this.
2782
2783Mon Jun 1 14:01:20 1998 Ian Lance Taylor <ian@cygnus.com>
2784
2785 * ld.texinfo (Input Section Wildcards): Document SORT keyword.
2786
2787Mon May 18 12:42:53 1998 Doug Evans <devans@canuck.cygnus.com>
2788
2789 * ld.h (ld_config_type): New member has_shared.
2790 * ldmain.c (main): Initialize it.
2791 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
2792 * lexsup.c (parse_args): Treat -shared as error if not supported.
2793
2794Mon May 18 13:14:43 1998 Ian Lance Taylor <ian@cygnus.com>
2795
2796 From Jason Merrill <jason@cygnus.com>:
2797 * ldlang.c (wild_sort): Correct order of sort.
2798 * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
2799 .dtors.
2800 * scripttempl/elfd10v.sc: Likewise.
2801 * scripttempl/elfd30v.sc: Likewise.
2802 * scripttempl/elfppc.sc: Likewise.
2803
2804Fri May 15 00:22:35 1998 Ian Lance Taylor <ian@cygnus.com>
2805
2806 * ldlex.l: Recognize keyword SORT.
2807 * ldgram.y (current_file): Change to struct wildcard_spec.
2808 (%union): Add new fields cname and wildcard.
2809 (wildcard_name, wildcard_spec): New nonterminals.
2810 (file_NAME_list): Use wildcard_spec.
2811 (input_section_spec): Change current_file usage.
2812 * ld.h (struct wildcard_spec): Define.
2813 * ldlang.h (lang_wild_statement_struct): Add new fields
2814 sections_sorted and filenames_sorted.
2815 (lang_add_wild): Update declaration.
2816 * ldlang.c (wild_sort): New static function.
2817 (wild_section): Use wild_sort.
2818 (print_wild_statement): Print sorting information.
2819 (lang_add_wild): Add new parameters sections_sorted and
2820 filenames_sorted. Change all callers.
2821 * mri.c (mri_draw_tree): Update calls to lang_add_wild.
2822 * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
2823 * scripttempl/elfd10v.sc: Likewise.
2824 * scripttempl/elfd30v.sc: Likewise.
2825 * scripttempl/elfppc.sc: Likewise.
2826
2827Thu May 14 18:39:16 1998 Richard Henderson <rth@cygnus.com>
2828
2829 * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
2830
2831Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
2832
2833 * ldemul.h: Add new prototype: ldemul_list_emulation_options.
2834 (ld_emulation_xfer_struct): Add new field: list_options.
2835 * ldemul.c (ldemul_list_options): New function. Call the
2836 list_options field of the ld_emulation_xfer_struct for each
2837 supported emulation, if such a function is present.
2838 * lexsup.c (help): Call ldemul_list_emulation_options.
2839 * emultempl/pe.em (gld_<>_list_options): New function. Describe
2840 the pe emulation specific command line options.
2841 * emultempl/armcoff.em (gld<>_list_options): New function.
2842 Describe the armcoff emulation specific command line options.
2843
2844 * emultempl/pe.em: Add a new command line option:
2845 --support-old-code.
2846 * emultempl/armcoff.em: Ditto.
2847 * ld.texinfo: Document the --support-old-code option.
2848
2849 * Makefile.in: Add emulation files for POTFILES.in target.
2850 * emultempl/pe.em: Internationalise suitable strings.
2851 * emultempl/armcoff.em: Internationalise suitable strings.
2852 * po/POTFILES.in: Rebuilt.
2853
2854Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com)
2855
50bbae35 2856 * po/Make-in (install-info): New target.
252b5132
RH
2857
2858Tue Apr 28 19:18:30 1998 Tom Tromey <tromey@cygnus.com>
2859
2860 * ldmain.c (main): Conditionally call setlocale.
2861 * ld.h: Include <locale.h> if HAVE_LOCALE_H.
2862 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
2863
2864Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
2865
2866 * configure.in: Change version number to 2.9.4
2867 * configure: Rebuild.
2868
2869 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
2870
2871 Based on patch from H.J. Lu <hjl@gnu.org>:
2872 * emultempl/elf32.em (global_vercheck_needed): New file static
2873 variable.
2874 (global_vercheck_failed): New file static variable.
2875 (gld${EMULATION_NAME}_after_open): Check for shared libraries
2876 twice, once with force set to 0 and once with it set to 1.
50bbae35 2877 (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
252b5132
RH
2878 Change all callers.
2879 (gld${EMULATION_NAME}_search_needed): Likewise.
2880 (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check
2881 whether the libraries needs any incompatible versions.
2882 (gld${EMULATION_NAME}_vercheck): New static function.
2883
2884Wed Apr 22 16:01:35 1998 Tom Tromey <tromey@cygnus.com>
2885
2886 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
2887
2888Wed Apr 22 12:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
2889
2890 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
2891 invoking runtest.
2892 * Makefile.in: Rebuild.
2893
2894 * lexsup.c (parse_args): Change -l options into --library options
2895 to avoid confusion between -li and -library.
2896
2897 * ld.texinfo (MEMORY): Clarify use of >REGION.
2898
2899Tue Apr 21 23:12:40 1998 Tom Tromey <tromey@scribbles.cygnus.com>
2900
2901 * Many files: Added gettext invocations around user-visible
2902 strings.
2903 * ld.h: Added gettext-related includes and defines.
2904 * ldmain.c: Call setlocale, bindtextdomain, textdomain.
2905 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
2906 HAVE_LC_MESSAGES): Define.
2907 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
2908 po/Makefile. Use AM_PROG_LEX.
2909 (TDIRS): AC_SUBST early on, to avoid having value split when it
2910 happens to cross line 90 of the generated sed script.
2911 * Makefile.am (SUBDIRS): New macro.
2912 (POTFILES): Likewise.
2913 (po/POTFILES.in): New target.
2914 (ld_new_LDADD): Added INTLLIBS.
2915 (ld_new_DEPENDENCIES): Added INTLDEPS.
2916 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
2917
2918Tue Apr 21 23:07:07 1998 Ian Lance Taylor <ian@cygnus.com>
2919
2920 * ld.texinfo (Simple Example): Rewrite a few things as suggested
2921 by Nick Clifton <nickc@cygnus.com>.
2922 (PROVIDE): Likewise.
2923
2924Tue Apr 21 09:55:06 1998 Nick Clifton <nickc@cygnus.com>
2925
2926 * emultempl/pe.em: Rename external arm interworking functions
2927 to conform to BFD naming conventions. Add code to _after_open()
2928 function to obtain a bfd for use by the interworking code.
2929
2930 * emultempl/armcoff.em: Rename external arm interworking functions
2931 to conform to BFD naming conventions. Add new _after_open()
2932 function to obtain a bfd for use by the interworking code.
2933
2934Sun Apr 19 19:23:09 1998 Richard Henderson <rth@cygnus.com>
2935
2936 * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
2937 Update dot and the default memory section even when relaxing.
2938
2939Sat Apr 18 18:41:12 1998 Richard Henderson <rth@cygnus.com>
2940
2941 * ldlang.c (lang_one_common): Manipulate the section's cooked size
2942 rather than its raw size.
2943
2944Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
2945
2946 * configure.in (TESTBFDLIB): New. Defined and substituted.
2947 * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
2948 * configure, Makefile.in: Rebuild.
2949
2950Mon Apr 6 15:33:39 1998 Ian Lance Taylor <ian@cygnus.com>
2951
2952 * Makefile.am (ld.info): Invoke makeinfo with -I options directly
2953 rather than relying on default rule. Don't depend upon
2954 bfdsumm.texi.
2955 (ld.dvi): Likewise.
2956 (bfdsumm.texi): Remove target.
2957 (CLEANFILES): Take bfdsumm.texi out of value.
2958 * Makefile.in: Rebuild.
2959
2960Sun Apr 5 13:07:57 1998 Ian Lance Taylor <ian@cygnus.com>
2961
2962 * scripttempl/pe.sc: Use shell variables to avoid depending upon
2963 how $ is handled when expanding a shell substitution.
2964
2965Fri Apr 3 00:56:50 1998 Ian Lance Taylor <ian@cygnus.com>
2966
2967 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
2968 (DISTCLEANFILES): Add site.exp and site.bak.
2969 * Makefile.in: Rebuild.
2970
2971 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
2972 rather than in a shell variable and using AC_SUBST.
2973 * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs.
50bbae35 2974 (distclean-local): New target.
252b5132
RH
2975 * configure, Makefile.in: Rebuild.
2976
2977 * ld.texinfo: Completely rewrite linker script documentation.
2978
2979Mon Mar 30 12:47:33 1998 Ian Lance Taylor <ian@cygnus.com>
2980
2981 * configure.in: Set version to 2.9.1.
2982 * configure: Rebuild.
2983
2984 * Branched binutils 2.9.
2985
2986Sat Mar 28 16:48:19 1998 Ian Lance Taylor <ian@cygnus.com>
2987
2988 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
2989 (mostlyclean-local): New target to remove tmpdir.
2990 * Makefile.in: Rebuild.
2991
2992 Fix some gcc -Wall warnings:
2993 * ldcref.c (output_cref): Add casts to avoid warnings.
2994 * ldfile.c (ldfile_add_arch): Likewise.
2995 * ldlang.c (lang_leave_overlay_section): Likewise.
2996 * lexsup.c (OPTION_COUNT): Likewise.
2997 (parse_args): Likewise.
2998 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
2999 Likewise.
3000 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
3001 * ldlang.c (lang_check): Initialize variables to avoid warnings.
3002 * ldwrite.c (build_link_order): Likewise.
3003 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
3004 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
3005 Remove unused variables.
3006
3007 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
3008 MOSTCLEANFILES).
3009 * Makefile.in: Rebuild.
3010
3011Fri Mar 27 16:39:25 1998 Ian Lance Taylor <ian@cygnus.com>
3012
3013 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
3014 ARM code inside ifdef TARGET_IS_armpe.
3015
3016Wed Mar 25 11:34:13 1998 Ian Lance Taylor <ian@cygnus.com>
3017
3018 Based on patch from H.J. Lu <hjl@gnu.org>:
3019 * Makefile.am (LDDISTSTUFF): New variable.
3020 (diststuff): New target.
3021 * Makefile.in: Rebuild.
3022
3023 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
3024 relocating.
3025
3026Tue Mar 24 15:59:29 1998 Nick Clifton <nickc@cygnus.com>
3027
3028 * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
3029 hold Arm/Thumb stubs.
3030
3031 * emultempl/pe.em (gld_pe_before_allocation): Call
3032 arm_process_before_allocation (for ARM/Thumb targets) in order to
3033 gather interworking stb information.
3034
3035Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
3036
3037 * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
3038
3039Fri Mar 20 19:17:13 1998 Ian Lance Taylor <ian@cygnus.com>
3040
3041 * aclocal.m4, configure: Rebuild with libtool 1.2.
3042
3043Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
3044
3045 * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
3046 section to avoid copying certain data on fork. The linker used to
3047 include this between __data_start__ and __data_end__, but that
3048 breaks building the cygwin32 dll. The fix is to rename the
3049 section ".data_cygwin_nocopy" and explictly include it after
3050 __data_end__.
3051
3052Wed Mar 18 09:42:24 1998 Nick Clifton <nickc@cygnus.com>
3053
3054 * configure.tgt (targ_extra_emuls): Add thumb-pe target.
3055
3056Sun Mar 8 23:34:14 1998 Stan Cox <scox@equinox.cygnus.com>
3057
3058 * configure.tgt (sparclite*-*-elf): Added.
3059
3060Mon Mar 2 19:24:08 1998 Michael Meissner <meissner@cygnus.com>
3061
3062 * ldlang.c (lang_size_sections): If the default memory region is
3063 *default*, see if there is a memory region that could be used.
3064
3065Thu Feb 26 17:09:53 1998 Michael Meissner <meissner@cygnus.com>
3066
3067 * scripttempl/elfd30v.sc: Add support for .eit_v section and put
3068 it at 0xfffff020.
3069 * emulparams/d30v{elf,_o,_e}.sh: Ditto.
3070
3071Mon Feb 23 17:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
3072
3073 * emultempl/pe.em (sort_sections): Permit the wildcard to include
3074 a trailing '*' when sorting grouped sections.
3075 * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only
3076 include them when relocating.
3077
3078Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
3079
3080 * Makefile.am (install-exec-local): Install properly when ln
3081 fails or tooldir == prefix.
3082
3083Fri Feb 13 15:24:06 1998 Ian Lance Taylor <ian@cygnus.com>
3084
3085 * Makefile.am (AUTOMAKE_OPTIONS): Define.
3086 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
3087
3088Thu Feb 12 14:10:44 1998 Ian Lance Taylor <ian@cygnus.com>
3089
3090 * scripttempl/elf.sc: Align the _end symbol according to the ELF
50bbae35 3091 format size. From Gordon W. Ross <gwr@mc.com>.
252b5132
RH
3092
3093 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3094 * configure.host (alpha*-*-netbsd*): New host.
3095 * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
3096 targets.
3097
3098 * lexsup.c (help): Update bug-gnu-utils address.
3099 * ld.texinfo (Bug Reporting): Likewise.
3100
3101Tue Feb 10 18:05:56 1998 Ian Lance Taylor <ian@cygnus.com>
3102
3103 * ldlang.c (lang_size_sections): Warn if some memory regions were
3104 defined, but a loadable section is going into the default memory
3105 region.
3106
3107Tue Feb 10 16:17:20 1998 H.J. Lu <hjl@gnu.org>
3108
3109 * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
3110
3111Tue Feb 10 15:09:45 1998 Ian Lance Taylor <ian@cygnus.com>
3112
3113 * Makefile.am (Makefile): Add target, for dependencies on
3114 configure.host and configure.tgt.
3115 * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
3116 * Makefile.in: Rebuild.
3117
3118Mon Feb 9 13:44:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
3119
3120 * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
3121
3122 * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
50bbae35 3123 moved to 0x00.....4.
252b5132
RH
3124
3125Sat Feb 7 15:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
3126
3127 * configure, aclocal.m4: Rebuild with new libtool.
3128
3129Thu Feb 5 12:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
3130
3131 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
3132 From Thomas de Lellis <tdel@wrs.com>.
3133
3134 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
3135
3136Wed Feb 4 13:02:32 1998 Ian Lance Taylor <ian@cygnus.com>
3137
3138 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
3139 * Makefile.in: Rebuild.
3140
3141Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
3142
3143 Add tms320c30 support:
3144 * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
3145 * emulparams/tic30aout.sh: New file.
3146 * emulparams/tic30coff.sh: New file.
3147 * scripttempl/tic30aout.sc: New file.
3148 * scripttempl/tic30coff.sc: New file.
3149 * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
3150 etic30coff.o.
3151 (etic30aout.c, etic30coff.c): New targets.
3152 * Makefile.in: Rebuild.
3153
3154Mon Feb 2 14:10:59 1998 Ian Lance Taylor <ian@cygnus.com>
3155
3156 * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
3157 accept either ld.so or ld-linux.so.
3158
3159Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
3160
3161 * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
3162 to transform.
3163 * Makefile.in: Regenerate.
3164
3165Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
3166
3167 * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
3168
3169Fri Jan 30 11:43:49 1998 H.J. Lu <hjl@gnu.ai.mit.edu>
3170
3171 * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
3172 * Makefile.in: Rebuild.
3173
3174Thu Jan 29 16:04:21 1998 Mumit Khan <khan@xraylith.wisc.edu>
3175
3176 * ldfile.c (slash): Set to backslash if _WIN32 but not
3177 __CYGWIN32__.
3178 (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
3179 leading backslash or a leading x: as an absolute path.
3180 (ldfile_find_command_file): Use slash rather than / when
3181 generating name to try.
3182 * lexsup.c (PATH_SEPARATOR): Define.
3183 (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
3184
3185Wed Jan 28 14:06:30 1998 Richard Henderson <rth@cygnus.com>
3186
3187 * emulparams/elf64_sparc.sh (ELFSIZE): 64
3188 (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
3189 (DATA_PLT): Needed by v9 abi.
3190
3191Wed Jan 28 16:37:27 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
3192
3193 * configure.tgt (i[3456]86-*-mingw32*): New entry.
3194
3195Wed Jan 28 15:51:58 1998 Ian Lance Taylor <ian@cygnus.com>
3196
3197 * scripttempl/elf.sc: Only include linkonce sections in final
3198 sections when relocating.
3199
3200Wed Jan 28 14:10:01 1998 Ian Lance Taylor <ian@cygnus.com>
3201
3202 * ld.texinfo (Options): Add a brief description of the types of
3203 information included in a link map.
3204
3205 * ld.texinfo (Options): Mention LDEMULATION in description of -m.
3206 (Environment): Mention LDEMULATION.
3207
3208 * ld.texinfo (Options): Clarify --export-dynamic a bit.
3209
3210Thu Jan 22 16:07:23 1998 Richard Henderson <rth@cygnus.com>
3211
3212 * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
3213 pattern could match.
3214
3215Wed Jan 21 22:26:46 1998 Ian Lance Taylor <ian@cygnus.com>
3216
3217 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
3218 a relocateable link, set the image base to 0, and don't define the
3219 various symbols.
3220 * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
3221 * scripttempl/pe.sc: Swap the .data and .bss sections so that
3222 .data comes first. If doing a relocateable link, use
3223 RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
3224 sections at 0, and don't define any symbols.
3225
3226 * ldlang.c (lang_memory_default): Correct parenthisization of
3227 expression.
3228
3229Wed Jan 21 21:20:32 1998 Manfred Hollstein <manfred@s-direktnet.de>
3230
3231 * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
3232 here; they are included already via sysdep.h.
3233
3234Tue Jan 6 13:40:02 1998 Richard Henderson <rth@cygnus.com>
3235
3236 * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
3237
3238Fri Jan 2 20:15:37 1998 Michael Meissner <meissner@cygnus.com>
3239
3240 * ldgram.y (attributes_opt): Pass region pointer to
3241 lang_set_flags, not &region->flags.
3242
3243 * ldlang.c (lang_memory_default): New function to figure out a
3244 default memory region for a section if it was not specified.
3245 (lang_memory_region_lookup): Zero flags, not_flags field.
3246 (lang_map{,_flags}): Print attribute flags in memory map.
3247 (lang_size_sections): Call lang_memory_default to get default
3248 memory region.
3249 (lang_set_flags): Implement attribute flags for real. Take new
3250 argument to give the flags we are to skip for this region.
3251
3252 * ldlang.h (memory_region_struct): Add not_flags field, make both
3253 flags fields flagword type.
3254 (lang_output_section_state): Make flags field flagword type.
3255 (lang_set_flags): Update prototype to match new calling sequence.
3256 (lang_memory_region_default): Add prototype.
3257
3258 * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
3259 Define whether or not the region gets default sections, and if so,
3260 what sections.
3261
3262 * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
3263 default sections.
3264
3265Thu Jan 1 22:58:04 1998 Michael Meissner <meissner@cygnus.com>
3266
3267 * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
3268
3269Thu Jan 1 18:04:51 1998 Jeffrey A Law (law@cygnus.com)
3270
3271 * scripttempl/h8300h.sc: Fix typo.
3272 * scripttempl/h8300s.sc: Likewise.
3273
3274Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
3275
3276 * ldexp.c (fold_name): Don't crash if the symbol is defined in a
3277 section with no output section, such as a shared library section.
3278
3279Wed Dec 17 12:14:11 1997 Ian Lance Taylor <ian@cygnus.com>
3280
3281 * lexsup.c (parse_args): Keep track of where we are in the option
3282 parsing before calling ldemul_parse_args, so that we don't call it
3283 multiple times on the same argument and confuse the getopt
3284 internals.
3285
3286Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
3287
3288 * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
3289 d30velf_o to d30v_o to work in DOS environments.
3290 * Makefile.{am,in}: Ditto.
3291
3292 * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
3293 * emulparams/d30velf_{o,e}: Deleted.
3294
3295Wed Dec 10 17:40:08 1997 Nick Clifton <nickc@cygnus.com>
3296
3297 * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
3298 branch).
3299
3300 * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
3301
3302 * emultempl/armcoff.em: New file, imported from Arm branch.
3303
3304Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
3305
3306 * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
3307 defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
3308 external memory sections for rodata. Delete .string, .rodata1,
3309 and .data1 sections.
3310
3311Tue Dec 9 15:28:17 1997 Michael Meissner <meissner@cygnus.com>
3312
3313 * Makefile.am: Add Oct 23 changes to Makefile.in here.
3314
3315 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
3316
3317 * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
3318
3319 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
3320 (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
3321 external memory.
3322 (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
3323 onchip memory.
3324
3325 * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
3326 stack.
3327 ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
3328 ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
3329 .bss should go in.
3330
3331 * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
3332 .text, .data, etc go in external memory or onchip memory.
3333
3334 * configure.tgt (d30v-*-*ext*): New configuration to default
3335 .text, .data, etc. in external memory.
3336 (d30v-*-*onchip*): New configuration to default .text, .data,
3337 etc. in onchip memory.
3338 (d30v-*-*): Add d30velf_{e,o} emulations.
3339
3340 * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
3341 either the onchip text/data areas or the external memory area.
3342 (MEMORY): Get sizes from d30velf.sh.
3343 (.e{data,text,bss}): Put sections in the external memory region.
3344 (.stext): Put section in the onchip text region.
3345 (.s{data,bss}): Put sections in the onchip data region.
3346 (__stack): Assign from ${STACK_START_ADDR}.
3347 (.text): Put in ${TEXT_MEMORY} memory region.
3348 (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
3349 region.
3350 (.bss): Put in ${BSS_MEMORY} memory region.
3351
3352Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
3353
3354 * configure.tgt (targ_extra_emuls): Add support for Thumb target.
3355
3356Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
3357
3358 * ldlex.l: Don't define hex_mode. Correct number regexp to not
3359 accept hex digits without a leading $ or 0x. Handle leading $
3360 correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
3361 * ldlex.h (hex_mode): Don't declare.
3362
3363Sun Nov 16 20:16:45 1997 Michael Meissner <meissner@cygnus.com>
3364
3365 * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
3366 of internal data area and external memory on chip.
3367
3368 * scripttempl/elfd30v.sc: Define a MEMORY region that describes
3369 the 3 regions of memory on the chip. Put .text/.init/.fini into
3370 the text memory region, put other segments into the data memory
3371 region. Add more of the standard elf sections. Default __stack
3372 to be 0x20008000, which is 1 byte beyond end of the internal data
3373 region.
3374
3375Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3376
3377 * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
50bbae35 3378 variant.
252b5132
RH
3379
3380Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3381
3382 * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
3383 HOSTING_LIBS.
3384
3385Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
3386
3387 * ld.h (args_type): Add warn_mismatch field.
3388 * ldmain.c (main): Initialize warn_mismatch field.
3389 * lexsup.c (parse_args): Handle --no-warn-mismatch option.
3390 * ldlang.c (ignore_bfd_error): New static function.
3391 (lang_check): If warn_mismatch is false, don't warn about
3392 mismatched input files.
3393 * ld.texinfo, ld.1: Document new option.
3394
3395Thu Oct 23 14:38:18 1997 Nick Clifton <nickc@cygnus.com>
3396
3397 * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
3398 to avoid conflicts with C code which is defining a variable called
3399 'stack'.
3400
3401Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
3402
3403 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
3404 (ALL_64_EMULATIONS): ... here.
3405 (eelf64_sparc.c): Template should be elf32 not generic.
3406 * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
3407
3408Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
3409
3410 * configure.tgt: Add sparc64-*-linux*.
3411 * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
3412
3413Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
3414
3415 * scripttempl/pe.sc: Put .eh_frame in .rdata.
3416
3417Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
3418
3419 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
3420 since we need to be able to export different versions of the same
3421 symbol.
3422
3423Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
3424
3425 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
3426
3427Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
3428
3429 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
3430 config.guess now recognizes alphaev5 etc.
3431
3432Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
3433
3434 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
3435 -s and -u as -static and -unix.
3436
3437Thu Oct 2 18:40:28 1997 Ian Lance Taylor <ian@cygnus.com>
3438
3439 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
50bbae35
AM
3440 are not adding the first input section, and SEC_READONLY is clear
3441 on the output section, then don't copy it from the input section.
3442 If SEC_READONLY is not set on the input section, then clear it on
3443 the output section.
252b5132
RH
3444
3445 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
3446 elf32bmip.
3447 (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
3448 to elf32bsmip.
3449 (mips*-*-linux*): Likewise.
3450 * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
3451 setting ENTRY to __start.
3452 * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
3453 setting ENTRY to __start.
3454 * scripttempl/elf.sc: Always set ENTRY to _start if it was not
3455 already set.
3456
3457Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
3458
3459 * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
3460 Variables.
3461
3462 * scripttempl/v850.sc: Move read only areas out of zero and small
3463 data sections and into their own sections.
3464
3465Wed Sep 24 16:59:15 1997 Joel Sherrill <joel@oarcorp.com>
3466
50bbae35 3467 * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
252b5132
RH
3468
3469Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
3470
3471 * ld.texinfo (Section Options): Improve documentation of NOLOAD
3472 directive.
3473
3474 * aclocal.m4: Rebuild with new libtool.
3475 * configure: Rebuild.
3476
3477Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
3478
3479 * ldlang.c (wild_doit): Revert patch of September 3.
3480
3481Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
3482
3483 * Makefile.am, Makefile.in: Add rule for ev850.c
3484 * configure.tgt (targ_extra_emuls): Add v850 target.
3485
3486Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
3487
3488 * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
3489 * scripttempl/v850.sc: Add call table data area
3490
3491Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
3492
3493 Merge change from Martin Hunt:
3494
3495 * scripttempl/elfd30v.sc: Put .rodata in the .text section.
3496
3497Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
3498
3499 * ldlang.c (lang_memory_region_lookup): Remove extraneous
3500 initialization of p.
3501
3502Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
3503
3504 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
3505 expression produced for -bpT and -bpD options, align to a 32 byte
3506 boundary rather than an 8 byte boundary.
3507 * scripttempl/aix.sc: Put .tocbss at start of .bss section.
3508
3509 * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
3510 function name conflict with AIX 4.2 unistd.h header file.
3511
3512Wed Sep 3 15:12:32 1997 Ian Lance Taylor <ian@cygnus.com>
3513
3514 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
3515 noload_section.
3516
3517Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
3518
3519 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
3520 * Makefile.in: Rebuild.
3521
3522Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
3523
3524 * configure.tgt (arc-*-elf*): Recognize.
3525 * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
3526 * Makefile.in: Regenerate.
3527 * emulparams/arcelf.sh: New file.
3528
3529Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
3530
3531 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
3532 pattern to be treated as a wildcard pattern.
3533
3534 * ldgram.y (atype): Accept parentheses with no type.
3535
3536 * ld.texinfo (Section Definition): Clarify use of whitespace.
3537 (Section Placement): Likewise.
3538
3539Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
3540
3541 * configure.tgt (targ_extra_emuls): Add support for v850e target.
3542
3543Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
3544
3545 * configure.tgt (targ_extra_emuls): Add support for v850e target.
3546
3547Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
3548
3549 * Makefile.am (ld.info): Change dependency from
3550 $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
3551 (ld.dvi): Likewise.
3552 (bfdsumm.texi): New target.
3553 (CLEANFILES): Add bfdsumm.texi.
3554 * Makefile.in: Rebuild.
3555
3556 * Makefile.am: New file, based on old Makefile.in.
3557 * acinclude.m4: New file, from old aclocal.m4.
3558 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
3559 shared library handling; now handled by libtool. Replace
3560 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
3561 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
3562 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
3563 * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
3564 * acconfig.h: Mention PACKAGE and VERSION.
3565 * stamp-h.in: New file.
3566 * ldver.c (ld_program_version): Set ld_program_version from
3567 VERSION.
3568 * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
3569 * Makefile.in: Now built with automake.
3570 * aclocal.m4: Now built with aclocal.
3571 * configure, config.in: Rebuild.
3572
3573Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
3574
50bbae35
AM
3575 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
3576 win32 dependencies.
3577 * configure: Regenerated with autoconf 2.12.
3578 * Makefile.in: Add $(EXEEXT) to executable.
252b5132
RH
3579
3580Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
3581
3582 * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
3583 (SEGMENT_SIZE): Set to 0x200.
3584 * scripttempl/i386go32.sc: Rewrite.
3585 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
3586
3587Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
3588
3589 From Manfred Hollstein <manfred@s-direktnet.de>:
3590 * configure.host (i[3456]86-*-linux*libc1*): Renamed from
3591 i[3456]86-*-linux*.
3592 (i[3456]86-*-linux*): New host.
3593
3594Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
3595
3596 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
3597 sections in the output .rsrc section.
3598
3599Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3600
3601 * configure.host (m68*-*-linux*libc1*): Renamed from
3602 `m68*-*-linux*'.
3603 (m68*-*-linux*): New configuration for use with GNU libc 2.
3604
3605Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
3606
3607 * scripttempl/elfppc.sc: Correct .rela.sdata entries.
3608
3609 * scripttempl/elfppc.sc: Put the PLT between the small and large
3610 BSS segments.
3611 * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
3612 program base of 0x02000000 is recommended...' because otherwise
3613 shared libraries are less efficient. We use 0x01800000 because
3614 otherwise it's impossible to branch to location 0, for instance if
3615 you have an undefined weak symbol.
3616
3617Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3618
3619 * ldlang.c (lang_place_undefineds): Add \n in einfo call.
3620 (lang_size_sections): Likewise.
3621 * ldlex.l: Likewise.
3622 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
3623 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
3624 Likewise.
3625 (check_sections): Likewise.
3626 (gld${EMULATION_NAME}_after_allocation): Likewise.
3627 * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
3628 Likewise.
3629 * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
3630 * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
3631 (check_sections): Likewise.
3632 (gldmipsidt_after_allocation): Likewise.
3633
3634 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
3635
3636Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
3637
3638 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
3639 the import list.
3640
3641Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
3642
3643 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
3644 crash if an output section has no BFD section.
3645
3646Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
3647
3648 * lexsup.c (ld_options): Add entry for the new "task-link" option.
3649 (parse_args): Handle the "task-link" option.
3650 (OPTION_TASK_LINK): Add define.
3651
3652Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
3653
3654 * ldmain.c (main): Correct check of fclose return value when
3655 handling --force-exe-suffix.
3656
3657Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
3658
3659 * ldlang.c (lang_check): Add test of the return value from the
3660 call to bfd_merge_private_bfd_data().
3661
3662Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
3663
3664 * scripttempl/elfmips.sc: Remove.
3665 * scripttempl/elf.sc: Set ENTRY based on target. Permit
3666 TEXT_DYNAMIC to control .dynamic segment. Permit
3667 SHLIB_TEXT_START_ADDR to set start of shared object. Support
3668 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
3669 .gnu.linkonce.t* in .text when relocating. Support
3670 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
3671 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
3672 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
3673 (DATA_ADDR): Don't set.
3674 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
3675 (OTHER_TEXT_SECTIONS): Set.
3676 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
3677 (MACHINE): Set to empty string.
3678 * emulparams/elf32l4300.sh: Likewise.
3679 * emulparams/elf32ebmip.sh: Likewise.
3680 * emulparams/elf32elmip.sh: Likewise.
3681 * emulparams/elf32bmip.sh: Likewise. Also:
3682 (TEXT_DYNAMIC): Set.
3683 * emulparams/elf32lmips.sh: Likewise.
3684 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
3685 elfmips.sc.
3686 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
3687
3688Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3689
3690 * scripttempl/elf.sc: Don't align the data segment on the next 8
3691 byte boundary, instead let the linker use whatever the individual
3692 sections require.
3693
3694Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
3695
3696 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
3697
3698Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
3699
3700 From Sean McNeil <sean@mcneil.com>:
3701 * emultempl/pe.em (sort_by_file_name): Sort by archive name
3702 first.
3703 (sort_sections): Sort all sections, not just sections in the same
3704 archive.
3705
3706Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
3707
3708 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
3709 targets.
3710
3711Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
3712
3713 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
3714 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
3715 in the .text section. Move .const, .ctors, .dtors into separate
3716 sections.
3717
3718Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
3719
3720 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
3721 around assignment of current location pointer.
3722
3723Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
3724
3725 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
3726 appropriately.
3727
3728Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
3729
3730 * Makefile.in (INSTALL): Set to @INSTALL@.
3731 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
3732 (install): Depend upon ld.new and installdirs. Use
3733 $(program_transform_name) directly, rather than using
3734 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
3735 (installdirs): New target.
3736 (install-info): Run mkinstalldirs.
3737
3738Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
3739
3740 * Makefile.in (INSTALL): Change install.sh to install-sh.
3741
3742 From Thomas Graichen <graichen@rzpd.de>:
3743 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
3744 * configure: Rebuild.
3745
3746Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
3747
3748 * emultempl/pe.em: Include "libiberty.h".
3749 (sort_sections_1): Use xmalloc rather than alloca.
3750
3751 * ldlex.l: Recognize SQUAD.
3752 * ldgram.y (length): Add SQUAD.
3753 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
3754 reloc.
3755 * ldlang.c (print_data_statement): Handle SQUAD.
3756 (lang_size_sections, lang_do_assignments): Likewise.
3757 * ldexp.c (exp_print_token): Add SQUAD to table.
3758 * ldwrite.c (build_link_order): Handle SQUAD.
3759 * ld.texinfo (Section Data Expressions): Document SQUAD.
3760
3761Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
3762
3763 * ldver.c (ld_program_version): Set to 2.8.1.
3764
3765 * Branched binutils 2.8.
3766
3767Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
3768
3769 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
3770 * mpw-elfmips.c: Rename from mpw-emipself.c.
3771 * mpw-config.in: Update accordingly.
3772
3773 * ldlang.c (lang_process): Call lang_check immediately after
3774 opening the input files, rather than at the end of the link.
3775
3776Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
3777
3778 * emultempl/pe.em (init): Fully bracket initializer.
3779 (set_pe_stack_heap): Remove locals begin_commit and end.
3780 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
3781 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
3782
3783Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
3784
50bbae35 3785 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
252b5132
RH
3786
3787Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3788
3789 Contributed by David S. Miller <davem@caip.rutgers.edu>:
3790 * configure.tgt (sparc*-*-linuxaout*): New target.
3791 (sparc*-*-linux*): New target.
3792 * emulparams/sparclinux.sh: New file.
3793 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
3794 (esparclinux.c): New target.
3795
3796Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
3797
3798 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
3799 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
3800 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
3801 elf32elmip.
3802
3803Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
3804
3805 * lexsup.c (parse_args): Update copyright date in version
3806 message.
3807
3808Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3809
3810 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
3811
3812Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
3813
3814 * Makefile.in: Rebuild dependencies.
3815
3816 * emultempl/aix.em: Include "obstack.h".
3817
3818Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
3819
3820 * ldlang.c: Include "obstack.h".
3821
3822Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
3823
3824 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
3825
3826Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
3827
3828 * ldemul.h (ldemul_list_emulations): Use full prototype.
3829 * ldlang.c (print_one_symbol): Add declaration.
3830 * ldlang.h (dprint_statements): Declare.
3831 * ldmain.c (remove_output): Declare.
3832 * ldmisc.c (vfinfo): Declare.
3833 * ldwrite.c (clone_section): Declare.
3834 (split_sections): Make static. Declare.
3835 * mri.c: Include libiberty.h.
3836 (strdup): Don't declare.
3837 (mri_alias): Use xstrdup rather than strdup.
3838
3839Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
3840
3841 * scripttempl/elfmips.sc: Change handling of data area when
3842 generating a shared library to not skip a large block of memory.
3843 From Per Fogelstrom <pefo@cvs.openbsd.org>.
3844
3845Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
3846
3847 * ldmain.c (multiple_definition): Only skip the warning if the
3848 output section is absolute when the input section is not
3849 absolute.
3850
3851 * ldlex.l: Accept whitespace in VERS_START state. Warn about
3852 invalid characters in VERS_* states.
3853
3854Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
3855
3856 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
3857 trailing space lead us to think that there is a zero address.
3858
3859Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
3860
3861 * ldgram.y (vers_node): Correct typo of '(' for '{'.
3862
3863Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
3864
3865 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
3866 rather than _start.
3867 (__edata): Define this rather than "edata".
3868 (__end): Define this rather than "end".
3869
3870Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
3871
3872 * configure.tgt (tic80-*-*): Allow dropping of -coff.
3873
3874Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
3875
3876 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
3877 as TEXINPUTS. Needed for building in separate build dir.
3878 * ldint.texinfo (SCRIPT_NAME): Fix typo.
3879 * emulparams/tic80coff.sh: Rewrite to include internal documentation
3880 about each shell variable that is set (or not set).
3881 * scripttempl/tic80coff.sc: Complete rewrite.
3882
3883Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
3884
3885 * ldmain.c (main): Call bfd_set_default_target.
3886 * Makefile.in (ldmain.o): Define TARGET when compiling.
3887
3888Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
3889
3890 * ldmain.c (main): Don't initialize link_info.lprefix or
3891 link_info.lprefix_len.
3892 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
3893
3894 * emultempl/m88kbcs.em: Remove.
3895 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
3896 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
3897 m88kbcs.em.
3898
3899 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
3900 to lang_enter_output_section_statement. From Mark Rasin
3901 <mark.rasin@telrad.co.il>.
3902
3903Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
3904
3905 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
3906 section.
3907
3908Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
3909
3910 * configure.tgt (mips*-*-lnews*): New target.
3911 * Makefile.in (emipslnews.c): New target.
3912 * emulparams/mipslnews.sh: New file.
3913
3914Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
3915
3916 * emultempl/elf32.em (hold_interp): New static variable.
3917 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
3918 after hold_interp. Choose a unique output section name.
3919 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
3920 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
3921
3922Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
3923
3924 From Eric Youngdale <eric@andante.jic.com>:
3925 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
3926 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
3927 information.
3928 (ldlex_version_script, ldlex_version_file): New functions.
3929 * ldlex.h (enum input_enum): Add input_version_script.
3930 (ldlex_version_script): Declare.
3931 (ldlex_version_file): Declare.
3932 * ldgram.y (%union): Add deflist, versyms, and versnode.
3933 (VERS_TAG, VERS_IDENTIFIER): New terminals.
3934 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
3935 (file): Accept INPUT_VERSION_SCRIPT.
3936 (ifile_p1): Accept version.
3937 (version_script_file): New nonterminal.
3938 (version, vers_nodes, vers_node): Likewise.
3939 (verdep, vers_tag, ver_defns): Likewise.
3940 * ldlang.c (lang_elf_version_info): New global variable.
3941 (lang_new_vers_regex): New function.
3942 (lang_new_vers_node): New function.
3943 (version_index): New static variable.
3944 (lang_register_vers_node): New function.
3945 (lang_add_vers_depend): New function.
3946 * ldlang.h (lang_elf_version_info): Declare.
3947 (lang_new_vers_regex, lang_new_vers_node): Declare.
3948 (lang_add_vers_depend, lang_register_vers_node): Declare.
3949 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
3950 (ld_options): Add "version-script".
3951 (parse_args): Handle OPTION_VERSION_SCRIPT.
3952 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3953 Pass lang_elf_version_info to size_dynamic_sections.
3954 * scripttempl/elf.sc: Add .gnu.version sections.
3955 * ld.texinfo: Document symbol versioning.
3956
3957Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3958
3959 * Makefile.in (ed30velf.c): New target.
3960 * configure.tgt (d30v-*-*): New target.
3961 * emulparams/d30velf.sh: New file.
3962 * scripttempl/elfd30v.sc: New file.
3963
3964Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
3965
3966 * ld.texinfo (Option Commands): Document the INCLUDE command.
3967
3968Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3969
3970 * configure.in: Call BFD_NEED_DECLARATION on getenv.
3971 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
3972 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
3973 * ldemul.c (ld_emul_default_target): Do not cast getenv return
3974 value.
3975 * ldmain.c (get_emulation): Likewise.
3976 * configure, config.in: Rebuild.
3977
3978Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
3979
3980 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
3981 .mips16.call.* in .text.
3982
3983Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
3984
3985 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
3986 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
3987 * Makefile.in (etic80coff.c): Add target and rule to build it.
3988 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
3989
3990Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
3991
3992 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
3993 ".so" in the name, not ".so.".
3994 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
3995
3996 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
3997 <alan@spri.levels.unisa.edu.au>.
3998
3999Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
4000
4001 * emultempl/sunos.em: Include <ctype.h>.
4002 (gld${EMULATION_NAME}_find_so): Skip the directory name when
4003 searching for ".so.".
4004 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
4005 has a version number, and that only version numbers follow .so.
4006
4007Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
4008
4009 * scripttempl/pe.sc:
4010 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
4011 section so Win32 executables are valid.
4012
4013Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
4014
4015 * scripttempl/elf.sc: Put linkonce reloc section in other
50bbae35 4016 appropriate reloc sections.
252b5132
RH
4017 * scripttempl/elfmips.sc: Add linkonce support.
4018 * scripttempl/elfppc.sc: Likewise.
4019
4020Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
4021
4022 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
4023 stack up to 0x80000.
4024 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
4025
4026Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
4027
4028 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
4029 to define `_stack'.
4030
4031Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
4032
4033 * ld.h (args_type): Rename auxiliary_filter_shlib to
4034 auxiliary_filters, and make it char **.
4035 * lexsup.c (parse_args): Handle -f by setting up an array.
4036 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4037 new name of auxiliary_filters.
4038
4039 * ld.texinfo (Options): Improve documentation of --filter and
4040 --auxiliary.
4041
4042Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
4043
4044 * ld.texinfo (Options): Clarify that the normal usage is -T.
4045 (Commands): Likewise.
4046
4047Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
4048
4049 * scripttempl/armcoff.sc: Correct mask used for .data address.
4050
4051Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
4052
4053 * emultempl/pe.em: make default executable a.exe instead of
4054 a.out
4055
4056Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
4057
4058 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
4059 shifting .plt back. Rumour has it that the NetBSD ld.so depends
4060 on .dynamic being after .got, so we leave that.
4061
4062Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
4063
4064 * Makefile.in (clean): Don't remove configdoc.texi.
50bbae35 4065 (maintainer-clean): Do remove configdoc.texi.
252b5132
RH
4066
4067 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
4068 to avoid confusing texi2roff.
4069
4070Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
4071
4072 * scripttempl/v850.sc (.zdata): Add .zcommon section.
4073 (.tdata): Add .tcommon and .tcommon_byte sections.
4074
4075Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
4076
4077 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
4078 * scripttempl/elfmips.sc: Use __start as the entry address for
4079 mips*-*-linux*.
4080
4081Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
4082
4083 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
4084
4085 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
4086 fields.
4087 * lexsup.c (parse_args): Recognize --auxiliary/-f and
4088 --filter/-F.
4089 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4090 Pass filter_shlib and auxiliary_filter_shlib to
4091 size_dynamic_sections.
4092 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
4093
4094Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4095
4096 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
4097
4098Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
4099
4100 * mpw-make.sed: Use NewFolderRecursive for installation.
4101
4102Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4103
4104 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
4105 {s,t}data sections. Do not emit any linker generated symbols if
4106 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
4107 where the different sections go. Change some whitespace.
4108
4109 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
4110 appropriately. Remove crud not used anymore.
4111
4112Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
4113
4114 * Makefile.in (emn10200.c): Add dependencies.
4115 * configure.tgt: Handle mn10200.
4116 * emulparms/mn10200.sh: New file.
4117
4118Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
4119
4120 * emultempl/gld960c.em: Include <ctype.h>.
50bbae35 4121 (gld960_set_output_arch): Get the machine type from the -A option
252b5132
RH
4122 if there is one, rather than always using core.
4123
4124Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
4125
4126 * emulparms/mn10300.sh: Handle leading underscores.
4127
4128Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
4129
4130 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
4131 set hold_rel if SEC_ALLOC is set.
4132
4133Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
4134
4135 * ldlang.c (section_already_linked): Set the output_offset as well
4136 as the output_section when only reading symbols from a file.
4137
4138Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
4139
4140 * emulparams/*.sh: Make sure that each set of parameters which
4141 uses the elf.sc script sets MACHINE.
4142
4143Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
4144
4145 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
4146 * scripttempl/elfd10v.sc: Likewise.
4147 * scripttempl/v850.sc: Likewise.
4148
4149Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
4150
4151 * configure: Rebuild with autoconf 2.12.
4152
4153Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
4154
4155 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
4156 for bfd_vma to init loop.
4157
4158Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
4159
4160 * emulparms/mn10300.sh: Remove bogus '_' prefix for
4161 entry symbol and ctor/dtor stuff.
4162
4163Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
4164
4165 * Makefile.in (emn10300.c): Add dependencies.
4166 * configure.tgt: Handle mn10300.
4167 * emulparms/mn10300.sh: New file.
4168
4169Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4170
4171 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
4172 (EMBEDDED): Define.
4173
4174Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
4175
4176 * ld.texinfo: Add section on reporting bugs.
4177
4178 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
4179 symbols are correctly aligned.
4180
4181Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
4182
4183 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
4184 romzbss too.
4185
4186Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4187
4188 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
4189 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
4190 0x2000000.
4191
4192 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
4193 .stack to start at 0x2007ffe.
4194
4195Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
4196
4197 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
4198
4199Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
4200
4201 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
4202
4203 * scriptempl/v850.sc (zdata): Make sure this stays
4204 in lo-memory.
4205
4206Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
4207
4208 * scripttempl/v850.sc (__ep): Put it at the start
4209 of the tda section.
4210
4211 * scriptempl/v850.sc: Move all "normal" sections into
4212 the external memory region (0x100000 - 0x200000).
4213
4214Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4215
4216 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
4217 0x10000, so that is more room for data.
4218
4219 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
4220 (READONLY_START_ADDR): Now 0x0.
4221 (SCRIPT_NAME): Now elfd10v.
4222
4223 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
4224
4225Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
4226
4227 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
4228
4229Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
4230
4231 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
4232 (ALL_64_EMULATIONS): New variable.
4233 * configure.in: Accept --enable-64-bit-bfd option. If it is set
4234 with --enable-targets=all, include ALL_64_EMULATIONS in
4235 EMULATION_OFILES.
4236 * configure: Rebuild.
4237
4238Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
4239
4240 * scripttempl/v850.sc (__gp, __ep): Define.
4241
4242Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
4243
4244 * ld.texinfo: Try to consistently use a single or a double dash
4245 for each option.
4246
4247Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
4248
4249 * emulparams/m32relf.sh (EMBEDDED): Define.
4250
4251Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
4252
4253 * scripttempl/v850.sc (.zdata): Add this before .text.
4254 (.sdata): Also include .rosdata as part of the .sdata.
4255 (.tdata): Include this just before .sdata.
4256
4257 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
4258 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
4259
4260Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
4261
4262 * scripttempl/v850.sc: New linker script for the V850.
4263 * Makefile.in: Use it.
4264
4265Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
4266
4267 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
4268 OTHER_READWRITE_SECTIONS.
4269 * emulparams/elf32l4300.sh: Likewise.
4270
4271Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
4272
4273 * ld.h (ld_config_type): Add warn_section_align field.
4274 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
4275 (ld_options): Add --warn-section-align.
4276 (parse_args): Handle --warn-section-align.
4277 * ldlang.c (lang_size_sections): If warn_section_align, warn if
4278 the start of a section changes due to alignment.
4279 * ld.texinfo, ld.1: Document --warn-section-align.
4280 * ld.texinfo: Change some single dashes to double dashes.
4281
4282 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
4283 subsystem type. Ifdef out os2 type. Recognize a version number.
4284
4285Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
4286
4287 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
4288 to windows, set the entry point.
4289
4290 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
4291
4292Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
4293
4294 * ld.texinfo (Options): Mention .so extensions for shared
4295 libraries.
4296
4297Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
4298
4299 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
4300
4301Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
4302
4303 * scripttempl/m68kcoff.sc: Only set the address of .text if
4304 RELOCATING.
4305
4306Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
4307
4308 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
4309 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
4310 (OUTPUT_FORMAT): Support bi-endian targets.
4311
4312Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
4313
4314 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
4315 * Makefile.in: Rebuild dependencies.
4316 (CFILES): Remove fnmatch.c.
4317 (HFILES): Remove fnmatch.h.
4318 (OFILES): Remove fnmatch.o.
4319
4320Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4321
4322 * Makefile.in (mostlyclean): Move config.log to distclean.
4323
4324Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
4325
50bbae35
AM
4326 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
4327 (necessary in order to compile parse.c in gcc sources under NT)
252b5132
RH
4328
4329Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
4330
4331 * lexsup.c (ld_options): Fix typo in --rpath-link description.
4332 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
4333 --rpath if a needed library is not found.
4334
4335Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
4336
4337 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
4338
4339Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
4340
4341 * ld.texinfo (Options): Give more detail on -l option.
4342
4343 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
4344 elf.sc does, so that glibc works better.
4345
4346 * ldver.c (ld_program_version): New variable.
4347 (ldversion): Use it.
4348 * ldver.h (ld_program_version): Declare.
4349 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
4350 --version. Change --version handling to match current GNU
4351 standards.
4352 (help): Print bug report address.
4353
4354Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
4355
4356 * Makefile.in (em32relf.c): Add rule for.
4357 * configure.tgt (m32r-*-*): Recognize.
4358 * emulparams/m32relf.sh: New file.
4359
4360Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
4361
4362 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
4363 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
4364 wildcards in matching.
4365 * mpw-emipself.c: New file, pregenerated mips elf emulation.
4366
4367Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
4368
4369 * ldint.texinfo: Rewrote.
4370
4371 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
4372
4373Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
4374
4375 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
4376 syntax error on __end__ line.
4377
4378 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
50bbae35 4379 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
252b5132
RH
4380
4381Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
4382
4383 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
4384
4385Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
4386
4387 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
4388 stack at top of simulator memory.
4389
4390Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
4391
4392 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
4393
4394Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
4395
4396 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
4397
4398Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
4399
4400 * ldlang.c (section_already_linked): Accept a lang_input_statement
4401 as the PTR argument. If the file is symbols only, discard all
4402 input sections.
4403 (ldlang_add_file): Pass entry to bfd_map_over_sections.
4404
4405Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
4406
4407 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
4408 <fila@ibi.com>.
4409
4410Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
4411
4412 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
4413
4414Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
4415
4416 * emulparms/v850.sh: Set EMBEDDED.
4417
4418Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
4419
4420 * emulparms/v850.sh: Entry symbol is "_start", tweak
4421 ctor/dtor support.
4422
4423Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
4424
4425 * configure.tgt (sh-*-elf*): New target.
4426 * emulparams/shelf.sh: New file.
4427 * emulparams/shlelf.sh: New file.
4428 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
4429 (eshelf.c, eshlelf.c): New targets.
4430 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
4431 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
4432 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
4433 OTHER_RELOCATING_SECTIONS if RELOCATING.
4434
4435Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4436
4437 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
4438 pro.
4439
4440Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
4441
4442 * ldgram.y (section): Add opt_nocrossrefs; pass value to
4443 lang_enter_overlay.
4444 (opt_nocrossrefs): New nonterminal.
4445 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
4446 * ldlang.c (overlay_nocrossrefs): New static variable.
4447 (lang_enter_overlay): Add nocrossrefs parameter.
4448 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
4449 is set. Initialize overlay_nocrossrefs.
4450 * ldlang.h (lang_enter_overlay): Update declaration.
4451 * ld.texinfo (Overlays): Update documentation.
4452
4453 * ldver.c (ldversion): Print GNU ld in the version message.
4454
4455Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
4456
4457 * configure.host: Set HLDENV.
4458 * configure.in: Substitute HLDENV.
4459 * configure: Rebuild.
4460 * Makefile.in (HLDENV): New variable.
4461 ($(LD_PROG)): Use $(HLDENV).
4462
4463Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
4464
4465 * Makefile.in (ev850.c): New target.
4466 * configure.tgt (v850-*-*): New target.
4467 * emulparams/v850.sh: New file.
4468
4469Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
4470
4471 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
4472
4473Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
4474
4475 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
4476 containing sections.
4477
4478Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
4479
4480 * fnmatch.c: Include sysdep.h.
4481
4482Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4483
4484 * genscripts.sh: Undo 8/16 change.
4485
4486 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
4487
4488Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4489
4490 * genscripts.sh: Explicitly reset any shell variables set or used
4491 by the various .sc scripts to allow inadvertant use of these
4492 names as normal environment variables by the person running
4493 configure.
4494
4495 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
4496
4497Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
4498
4499 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
50bbae35
AM
4500 __data_start__, __data_end__): Added to keep in sync. with the
4501 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
252b5132
RH
4502
4503Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
4504
4505 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
4506 defined in info->defsec, not just the section symbol.
4507
4508Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
4509
4510 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
4511 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
4512 (NEED_DECLARATION_SBRK): New macro.
4513 * configure, config.in: Rebuild.
4514 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
4515 * ldmain.c (sbrk): Declare if HAVE_SBRK and
4516 NEED_DECLARATION_SBRK.
4517
4518 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
4519
4520Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
4521
4522 * ldlex.l: Recognize OVERLAY.
4523 * ldgram.y: Add section_phdr field to %union.
4524 (section): Handle phdr_opt result. Add OVERLAY case.
4525 (opt_exp_without_type): New nonterminal.
4526 (phdr_opt): Return list of phdrs.
4527 (overlay_section): New nonterminal.
4528 * ldlang.c: Include <ctype.h>.
4529 (lang_leave_output_section_statement): Add phdrs parameter.
4530 Change all callers.
4531 (lang_section_in_phdr): Remove.
4532 (overlay_vma, overlay_lmn, overlay_max): New static variables.
4533 (struct overlay_list): Define.
4534 (overlay_list): New static variable.
4535 (lang_enter_overlay, lang_enter_overlay_section): New functions.
4536 (lang_leave_overlay_section, lang_leave_overlay): New functions.
4537 * ldlang.h (lang_leave_output_section_statement): Update
4538 declaration for new parameter.
4539 (lang_section_in_phdr): Don't declare.
4540 (lang_enter_overlay, lang_enter_overlay_section): Declare.
4541 (lang_leave_overlay_section, lang_leave_overlay): Declare.
4542 * ld.texinfo (Overlays): New node under SECTIONS, documenting
4543 overlays.
4544
4545 * ldlex.l: Recognize MAX and MIN.
4546 * ldgram.y (MAX, MIN): New terminals.
4547 (exp): Recognize MAX and MIN.
4548 * ldexp.c (fold_binary): Handle MAX and MIN.
4549 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
4550
4551 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
4552 index entries.
4553
4554 * ldgram.y (SIZEOF, ADDR): Do not specify type.
4555
4556 * ldcref.c (check_nocrossref): Skip symbols with no output
4557 sections.
4558
4559Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
4560
4561 * ldgram.y (LOADADDR): New terminal.
4562 (exp): Handle LOADADDR.
4563 * ldlex.l: Recognize LOADADDR.
4564 * ldexp.c (exp_print_token): Add LOADADDR.
4565 (fold_name): Implement LOADADDR.
4566 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
4567 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
4568
4569Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
4570
4571 * ld.h (check_nocrossrefs): Declare.
4572 * ldlang.h (struct lang_nocrossref): Define.
4573 (struct lang_nocrossrefs): Define.
4574 (nocrossref_list): Declare.
4575 (lang_add_nocrossref): Declare.
4576 * ldlex.l: Recognize NOCROSSREFS keyword.
4577 * ldgram.y (%union): Add nocrossref field.
4578 (NOCROSSREFS): New terminal.
4579 (ifile_p1): Recognize NOCROSSREFS.
4580 (nocrossref_list): New nonterminal.
4581 * ldlang.c (nocrossref_list): Define.
4582 (lang_add_nocrossref): New function.
4583 * ldmain.c (main): If nocrossref_list is not NULL, call
4584 check_nocrossrefs.
4585 (warning_callback): Free symbols if there is no place to store
4586 them.
4587 (notice): Call add_cref if nocrossref_list is not NULL.
4588 * ldcref.c: Include "ldexp.h" and "ldlang.h".
4589 (check_nocrossrefs): New function.
4590 (check_nocrossref): New static function.
4591 (struct check_refs_info): Define.
4592 (check_refs, check_reloc_refs): New static functions.
4593 * Makefile.in: Rebuild dependencies.
4594 * ld.texinfo (Option Commands): Document NOCROSSREFS.
4595
4596 * ld.texinfo (Section Placement): Improve the wording of the
4597 wildcard documentation. Mention that wildcards are only searched
4598 for on the command line, not in the file system.
4599
4600 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
4601 definition of lib_path inside condition where it is used.
4602
4603Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4604
50bbae35 4605 * emulparams/d10velf.sh: Now works with elf.sc.
252b5132
RH
4606
4607Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4608
4609 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
4610
4611Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
4612
4613 * ldlang.c (lang_size_sections): Add the section VMA to the result
4614 value when computing the address of a section.
4615
4616 * ld.h (args_type): Add cref field.
4617 * lexsup.c (parse_args): Set command_line.cref.
4618 * ldmain.c (main): Check command_line.cref rather than
4619 link_info.notice_all.
4620 (notice): Likewise.
4621
4622 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
4623 in a section without an owner.
4624
4625Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
4626
4627 * fnmatch.h, fnmatch.c: New files.
4628 * ldlex.l: Remove unused definition of FILENAME. Add definition
4629 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
4630 NAME.
4631 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
4632 (input_section_spec): Accept '?' specially.
4633 (statement): Change exp to mustbe_exp in length and FILL cases.
4634 (section): Call ldlex_script before section statements, and call
4635 ldlex_popstate after them.
4636 * ldlang.c: Include "fnmatch.h".
4637 (wildcardp): New static function.
4638 (wild_section): Permit the section name to be a wildcard.
4639 (wild_file): New static function, broken out of wild.
4640 (wild): Call wild_file. Permit the file name to be a wildcard.
4641 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
4642 * Makefile.in: Rebuild dependencies.
50bbae35 4643 (CFILES): Add fnmatch.c.
252b5132
RH
4644 (HFILES): Add fnmatch.h.
4645 (OFILES): Add fnmatch.o.
4646 * ld.texinfo: Document that file and section names can now be
4647 wildcard patterns.
4648
4649 * ldlang.c (lang_place_orphans): Correct condition: place a common
4650 section if not relocateable or if common definitions are forced.
4651
4652Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4653
4654 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
4655
4656Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4657
4658 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
4659
4660Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4661
4662 * Makefile.in (ed10velf.c): New target.
4663 * configure.tgt (d10v-*-elf*): New target.
4664 * emulparams/d10velf.sh: New file.
4665
4666Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
4667
4668 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
4669 <ANDREWG@microlise.co.uk>.
4670
4671 * configure.host: Change irix5 to irix[56]*.
4672 * configure.tgt: Likewise.
4673
4674Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
4675
4676 * emultempl/pe.em (sort_sections): Pay attention to return code.
4677
4678 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
4679
4680Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4681
4682 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
50bbae35
AM
4683 the value of __start_SECNAME to the alignment required by the
4684 section to be placed.
252b5132
RH
4685
4686Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
4687
4688 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
4689 (mips*-*-elf*): Use elf32ebmip.
4690 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
4691 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
4692 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
4693 EMBEDDED defined.
4694 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
4695 EMBEDDED defined.
4696 * emulparams/elf32b4300.sh (EMBEDDED): Define.
4697 * emulparams/elf32l4300.sh (EMBEDDED): Define.
4698 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
4699 (eelf32ebmip.c, eelf32elmip.c): New targets.
4700
4701Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
4702
4703 * ldver.c (ldversion): Set version to cygnus-2.7.1.
4704
4705 * Released binutils 2.7.
4706
4707 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
4708 System V file name limitations.
4709 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
4710 pc532macha rather than pc532machaout.
4711 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
4712 epc532macha.o.
4713 (epc532macha.c): Rename target from epc532machaout.c.
4714
4715Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
4716
4717 * ldlang.c (print_padding_statement): Use %u, not %x, to print
4718 fill value.
4719
4720Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
4721
4722 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
4723
4724Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
4725
4726 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
4727 file just before the .so file, rather than just after.
4728
4729 * configure.host: Use -print-file-name=FILE rather than piping
4730 -print-libgcc-file-name through sed.
4731 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
4732 crtend.o files, in case gcc doesn't use them.
4733 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
4734
4735Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
4736
4737 * configure.tgt (mips*-dec-osf*): New target.
4738
4739Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4740
4741 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
4742 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
4743 (docdir): Removed.
4744 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
4745 (AC_PROG_INSTALL): Added.
4746 * configure: Rebuilt.
4747
4748Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4749
4750 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
4751 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
4752 non-fixed location.
4753
4754Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
4755
4756 * ldlang.h (enum section_type): Define.
4757 (lang_output_section_statement_type): Remove loadable field. Add
4758 sectype field.
4759 (lang_enter_output_section_statement): Change flags parameter in
4760 prototype to sectype.
4761 * ldgram.y (typebits): Remove.
4762 (sectype): New static variable.
4763 (opt_at): Use sectype rather than typebits.
4764 (type): Set sectype rather than typebits.
4765 (atype): Likewise.
4766 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
4767 EXPRESSION mode.
4768 * ldlang.c (lang_output_section_statement_lookup): Set sectype
4769 field rather than loadable field.
4770 (wild_doit): Check sectype rather than loadable.
4771 (lang_record_phdrs): Likewise.
4772 (lang_enter_output_section_statement): Rename flags parameter to
4773 sectype. Set sectype field rather than loadable field. Set flags
4774 field based on sectype.
4775
4776Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
4777
4778 * scripttempl/elf.sc: Force .stab* and .comment sections to start
4779 at 0.
4780
4781 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
4782 using shared libraries.
4783 * configure: Rebuild with autoconf 2.10.
4784
4785Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
4786
4787 * configure.tgt: Add support for *-*-rtems* configurations.
4788
4789Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
4790
4791 * configure.tgt (alpha-*-linuxecoff*): New target.
4792 (alpha-*-linux*): Use elf64alpha.
4793 * emulparams/elf64alpha.sh: New file.
4794 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
4795 ${ELFSIZE} rather than 32 when calling BFD routines.
4796 (hold_rodata): New static variable.
4797 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
4798 readonly section that is not code.
4799 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
4800 a .rel section unless its bfd_section field is not NULL.
4801 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
4802 (eelf64alpha.c): New target.
4803
4804Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
4805
4806 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
4807
4808Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
4809
4810 Add enough support to understand the gcc svr3.ifile script:
4811 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
4812 BIND keyword.
4813 * ldgram.y: Add BIND token.
4814 (section): Recognize GROUP.
4815 (opt_ext_with_type): Recognize a couple of cases of BIND.
4816 * ldlang.c (init_os): Don't do anything if section is already
4817 initialized. Call exp_init_os on addr_tree field.
4818 (exp_init_os): New static function.
4819 (map_input_to_output_sections): Call exp_init_os on assignment
4820 expression.
4821 (lang_place_orphans): Check for common sections by name COMMON
4822 rather than by common_section field. Don't warn about absence of
4823 [COMMON] command.
4824
4825 * ldlang.h (lang_input_statement_type): Remove useless fields
4826 common_section, common_output_section, and complained, as well as
4827 all references to them.
4828
4829 * ldexp.c: Reindent a lot of code.
4830 (exp_fold_tree): Call FAIL rather than einfo in default case.
4831
4832Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
4833
4834 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
4835 <randall.hron@medaphis.com>.
4836
4837Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
4838
4839 * scripttempl/h8300s.sc: New file for H8/S.
4840 * emulpararms/h8300s.sh: New file for H8/S.
4841 * Makefile.in (ALL_EMULATIONS): Add H8/S.
4842 (e_h8300s.c): Add dependencies.
4843 * configure.tgt: Add H8/S to targ_extra_emuls.
4844
4845Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
4846
4847 * configure.tgt (i[345]86*-*-isc*): New target. From
4848 <uddeborg@carmen.se>.
4849
4850Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
4851
4852 * lexsup.c: Include "libiberty.h".
50bbae35
AM
4853 (parse_args): Copy the -Y argument into memory.
4854 (set_default_dirlist): Don't put the ':' back into the directory
252b5132
RH
4855 list.
4856
4857Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
4858
4859 * emultempl/sunos.em: Include libiberty.h.
4860 (gld${EMULATION_NAME}_set_symbols): New static function to add
4861 LD_LIBRARY_PATH to the list of search directories.
4862 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
4863
4864Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
4865
4866 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
4867 rather than . when computing _gp value. From Per Fogelstrom.
4868 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
4869
4870 * ldmain.c (main): Don't close and unlink the file on error, since
4871 remove_output will do it anyhow.
4872 * ldlang.c (open_output): Set boolean variable to true, not 1.
4873
4874Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
4875
4876 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
4877 elfmips instead of elf.
4878
4879Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
4880
4881 * ldcref.c: New file.
4882 * ld.h (add_cref, output_cref): Declare.
4883 * ldmain.c (main): Initialize notice_all field. If it is set at
4884 end of link, call output_cref.
4885 (notice): Rename from notice_ysym. Check notice_all.
4886 * ldmisc.c (finfo): Make globally visible.
4887 * ldmisc.h (finfo): Declare.
4888 * lexsup.c (OPTION_CREF): Define.
4889 (ld_options): Add "cref".
4890 (parse_args): Handle OPTION_CREF.
4891 * Makefile.in: Rebuild dependencies.
4892 (CFILES): Add ldcref.c.
4893 (OFILES): Add ldcref.o.
4894 * ld.texinfo, ld.1: Document --cref.
4895
4896Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
4897
4898 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
4899
4900Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
4901
4902 * emultempl/pe.em (sort_sections): Don't assume that a
4903 wild_statement has a section name.
4904
4905Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
4906
4907 * scripttempl/elfmips.sc: Quote test -z argument.
4908
4909 * ld.texinfo: Clarify the CONSTRUCTORS command.
4910
4911Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
4912
4913 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
4914 file, not impfile.
4915
4916Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
4917
4918 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
4919 if final link.
4920 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
4921 (sort_by_section_name, sort_sections_1): New functions.
4922 (sort_sections): Only sort by file name sections in .idata.
4923 Add "Grouped Sections" support.
4924 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
4925 Sections.
4926 (gld${EMULATION_NAME}_place_section): Delete.
4927 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
4928 (.CRT,.rsrc): Rewrite to use Grouped Section support.
4929
4930Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
4931
4932 * mpw-eppcmac.c: Update to reflect changes to aix.em.
4933
4934Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
4935
4936 * ldlang.c (dprint_statement): Stop printing at end of list.
4937
4938Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
4939
4940 Support for --force-exe-suffix
4941 * ld.h (args_type): Add force_exe_suffix.
4942 * ld.texinfo: Add documentation.
4943 * ldmain.c (main): Add support for option.
4944 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
4945 (ld_options, parse_args): Add support for option.
4946
4947Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
4948
4949 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
4950
4951Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4952
4953 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
4954 referenced but not defined.
4955
4956Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4957
4958 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
4959 Set a new variable to signify if the final target is an embedded
4960 system.
4961 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
4962 .text for an embedded system.
4963
4964Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
4965
4966 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
4967 (gld${EMULATION_NAME}_place_section): New function.
4968 (hold_{section,use,text,rdata,data}): New static locals.
4969 (ld_${EMULATION_NAME}_emulation): Update orphan field.
4970 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
4971 (INIT,FINI): Delete, unused.
4972 (.text): Document orphan .text.foo sections.
4973 (.rdata): Document orphan .rdata.foo sections.
4974 (.data): Document orphan .data.foo sections.
4975
4976Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
4977
4978 * scripttempl/h8300.sc: Place ".tiny" sections right
4979 after ".data" sections.
4980 * scripttempl/h8300h.sc: Place ".tiny" sections into
4981 the "tiny" memory region, 0xff8000 through 0xffff00.
4982
4983 * scripttempl/h8300.sc: Set the entry point to the value of
4984 "_start" rather than the start of the text segment.
4985 * scripttempl/h8300h.sc: Likewise.
4986
4987 * scripttempl/h8300.sc: Place .rodata sections before .text
4988 sections in main ram.
4989 * scripttempl/h8300h.sc: Likewise.
4990
4991Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
4992
4993 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
4994 8-bit region and 8-bit sections.
4995
4996Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
4997
4998 * ldlang.c (section_already_linked): Fix typos.
4999
5000Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
5001
5002 * scripttempl/pe.sc (.endjunk): Define __end__.
5003
5004Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
5005
5006 * ldlang.c (longest_section_name): Remove.
5007 (SECTION_NAME_MAP_LENGTH): Define.
5008 (print_size, print_alignment, print_fill, print_section): Remove.
5009 (print_flags): Remove.
5010 (lang_map): Rewrite.
5011 (print_output_section_statement): Rewrite.
5012 (print_assignment): Rewrite.
5013 (print_one_symbol): Rewrite.
5014 (print_input_section): Rewrite.
5015 (print_fill_statement): Rewrite.
5016 (print_data_statement): Rewrite.
5017 (print_address_statement): New static function.
5018 (print_reloc_statement): Rewrite.
5019 (print_padding_statement): Rewrite.
5020 (print_wild_statement): Rewrite.
5021 (print_statement_list): Clean up.
5022 (print_statement): Clean up. Some minor output changes.
5023 (print_statements): Clean up.
5024 (load_symbols): Put another - before -whole-archive.
5025 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
5026 print 0x and to omit leading zeroes. For etree_rel, use %B to
5027 print the BFD. For etree_assign, remove the space after the
5028 destination name.
5029 * ldwrite.c: Include "libiberty.h".
5030 (clone_section): Call xstrdup, not strdup.
5031 (ldwrite): Don't print any map information.
5032 (print_symbol_table, print_file_stuff, print_symbol): Remove.
5033 * ldmain.c (main): Call lang_map when appropriate.
5034 * ldmisc.c (vfinfo): Add support for %W.
5035 (print_address): Remove.
5036 * ldmisc.h (print_address): Don't declare.
5037 * Makefile.in: Rebuild dependencies.
5038
5039Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5040
5041 * configure.host (m68*-*-linux*): Add -dynamic-linker to
50bbae35
AM
5042 HOSTING_CRT0. Search -lgcc both before and after -lc in
5043 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
5044 at first.
252b5132
RH
5045 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
5046 directory at first.
5047
5048Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
5049
5050 * ldmisc.h (demangle): Declare.
5051 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
50bbae35 5052 not <>.
252b5132
RH
5053 (demangle): Make non-static. Remove remove_underscore paramter.
5054 Always return an allocated string.
5055 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
5056 functionname, rather than calling demangle. Print a colon between
5057 the BFD(section+offset) and the line number.
5058 * ldmain.c (add_archive_element): Improve format of archive
5059 information in map file.
5060 (constructor_callback): Don't print anything to the map file.
5061 * ldlang.c (lang_one_common): Improve format of common symbol
5062 information in map file.
5063 * ldctor.c (ldctor_build_sets): If producing a map file, print set
5064 information.
5065 * ldwrite.c (print_symbol_table): Print a newline before the
5066 header in the map file.
5067 * Makefile.in: Rebuild dependencies.
5068
5069 * ldmisc.c (vfinfo): Reindent.
5070
5071Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
5072
5073 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
5074 don't clobber it when not relaxing.
5075
5076 * ld.h (ld_config_type): Remove traditional_format field.
5077 * ldmain.c (main): Use link_info.traditional_format rather than
5078 config.traditional_format.
5079 * ldlang.c (ldlang_open_output): Likewise.
5080 * lexsup.c (parse_args): Likewise.
5081 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
5082 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
5083
5084 * ldlang.c (wild_doit): Discard debugging sections if we are
5085 stripping debugging information.
5086
5087 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
5088
5089Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
5090
5091 * ldexp.c (fold_binary): Correct handling of subtraction with
5092 absolute values.
5093 (fold_name): Permit symbols in lang_allocating_phase_enum.
5094
5095 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
5096 accidental changes in last patch.
5097
5098Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5099
5100 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
5101 (powerpcle*-*-{sysv,solaris}): Ditto.
5102
5103Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5104
5105 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
5106 in m68k/crt0.S without things blowing up.
5107
5108Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
5109
5110 * scripttempl/m68kcoff.sc: Remove default address for .data so
5111 .text, .data, and .bss are all sequential.
5112
5113Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
5114
5115 * scripttempl/m68kcoff.sc: Remove regions and simplify.
5116
5117Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
5118
5119 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
5120 bytes of the address space. Put data from the ".eight" sections
5121 into the 8-bit area.
5122 * scripttempl/h8300h.sc: Likewise.
5123
5124Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
5125
5126 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
5127 Pass $ARCH to ldfile_set_output_arch instead of setting
5128 ldfile_output_architecture directly.
5129
5130Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5131
5132 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
5133 next to .text. Put _etext after .text, .init, .fini, and
5134 .rodata{,2} sections.
5135
5136Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
5137
5138 * ld.texinfo: Rearrange option documentation.
5139
5140 * lexsup.c (ld_options): New static array.
5141 (parse_args): Build shortopts and longopts from ld_options array.
5142 (help): New static function.
5143 * ldver.h (help): Don't declare.
5144 * ldver.c (ldversion): Reindent.
5145 (help): Remove.
5146
5147 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
5148
5149Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
5150
5151 * emultempl/elf32.em: When checking for a native emulation, check
5152 that the current emulation is the default emulation.
5153 * emultempl/sunos.em: Likewise.
5154
5155 * configure.in: Permit --enable-shared to specify a list of
5156 directories.
5157 * configure: Rebuild.
5158
5159 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
5160 for HP/UX compatibility.
5161
5162Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
5163
5164 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
5165 static function, if ${host} = ${target}.
5166 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
5167 needed shared library if ${host} = $[target}.
5168
5169 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
5170 HOSTING_CRT0. Search -lgcc both before and after -lc in
5171 HOSTING_LIBS.
5172
5173 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
5174 Polstra <jdp@polstra.com>.
5175
5176Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
5177
5178 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
50bbae35 5179 architecture number.
252b5132
RH
5180 * scripttempl/elf.sc: Use $MACHINE definition if present.
5181 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
50bbae35 5182 template as 4300.
252b5132
RH
5183
5184Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
5185
5186 * ldlang.c (lang_size_sections): Change region check to handle
5187 regions which end at the highest possible address correctly.
5188 From Roland Weber <roweber@ira.uka.de>.
5189
5190 * ldlang.c (section_already_linked): New static function.
5191 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
5192 relocateable link. Don't worry about section being NULL, since it
5193 never should be. Don't call init_os unless the section is going
5194 to be added.
5195 (ldlang_add_file): Call section_already_linked for each section.
5196 * ldmain.c (multiple_definition): Don't warn about multiple
5197 definitions in sections which are being discarded.
5198
5199Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
5200
5201 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
5202 * emultempl/pe.em (init): Remove special case PPC code.
5203
5204Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
5205
5206 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
5207 so as not to overwrite the magic syscall entry at 0xc4.
5208 * scripttempl/h8300h.sc: Likewise.
5209
5210Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
5211
5212 * configure.tgt (sparc64-*-solaris2*): Delete.
5213 Stick with sparc-*-solaris2*.
5214
5215Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
5216
5217 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
5218 * ldlang.c (init_os): Fail on an attempt to initialize any section
5219 named DISCARD_SECTION_NAME.
5220 (wild_doit): Discard input sections assigned to an output section
5221 named DISCARD_SECTION_NAME.
5222 * ld.texinfo: Document use of /DISCARD/.
5223
5224 * ldlang.c: Fix some indentation and comments.
5225
5226Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
5227
5228 * ldmain.c (main): Call bfd_set_error_program_name.
5229
5230Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
5231
5232 * ld.texinfo: Fix a couple of indexing entries. Mention that
5233 --verbose displays builtin linker scripts.
5234
5235 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
5236 and the local symbol name does not match the filename, print the
5237 filename as well.
5238
5239 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
5240 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
5241 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
5242 as TEXT_START_ADDR.
5243
5244Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5245
5246 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
5247
5248Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
5249
5250 * ldmain.c (add_wrap): New function.
5251 * ldmain.h (add_wrap): Declare.
5252 * lexsup.c (parse_args): Call add_wrap.
5253
5254Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
5255
5256 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
5257
5258Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
5259
5260 * scripttempl/h8300.sc: Change name of page zero memory
5261 from "null" to "vectors". Create an output section for
5262 vectors. Add comments on how to explicitly place items
5263 in the vector table.
5264 * scripttempl/h8300h.sc: Likewise.
5265
5266Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
5267
5268 * emultempl/lnk960.em (machine_table): Add jx and hx.
5269
5270 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
5271 support it.
5272
5273Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
5274
5275 * ld.h (ld_config_type): Add warn_multiple_gp field.
5276 * lexsup.c (parse_args): Handle --warn-multiple-gp.
5277 * ldmain.c (warning_callback): Suppress multiple gp values warning
5278 if --warn_multiple_gp was not used.
5279 * ld.texinfo, ld.1: Document --warn-multiple-gp.
5280
5281Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
5282
5283 * lexsup.c (parse_args): Handle --wrap.
5284 * ldmain.c (main): Initialize link_info.wrap_hash.
5285 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
5286 and NAME cases.
5287 * ld.texinfo, ld.1: Document --wrap.
5288
5289 * configure: Rebuild with autoconf 2.8.
5290
5291 Don't do SunOS style dynamic linking for sparc-aout:
5292 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
5293 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
5294 (sparc*-wrs-vxworks*): Likewise.
5295 * emulparams/sparcaout.sh: New file.
5296 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
5297 (esparcaout.c): New target.
5298
5299Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5300
5301 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
50bbae35
AM
5302 in a different manner to work around differences in shell variable
5303 expansion.
252b5132
RH
5304
5305Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
5306
5307 * ldemul.h (ldemul_unrecognized_file): Declare.
5308 (ldemulation_xfer_type): Add unrecognized_file field.
5309 * ldemul.c (ldemul_unrecognized_file): New function.
5310 * ldlang.c (load_symbols): If a file can not be recognized, call
5311 ldemul_unrecognized_file before trying it as a linker script.
5312 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
5313 function.
5314 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
5315 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
5316
5317Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
5318
5319 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
5320 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
5321
5322Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5323
5324 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
5325 Search trinary.cond rather than searching trinary.lhs twice.
5326
5327Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
5328
5329 * mpw-make.sed: Edit out shared library support.
5330 (@TDIRS@): Edit out, can't use genscripts.
5331
5332Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5333
5334 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
5335 * emulparams/m68klinux.sh: New file.
5336 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
5337 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
5338 bfd_linux_size_dynamic_sections.
5339 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
5340 (em68klinux.c): New target.
5341 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
5342
5343Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
5344
5345 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
5346 Fill in missing entries.
5347
5348 * lexsup.c (parse_args): Recognize --no-whole-archive.
5349 * ldlang.h (lang_input_statement_type): Add whole_archive field.
5350 * ldlang.c (new_afile): Set whole_archive field.
5351 (load_symbols): Check input file specific whole_archive field
5352 rather than global variable.
5353 * ld.texinfo, ld.1: Document --no-whole-archive.
5354
5355Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
5356
5357 * configure.tgt: Correct gldi960 to gld960.
5358
5359Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
5360
5361 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
5362 the SONAME if it is available.
5363 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
5364 filename, when checking for conflicting library versions. Don't
5365 assume that the suffix is only numbers and dots.
5366
5367 * ld.texinfo: Mention that -R can be used for -rpath.
5368
5369Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
5370
5371 * configure.host: Check for 'do not mix' from native linker before
5372 trying to use -rpath.
5373
5374Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
5375
5376 * configure.in: Remove explicit substitution of CFLAGS; autoconf
5377 does it anyhow.
5378 * configure: Rebuild.
5379 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
5380
5381 * configure.in: Call AC_PROG_CC before configure.host.
5382 * configure: Rebuild.
5383 * configure.host: Remove go32 host, since it should no longer be
5384 necessary. Don't set CC for romp host.
5385
5386 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
5387 the text segment ends exactly on a page boundary.
5388
5389 * configure.in: Substitute RPATH_ENVVAR.
5390 * configure: Rebuild.
5391 * configure.host: Set RPATH_ENVVAR.
5392 * Makefile.in (RPATH_ENVVAR): New variable.
5393 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
5394
5395Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
5396
5397 * configure.in: Redo emulation handling so that each emulation
5398 searches the correct tool directory, based on the target alias.
5399 For example, "configure --enable-targets=m68k-coff i386-linux"
5400 will search /usr/local/i386-linux/lib for linux and
5401 /usr/local/m68k-coff/lib for m68k-coff.
5402 * configure: Rebuild.
5403 * configure.tgt: Add special tdir settings for Linux.
5404 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
5405 for each eEMUL.c target.
5406 * genscripts.sh: Accept specific alias as 9th argument, and use it
5407 in LIB_PATH.
5408
5409Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
5410
5411 * ldlang.c (lang_set_startof): Don't do anything for a
5412 relocateable link.
5413
5414 * ldgram.y (mri_script_file): Call mri_draw_tree.
5415 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
5416 create memory regions.
5417 (mri_load): Don't call mri_draw_tree.
5418 * mri.h (mri_draw_tree): Declare.
5419
5420 * configure.tgt (m68*-*-psos): New target.
5421 * emulparams/m68kpsos.sh: New file.
5422 * scripttempl/psos.sc: New file.
5423 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
5424 (em68kpsos.c): New target.
5425
5426Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
5427
5428 * configure.tgt (*-*-ieee*): New target; use vanilla.
5429
5430 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
5431 `:foo' from ${ARCH}.
5432
5433Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
5434
5435 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
5436 .rodata in .data.
5437
5438Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
5439
5440 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
5441
5442 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
5443 it looks like we might be linking in two different versions of the
5444 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
5445
5446Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
5447
5448 * ldlang.c (lang_size_sections): Increment the section size when a
5449 padding statement is encountered.
5450
5451Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
5452
5453 * configure.in: Look for --enable-shared. Change the value of
5454 BFDLIB when linking against a shared library on SunOS.
5455 * configure: Rebuild.
5456 * configure.host: If using a shared BFD library, try to pass a
5457 reasonable -rpath option when linking.
5458 * Makefile.in (BFDLIB): Set to @BFDLIB@.
5459
5460Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
5461
5462 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
5463 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
5464
5465Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
5466
5467 Support for building bfd and opcodes as shared libraries, based on
5468 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
5469 * configure.in (HLDFLAGS): New substitution.
5470 * configure: Rebuild.
5471 * configure.host: Set HLDFLAGS on SunOS.
5472 * Makefile.in (HLDFLAGS): New variable.
5473 (BFDDEP): New variable.
5474 (BFDLIB): Change to -L../bfd -lbfd.
5475 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
5476 $(HLDFLAGS) in link.
5477 (check): Set LD_LIBRARY_PATH in the environment.
5478
5479Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
5480
5481 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
5482 in the read-only section, not read/write unless we are making a
5483 shared library.
5484 (.debug*): Add dwarf debug sections.
5485 (.rela.{sdata*,sbss*}): Add sections.
5486
5487Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
5488
5489 * configure: Regenerate.
5490
5491Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
5492
5493 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
5494 for SVR4 compatibility.
5495
5496 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
5497
5498Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
5499
5500 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
5501 * emultempl/pe.em (definfo init): Make the default stack reserve
5502 of a PPC larger.
5503
5504Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
5505
5506 * configure.tgt (m68*-apple-aux*): New target.
5507 * emulparams/m68kaux.sh: New file.
5508 * scripttempl/m68kaux.sc: New file.
5509 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
5510 (em68kaux.c): New target.
5511
5512Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
5513
5514 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
5515 -bnoentry, since the right thing tends to happen anyhow.
5516
5517Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
5518
5519 * ld.texinfo, ld.1: Document -export-dynamic.
5520
5521Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5522
5523 * emultempl/sunos.em: Check for native compile by comparing
5524 ${target} and ${host}.
5525
5526Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
5527
5528 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
50bbae35 5529 TEXT_START_ADDR to allow use on IDT and PMON systems.
252b5132
RH
5530
5531Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
5532
5533 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
5534 correct spelling.
5535
5536Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
5537
5538 * configure.tgt (sparc64-*-solaris2*): New configuration.
5539 (sparc64-*-aout*): Renamed from sparc64*.
5540
5541Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5542
5543 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
5544 * genscripts.sh: Set host, target and target_alias variables.
5545 Check for native compile by comparing ${target} and ${host}.
5546 * emultempl/elf32.em: Likewise.
5547 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
5548
5549Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5550
5551 * scripttempl/elfppc.sc: Refine eabi support to better support
5552 .sdata, .sdata2, .sbss, etc. sections.
5553
5554Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
5555
5556 * ldgram.y (%union): Add phdr field.
5557 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
5558 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
5559 (opt_hdrs, hdr): Remove.
5560 (phdr_val): New nonterminal.
5561 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
5562 and phdrs parameters. Add flags parameter.
5563 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
5564 to bfd_record_phdr.
5565 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
5566 phdrs fields. Add flags field.
5567 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
5568 (lang_new_phdr): Update declaration.
5569 * ld.texinfo: Document FLAGS.
5570
5571Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
5572
5573 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
5574 Don't make a shared library because of an undefined reference to
5575 __GLOBAL_OFFSET_TABLE_.
5576
5577 Add some Irix 5 support, mostly from Kazumoto Kojima
50bbae35 5578 <kkojima@info.kanagawa-u.ac.jp>:
252b5132
RH
5579 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
5580 (SHLIB_TEXT_START_ADDR): Define.
5581 (OTHER_GOT_SYMBOLS): Define.
5582 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
5583 (EXECUTABLE_SYMBOLS): Don't define.
5584 (DYNAMIC_LINK): Don't define.
5585 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
5586 * scripttempl/elfmips.sc: New file.
5587 * configure.host (mips*-dec-bsd*): Change mips to mips*.
5588 (mips*-sgi-irix4*): Likewise.
5589 (mips*-sgi-irix5*): New entry.
5590 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
5591 elf.sc.
5592 (eelf32lmip.c): Likewise.
5593
5594Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5595
5596 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
5597 .rela.got.neg section.
5598
5599Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
5600
5601 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
5602
5603 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
5604 ANSI_PROTOTYPES is defined. Remove special handling of
5605 WINDOWS_NT. Various indendation fixes.
5606 (vfinfo): Change fmt parameter to const char *.
5607 (info_msg): Write <stdarg.h> version.
5608 (einfo, minfo, finfo): Likewise.
5609 (info_assert): Change file parameter to const char *.
5610 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
5611 defined, use a real prototype.
5612 (info_assert): Change first parameter to be const char *.
5613
5614Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5615
5616 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
5617 in old support that 2.7.2 needs, but the current compiler does
5618 not.
5619
5620 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
5621 correct Linker script template.
5622
5623 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
5624 not 0x400000.
5625 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
5626
5627Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
5628
5629 * scripttempl/alpha.sc: Put .rconst right after .rdata.
5630
5631Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
5632
5633 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
5634 sort using right pointer.
5635
5636Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5637
5638 * scripttempl/elfppc.sc: Remove support for creating special
5639 labels for eabi section begin/end here. The compiler now uses
5640 crt{i,n}.o to create these symbols.
5641
5642Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
5643
5644 * configure.host: Change existing Linux HOSTING_CRT0 to be used
5645 for a.out only, and put in appropriate HOSTING_CRT0 and
5646 HOSTING_LIBS values for Linux ELF.
5647
5648Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
5649
5650 * scripttempl/h8300.sc: Use all 64K for ram.
5651 * scripttempl/h8300h.sc: Define 256K ram size.
5652
5653Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
5654
5655 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
5656 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
5657 was used, regardless of whether -bE was used.
5658
5659Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
5660
5661 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
5662 relocateable before calling ldctor_build_sets if the output file
5663 is in an XCOFF format.
5664
5665Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
5666
5667 * ldwrite.c (build_link_order): When handling a data statement, if
5668 the endianness of the output file is unknown, use the endianness
5669 of the input file.
5670
5671Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
5672
5673 * mpw-config.in: Recognize mips-*-* as equivalent to
5674 mips-idt-ecoff.
5675 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
5676 * mpw-ld.r: Add version resources.
5677 (cfrg): Use symbolic instead of literal name for executable.
5678
5679Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
5680
5681 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
5682
5683Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
5684
5685 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
5686 (print_statement_list): Renamed from print_statement. All callers
5687 updated.
5688 (print_statement): New function to print just one statement.
5689 (print_{data,reloc,padding}_statement): Don't crash if
5690 output_section == NULL.
5691 (dprint_statement): New function.
5692
5693 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
5694 call to sort_sections.
5695
5696Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
5697
5698 * emultempl/aix.em (unix_ld): New static variable.
5699 (gld${EMULATION_NAME}_parse_args): Handle -unix.
5700 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
5701 gc as false and export_defineds as true to size_dynamic_sections.
5702
5703 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
5704 phase if the current section is abs_output_section.
5705
5706
5707Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
5708
5709 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
5710 to sort_sections.
5711
5712Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
5713
5714 * ldgram.y (PHDRS): New token.
5715 (ifile_p1): Accept phdrs.
5716 (section): Accept phdr_opt at the end of the section definition.
5717 (phdr_op): New nonterminal.
5718 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
5719 * ldlex.l: Accept PHDRS.
5720 * ldlang.h (struct lang_output_section_phdr_list): Define.
5721 (lang_output_section_statement_type): Add phdrs field.
5722 (struct lang_phdr): Define.
5723 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
5724 (lang_new_phdr): Declare.
5725 * ldlang.c (lang_phdr_list): New static variable.
5726 (lang_output_section_statement_lookup): Initialize phdrs field.
5727 (lang_process): Call lang_record_phdrs.
5728 (lang_new_phdr): New function.
5729 (lang_section_in_phdr): New function.
5730 (lang_record_phdrs): New static function.
5731 * ld.texinfo: Document PHDRS.
5732
5733Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
5734
5735 * scripttempl/ppcpe.sc: Moved .edata into its own section to
5736 expose it.
5737
5738Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5739
5740 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
5741 HOSTING_LIBS for testing.
5742 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
5743 testing.
5744
5745Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
5746
5747 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
5748 and -n.
5749
5750Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
5751
5752 * configure: Rebuild with autoconf 2.7.
5753
5754Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
5755
5756 * scripttempl/pe.sc: Two .junk's is too much junk.
5757
5758Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
5759
5760 * configure.in: Use BFD_NEED_DECLARATION.
5761 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
5762 * configure, config.in: Rebuild with autoconf 2.6.
5763
5764 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
5765 being unsupported if this is not a relocateable link and the input
5766 BFD supports it, since ldctor_build_sets can cope with that case.
5767
5768Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
5769
5770 * configure.tgt (powerpc-*-macos*): New target.
5771 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
5772 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
5773 (eppcmacos.c): New target.
5774 * mpw-eppcmacos.c: Update.
5775 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
5776
5777Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
5778
5779 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
5780 $(host_canonical) and $(target_canonical).
5781 (CXX_FOR_TARGET): Likewise.
5782
5783Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
5784
5785 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
5786 so the malloc heap begins at a sane place.
5787
5788Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
5789
5790 Version 2.6 released.
5791 * ldver.c (ldversion): Update to 2.6.
5792
5793 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
5794 $(GENERATED_*FILES), since they need to be retained by distclean.
5795 (maintainer-clean, realclean): Delete them here.
5796
5797Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
5798
5799 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
5800 base file with FOPEN_WB, not "w".
5801
5802 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
5803 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
5804 were used.
5805 (gld${EMULATION_NAME}_before_allocation): Use the environment
5806 variable LD_RUN_PATH if -rpath was not used.
5807 * ld.texinfo, ld.1: Document LD_RUN_PATH.
5808
5809Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
5810
5811 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
5812 -bl and -bloadmap options.
5813
5814 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
5815 report a better error.
5816
5817 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
5818 new local variable special_sections, and pass it to
5819 size_dynamic_sections. Look through the results, and move the
5820 sections around in the mapping so that they are defined correctly.
5821
5822Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
5823
5824 * ldemul.c (ldemul_default_target): Cast getenv return value.
5825
5826Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
5827
5828 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
5829 Executable support.
5830 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
5831 support.
5832
5833 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
5834 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
5835
5836 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
5837 (gld_$_before_allocation): added hooks for toc construction based
5838 on the above macro.
5839
5840Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
5841
5842 * ld.texinfo: The linker does not use _main as an entry point.
5843
5844Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5845
5846 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
5847 0x2000 not 0x200.
5848
5849Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
5850
5851 * configure.in: Add test for whether free must be declared.
5852 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
5853 * acconfig.h: Explain NEED_DECLARATION_FREE.
5854 * configure, config.in: Rebuild.
5855
5856 * lexsup.c (parse_args): Take B:: out of shortopts.
5857
5858Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
5859
5860 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
5861 for now, as with m68k4kbsd, until shared library support gets
5862 done.
5863
5864 * configure.host: For i386 BSD variants, crt0.o lives in
5865 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
5866
5867Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5868
5869 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
5870 (edelta68.c): New target.
5871 * configure.tgt (m68*-motorola-sysv*): New target.
5872 * emulparams/delta68.sh: New file.
5873 * scripttempl/delta68.sc: New file.
5874
5875 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
5876 addresses.
5877
5878Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
5879
5880 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
5881 ALIGN and ALIGNMOD statements.
5882
5883 * emultempl/aix.em: Include ldgram.h.
5884 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
5885 AIX 4.1.
5886 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
5887
5888Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
5889
5890 * configure.host (alpha-*-linux*): New host.
5891 * configure.tgt (alpha-*-linux*): New target.
5892
5893Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
5894
5895 * emultempl/aix.em (export_files): Remove.
5896 (import_files): Make static.
5897 (struct export_symbol_list): Define.
5898 (export_symbols): New static variable.
5899 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
5900 correctly. Call read_file for an export file.
5901 (gld${EMULATION_NAME}_before_allocation): Call
5902 bfd_xcoff_export_symbol for each export symbol, rather than
5903 calling read_file for each export file.
5904 (gld${EMULATION_NAME}_read_file): For an export file, make the
5905 exported symbols undefined, and store them on the export_symbols
5906 list.
5907
5908Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
5909
5910 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
5911 Don't hang if last option is unrecognised.
5912 (gld_${EMULATION_NAME}_set_symbols): Insert created
5913 symbols into ABS output section.
5914
5915Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
5916
5917 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
5918 m68k4k arch.
5919 (em68k4knbsd.c): New rule.
5920
5921 * configure.tgt: Added support for the NetBSD m68k4k arch.
5922
5923 * genscripts.sh, ldint.texinfo,
5924 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
5925 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
5926 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
5927 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
5928 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
5929 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
5930 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
5931 PAGE_SIZE to TARGET_PAGE_SIZE.
5932
5933 * emulparams/m68knbsd.h: Ditto.
5934 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
5935 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
5936 being.
5937
5938 * emulparams/m68k4knbsd.sh: New file.
5939
5940 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
5941
5942Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
5943
5944 * emultempl/aix.em: Include ldctor.h.
5945 (gld${EMULATION_NAME}_after_open): New static function.
5946 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
5947 (gld${EMULATION_NAME}_find_relocs): New static function.
5948 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
5949 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
5950 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
5951 * ldctor.c (struct set_info): Move definition into ldctor.h.
5952 (struct set_element): Likewise.
5953 (sets): Make non-static.
5954 (ldctor_add_set_entry): Add name parameter. Save it in the new
5955 set element.
5956 (ldctor_build_sets): Avoid being called twice. Pass set element
5957 name to lang_add_reloc.
5958 * ldctor.h (struct set_info): Move definition here from ldctor.c.
5959 (struct set_element): Likewise. Add new field name.
5960 (sets): Declare.
5961 (ldctor_add_set_entry): Declare new name parameter.
5962 * ldwrite.c (build_link_order): Don't insist that either name or
5963 section be NULL in a lang_reloc_statement.
5964 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
5965 new name parameter.
5966 (constructor_callback): Pass name to ldctor_add_new_set_entry for
5967 new name parameter.
5968
5969 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
5970
5971Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
5972
5973 * mpw-config.in: Add PowerMac target support, generate config.h.
5974 * mac-ld.r: New file, Mac resources.
5975 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
5976 * mpw-make.in: Remove.
5977 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
5978
5979Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
5980
5981 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
5982 -static as a synonym for -bnso.
5983
5984 * scripttempl/aix.sc: Move special symbols inside sections.
5985 Always start .data at 0.
5986
5987Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
5988
5989 * Makefile.in (diststuff): Also make info.
5990 (maintainer-clean realclean): Also delete *.info*.
5991
5992Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
5993
5994 * emultempl/aix.em: Add support for various AIX linker options,
5995 for AIX import and export files, and for AIX shared objects.
5996 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
5997
5998 * ldmain.c (main): Initialize new field link_info.static_link.
5999
6000 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
6001 (constructor_callback): Likewise.
6002 * ldmisc.c (vfinfo): Likewise.
6003 * ldwrite.c (build_link_order): Likewise.
6004
6005 * ld.texinfo: The MRI ALIGN directive is supported.
6006
6007Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6008
6009 * emulparams/elf32vr4300.sh: Deleted.
6010 * emulparams/elf32vr4300el.sh: Deleted.
6011 * emulparams/elf32b4300.sh: Added.
6012 * emulparams/elf32l4300.sh: Added.
6013 * configure.tgt, Makefile.in: Updated the build to use the
50bbae35 6014 new 8.3 unique names.
252b5132
RH
6015
6016Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
6017
6018 * ldlang.c (entry_symbol): Make non-static.
6019 * ldlang.h (entry_symbol): Declare.
6020
6021 * ldlex.l: Treat PROVIDE as a keyword in expression state.
6022
6023Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
6024
6025 * scripttempl/pe.sc (.bss): Move to be after .text
6026
6027Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
6028
6029 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
6030 Search trinary.cond rather than searching trinary.lhs twice. From
6031 linli@ihp.PHys.ethz.CH.
6032
6033 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
6034 directory searching code into gld${EMULATION_NAME}_search_dir.
6035 (gld${EMULATION_NAME}_search_dir): New static function, extracted
6036 from gld${EMULATION_NAME}_find_so.
6037 (global_needed, global_found): New static variables.
6038 (gld${EMULATION_NAME}_after_open): New static function.
6039 (gld${EMULATION_NAME}_search_needed): New static function.
6040 (gld${EMULATION_NAME}_try_needed): New static function.
6041 (gld${EMULATION_NAME}_check_needed): New static function.
6042 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
6043 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
6044
6045 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
6046 (eelf32lppc.c): Likewise.
6047 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
6048 (GENERATE_SHLIB_SCRIPT): Define as yes.
6049
6050Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
6051
6052 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
6053 bfd_link_needed-list; make appropriate changes.
6054
6055 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
6056 (rs6000-*-aix*): New target; use aixrs6.
6057 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
6058 * emultempl/aix.em: New file.
6059 * scripttempl/aix.sc: New file.
6060 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
6061 (eaixppc.c, eaixrs6.c): New targets.
6062
6063Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
6064
6065 * scripttemp/pe.sc (.reloc): Move to the end.
6066
6067Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
6068
6069 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
6070 section which was not linked into the final output.
6071
6072Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
6073
6074 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
6075 fatal typos.
6076
6077Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
6078
6079 * ld.h (args_type): Add rpath_link field.
6080 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
6081 required dependencies in rpath_link path. Only search
6082 LD_LIBRARY_PATH when configured native.
6083 * lexsup.c (parse_args): Recognize -rpath-link.
6084 * ld.1, ld.texinfo: Document -rpath-link.
6085
6086Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
6087
6088 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
6089 bother searching for needed libraries unless doing a final link.
6090
6091Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
6092
6093 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6094
6095 * ld/ld.1: Fix formatting bugs.
6096
6097Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
6098
6099 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
6100 * ldexp.h (exp_get_abs_int): Update declaration.
6101 * ldlang.c (print_output_section_statement): Use fprintf_vma to
6102 print return value of exp_get_abs_int.
6103
6104Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
6105
6106 * emultempl/elf32.em (global_stat): New file static variable.
6107 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
6108 that the file has not already been included under another name.
6109 (gld${EMULATION_NAME}_stat_needed): New static function.
6110
6111Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
6112
6113 * scripttempl/armcoff.sc: Start .text at 0x8000.
6114 Start .data at 0x40000.
6115
6116Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
6117
6118 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
6119 command_line.rpath is set, use it, rather than the -L options, to
6120 build the rules section.
6121 * ld.texinfo: Document this use of -rpath.
6122
6123 * lexsup.c (parse_args): Don't set link_info.shared for -assert
6124 pure-text. Pass true, not 1, to lang_add_entry.
6125 * emultempl/sunos.em (find_assign): New static variable.
6126 (found_assign): New static variable.
6127 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
6128 If not a relocateable link, and no start symbol was specified on
6129 the command line, and there are any undefined symbols, set
6130 link_info.shared. If link_info.shared is set, set the address of
6131 the .text section to 0x20.
6132 (gld${EMULATION_NAME}_find_assignment): Rename from
6133 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
6134 set, then just set found_assign based on whether an assignment is
6135 found to find_assign.
6136 (gld${EMULATION_NAME}_get_script): Don't use a special script when
6137 producing a shared library.
6138 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
6139 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
6140 * ldlang.c (entry_from_cmdline): New global variable.
6141 (lang_add_entry): Change cmdline parameter from int to boolean.
6142 Use global entry_from_cmdline rather than function static
6143 from_cmdline.
6144 * ldlang.h (entry_from_cmdline): Declare.
6145 (lang_add_entry): Change declaration of second parameter from int
6146 to boolean.
6147 * ldgram.y: Pass false, not 0, to lang_add_entry.
6148
6149Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
6150
6151 * ld.h (parsing_defsym): Declare.
6152 * ldlex.h (lex_string): Declare.
6153 * ldlex.l (lex_string): Define.
6154 * lexsup.c (parsing_defsym): Define.
6155 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
6156 lex_redirect, and clear it after calling yyparse. Set
6157 parsing_defsym around call to yyparse.
6158 * ldmain.c (main): Set lex_string before calling lex_redirect, and
6159 clear it after calling yyparse.
6160 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
6161 in linker scripts correctly.
6162
6163 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
6164 COFF targets, allowing for the leading underscore used on SPARC
6165 COFF.
6166
6167 * lexsup.c (parse_args): Handle -assert.
6168 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
6169 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
6170 shared library script when appropriate.
6171 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
6172 section at SIZEOF_HEADERS.
6173
6174Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
6175
6176 * Makefile.in (earmcoff.c): Build.
6177 * configure.tgt (arm-*-coff): New target
6178 * emulparms/armcoff.sh: New file.
6179 * scripttempl/armcoff.sc: New file.
6180
6181Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
6182
6183 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
6184
6185Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
6186
6187 * ldfile.c (ldfile_set_output_arch): Make arch const.
6188
6189Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6190
6191 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
6192 beginning of the .bss area, not at the end of data. Add
6193 __sbss_{start,end} symbols.
6194
6195Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
6196
6197 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
6198 (CXX_FOR_TARGET, install): Likewise.
6199
6200Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
6201
6202 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
6203 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
6204 (CXX_FOR_TARGET): Likewise.
6205 (install): Likewise.
6206 (GENERATED_HFILES): Remove config.h.
6207 (.dep): Depend upon config.h.
6208
6209Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
6210
6211 * configure.tgt (mips*-dec-netbsd*): New target.
6212
6213Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
6214
6215 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
6216
6217Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
6218
6219 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
6220
6221Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
6222
6223 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
6224 Start .text section on the right boundary. Always align
6225 stabs.
6226
6227Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
6228
6229 * Makefile.in (maintainer-clean): New target.
6230
6231 * ldmain.c (struct warning_callback_info): Define.
6232 (warning_callback): Add new parameter symbol. Call
6233 warning_find_reloc to try to find the section and VMA.
6234 (warning_find_reloc): New static function.
6235 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6236 Pass NULL as symbol parameter to warning callback.
6237
6238 * ld.texinfo: Clarify -L option.
6239
6240 * ldlang.c (lang_one_common): Add cast to avoid warning.
6241 (topower): Likewise. Also, reindent.
6242 * ldwrite.c (clone_section): Change i to unsigned int.
6243 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
6244 cast to avoid warning.
6245
6246Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
6247
6248 * Makefile.in (config.status): Depend upon configure.tgt.
6249
6250 * ldemul.h (ldemul_set_symbols): Declare.
6251 (ldemul_parse_args): Declare.
6252 * ldemul.c (ldemul_parse_args): Fix indentation.
6253
6254 * configure.in: Call AC_HEADER_DIRENT.
6255 * configure, config.in: Rebuild.
6256 * emultempl/sunos.em: Use autoconf recommend mechanism to define
6257 DIR and struct dirent.
6258
6259 * configure.tgt (mips*-*-bsd*): New case.
6260
6261 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
6262 New case.
6263 * configure.tgt (i[345]86-*-ptx*): New case.
6264
6265Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
6266
6267 * config.in: Rename from config.h.in.
6268 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
6269 Check for config.h:config.in when creating stamp-h.
6270 * configure: Rebuild.
6271 * Makefile.in (stamp-h): Depend upon config.in rather than
6272 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
6273 calling config.status.
6274
6275 * Makefile.in (distclean): Remove config.h and stamp-h.
6276
6277 * configure.host (sparc-*-sunos64*): Remove.
6278 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
6279
6280 * ldexp.c (exp_fold_tree): Don't warn about moving the location
6281 counter backward in the absolute section.
6282
6283Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
6284
6285 * configure.in: Rewrite to use autoconf.
6286 * configure.host: New file.
6287 * configure.tgt: New file.
6288 * aclocal.m4: New file.
6289 * configure: New file, built by autoconf.
6290 * acconfig.h: New file.
6291 * config.h.in: New file, built by autoheader.
6292 * sysdep.h: New file.
6293 * ld.h: Incorporate old contents of config.h.
6294 * config.h: Remove.
6295 * Makefile.in: Various changes for new configure script. Also:
6296 (CC_FOR_BUILD): Remove.
6297 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
6298 (dep.sed): Use @SRCDIR@, not @srcdir@.
6299 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
6300 * genscripts.sh: Create ldscripts if it does not exist.
6301 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
6302 * mpw-esh.c, emultemp/*.em: Likewise.
6303 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
6304 HAVE_SBRK here.
6305 * config/*.mt, config/*.mh: Remove.
6306
6307Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
6308
6309 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
6310 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
6311
6312Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
6313
6314 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
6315
6316Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
6317
6318 * ldmain.c (warning_callback): Add abfd, section, and address
6319 parameters.
6320 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6321 Change call to warning accordingly.
6322
6323 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
6324 relocateable and not shared, put .gnu.warning.SYMBOL sections into
6325 the .text section.
6326
6327Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
6328
6329 * configure.in: Added mips*vr4300-idt-elf* and
50bbae35 6330 mips*vr4300el-idt-elf* targets.
252b5132
RH
6331 * Makefile.in: Added eelf32vr4300* targets.
6332 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
6333 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
6334
6335Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
6336
6337 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
6338 <brendan@cygnus.com>.
6339
6340Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
6341
6342 * ldemul.c (ldemul_parse_args): New.
6343 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
6344 * lexsup.c (all pe stuff): Moved into pe.em
6345 (parse_args): Call emulation arg parser.
6346 * emultempl/pe.em (parse_args): handle PE specfic args.
6347
6348Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
6349
6350 * ldlang.c (lang_memory_region_lookup): Don't use the first region
6351 as the default region. Create a new region instead.
6352
6353Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
6354
6355 * ldemul.c (ldemul_set_symbols): New function.
6356 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
6357 * ldmain.c (main): Add call to ldemul_set_symbols.
6358 * lexsup.c (set_pe_value): New args.
6359 (set_pe_name): New.
6360 (parse_args): Cope with new set_pe_value args.
6361 * emultempl/pe.em (set_symbols): New function.
6362 (ld_emulation_xfer_struct): Add set_symbols.
6363 * scripttempl/pe.sc: Use new symbols.
6364
6365Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
6366
6367 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
6368 For -Y, ignore a leading `P,', and only call set_default_dirlist
6369 after processing all the other arguments.
6370
6371Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
6372
6373 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
6374 * emulparams/armpe.sh: Run PE script.
6375
6376Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
6377
6378 * ldmain.c (main): Remove PE stuff.
6379 * lexsup.c (options): Load more PE options.
6380 (set_pe_value): New function.
6381
6382Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
6383
6384
6385 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
6386 * emultempl/pe.sc: New file performs generic PE support and sorts
6387 archive members.
6388 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
6389 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
6390 * scripttempl/pe.sc: New.
6391 * Makefile.in: Use new files.
6392
6393Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
6394
6395 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
6396 (.strings,.ctors,.dtors): Likewise.
6397
6398Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
6399
6400 * scripttempl/armpe.sc: Always start code at 0x401000, even
6401 if -r.
6402 * ldwrite.c (strdup): New extern declaration.
6403 * ldgram.y (atype): New rule to clarify type parsing.
6404 * ldlang.c (init_os): Remove commented out code.
6405 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
6406 unless told not to by the link script.
6407
6408Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
6409
6410 * ldlang.c (lang_set_startof): New static function.
6411 (lang_process): Call it.
6412
6413 * ldgram.y: Tweak casesymlist to avoid bison errors.
6414
6415 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
6416 Solaris compatibility.
6417
6418Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
6419
6420 * ldgram.y (YYDEBUG): If not defined, define as 1.
6421 (CASE, EXTERN, START): New tokens.
6422 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
6423 (casesymlist): New nonterminal.
6424 (extern_name_list): New nonterminal.
6425 * ldlex.l: Accept lower case trailing base specifiers. Don't
6426 ignore the first digit when the base is a suffix. Accept many
6427 EXPRESSION state tokens in MRI state. Support MRI continuation
6428 lines and MRI semicolon comments. Accept all MRI keywords in
6429 lower case. Add CASE, EXTERN, and START MRI keywords.
6430
6431Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6432
6433 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
6434 instead of alloca.
6435
6436Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6437
6438 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
6439 $r/../gcc/xgcc unless it is present.
6440
6441Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
6442
6443 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
6444 when CONSTRUCTING.
6445 * scripttempl/m68klynx.sc: Likewise.
6446 * scripttempl/nw.sc: Likewise.
6447 * scripttempl/sa29200.sc: Likewise.
6448 * scripttempl/sparclynx.sc: Likewise.
6449
6450Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
6451
6452 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
6453
6454Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
6455
6456 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
6457
6458Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
6459
6460 * scripttempl/i386pe.sc: Cope with constructors.
6461 * scripttempl/z8ksim.sc: Deleted.
6462 * scripttempl/z8000.sc: Resurrected as this, but
6463 can handle z8001 and z8002 formats.
6464 * emulparams/z8ksim.sh: Deleted.
6465 * emulparams/{z8001.sh, z8002.sh}: New files.
6466 * config/z8ksim.mt: Deleted
6467 * config/z8k-coff.mt: New, generates both emulations.
6468
6469Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
6470
6471 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
6472 %B, in case it is in an archive.
6473
6474Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
6475
6476 * ldlang.c (lang_process): Call reset_memory_regions for each
6477 relaxation pass.
6478
6479Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
6480
6481 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
6482 _SDA_BASE.
6483
6484Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
6485
6486 * ldmain.c (constructor_callback): Allocate set_name in stack
6487 frame, rather than always calling alloca with a fixed size.
6488
6489Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
6490
6491 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
6492 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
6493
6494Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
6495
6496 * ldwrite.c (clone_section): Set the alignment of the clone
6497 section to that of the section being cloned.
6498
6499 * ldwrite.c (split_sections): Don't split the first input section
6500 into a new output section.
6501
6502Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
6503
6504 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
6505 (GENERATE_SHLIB_SCRIPT): Define as yes.
6506
6507Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
6508
6509 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
6510
6511 * ldver.c (help): Update list of options to match currently
6512 supported list.
6513
6514Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
6515
6516 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
6517 after_open field.
6518
6519 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
6520 it takes a size_t anyhow.
6521 (exp_binop): Likewise.
6522 (exp_trinop): Likewise.
6523 (exp_unop): Likewise.
6524 (exp_nameop): Likewise.
6525 (exp_assop): Likewise.
6526 * ldlang.c (lang_memory_region_lookup): Likewise.
6527 (init_os): Likewise.
6528 (ldlang_add_undef): Likewise.
6529 (insert_pad): Likewise.
6530 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
6531 bfd_size_type.
6532
6533 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
6534
6535Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
6536
6537 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
6538 declaration.
6539 (ld_emulation_xfer_type): Add search parameter to
6540 open_dynamic_archive entry point.
6541 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
6542 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
6543 make non-static. Change all callers to use new name.
6544 (ldfile_open_file_search): Make static. If entry is dynamic, call
6545 ldemul_open_dynamic_archive.
6546 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
6547 * ldfile.h (ldfile_open_file_search): Don't declare.
6548 (ldfile_try_open_bfd): Declare.
6549 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
6550 Accept search parameter. Don't search for a library, just look in
6551 a single place.
6552 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
6553 Likewise.
6554
6555Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
6556
6557 * ldmain.c (set_scripts_dir): Don't base script directory on
6558 current directory.
6559
6560Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
6561
6562 * ldmisc.c (vfinfo): Don't print the line number if it isn't
6563 meaningful.
6564
6565Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
6566
6567 * ld.h (ld_config_type): Add field warn_constructors.
6568 * ldmain.c (add_to_set): Warn if config.warn_constructors.
6569 (constructor_callback): Likewise.
6570 * lexsup.c (parse_args): Handle -warn-constructors.
6571 * ld.texinfo, ld.1: Document -warn-constructors.
6572
6573 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
6574 get confused by directory names if we searched for the file.
6575
6576 Based on patches from H.J. Lu <hjl@nynexst.com>:
6577 * ldlang.h (lang_input_statement_type): Add new field dynamic.
6578 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
6579 * ldfile.c: Include bfdlink.h.
6580 (ldfile_open_file): Check dynamic field of entry, not global
6581 dynamic_link field. Don't do a dynamic search when doing a
6582 relocateable link.
6583 * ldmain.c (main): Don't warn about dynamic_link for a
6584 relocateable link.
6585 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
6586 dynamic is false.
6587 (gld${EMULATION_NAME}_create_output_section_statements): Always
6588 loop over input files.
6589 * Makefile.in: Rebuild dependencies.
6590
6591 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
6592 -shared.
6593
6594Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
6595
6596 * ldmain.c (main): Set link_info.symbolic to false.
6597 * lexsup.c (parse_args): Handle -Bsymbolic.
6598
6599Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
6600
6601 * ldmain.c (HAVE_SBRK): Define for everything except
6602 specific systems that are known to not support sbrk.
6603 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
6604
6605Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
6606
6607 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
6608 Handle etree_provide.
6609
6610 * emultempl/elf32.em (global_needed): New static variable.
6611 (global_found): Likewise.
6612 (gld${EMULATION_NAME}_after_open): New static function.
6613 (gld${EMULATION_NAME}_search_needed): Likewise.
6614 (gld${EMULATION_NAME}_try_needed): Likewise.
6615 (gld${EMULATION_NAME}_check_needed): Likewise.
6616 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
6617 gld${EMULATION_NAME}_after_open.
6618
6619Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
6620
6621 * configure.in (i386-*-win32): New target.
6622
6623Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
6624
6625 * lexsup.c (parse_args): Let -G either set the small data size or
6626 be equivalent to --shared, depending on the next argument. Accept
6627 and ignore -z for Solaris compatibility.
6628
6629Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
6630
6631 * lexsup.c (parse_args): Cast fopen result to PTR before storing
6632 it in link_info.base_file. Fix indentation.
6633
6634Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
6635
6636 * ldmain.c (main): Always initialize PE info in link_info.
6637 * lexsup.c (OPTION_BASE_FILE): New option.
6638 (parse_args): Handle new option.
6639 * emulparams/armpe.sh: Output pei.
6640 * emultempl/i386pe.em: Add newline to end.
6641 * scripttempl/armpe.sc: Change output and quote the $s.
6642 * scripttempl/i386pe.sc: Change output and quote the $s.
6643
6644Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6645
6646 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
6647
6648 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
6649 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
6650 (i386msdos.o): New target.
6651 * config/i386-msdos.mt: Created.
6652 * emulparams/i386msdos.sh: Created.
6653 * scripttempl/i386msdos.sc: Created.
6654
6655Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6656
6657 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
6658 that contains pointers to be relocated.
6659
6660Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
6661
6662 * mpw-esh.c: New file, modified for MPW from esh.c.
6663 * scripttempl/sh.sc: Reformatted to simplify MPWification,
6664 use *() to concat stab sections instead of [].
6665
6666Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
6667
6668 * scripttempl/armpe.sc: Add constructor support.
6669
6670Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
6671
6672 * ldlang.c (lang_size_sections): Any section with a DATA
6673 statement has contents.
6674
6675Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6676
6677 * emulparams/m68kelf.sh (NOP): Define.
6678 (DYNAMIC_LINK): Don't define.
6679 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
6680 will come from the linker script.
6681
6682Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
6683
6684 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
6685
6686Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6687
6688 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
6689
6690Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6691
6692 From Andrew Cagney <cagney@highland.com.au>
6693 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
6694 elf32lppc.
6695
6696Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
6697
6698 Add support for ARM-PE.
6699 * Makefile.in (ALL_EMULATIONS): Add armpe.o
6700 * configure.in: Recognize armpe.
6701 * config/arm-pe.mt: New file.
6702 * emulparams/armpe.sh: New file.
6703 * scripttempl/armpe.sc: New file.
6704
6705
6706Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
6707
6708 * configure.in (h8300h-*-hms): Deleted
6709 * config/cf-h8300h.mt: Deleted.
6710
6711Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6712
6713 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6714
6715 From David Taylor (dtaylor@armltd.co.uk)
6716 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
6717 * configure.in: Recognize arm{,e[lb]-*-aout.
6718 * config/arm[lb]-aout.mt: New files.
6719 * emulparams/armaout[lb].sh: New files.
6720 * scripttempl/armaout.sc: New file.
6721
6722Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6723
6724 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
6725 be unique in 8 characters for DOS.
6726
6727 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
6728 * emulparams/elf32ppcle.sh: Deleted.
6729
6730Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
6731 Tom Griest <griest@cs.yale.edu>
6732
6733 Initial support for PE executables (eg NT, win32)
6734
6735 * Makefile.in (configure.in, ei386pe): Add support.
6736 * ldmain.c (main): Initialize PE argument info.
6737 * ldwrite.c (print_file_stuff): Don't print out .drectve
6738 and .debug section info.
6739 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
6740 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
6741 Handle new arguments.
6742 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
6743 New files
6744
6745Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
6746
6747 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
6748 segment. This allows ld -r to preserve unwind sections.
6749
6750Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6751
6752 * configure.in: Add little endian PowerPC support.
6753
6754 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
6755 (eelf32ppcle.c): Support for little endian PowerPC.
6756
6757 * config/ppcle-elf32.mt: New file for little endian PowerPC.
6758 * emulparams/elf32ppcle.sh: Ditto.
6759
6760Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6761
6762 * ldlang.c (print_output_section_statement): Check
6763 subsection_alignment, instead of checking section_alignment twice.
6764 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
6765
6766Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
6767
6768 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
6769
6770Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
6771
6772 * ldwrite.c (ldwrite): Before doing anything, reset the error
6773 code. If bfd_final_link returns an error, but the error code is
6774 unset, don't issue an extra message. Assume a correct error
6775 message was already set.
6776
6777Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6778
6779 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
6780 (em68kelf.o): New target.
6781 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
6782 * configure.in: Use them for m68*-*-elf.
6783
6784Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
6785
6786 Merge in support for Mac MPW as a host.
6787 (Old change descriptions retained for informational value.)
6788
6789 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
6790 (i386-unknown-coff): Remove.
6791 (sh-hitachi-hms): New target.
6792 (emulation_ofiles): Set correctly for each target.
6793 (version, TDEFINES): Add to makefile fragment.
6794 * mpw-make.in (BISON): Use byacc instead of bison.
6795 (em_*.c): Replace with e*.c everywhere.
6796 (ldgram.h): Separate action from ldgram.c generation.
6797 (LD_PROG): Depend on Version.r.
6798 (Version.r): generate from version info.
6799 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
6800
6801 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
50bbae35 6802 i386-unknown-aout, i386-unknown-coff): New targets.
252b5132
RH
6803 (m68k-aout, m68k-coff): Remove targets.
6804 (mk.tmp): Add definition of EMUL.
6805
6806 * mpw-config.in (emulname): Set based on target.
6807 (ldemul-list.h): Construct.
6808 * mpw-make.in (install-only): New target.
6809 (install): Depend on install-only.
6810
6811 * mpw-make.in (bindir): Fix pathname.
6812 (install): Move here from mpw-build.in.
6813
6814 * mpw-config.in: New file, MPW configuration fragment.
6815 * mpw-make.in: New file, MPW makefile fragment.
6816 (This file is semi-automatically generated from Makefile.in.)
6817 * ldfile.c (slash): If MPW, set to `:'.
6818 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
6819 prevent redefinition errors.
6820
6821Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
6822
6823 * ldwrite.c (clone_section): Align clone sections on even
6824 boundaries.
6825
6826Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
6827
6828 * configure.in: Change linux to default to elf. Using
6829 i[345]86-*-linuxaout will build a linker which defaults to a.out.
6830 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
6831 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
6832 * config/i386-lelf.mt: Remove.
6833
6834Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
6835
6836 * ldmain.c (main): If opening the map file fails, call
50bbae35 6837 bfd_set_error before calling einfo.
252b5132
RH
6838
6839 * ld.texinfo, ld.1: Document the -no-keep-memory option.
6840
6841Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
6842
6843 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
6844 does mark shared libraries as executable.
6845
6846Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
6847
6848 * ldlang.c (lang_common): Change power to int. Pass larger values
6849 before smaller values.
6850 (lang_one_common): Treat info as int *. Don't bother to check for
6851 last value, since it is now zero.
6852
6853Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
6854
6855 * ldlang.c (load_symbols): An empty archive is OK.
6856
6857Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
6858
6859 * ldmain.c (progress.h): Include.
6860 (main): Call START_PROGRESS and END_PROGRESS.
6861
6862Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
6863
6864 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
6865 .dtors sections, so that these pointers get relocated also.
6866 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
6867 and end of the constructors/destructors.
6868
6869Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6870
6871 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
6872 describes an archive, call bfd_link_add_symbols on each member.
6873 * ldmain.c (whole_archive): New variable.
6874 (main): Initialize it to false.
6875 * ldmain.h: Declare whole_archive.
6876 * lexsup.c (parse_args): Grok --whole-archive switch.
6877 * ld.texinfo, ld.1: Document --whole-archive.
6878
6879Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
6880
6881 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
6882 using the default emulation.
6883
6884 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
6885 LDEMULATION.
6886 * config/hppaelf.mh (HOSTING_EMU): Likewise.
6887
6888Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
6889
6890 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
6891 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
6892
6893Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
6894
6895 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
6896
6897 * ldlex.l: Return -lFILENAME as the token LNAME.
6898 * ldgram.y: Add token LNAME.
6899 (input_list): Treat LNAME like NAME, but pass it to
6900 lang_add_input_file as lang_input_file_is_l_enum.
6901 * ld.texinfo: Document using -lFILENAME in INPUT.
6902
6903Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6904
6905 * ldlang.c (lang_check): If the architectures are compatible call
6906 bfd_merge_private_bfd_data to let the backend do additional
6907 checks.
6908
6909Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
6910
6911 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
6912 all supported emulations.
6913
6914Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
6915
6916 * ldemul.c (ldemul_list_emulations): New function.
6917 * ldemul.h (ldemul_list_emulations): Declare.
6918 * ldver.c (help): List supported targets and emulations.
6919
6920Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
6921
6922 * scripttempl/elf.sc (.debug): Relocate to address 0.
6923 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
6924 .debug_sfnames, .line): Likewise.
6925
6926Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
6927
6928 * emultempl/elf32.em (hold_rel): New static variable.
6929 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
6930 contents whose names begin with ".rel" after hold_rel. Remove the
6931 assertion which checked for unplaced .rel sections. Don't try to
6932 sort the section into place if place->bfd_section is NULL.
6933 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
6934 section beginning with ".rel".
6935
6936Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
6937
6938 Doc note from pierre@phi.la.tce.com (Pierre Willard):
6939 * ld.texinfo: -X and -x work even if -s or -S are not specified.
6940 * ld.1: Similar change.
6941
6942Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
6943
6944 * emulparams/gld960coff.sh (COFF_CTORS): Define.
6945 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
6946
6947Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
6948
6949 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
6950 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
6951 * config/i386-lelf.mt: New file.
6952 * config/i386-gelf.mt: New file.
6953
6954Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
6955
6956 * configure.in: Match on mips-ecoff, and default to the IDT
6957 configuration.
6958
6959Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
6960
6961 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
6962 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
6963 to double the size of the table.
6964
6965Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6966
6967 * Makefile.in (distclean): Do recursive deletion, since ldscripts
6968 is a directory.
6969
6970Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
6971
6972 * ldmain.c (main): If trace_file_tries is true, and we are using
6973 an internal linker script, print out the script.
6974 * ldfile.c (try_open): Reindent function. Make the messages about
6975 opening script files more informative.
6976
6977 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
6978 * ld.texinfo, ld.1: Update accordingly.
6979
6980Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
6981
6982 * ldlang.c (lang_one_common): Adjust references to common symbol
6983 information for new structure.
6984
6985Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
6986
6987 * ldmain.c (undefined_symbol): Handle section being NULL.
6988
6989 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
6990 * ldexp.c (fold_name): Likewise.
6991 * ldlang.c (print_one_symbol): Likewise.
6992 (lang_finish): Likewise.
6993 * ldmain.c (multiple_common): Likewise.
6994 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
6995 renamed to bfd_link_hash_undefweak.
6996
6997 * scripttempl/alpha.sc: Set address of .data section correctly
6998 when -n or -N is used. Patch from Chris G Demetriou
6999 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
7000 * scripttempl/mips.sc: Similar change.
7001
7002Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
7003
7004 * ldlang.c (lang_size_sections): Clarify error message when user
7005 specified start addr conflicts with region. Fix resetting of
7006 region pointer.
7007
7008Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
7009
7010 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
7011 in lang_allocating_phase_enum.
7012
7013Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
7014
7015 * Makefile.in (distclean): Depend upon clean. Don't bother to
7016 remove files which will be removed by clean. From patch by
7017 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
7018
7019Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
7020
7021 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
7022 a MIPS target, clobber the size of all but the first input
7023 .reginfo section to be 0, so that lang_size_sections sets the
7024 correct size for the output .reginfo section.
7025
7026Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
7027
7028 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7029 Remove unused variable is.
7030
7031Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7032
7033 * configure.in: Add support for powerpc-*-eabi.
7034
7035 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
7036 support.
7037
7038 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
7039 elf.sc, which defines some new symbols PowerPC elf needs.
7040
7041Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7042
7043 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
7044 constructor entry is in the absolute section.
7045
7046Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7047
7048 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
7049 * config/i386-gnu.mt: New file. Include ELF support.
7050
7051Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7052
7053 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
7054 there are any input sections named .gnu.warning, treat them as
7055 containing a warning message to be printed by the linker, and
7056 clobber the size so that the message is not copied into the output
7057 file.
7058 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
7059 section.
7060
7061Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
7062
7063 * configure.in (w65-*-*): New target.
7064 * Makefile.in: Update.
7065 * scripttempl/w65.sc: New.
7066 * config/coff-w65.mt: New.
7067
7068Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
7069
7070 * ldlang.c (lang_place_orphans): Don't ignore files with
7071 just_syms_flag set. Instead, put all their sections in
7072 bfd_abs_section_ptr, using the section VMA as the output_offset.
7073
7074Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7075
7076 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
7077 name `reloc_howto_type', since it's now defined to be const.
7078 * ldlang.c (lang_add_reloc): Ditto.
7079 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
7080
7081Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7082
7083 * ldexp.c (fold_binary): Adding or subtracting an absolute value
7084 to a relative value does not require forcing the relative value to
7085 be absolute. Also, reindent function.
7086
7087Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7088
7089 * ldwrite.c (clone_section): Create a symbol with the
7090 same name as the section.
7091
7092Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7093
7094 * ld.h (split_by_reloc, split_by_file): New flags.
7095 * ldwrite.c (clone_section, split_sections): New functions.
7096 * lexsup.c (parse_args): Understand new split options.
7097
7098Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7099
7100 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
7101 .data segment. They must be writable when creating a shared
7102 library. From H.J. Lu <hjl@nynexst.com>.
7103
7104Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
7105
7106 * emultempl/miposecoff.em: New file.
7107 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
7108 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
7109 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
7110 provide __runtime_reloc_start and __runtime_reloc_stop if they are
7111 used. Align _fdata to a 16 byte boundary.
7112 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
7113 generic.em.
7114 (emipsidtl.c): Likewise.
7115 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
7116
7117 * ld.h (args_type): Add new field embedded_relocs.
7118 * ldemul.h (ldemul_after_open, after_open_default): Declare.
7119 (ld_emulation_xfer_struct): Add new field after_open.
7120 * ldemul.c (ldemul_after_open): New function.
7121 (after_open_default): New function.
7122 * ldlang.c (lang_process): Call ldemul_after_open.
7123 * lexsup.c (parse_args): Handle --embedded-relocs.
7124 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
7125 new after_open field to after_open_default.
7126 * emultempl/generic.em, emultempl/gld960.em: Likewise.
7127 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
7128 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
7129 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
7130 * ld.texinfo, ld.1: Mention -embedded-relocs.
7131
7132Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7133
7134 * Makefile.in: Add eshl.o.
7135 * config/coff-sh.mt: Add shl emulation.
7136
7137Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7138
7139 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
7140 Youngdale <eric@aib.com>.
7141
7142Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7143
7144 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
7145 * config/i386linux.mh: New file; set HOSTING_CRT0.
7146 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
7147 /usr/lib, since that is already in LIB_PATH.
7148
7149Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
7150
7151 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
7152 address.
7153 (.data, .bss): If "-N", then place the data/bss just after the end
7154 of the .text section rather than at the default 0x40000000.
7155
7156 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
7157 text segment.
7158
7159Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7160
7161 Patches from Eric Youngdale <eric@aib.com>:
7162 * ldlang.c (lang_finish): Don't warn if entry symbol not found
7163 when generating a shared library.
7164 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
7165 attempting to place an orphaned relocation section when generating
7166 a dynamically linked object.
7167
7168 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
7169 _start.
7170
7171Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7172
7173 * ld.h (args_type): Add field export_dynamic.
7174 * lexsup.c (parse_args): Recognize --export-dynamic.
7175 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7176 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
7177
7178Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7179
7180 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
7181 we allocate common symbols.
7182
7183Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
7184
7185 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
7186 .rela.fini to the list of .rel* sections.
7187
7188Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7189
7190 * ldlang.c (load_symbols): Add new argument place. Only accept
7191 linker scripts if place is not NULL. Put commands found in an
7192 assumed linker script into place.
7193 (lookup_name): Pass NULL as place argument to load_symbols.
7194 (open_input_bfds): In lang_input_statement_enum case, pass a place
7195 argument to load_symbols, and store any new statements after the
7196 current one.
7197
7198Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7199
7200 * ldver.c (ldversion): Bump to 2.5.3.
7201
7202Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7203
7204 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
7205
7206Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7207
7208 * Makefile.in (check): Add missing "else true" clause.
7209
7210 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
7211
7212 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
7213 entry point to "start". Align at end of each section to 0x200.
7214 Start .text section 0x1000 later. Add _etext, _edata, _end
7215 symbols.
7216
7217Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7218
7219 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
7220 composed of different object file formats.
7221 (ldctor_build_sets): If the output format does not support the
7222 reloc, and we are not generating a relocateable link, try getting
7223 the reloc from the input format.
7224
7225Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
7226
7227 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
7228 (em68knbsd.c): New target.
7229
7230 * config/m68k-nbsd.mt: New file.
7231 * emulparams/m68knbsd.sh: New file.
7232 * configure.in (m68*-*-netbsd*): Use above configs.
7233
7234Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7235
7236 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
7237 appropriately named static library, stop the search at that
7238 directory.
7239
7240Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
7241
7242 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
7243 and esparcnbsd.o; sorted entries.
50bbae35 7244 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
252b5132
RH
7245
7246 * config/netbsd532.mt: Removed.
7247 * emulparams/netbsd532.sh: Removed.
7248
7249 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
7250 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
7251 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
7252 sparc*-*-netbsd*): Use above configs.
7253
7254Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7255
7256 * ldmain.c (multiple_common): One of the types may now be
7257 bfd_link_hash_indirect. The old BFD argument may be NULL.
7258
7259Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7260
7261 * configure.in: Add * at the end of m68k-hp-hpux.
7262
7263Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7264
7265 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
7266 YY_CHAR *.
7267
7268Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
7269
7270 * scripttempl/nw.sc: Gather constructors and destructors and
7271 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
7272
7273Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
7274
7275 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
7276 (ei386nw.c, eppcnw.c): New targets.
7277
7278 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
7279 scripttempl/nw.sc: New files, for i386 and powerpc netware.
7280
7281 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
7282 instead of {i386,ppc}-elf.
7283
50bbae35 7284 * configure.in (sparc*-*-netware): Removed. There is no such
252b5132
RH
7285 thing anymore.
7286
7287 * ldint.texinfo: Move misplaced `@end iftex'.
7288
7289Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
7290
7291 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
7292 .rela.dtors to the list of .rel* sections.
7293
7294Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7295
7296 * ldver.c (ldversion): Update to version 2.5.
7297 * Version 2.5 released.
7298
7299 * configure.in (all_targets): Handle i386-linux*.
7300
7301Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7302
7303 * scripttempl/aout.sc: Set _etext and __etext to ., not
7304 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
7305 will not break any other system. From Eric Valette
7306 <ev@chorus.fr>.
7307
7308Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7309
7310 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
7311 --verbose to get the old -V behaviour.
7312 * ld.1, ld.texinfo: Document this change.
7313
7314Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7315
7316 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
7317 assertion, since it could fail with a user defined linker script.
7318
7319 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
7320 name in the hash table during the first phase--the hash table does
7321 not even exist at that point, much less have the right value.
7322
7323 * Makefile.in (CC): Define.
7324 (CXX): Move definition, change from g++ to gcc.
7325 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
7326 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
7327 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
7328 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
7329 (.cc.o): Comment out.
7330 (testdir): Remove.
7331 (site.exp): Don't create testdir or set tmpdir.
7332 (check): Run checks even if not running native. Use CC_FOR_TARGET
7333 instead of RUNTEST_CC, and likewise for CXX.
7334 (cdtest targets): Comment out.
7335 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
7336 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
7337 * cdtest-main.cc, cdtest.exp: Remove.
7338
7339Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7340
7341 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
7342 file naming problems.
7343 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
7344 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
7345 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
7346 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
7347 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
7348 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
7349 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
7350
7351 * genscripts.sh: Always search /usr/local/TARGET/lib.
7352
7353 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
7354
7355Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
7356
7357 * configure.in: Handle i386-bsdi* targets like i386-bsd.
7358
7359Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7360
7361 * lexsup.c (parse_args): Add support for -a for HP/UX
7362 compatibility.
7363
7364 * lexsup.c (parse_args): -c takes an argument.
7365
7366Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7367
7368 * ld.h (args_type): Add new field endian.
7369 * lexsup.c (parse_args): Handle -EB and -EL by setting
7370 command_line.endian.
7371 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
7372 * ldlang.c (lang_add_output_format): Add arguments big and little.
7373 If command_line.endian is set, use it to select big or little
7374 rather than the default. Changed all callers.
7375 * ldlang.h (lang_add_output_format): Update declaration.
7376 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
7377 LITTLE_OUTPUT_FORMAT.
7378 * emulparams/elf32mipl.sh: Likewise.
7379 * emulparams/mipsbig.sh: Likewise.
7380 * emulparams/mipsbsd.sh: Likewise.
7381 * emulparams/mipsidt.sh: Likewise.
7382 * emulparams/mipsidtl.sh: Likewise.
7383 * emulparams/mipslit.sh: Likewise.
7384 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
7385 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
7386 OUTPUT_FORMAT.
7387 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
7388 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
7389 * scripttempl/mipsbsd.sc: Likewise.
7390
7391 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
7392 depending upon ldgram.c, so that a parallel make does not try to
7393 build both at once.
7394
7395 * configure.in (mips*el-elf*): New target.
7396 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
7397 (eelf32mipl.c): New target.
7398
7399 * config/mipsl-elf32.mt: New file.
7400 * emulparams/elf32mipl.sh: New file.
7401
7402Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7403
7404 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
7405 ld -r -S -x.
7406
7407Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7408
7409 * ldmisc.c (vfinfo): Print BFD file name as well as file name
7410 returned by find_nearest_line, in case the file name is something
7411 unhelpful such as a .h file. Handle %u.
7412
7413Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7414
7415 * ldlang.c (lang_do_assignments): Make sure output statement
7416 has an attached bfd_section before trying to dereference it.
7417
7418Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7419
7420 * ld.h (ld_config_type): Add new field warn_once.
7421 * ldmain.c (undefined_symbol): Handle -warn-once.
7422 * lexsup.c (parse_args): Recognize -warn-once.
7423 * ld.texinfo (Options): Document -warn-once.
7424 * ld.1: Likewise.
7425
7426 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
7427 name. For %C, print the function name on a separate line, to keep
7428 the length of error messages under control.
7429 * ldmain.c (multiple_definition): Use %D for ``first defined
7430 here.''
7431 (undefined_symbol): Use %D for ``more undefined references
7432 follow''.
7433
7434 * ldmisc.c (multiple_warn): Remove; no longer used.
7435 * ldmisc.h (multiple_warn): Don't declare.
7436
7437Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7438
7439 * ldlang.c (print_output_section_statement): Print all lines
7440 to the map file.
7441
7442Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7443
7444 * ldlang.c (load_symbols): Check for archive before object. Use
7445 bfd_check_format_matches, and, if ambiguous, print a list of
7446 matching formats. If file format is not recognized, treat file as
7447 a linker script.
7448 * ldgram.y (yyerror): If assuming an object file is a script,
7449 mention that. Tweak the format of the error messages.
7450 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
7451 guess that this is not actually a script, and just report that the
7452 file format was not recognized.
7453 * ld.texinfo (Options): Admit that -( may be used more than once.
7454 Add note that unrecognized object files are now treated as linker
7455 scripts.
7456
7457 * ldfile.c (ldfile_input_filename): Make const.
7458 (ldfile_assumed_script): New variable.
7459 (try_open): Change arguments types to const.
7460 (ldfile_find_command_file): Likewise.
7461 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
7462 * ldfile.h: Update declarations for ldfile.c changes.
7463 * ldlex.l: Include <ctype.h>.
7464 (file_name_stack): Change to be const char *.
7465 (lineno_stack): New static variable.
7466 (<<EOF>>): Set lineno as well as ldfile_input_filename.
7467 (lex_push_file): Make name argument const. Initialize
7468 lineno_stack entry.
7469 (lex_redirect): Initialize lineno_stack entry.
7470 (lex_warn_invalid): Handle non printable characters nicely.
7471 * ldlex.h (lex_push_file): Declare second argument as const.
7472
7473 * ldgram.y (ifile_p1): Recognize GROUP.
7474 * ldlex.l: Recognize GROUP.
7475 * ld.texinfo (Option Commands): Document GROUP.
7476
7477Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7478
7479 * config/m68klynx.mh: New file.
7480
7481Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
7482
7483 * emultempl/hppaelf.em: Add newlines to the error messages.
7484
7485Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7486
7487 * config/i386lynx.mh: New file.
7488 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
7489 unless CONSTRUCTING.
7490
7491Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7492
7493 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
7494 (GENERATE_SHLIB_SCRIPT): Define as yes.
7495 (DYNAMIC_LINK): Define as false.
7496 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
7497 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
7498 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
7499 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
7500 generic.em.
7501
7502Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7503
50bbae35 7504 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
252b5132
RH
7505
7506Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7507
7508 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
7509 .got section is now explicitly handled in elf.sc.
7510
7511Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7512
7513 * scripttempl/alpha.sc: Redo script to set . outside of sections
7514 and not bother to explicitly specify section addresses.
7515 Explicitly place .sdata section.
7516
7517Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7518
7519 * scripttempl/m68kcoff.sc: Put .bss in data segment.
7520
7521 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
7522 0, and to only be marked as NOLOAD if relocating.
7523 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
7524 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
7525 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
7526 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
7527 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
7528 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
7529 * scripttempl/sparclynx.sc: Likewise.
7530
7531Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
7532
7533 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
7534 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
7535 New files.
7536
7537Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
7538
7539 * ld.h (args_type): Add field soname.
7540 * lexsup.c (parse_args): Handle -soname argument.
7541 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
7542 pass soname.
7543 * ld.texinfo: Document -soname.
7544
7545Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7546
7547 * ldlang.c (lang_check): Don't try to set the architecture if the
7548 input and output files are incompatible. Just warn.
7549
7550Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7551
7552 * configure.in: Change i[34]86 to i[345]86.
7553
7554Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7555
7556 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
7557
7558Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7559
7560 Make the ELF linker handle orphaned sections reasonably. Also,
7561 define __start_SECNAME and __stop_SECNAME around sections whose
7562 names can be represented in C, for the benefit of symbol sets in
7563 glibc.
7564 * ldemul.h (ldemul_place_orphan): Declare.
7565 (ld_emulation_xfer_type): Add place_orphan field.
7566 * ldemul.c (ldemul_place_orphan): New function.
7567 * ldlang.h (wild_doit): Declare.
7568 * ldlang.c (wild_doit): Make nonstatic.
7569 (lang_place_orphans): Call ldemul_place_orphan.
7570 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
7571 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
7572 static variables.
7573 (gld${EMULATION_NAME}_place_orphan): New static function.
7574 (gld${EMULATION_NAME}_place_section): New static function.
7575 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
7576
7577Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
7578
7579 * scripttempl/aout.sc: Add .linux-dynamic after .data.
7580
7581Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7582
7583 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
7584 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
7585
7586Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7587
7588 * ldexp.h (exp_get_abs_int): Declare.
7589
7590Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7591
7592 * ldlang.c (lang_do_assignments): Handle complex AT's better.
7593 * ldexp.c (exp_get_abs_int): New function.
7594
7595Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
7596
7597 * configure.in: add i960-nindy-coff support.
7598
7599Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7600
7601 * ldlex.l (yy_create_string_buffer): Handle change to internal
7602 interface in flex 2.4.7.
7603
7604Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
7605
7606 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
7607 New function; add 0x20 to any use of -Ttext.
7608 (gld${EMULATION_NAME}_create_output_section_statements): New
7609 function.
7610 (ld_${EMULATION_NAME}_emulation): Use the new function
7611 gld${EMULATION_NAME}_create_output_section_statements.
7612
7613Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7614
7615 * scripttempl/mips.sc: Redo script to set . outside of sections
7616 and not bother to explicitly specify section addresses.
7617
7618Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7619
7620 * scripttempl/elf.sc: Copy several more relocation sections into
7621 the output. Put .got.plt sections into .got.
7622
7623Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7624
7625 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
7626
7627 Add a new script operator, PROVIDE, to define a symbol only if it
7628 is needed.
7629 * ldgram.y (PROVIDE): New token.
7630 (assignment): Accept PROVIDE.
7631 * ldlex.l (PROVIDE): New token.
7632 * ldexp.h (node_type): Add etree_provide to node_class enum.
7633 (exp_provide): Declare.
7634 * ldexp.c (exp_fold_tree): Handle etree_provide.
7635 (exp_provide): New function.
7636 (exp_print_tree): Handle etree_provide.
7637 * ld.texinfo: Document PROVIDE.
7638
7639 * ldlang.c (lang_common): Pass desired alignment to
50bbae35 7640 lang_one_common as power of two.
252b5132
RH
7641 (lang_one_common): Get common symbol alignment from linker hash
7642 table entry. Treat desired alignment as a power of two.
7643
7644 * ldlang.c (wild_section): Attach all section with the given name,
7645 not just the first one. If there is no name, attach all sections
7646 even if the SEC_IS_COMMON flag is set.
7647
7648Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7649
7650 * ld.h (args_type): Add field rpath.
7651 * lexsup.c (S_ISDIR): Define if not already defined.
7652 (parse_args): Add support for -rpath. If -R is used to name a
7653 directory, treat it as -rpath for Solaris compatibility.
7654 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7655 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
7656 * ldmain.c (main): Initialize command_line.rpath to NULL.
7657 * ld.texinfo: Document -rpath option.
7658
7659Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
7660
7661 * emulparams/pc532machaout.sh: New file. Pc532 mach script
7662 parameters.
7663
7664 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
7665
7666 * config/pc532mach.mt: New file. Pc532 mach target support.
7667
7668 * config/pc532mach.mh: New file. Pc532 mach host support.
7669
7670 * config/netbsd532.mt: New file. Netbsd 532 target support.
7671
7672 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
7673
7674 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
7675 dependency.
7676
7677Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7678
7679 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
7680 bfd_abs_section_ptr, not &bfd_abs_section.
7681
7682 * lexsup.c (parse_args): Changed "retain-symbols-file" from
7683 no_argument to required_argument. From djm.
7684
7685Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7686
7687 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
7688 sections to force a VMA of 0; needed for ELF backends which have
7689 not been converted to the new linker style.
7690
7691Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
7692
7693 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
7694 it was for the HPUX dynamic loader's use and it creates problems
7695 with ELF GDB.
7696
7697Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
7698
7699 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
7700 * ldlang.h (lang_do_assignments): Put external decl here.
7701 * emultempl/hppaelf.em: Minor cleanups throughout file.
7702 (hppa_elf_create_output_section_statements): Rewrite.
7703 (hppaelf_finish): Rewrite.
7704
7705Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7706
7707 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
7708
7709 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
7710 accept plain -B.
7711 * ld.texinfo: -Bstatic is not ignored.
7712
7713Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
7714
7715 * ldlex.l: Recognize \r the same as \n.
7716
7717Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7718
7719 Preliminary support for generating shared libraries, from Eric
7720 Youngdale <ericy@cais.cais.com>.
7721 * genscripts.sh: If the emulation parameter file sets
50bbae35 7722 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
252b5132
RH
7723 CREATE_SHLIB defined.
7724 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
7725 link_info.shared is set, use the .xs script file.
7726 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
7727 .interp section, and don't include TEXT_START_ADDR in the starting
7728 address of the first section.
7729 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
7730 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
7731
7732Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7733
7734 * configure.in: Change --with-targets to --enable-targets.
7735
7736Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7737
7738 * lexsup.c (parse_args): Add support for new options -( -) with
7739 synonyms --start-group --end-group.
7740 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
7741 (lang_group_statement_type): Define new struct.
7742 (lang_statement_union_type): Add group_statement field.
7743 (lang_enter_group, lang_leave_group): Declare.
7744 * ldlang.c (lang_for_each_statement_worker): Handle
7745 lang_group_statement_enum.
7746 (map_input_to_output_sections, print_statement): Likewise.
7747 (lang_size_sections, lang_do_assignments): Likewise.
7748 (open_input_bfds): Completely rewrite. Now does its own looping,
7749 rather than using lang_for_each_statement. Handle groups.
7750 (lang_process): Update call to open_input_bfds.
7751 (print_group): New static function.
7752 (lang_enter_group, lang_leave_group): New static functions.
7753 * ldfile.c (ldfile_open_file): If the file has already been
7754 opened, just return rather than taking an assertion failure.
7755 * ldver.c (help): Mention new options.
7756 * ld.texinfo: Document new options.
7757
7758 * ldlang.c (end_of_data_section_statement_list): Don't define.
7759 (lang_leave_output_section_statement): Don't set obsolete variable
7760 end_of_data_section_statement_list.
7761
7762 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
7763 ALIGN.
7764
7765 * ldlang.c (lang_size_sections): Adjust current region address
7766 even for sections with an explicit address. From
7767 ralphc@pyramid.com (Ralph Campbell).
7768
7769 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
7770 From jrs@world.std.com (Rick Sladkey).
7771
7772 * scripttempl/mipsbsd.sc: Let sections align to their natural
7773 boundaries.
7774
7775Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7776
7777 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
7778 &bfd_abs_section.
7779 (lang_abs_symbol_at_beginning_of): Likewise.
7780 (lang_abs_symbol_at_end_of): Likewise.
7781 (lang_size_sections): Use bfd_is_abs_section to check for the
7782 absolute section. Don't try to set the VMA or output_offset or
7783 size of the absolute section.
7784 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
7785 undefined section.
7786
7787Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
7788
7789 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
7790 when generating relocatable objects.
7791
7792Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
7793
7794 * emultempl/linux.em: New file providing support for linking
7795 against Linux shared libraries.
7796 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
7797 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
7798
7799Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7800
7801 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
7802 * ldmain.c (main): Initialize link_info.shared to false. Give
7803 error if link_info.relocateable and link_info.shared are both set.
7804
7805 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
7806 it as naming an emulation to be added to EMULATION_OFILES.
7807 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
7808
7809 * Makefile.in: Rebuilt dependencies.
7810 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
7811 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
7812 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
7813 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
7814 (ei386linux.c): Remove; now in Makefile.in.
7815 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
7816 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
7817 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
7818 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
7819 (eelf64_sparc.c): Remove; now in Makefile.in.
7820 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
7821 (eelf32_sparc.c): Remove; now in Makefile.in.
7822
7823 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
7824 no owner--it might be bfd_abs_section. From Eric Youngdale
7825 <ericy@cais.cais.com>.
7826
7827 * scripttempl/aout.sc: Let sections align to their natural
7828 boundaries.
7829
7830Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7831
7832 * ldemul.h (ldemul_open_dynamic_archive): Declare.
7833 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
7834 * ldemul.c: Include ldexp.h and ldlang.h.
7835 (ldemul_open_dynamic_archive): New function.
7836 * ldfile.h (ldfile_open_file_search): Declare.
7837 * ldfile.c: Include ldemul.h.
7838 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
7839 argument, not bfd *. Change all callers.
7840 (ldfile_open_file_search): Rename from open_a. Return boolean
7841 argument, not bfd *. Clean up. Change all callers.
7842 (ldfile_open_file): If doing a dynamic link, call
7843 ldemul_open_dynamic_archive rather than assuming the extension of
7844 a dynamic object is ".so".
7845 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
7846 New function.
7847 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
7848 field.
7849 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
7850
7851 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
7852 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
7853 Accept -static as a synonym for -non_shared.
7854
7855 Let the user change the dynamic linker used by ELF code.
7856 * ld.h (args_type): Add new field interpreter.
7857 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
7858 handle it.
7859 * ldmain.c (main): Initialize command_line.interpreter to NULL.
7860 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
7861 the ELF backend to return the .interp section. If
7862 command_line.interpreter is not NULL, set the contents of .interp
7863 to it.
7864 * ld.texinfo: Mention -dynamic-linker.
7865
7866 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
7867 generic.em.
7868
7869 * lexsup.c (parse_args): Sort out the option macros and change the
7870 definitions to make it easier to add a new option.
7871
7872 * scripttempl/aout.sc: Define __etext and __edata to go along with
7873 _etext and _edata.
7874
7875 * ld.h (ld_config_type): Add new field traditional_format.
7876 * lexsup.c (parse_args): Add traditional-format to longopts, and
7877 handle it.
7878 * ldmain.c (main): Initialize config.traditional_format to false.
7879 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
7880 flags of output_bfd according to config.traditional_format.
7881 * ldver.c (help): Mention -traditional-format.
7882 * ld.texinfo: Document -traditional-format.
7883
7884Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7885
7886 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
7887 they are encountered.
7888
7889Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
7890
7891 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
7892 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
7893
7894Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7895
7896 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
7897 _FTEXT, _ETEXT and _FDATA. Dont define _END.
7898
7899 * ldfile.c (open_a): If this is not an archive, try to open it in
7900 the current directory before searching for it.
7901
7902 * lexsup.c (parse_args): Treat -i as a synonym for -r.
7903
7904 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
7905 BLOCK works in a section address as documented.
7906
7907 * ldgram.y (YYDEBUG): Don't define.
7908
7909Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7910
7911 * emultempl/gld960.em: Pass false for new argument to
7912 ldfile_add_library_path.
7913 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
7914
7915 * emultempl/sunos.em: Only look for .so files if doing a dynamic
7916 link.
7917
7918Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
7919
7920 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
7921
7922Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
7923
7924 * Makefile.in (check): Delete ld.new dependency so that a regression
7925 test doesn't trigger a rebuild of the linker.
7926
7927Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7928
7929 * ldlang.c (map_input_to_output_sections): For lang_address, call
7930 init_os if it hasn't already been called.
7931
7932Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7933
7934 Add support for SunOS shared libraries.
7935 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
7936 shared library support code.
7937 * emultempl/sunos.em: New file.
7938 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
7939 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
7940 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
7941 (esun3.c): Likewise.
7942
7943 * ldlang.c: Minor formatting cleanups.
7944 (lang_for_each_input_file): New function.
7945 * ldlang.h (lang_for_each_input_file): Declare.
7946
7947 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
7948 field.
7949 (search_head): Declare.
7950 (ldfile_add_library_path): Add new cmdline argument in prototype.
7951 * ldfile.c (search_head): Make non-static.
7952 (search_dirs_type): Move to ldfile.h.
7953 (ldfile_add_library_path): Accept cmdline argument, and save it.
7954 * lexsup.c (parse_args): Pass true for new cmdline argument of
7955 ldfile_add_library_path.
7956 (set_default_dirlist): Likewise.
7957 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
7958 argument of ldfile_add_library_path.
7959 * ldgram.y (ifile_p1): Likewise.
7960
7961Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7962
7963 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
7964 total_size, superfile and chain.
7965 * ldfile.c (open_a): Don't clear search_dirs_flag.
7966 (ldfile_open_file): Don't try to open superfile. Assert that file
7967 has not already been opened.
7968 * ldlang.c (new_afile): Don't initialize superfile.
7969 * ldmain.c (add_archive_element): Don't initialize subfiles or
7970 chain or superfile. Initialize search_dirs_flag to false.
7971
7972Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7973
7974 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
7975
7976 Changes from binutils-2.4 release:
7977
7978 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
7979 variables, use whitespace, so scripts don't break.
7980
7981 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
7982
7983 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
7984
7985 * cdtest-bar.cc: Renamed from cdtest-func.cc.
7986 * Makefile.in: Noted change.
7987
7988 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
7989 don't know where that's supposed to come from, or why it's
7990 necessary.
7991
7992 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
7993
7994 * configure.bat: update to latest makefile.in
7995 * emulpara/go32.sh: set to coff-go32 not aout
7996 * emultemp/generic.em: strength-reduce the structure of
7997 this shell script, since the only available shell for
7998 DOS can't handle complex syntax.
7999 * emultemp/stringify.sed: for "sed -f" instead of inline.
8000 * makefile.in: depend on stringify.sed as well as genscripts.sh
8001 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
8002 * genscripts.sh: empty variables aren't always considered "set",
8003 so set them to "y" instead.
8004
8005Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8006
8007 * ldlang.c (entry_symbol): Make static.
8008 (lang_add_entry): Add cmdline argument.
8009 * ldlang.h (lang_add_entry): Change prototype.
8010 * ldgram.y (statement_anywhere): Change lang_add_entry call.
8011 * lexsup.c (parse_args): Likewise.
8012
8013Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8014
8015 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
8016 .reginfo an address.
8017 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
8018 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
8019 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
8020
8021Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8022
8023 Add support for ELF shared libraries.
8024 * ld.h (ld_config_type): Add field dynamic_link.
8025 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
8026 on attempts to use -r with -relax, -call_shared or -s.
8027 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
8028 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
8029 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
8030 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
8031 OPTION_NON_SHARED by setting dynamic_link field accordingly.
8032 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
8033 -r and -Ur.
8034 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
8035 opening a file with a .so extension first.
8036 * emultempl/elf32.em: New file.
8037 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
8038 (NONPAGED_TEXT_START_ADDR): Likewise.
8039 (TEMPLATE_NAME): Define as elf32.
8040 (DATA_PLT): Define.
8041 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
8042 * scripttempl/elf.sc: Add placement for new dynamic sections.
8043 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
8044 outside of any section. Don't use ALIGN(8); just let one section
8045 VMA follow another. Put .dynbss in .bss. Don't mention debugging
8046 sections; they'll be handled correctly anyhow.
8047 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
8048
8049Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
8050
8051 * Makefile.in (install): Redirect output of ln to /dev/null.
8052
8053Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
8054
8055 * emultempl/hppaelf.em: Change all references of
8056 .hppa_linker_stubs to .PARISC.stubs.
8057 * scripttempl/hppaelf.sc: Likewise.
8058
8059Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8060
8061 * ldlang.c (print_output_section_statement): Change ``no attached
8062 output section'' message slightly.
8063 (lang_do_assignments): Don't recurse down if there is no real
8064 section.
8065
8066 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
8067 match corresponding change in emulation templates.
8068 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
8069 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
8070
8071Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8072
8073 * ldver.c (ldversion): Updated version number.
8074
8075 * cdtest-foo.cc: Use explicit "#pragma implementation".
8076 * cdtest-bar.cc: Renamed from cdtest-func.cc.
8077 * Makefile.in: References to cdtest-func.o changed to
8078 cdtest-bar.o.
8079
8080Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8081
8082 Don't create unnecessary output sections.
8083 * ldlang.c (out_bfd_get_section_by_name): Remove.
8084 (wild_section): Call bfd_get_section_by_name rather than
8085 our_bfd_get_section_by_name. Don't call wild_doit if there is no
8086 section.
8087 (lang_create_output_section_statements): Remove.
8088 (map_input_to_output_sections): For several cases, call init_os if
8089 it has not already been called.
8090 (lang_size_sections): If output section was not created, skip it.
8091 (lang_process): Don't call lan_create_output_section_statements.
8092 (lang_place_orphans): Skip files with just_syms_flags set to true.
8093 * ld.texinfo: Document change.
8094
8095Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8096
8097 * ldlang.c (wild_doit): Don't bother initializing the vma and
8098 section size. Don't special case SEC_SHARED_LIBRARY.
8099 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
8100 specially.
8101
8102Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
8103
8104 * config/go32.mh : New file for Xgo32X.
8105
8106Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8107
8108 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
8109 before calling einfo, since we are reporting an fopen failure.
8110 From jrs@world.std.com (Rick Sladkey).
8111
8112 * configure.in: Use "e" rather than "em_" as prefix for
8113 emulations.
8114
8115Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
8116
8117 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
8118 filename.
8119 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
8120 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
8121 Ditto.
8122 * Makefile.in: Changed all generated file names.
8123 (ldemul-list.h): Depend on Makefile, not config.status. Changed
8124 sed patterns to handle new filenames.
8125
8126 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
8127 * configure.in: Adjusted.
8128
8129Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8130
8131 * Makefile.in (install-info): Don't use "$<*", it doesn't always
8132 work. Instead, check build dir and $srcdir explicitly, and use
8133 `echo' to get all the filenames.
8134
8135 * configure.in (h8300h-*-hms): Changed ld_target name to
8136 cf-h8300h.
8137 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
8138 unique in 8.3.
8139
8140 * config/i960coff.mt: New file.
8141 * emulparams/gld960coff.sh: New file.
8142 * emultempl/gld960c.em: New file.
8143 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
8144 i960coff configuration.
8145 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
8146
8147 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
8148 code isn't included in FSF releases, and it can still be
8149 explicitly selected.
8150 (distclean): Remove site.bak and tmpdir.
8151 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
8152 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
8153
8154 Patches from Ralph Campbell:
8155 * config/mipsbsd.mh: New file.
8156 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
8157 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
8158 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
8159 instead of `aout'.
8160
8161 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
8162
8163Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8164
8165 * config/m68k.mt (EMUL): Set to m68kaout.
8166 * emulparams/m68kaout.sh: New file.
8167 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
8168 (em_m68kaout.c): New target.
8169
8170 * ldlang.c (lang_size_sections): If dot moves because of an
8171 assignment, don't try to insert a pad into the absolute output
8172 section, just change the address of the default memory region
8173 instead.
8174
8175 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
8176 cdtest-ur.out, and cdtest-ur.tmp.
8177
8178Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8179
8180 * scripttempl/sa29200.sc: Align all sections to four byte
8181 boundaries.
8182
8183Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
8184
8185 * Makefile.in, configure.in: Support for go32 coff.
8186 * config/i386-go32.mt: New file
8187 * emulparams/i386go32.sh: New file
8188 * scripttempl/i386go32.sc: New file
8189
8190Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
8191
8192 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
8193 Lynx-specific script templates.
8194 * configure.in (sparclite*-*-coff): Use coff-sparc.
8195 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
8196 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
8197 (ENTRY): Set to __main.
8198 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
8199 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
8200 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
8201
8202Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8203
8204 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
8205 byte boundary, in case the global constructors do not take up an
8206 even 16 bytes.
8207
8208 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8209 exist, get crtbegin based on gcc -print-libgcc-file-name.
8210 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8211
8212Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8213
8214 * ldlang.c (lang_size_sections): When no address is given for a
8215 section, align it according to its requirements.
8216
8217Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8218
8219 * Makefile.in (clean, distclean): Remove configdoc.texi.
8220
8221Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
8222
8223 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
8224
8225Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8226
8227 * ldlang.c (lang_size_sections): When relaxing, adjust the
8228 position of a padding statement, and adjust dot accordingly.
8229
8230Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
8231
8232 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
8233
8234Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8235
8236 * scripttempl/i386coff.sc: If relocating, don't put .init and
8237 .fini sections into .text; keep them separate.
8238 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
8239 exist, get crtbegin based on gcc -print-libgcc-file-name.
8240 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
8241
8242Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
8243
8244 * Makefile.in (check): Set TCL_LIBRARY for runtest.
8245
8246Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8247
8248 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
8249 manufacturer.
8250
8251 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
8252 if building a final executable.
8253
8254Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8255
8256 * ldmain.c (main): Check the return value of bfd_close.
8257
8258Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8259
8260 * scripttempl/alpha.sc: Clean up section alignment to ensure that
8261 sections never overlap when using -r.
8262
8263Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8264
8265 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
8266 changes: get_symtab_upper_bound renamed and returns long,
8267 bfd_canonicalize_symtab returns long, check for error indications.
8268
8269Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8270
8271 * ldlang.c (print_input_section): For section size, use
8272 _cooked_size if it is non-zero, size otherwise.
8273 (size_input_section): Likewise.
8274 (lang_do_assignments): Likewise (case lang_input_section_enum).
8275
8276Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8277
8278 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
8279 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
8280 (lang_add_input_file): Pass true to new_afile for add_to_list.
8281 (lookup_name): Remove force_load argument. Changed all callers.
8282 Pass false to new_afile for add_to_list. Split loading of symbols
8283 out into separate function.
8284 (load_symbols): New function split out of lookup_name. Don't load
8285 the symbols if they are already loaded.
8286 (open_input_bfds): For lang_input_statement_enum call load_symbols
8287 rather than lookup_name.
8288 (lang_process): Pass abs_output_section rather than NULL to
8289 lang_size_sections.
8290 (lang_startup): Set real field of first_file to true.
8291
8292Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8293
8294 * ldlang.c (had_relax): Removed.
8295 (relax_again): New static variable.
8296 (lang_size_sections): Change call to bfd_relax_section to
8297 correspond to BFD changes. Set relax_again appropriately.
8298 (lang_process): Remove #if 0 code. When relaxing, keep calling
8299 lang_do_assignments and lang_size_sections until relax_again
8300 becomes false.
8301
8302 * emultemp/gld960.em: Include libiberty.h
8303 (gld960_before_parse): Pass NULL as final argument to concat.
8304
8305Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8306
8307 * scripttempl/aout.sc: Force _end and __end to be aligned to a
8308 four byte boundary.
8309
8310 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
8311 building a bfd_data_link_order, rather than by setting the section
8312 contents immediately.
8313
8314Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8315
8316 Changes to make -Ur work again.
8317 * ldmain.c (add_to_set): Now takes reloc argument rather than
8318 bitsize. Check config.build_constructors here. If an new hash
8319 table entry is created, mark it as undefined.
8320 (constructor_callback): No longer takes bitsize argument. Pass
8321 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
8322 BFD backend supports it.
8323 (reloc_overflow): Handle a NULL abfd argument.
8324 (reloc_dangerous, unattached_reloc): Likewise.
8325 * ldctor.c: Include ldmain.h.
8326 (struct set_info): Change bitsize field to reloc.
8327 (ldctor_add_set_entry): Now takes reloc argument rather than
8328 bitsize. Don't bother to check config.build_constructors here.
8329 (ldctor_build_sets): Get the size from the reloc howto. If
8330 generating relocateable output, call lang_add_reloc rather than
8331 lang_add_data.
8332 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
8333 instead of bitsize.
8334 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
8335 (lang_reloc_statement_type): New structure.
8336 (lang_statement_union_type): Add reloc_statement field.
8337 (lang_add_reloc): Declare new function.
8338 * ldlang.c (lang_for_each_statement_worker): Handle
8339 lang_reloc_statement_enum.
8340 (map_input_to_output_sections, print_statement): Likewise.
8341 (lang_size_sections, lang_do_assignments): Likewise.
8342 (print_reloc_statement): New function.
8343 (lang_add_reloc): New function.
8344 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
8345
8346 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
8347 (cdtest-ur, cdtest-ur.out): New targets.
8348 (check-cdtest): Now also check that -Ur works correctly.
8349
8350 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
8351
8352Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8353
8354 * ldlang.c (lang_process): Move lang_common call before
8355 map_input_to_output_sections, to ensure that any alignment
8356 constraints set by common symbols are copied over to the output
8357 sections.
8358
8359Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8360
8361 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
8362 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
8363 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
8364 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
8365 needed for ELF.
8366
8367Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8368
8369 * config/i386bsd.mh: New file.
8370
8371Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8372
8373 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
8374 defined.
8375 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
8376 (DATA_START_SYMBOLS): Define _fdata.
8377
8378Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
8379
8380 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
8381
8382Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8383
8384 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
8385 works again. Attach some output symbols to the stub file bfd.
8386
8387 * emultempl/hppaelf.em: Include elf32-hppa.h.
8388 (file_chain): Add decl.
8389 (hppa_look_for_stubs_in_section): Delete decl.
8390 (hppaelf_finish): Reenable code. Do not pass symbols
8391 down to hppa_look_for_stubs_in_section.
8392
8393Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
8394
8395 * ldmain.c (write_map): Don't define. Removed all references.
8396 Just use map_file or map_filename instead.
8397 (add_archive_element): Use minfo to write map information, not
8398 info_msg.
8399 (constructor_callback): Use fprintf to write map information, not
8400 info_msg.
8401 * ldmain.h (write_map): Don't declare.
8402 * ldgram.y (mri_script_command): Removed reference to write_map.
8403 * ldlang.c (lang_one_common): Likewise.
8404 * lexsup.c (parse_args): Likewise.
8405
8406Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
8407
8408 * scripttempl/elf.sc: Force all sections to be aligned.
8409
8410 * ldgram.y (section): Reverse the order of memspec_opt and
8411 fill_opt to avoid an ambiguity when both are used.
8412 * ld.texinfo: Changed accordingly.
8413
8414 * ldgram.y: Move include of ldlex.h back with other includes.
8415 * ldlex.h (input_type): Don't initialize enum constants to
8416 particular values.
8417 * ldlex.l: Use a switch to return the right token based on
8418 input_type, rather than knowing that input_type has a value based
8419 on a token type.
8420
8421 * ldgram.y (dirlist_ptr): Removed; not used.
8422 * lexsup.c: Include ldver.h.
8423 * Makefile.in: Rebuilt dependencies.
8424
8425Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
8426
8427 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
8428 (ldlang_add_file): call it here instead.
8429
8430Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8431
8432 * ldgram.y: Include ldlex.h after %token decls, for byacc.
8433
8434Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8435
50bbae35 8436 * emultempl/hppaelf.em: First attempt to clean this file up.
252b5132
RH
8437 Add comments in several functions as to their purpose and
8438 how they function (or my current best guess). Clean up horrible
8439 spacing and indention that never should have been accepted in the
8440 first place. Add FIXMEs for issues which need to be resolved.
8441 Disable linker-stub generation until it gets fixed. This allows
8442 the linker to at least work on simple code for testing purposes.
8443
8444 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
8445 it via hppaelf_finish). Prototype moved into ldlang.h.
8446 (lang_process): Move problematic extra call to lang_size_sections
8447 into the PA ELF specific code.
8448 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
8449 lang_size_sections moved here.
8450
8451Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
8452
8453 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
8454 * config/ppc-elf32.mt: New file.
8455 * emulparams/elf32ppc.sh: New file.
8456 * emultempl/ppc.em: New file.
8457 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
8458 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
8459 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
8460
8461Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8462
8463 * lexsup.c (parse_args): Use symbolic numbers for long options.
8464 Fix misunderstanding in -Y and -call_shared et al.
8465
8466 Use getopt instead of lex and yacc to parse the command line.
8467
8468 * ld.texinfo (Options): Document changes to option syntax.
8469 * Makefile.in: Update dependencies.
8470 * ldver.c (help): Tweak dashes in usage message.
8471 * ldgram.y (%union): Remove unused members.
8472 Remove %tokens for command line options; add ones for input types.
8473 (command_line): Rules removed.
8474 (file): Instead of command line, recognize an
8475 input type indicator, then use the nonterminal for that type.
8476 (defsym_expr): New nonterminal from code formerly in command_line.
8477 * ldlex.h: Declare parser input type enum and variable.
8478 Don't declare parse_line.
8479 * ldlex.l: Remove unused variables. Make some used ones static
8480 and comment them.
8481 (COMMAND): Start state and its rules removed.
8482 At start of yylex, return input state token if at start of input.
8483 (lex_redirect): Don't need to set yyout.
8484 (ldlex_command): Function removed.
8485 * ldmain.c (main): Instead of calling parse_line, set up the
8486 redirections and call yyparse directly.
8487 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
8488 "command line".
8489 * lexsup.c: Remove #if 0'd code.
8490 (parse_line): Function removed.
8491 (parse_args): Rewrite to use getopt_long_only.
8492 (set_default_dirlist): New function from code formerly in
8493 ldgram.y:command_line.
8494 (set_section_start): New function.
8495 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
8496 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
8497 compiled-in link scripts in "{" and "}", as the grammar no longer
8498 wants them to be.
8499
8500Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
8501
8502 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
8503 require that it be in $(srcdir).
8504
8505Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
8506
8507 * ldlang.c (lang_size_sections): Only align section to alignment
8508 required by linker script, not to maximum alignment of input
8509 sections.
8510
8511 * ldlang.h (largest_section): Don't declare.
8512 * ldlang.c (largest_section): Don't define.
8513 (size_input_section): Don't set largest_section; not used.
8514
8515Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
8516
8517 * ldlang.c (new_afile): Pass NULL as last argument to concat.
8518
8519Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8520
8521 * ldlang.c, ldmain.c: Include libiberty.h.
8522
8523 * ldmisc.h (concat): Don't declare.
8524 * ldmisc.c (concat): Don't define; just use the one in libiberty.
8525
8526 * ld.h (as_output_section_statement): Removed; not used.
8527
8528Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8529
8530 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
8531 bfd_set_error and new error names.
8532
8533Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8534
8535 * ldwrite.c (build_link_order): If the cooked size of the section
8536 has been set, use it, for determining link_order size.
8537 (ldwrite): In the error message displayed if bfd_final_link fails,
8538 indicate that it was in fact the final link step that failed.
8539
8540 * ldlang.c (lang_size_sections): Clear bfd_error before calling
8541 bfd_relax_section, in case it returns false but doesn't flag an
8542 error. If an error is returned, indicate which one it is in the
8543 error message.
8544
8545 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
8546 it'll get picked up from $(srcdir) if appropriate.
8547
8548Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8549
8550 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
8551 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
8552
8553Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8554
8555 * ldlex.l (comment): Increment line number when newline is read.
8556
8557Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8558
8559 * ldlang.c (lookup_name): Take new argument, force_load. If true,
8560 reload the file even if it is already loaded.
8561 (wild): Call lookup_name with force_load argument of 0.
8562 (open_input_bfds): Call lookup_name with force_load argument of 1.
8563 (print_symbol): Remove declaration of non-existent function.
8564 (print_one_symbol): Return true rather than falling off end.
8565
8566Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8567
8568 * ldmain.c (main): Use %ld when printing long values.
8569
8570 * scripttempl/elf.sc: Move _edata after the .sdata section.
8571 Permit OTHER_BSS_SYMBOLS to be defined.
8572 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
8573
8574Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8575
8576 * Rename all "hppaosf" files to "hppaelf".
8577 * Change all "osf" references to "elf" in hppaelf files.
8578 * Makefile.in: Likewise.
8579 * configure.in: Likewise.
8580
8581Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8582
8583 * ldmain.c (main): Call xatexit, not atexit.
8584 Call xmalloc_set_program_name.
8585
8586 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
8587 bfd_errno.
8588
8589Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8590
8591 * emultempl/lnk960.em (append), emultempl/hppaosf.em
8592 (hppaosf_finish): Call xmalloc, not ldmalloc.
8593 * ldmain.c (preserve_output): Function removed.
8594 (main): Do it here instead.
8595
8596Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
8597
8598 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
8599 GNU C specific macros.
8600
8601 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
8602 call to LANG_FOR_EACH_INPUT_SECTION.
8603
8604Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8605
8606 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
8607 deleted; will use libiberty versions instead.
8608 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
8609 mri.c Makefile.in: Change callers.
8610
8611 * ldmisc.c (vfinfo): Remove cleanup code.
8612 * ldmain.c (remove_output): Put it here (new function).
8613 (preserve_output): New function.
8614 (main): Register remove_output and preserve_output with atexit.
8615 * ldmain.c ldgram.y: Call xexit instead of exit.
8616 * ldmisc.h: Declare xexit.
8617
8618Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
8619
8620 * Makefile.in: Lots of new H8/500 memory models.
8621
8622Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8623
8624 * ldlex.l: Removed duplicate rules.
8625 (yywrap): Provide default definition, needed with some versions of
8626 flex.
8627
8628Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8629
8630 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
8631 the archive filename too.
8632
8633 * ldlex.l: Add rule to catch invalid input characters instead of
8634 printing them. Include "ldmain.h" for program_name decl.
8635 (lex_warn_invalid): New function.
8636 * Makefile.in: Add dependency.
8637
8638Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8639
8640 * Makefile.in (check): Don't bother running any tests of
8641 cross-linker until the test suite no longer assumes native mode.
8642
8643Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8644
8645 * ldlang.c (print_one_symbol, print_input_section): Print
8646 global symbols in symbol table again.
8647
8648Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8649
8650 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
8651 exit successfully instead of complaining if no input files are
8652 given.
8653
8654Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
8655
8656 * Makefile.in: Format variable definitions consistently.
8657 (LD_PROG): Remove unnecessary variables from link command,
8658 change variable LOADLIBES to EXTRALIBS.
8659
8660 * ldmain.c (main): Compute and display total execution time.
8661 * ld.texinfo (-stats): Document the option.
8662
8663Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8664
8665 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
8666 arguments.
8667
8668 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
8669 after opening BFD.
8670
8671 * ldlang.c (relaxing): Removed global variable.
8672 (lang_size_sections): If the canonical symbols have not already
8673 been read in, read them in before relaxing.
8674 * ldlang.h (relaxing): Removed declaration.
8675
8676Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8677
8678 * ldlang.c (new_afile): Initialize loaded field to false.
8679 (lookup_name): If file was already loaded, don't call the
8680 add_symbols entry point again.
8681
8682Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8683
8684 * ld.texinfo: Clarify what -T option does.
8685
8686Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8687
8688 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
8689 for a.out.
8690
8691Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8692
8693 * ldmain.c (add_archive_element): If trace_files or
8694 trace_file_tries, print file name.
8695 * ldlang.c (lookup_name): Likewise.
8696 (ldlang_add_file): Don't put files on input_bfds list in reverse
8697 order.
8698
8699 * scripttempl/elf.sc: Correct typo.
8700
8701Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8702
8703 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
8704 their arguments optional, for compatibility with the old GNU ld.
8705
8706Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8707
8708 * scripttempl/elf.c: Define __bss_start before the .sbss section.
8709
8710Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8711
8712 * ldmain.c (add_to_set): Add bitsize argument.
8713 (constructor_callback): New function.
8714 (link_callbacks): Add constructor_callback.
8715 * ldctor.c (struct set_info): Add bitsize field.
8716 (ldctor_add_set_entry): Add bitsize argument.
8717 (ldctor_build_sets): Base the size of the elements of the set on
8718 the bitsize, rather than always using LONG.
8719 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
8720
8721 * ld.h (QUAD_SIZE): Define.
8722 * ldgram.y (QUAD): New token.
8723 (length): Handle it.
8724 * ldlex.l: Return QUAD.
8725 * lexsup.c (keywords): Add QUAD.
8726 * ldwrite.c (build_link_order): Handle QUAD.
8727 * ldlang.c (print_data_statement): Handle QUAD.
8728 (lang_size_sections): Likewise.
8729 (lang_do_assignments): Likewise.
8730 * ldexp.c (exp_print_token): Add QUAD to table.
8731 * ld.texinfo: Describe QUAD.
8732
8733 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
8734 since the Alpha doesn't use them.
8735
8736Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8737
8738 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
8739
8740Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
8741
8742 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
8743 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
8744
8745Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8746
8747 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
8748 needed for i386mach. (Should be a no-op on other systems.)
8749
8750 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
8751 (PAGE_SIZE): Don't define; not used.
8752
8753Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8754
8755 * ldgram.y (yyerror): Make argument const char *, and actually
8756 print it out rather than assuming it is a syntax error.
8757 * ldmisc.h: Change declaration of yyerror.
8758 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
8759
8760Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8761
8762 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
8763 exec header offset, since the exec header isn't loaded.
8764 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
8765
8766Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8767
8768 A major rewrite to move the bulk of the linker into BFD so that
8769 more efficient backend code can be written for specific object
8770 files.
8771 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
8772 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
8773 * ldctor.c, ldctor.h: Complete rewrite.
8774 * ldwrite.c, ldwrite.h: Complete rewrite.
8775 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
8776 link_info.strip instead. Changed all uses.
8777 (discard_locals_type, discard_locals): Removed. Use
8778 link_info.discard instead. Changed all uses.
8779 (ld_config_type): Removed relocateable_output field; use
8780 link_info.relocateable instead; changed all uses. Added stats
8781 field.
8782 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
8783 set_loader_symbol): Removed.
8784 * ldexp.h (node_class): Added etree_rel.
8785 (etree_type): Added rel field.
8786 * ldexp.c (exp_print_token): Bracketed table initialization.
8787 (exp_relop): New function.
8788 (fold_name): Use linker hash table rather than ldsym functions.
8789 (exp_fold_tree): Likewise. Also, handle etree_rel case.
8790 (exp_print_tree): Handle etree_rel.
8791 * ldgram.y (strip_symbols, discard_locals): Removed.
8792 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
8793 (REL): New token. Does not appear in grammar, but needed for
8794 expression code.
8795 (file): Don't call lang_final; it's called by main anyhow.
8796 * ldlex.l: Accept -stats and -no-keep-memory options.
8797 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
8798 * ldlang.c: Consistently use fill_type for fill argument.
8799 (lang_init_script_file, script_file): Removed.
8800 (create_object_symbols): Removed. Use
8801 link_info.create_object_symbols_section instead. Changed all
8802 uses.
8803 (lang_add_keepsyms_file): Removed.
8804 (lookup_name): Call bfd_link_add_symbols instead of
8805 ldmain_open_file_read_symbol.
8806 (wild): Don't iterate over script_file.
8807 (open_output): Create link hash table.
8808 (lang_place_undefineds): Rewrote.
8809 (lang_size_sections): Handle relaxing (doesn't work yet).
8810 (lang_relocate_globals): Removed.
8811 (lang_finish): Use link hash table rather than ldsym functions.
8812 (lang_common): Rewrote.
8813 (lang_one_common): New function.
8814 (ldlang_add_file): Add file to link_info.input_bfds list. Set
8815 usrdata.
8816 (create_symbol): Removed.
8817 (lang_process): Don't call lang_init_script_file. Call
8818 ldctor_build_sets rather than find_constructors. Don't call
8819 lang_relocate_globals.
8820 (lang_abs_symbol_at_beginning_of): Rewrote.
8821 (lang_abs_symbol_at_end_of): Rewrote.
8822 * ldmain.c (had_y): Removed.
8823 (lprefix, lprefix_len): Removed; use link_info fields instead.
8824 Changed all uses.
8825 (multiple_def_count, commons_pending, undefined_global_sym_count,
8826 total_symbols_seen, total_files_seen): Removed.
8827 (link_callbacks, link_info): New variables.
8828 (main): Initialize link_info. Don't call init_bfd_error_vector or
8829 ldsym_init. Don't set now unused variables. Handle -stats.
8830 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
8831 (add_ysym): Rewrote.
8832 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
8833 search_library, gnu960_check_format, decode_library_subfile,
8834 linear_library, symdef_library, clear_syms, subfile_wanted_p):
8835 Removed.
8836 (add_keepsyms_file, add_archive_element, multiple_definition,
8837 multiple_common, add_to_set, warning_callback, undefined_symbol,
8838 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
8839 New functions.
8840 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
8841 require symbols for %C; look them up instead.
8842 * emultempl/hppaosf.em: Pass link_info to
8843 hppa_look_for_stubs_in_section.
8844 * Makefile.in: Rebuilt dependencies.
8845 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
8846 relax.c.
8847 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
8848 relax.h.
8849 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
8850 ldlang.h and ldctor.h.
8851
8852 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
8853 declarations of free and malloc from flex output. Change malloc
8854 to ldmalloc in flex output.
8855
8856Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
8857
8858 * ldmain.c (lprefix): Change default from a char to a string
8859 with only one character.
8860 (lprefix_len): Set default to one.
8861
8862 * ldmain.h (lprefix_len): Declare.
8863
8864 * ldsym.c (write_file_locals): Use strncmp rather than a character
8865 comparison for lprefix.
8866
8867 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
8868 correctly.
8869
8870 * emultmpl/hppaosf.em: Include ldexp.h.
8871 (before_parse): Set lprefix and lprefix_len correctly.
8872
8873Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8874
8875 * ldlex.h: Don't declare yywrap if it is a macro.
8876 * ldlex.l: Include sysdep.h.
8877 * ldlang.c (lang_for_each_statement_worker,
8878 lang_for_each_statement): Forgot to use PARAMS.
8879
8880Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8881
8882 * Makefile.in: Added .PHONY targets where appropriate. Added some
8883 comments. Also:
8884 (gcclibdir, version): Removed unused variables.
8885 (DEP): New variable, set to mkdep.
8886 (ALL_CFLAGS): New variable. Used in .c.o target.
8887 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
8888 variables.
8889 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
8890 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
8891 mostly obsolete variables. Adjusted remaining uses.
8892 (DEF_EMUL): Removed variable.
8893 (ldmain.o): Handle undefined EMUL error correctly.
8894 (ldemul-list.h): Depend on config.status rather than Makefile.
8895 Create via temporary file.
8896 (ver960.c, roll, make): Removed obsolete targets.
8897 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
8898 dependencies.
8899 * dep-in.sed: New file, used when rebuilding dependencies.
8900
8901Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
8902
8903 Made many changes to eliminate gcc warnings. Made various
8904 cosmetic changes, declared various things in header files, removed
8905 various extern declarations from .c files. No substantive
8906 changes.
8907
8908 * ldlang.c (lang_process): Ifdef out final call to
8909 lang_size_sections again (reverting change of Nove 2), since it
8910 breaks the Sun4 linker.
8911
8912Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8913
8914 * configure.in (alpha-*-netware*): New target; use alpha.
8915
8916Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
8917
8918 * configure.in: Group targets by CPU. Merge some m68k target
8919 entries with different CPU specs that use the same ld_target
8920 values.
8921
8922 * configure.in: Add sparc*-*-coff.
8923 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
8924 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
8925 (em_coff_sparc.c): Add dependencies and build rules.
8926
8927 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
8928
8929Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8930
8931 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
8932 New tokens.
8933 (command_line_option): Accept and ignore them (for now).
8934 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
8935 where n is a number.
8936
8937Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8938
8939 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
8940 not in bfd_com_section, create the section in the BFD so that it
8941 can be placed in the right output section.
8942
8943Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8944
8945 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
8946 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
8947 (OTHER_READONLY_SECTIONS): Define for .reginfo.
8948 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
8949 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
8950 Move OTHER_READONLY_SECTIONS after all the other readonly
8951 sections. Don't use DATA_ADDR twice.
8952
8953 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
8954 p is in a common section, make sure the BFD has a section of that
8955 name.
8956
8957 * ldlang.c (lang_common): Add newline to error message.
8958
8959Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
8960
8961 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
8962 Lynx-specific script instead of m68kcoff.
8963 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
8964 (ENTRY): Define as __main.
8965 (TEXT_START_ADDR): Define as 0.
8966 (PAGE_SIZE): Define as 0x1000.
8967 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
8968 * scripttempl/m68klynx.sc: New file.
8969
8970Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8971
8972 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
8973 arguments rather than treating them as emulation names.
8974
8975Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
8976
8977 * configure.in: Support x86 unixware and netware plus generic netware.
8978
8979Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8980
8981 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
8982 Correct values (?).
8983
8984Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
8985
8986 * Makefile.in (distclean): Don't delete dvi or info files.
8987 (ld.info): Update dependency list.
8988 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
8989
8990Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8991
8992 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
8993 Set output_filename instead of creating a new node.
8994 (open_output): Don't set output_filename.
8995 (lang_final): Create the new node here.
8996 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
8997
8998Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
8999
50bbae35 9000 From Pete Hoogenboom (hoogen@cs.utah.edu):
252b5132
RH
9001
9002 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
9003 edata, _edata, end): Add definitions of these symbols.
9004 (__end): Remove definition of this symbol.
9005 (__data_start): Move definition of this symbol.
9006
9007 * emultempl/hppaosf.em: Various fixes and support for linker stub
9008 generation.
9009 (hppaosf_finish, hppaosf_search_for_padding_statements,
9010 hppaosf_create_output_section_statements): New functions in
9011 support of linker stub generation.
9012 (ld_hppaosf_emulation): Redefine to include new
9013 emulation-specific routines.
9014
9015 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
9016 Pass abs_output_section rather than NULL to avoid invalidating
9017 absolute symbols.
9018
9019Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9020
9021 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
9022 (em_i386mach.c): New rule.
9023 * configure.in (i[34]86-*-mach*): New case.
9024 * config/i386-mach.mt: New file.
9025 * emulparams/i386mach.sh: New file.
9026
9027Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9028
9029 * ld.h (flag_is_*): Removed macros.
9030 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
9031 Consistently check the BFD symbol flags directly, rather than
9032 using file_is_* macros.
9033
9034Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
9035
9036 * configure.in (sparc*-*-lynxos*): New target.
9037 * Makefile.in: Add rule for em_sparclynx.c.
9038 (ALL_EMULATIONS): Add Lynx emulations.
9039 * config/sparc-lynx.mt: New file.
9040 * emulparams/sparclynx.sh: New file.
9041 * scripttempl/sparccoff.sc: New file.
9042
9043Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9044
9045 * Makefile.in: Add dependency for $(EMULATION_OFILES).
9046
9047Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9048
9049 * relax.c (write_relax): Check return value of bfd_seclet_link.
9050
9051Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
9052
9053 * ldlang.c (delete_output_file_on_failure): New variable.
9054 (open_output): Set it after bfd open succeeds.
9055 * ldmisc.c (vfinfo): Test it.
9056
9057 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
9058
9059 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
9060 symbols.
9061
9062 * ldemul.c: Support was added to allow emulation-specific
9063 processing to occur. This support was added primarily for linker
9064 stub generation in the elf32-hppa gld.
9065 (ldemul_finish, ldemul_create_output_section_statements): New
9066 functions.
9067 * ldemul.h: Support was added to allow emulation-specific
9068 processing to occur. (As described above.) Added finish and
9069 create_output_section_statements fields to
9070 ld_emulation_xfer_struct structure.
9071 * ldlang.c: Add calls to emulation-specific routines.
9072 (lang_process): Add call to
9073 ldemul_create_output_section_statements function.
9074 (lang_process): Add call to a emulation-specific routine (and
9075 some processing after the call).
9076
9077Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9078
9079 * configure.in: mips*- instead of mips-, mips*el changes
9080
9081Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9082
9083 * configure.in (alpha-*-osf*): New target; use alpha.mt.
9084 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
9085 (em_alpha.c): New target; use alpha.sh and alpha.sc.
9086 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
9087 * config/alpha.mt: New file.
9088 * emulparams/alpha.sh: New file.
9089 * scripttempl/alpha.sc: New file.
9090
9091Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
9092
9093 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
9094 types of different sizes (eg: 64 and 32 bits), so coerce.
9095 * ld.h (ALIGN_N): Add warning about usage.
9096
9097Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9098
9099 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
9100 which we already have a definition, rather than checking in
9101 several different places whether the symbol is weak.
9102
9103Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9104
9105 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
9106 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
9107 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
9108 expanded within them.
9109 * config/mipsb-elf32.mt: New file.
9110 * emulparams/elf32mipb.sh: New file.
9111 * Makefile.in (em_elf32mipb.c): New target.
9112
9113Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
9114
9115 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
9116 lang_input_file_is_search_file_enum so objects brought in using
9117 INPUT() do a path lookup.
9118
9119Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
9120
9121 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
9122 instead of {i386,m68k}-coff.
9123 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
9124 * config/i386-lynx.mt: New file.
9125 * config/m68k-lynx.mt: New file.
9126 * emulparams/i386lynx.sh: New file.
9127 * emulparams/m68klynx.sh: New file.
9128
9129 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
9130 but defaulting to _start.
9131
9132 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
9133 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
9134 LynxOS libc.
9135
9136Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
9137
9138 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
9139 HOSTING_LIBS for testing.
9140
9141Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9142
9143 Finish up support for i386-sysv4 (without shared libraries):
9144 * ld.h (flag_is_weak): Define.
9145 * ldlang.c (print_symbol): Mention whether symbol is weak.
9146 (print_input_section): Print weak symbols as globals.
9147 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
9148 (enter_global_ref): Do not warn if a weak symbol redefines a
9149 global symbol. Do not let a weak symbol redefine a common symbol.
9150 (enter_file_symbols): Treat weak symbols as global symbols.
9151 (subfile_wanted_p): Do not pull in an object file from a archive
9152 just to resolve an undefined weak symbol.
9153 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
9154 error; the error might be that malloc has run out of space.
9155 * ldsym.c (write_file_locals): Treat weak symbols as global.
9156 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
9157 use i386-elf.
9158 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
9159 * config/i386-elf.mt: New file; set EMUL to elf_i386.
9160 * emulparams/elf_i386.sh: New file.
9161 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
9162 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
9163 (ALL_EMULATIONS): Add em_elf_i386.o.
9164 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
9165 (em_elf_i386.c): New target, like other em_*.c targets.
9166 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
9167 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
9168 nonempty, and configured for native, add it to LIB_PATH.
9169
9170Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
9171
9172 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
9173 Added statements to pass stab and stabstr sections through and
9174 mark them as NOLOAD, which makes GDB happier.
9175
9176Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
9177
9178 * configure.in: Accept m68k-lynx-lynxos config.
9179
9180 * Makefile.in: Use $(SHELL) to run genscripts.sh.
9181
9182Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
9183
9184 * config/coff-h8300.mt: Add EMUL=h8300h.
9185
9186 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
9187
9188Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9189
9190 * Makefile.in: Changed CXX back to g++.
9191
9192Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9193
9194 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
9195
9196Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9197
9198 * Makefile.in (TAGS): Use shell wildcards.
9199
9200Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
9201
9202 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
9203
9204Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9205
9206 * ld.texinfo: re-enable included config file; conditionalize doc
9207 for -oformat to interact properly with SingleFormat doc config
9208 var; rename @up/@down to @raisesections/@lowersections.
9209
9210Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9211
9212 * configure.in: recognize m88110.
9213
9214Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9215
9216 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
9217 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
9218 ELF emulation is "elf32-hppa" not "elf-big".
9219 (hppaosf_before_parse): Remove unneeded processing of environment
9220 variables.
9221 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
9222 .text segment of output file.
9223 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
9224
9225Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9226
9227 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
9228 longer in bfd.h.
9229
9230 * ldlang.c, ld.h: updated copyright.
9231
9232Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9233
9234 * ldlang.c (open_output, lang_check): Check return value of
9235 bfd_set_arch_mach.
9236
9237Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
9238
9239 * scripttempl/h8500.sc: Start all sections in a different segment.
9240 * scripttempl/z8ksim.sc: Handle constructors
9241
9242Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
9243
50bbae35
AM
9244 * Makefile.in: revert earlier changes back to execute runtest
9245 with make check. cdtest and bootstrap now function as they
252b5132
RH
9246 did within the Makefile.
9247
9248Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9249
9250 * Makefile.in: Update dependencies.
9251
9252 * configure.in: Set EMULATION_OFILES in Makefile based on
9253 --with-targets option.
9254
9255Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
9256
9257 * Makefile.in: check targets reimplemented to old way.
9258
9259Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
9260
9261 * config/i386v.mh, config/irix4.mh: Use gcc
9262 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
9263 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
9264 bfd/configure.host change.
9265
9266Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9267
9268 * scripttempl/elf.sc: Handle .line and .debug* sections.
9269
9270 * ldlex.l: Use bfd_scan_vma, not strtoul.
9271
9272Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9273
9274 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
9275 Remove inital caps in some error messages, change "can't" to
9276 "cannot", add missing colons.
9277 * ldmisc.c (vfinfo): Print "%%" as a single %.
9278 For '%' followed by unrecognized character, print them both
9279 verbatim instead of expecting a char * arg.
9280 For '%C', don't put the function name in parens.
9281
9282 * ldexp.c (invalid): Pass "%%", not "% ".
9283
9284Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9285
9286 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
9287 (BSS_VAR): Removed; now always define _fbss.
9288 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
9289 Removed.
9290
9291Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9292
9293 * configure.in: z8k-coff is the same as z8k-sim
9294
9295Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
9296
9297 * testsuite/lib/ld.exp: new file
9298 * testsuite/config/unix-ld.exp: new file
9299 * testsuite/ld.bootstrap/bootstrap.exp: new file
9300 * Makefile.in: add dejagnu support for make check
9301
9302Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9303
9304 * ldlex.l (comment): Add missing newline in message.
9305 * ldindr.c (add_indirect): Ditto.
9306 * ldexp.c (exp_fold_tree): Ditto.
9307
9308Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9309
9310 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
9311 into externs.
9312
9313 * ldmisc.c (multiple_warn): New function.
9314 * ldmisc.h: Declare it.
9315 * ldmain.c (enter_global_ref): Call it.
9316 * ld.h (ld_config_type): Add warn_common.
9317 * ldlex.l, ldgram.y: Set it with -warn-common option.
9318 * ldver.c (help): Document it.
9319
9320Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9321
9322 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
9323 target-specific sections, and for changing data section vma.
9324
9325Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9326
9327 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
9328 terminals, for Solaris.
9329 (dirlist_ptr): New static variable.
9330 (command_line_option): Accept new options.
9331
9332 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
9333 "-YP,...".
9334
9335 * config/sun4sol2.mt: Pass emulation name without ".sh".
9336
9337 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
9338 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
9339
9340Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9341
9342 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
9343 .dtors, .data1, .rodata1 sections, instead of combining them into
9344 other sections. For `-r', set all section start addresses to
9345 zero.
9346
9347 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
9348 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
9349 (MAXPAGESIZE): Renamed from PAGE_SIZE.
9350
9351Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9352
9353 * genscripts.sh: If this is the default emulation, set
9354 COMPILE_IN.
9355 * emultempl/*.em: Use it to determine whether to compile in the
9356 scripts.
9357
9358 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
9359 genscripts.sh. Pass the current emulation name without ".sh" on
9360 the end.
9361 * genscripts.sh: Take an default emulation arg.
9362 Use the current emulation name as EMULATION_NAME.
9363 Make default lib path for cross-compiling ':', not null.
9364 * emulparams/*.sh: Don't set EMULATION_NAME.
9365 * ldemul.c (ldemul_get_script): Take isfile arg.
9366 Pass it to emulation's get_script function.
9367 * ldemul.h: Adjust get_script prototypes.
9368 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
9369 No longer static.
9370 * ldfile.h: Declare it.
9371 * ldgram.y: Accept a script on the command line again,
9372 for parsing compiled-in scripts.
9373 * ldmain.c (main): If ld script is a file, parse it as a -T
9374 option, otherwise parse it directly.
9375 * emultempl/*.em (*get_script): Return the scripts themselves if
9376 this is the default emulation; otherwise return their file names.
9377 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
9378 generic.em.
9379 * emulparams/m88kbcs.sh: Use it.
9380
9381 * ld.h (ld_config_type::unix_relocate): Remove unused element.
9382
9383Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9384
9385 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
9386 there's no change log entry yet, tsk tsk) from the list of
9387 emulations compiled in until Mark gets around to checking in
9388 emulparams/i386linux.sh.
9389 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
9390 changed, this file gets updated.
9391
9392Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
9393
9394 * ldgram.y (OPTION_Lfile): New token.
9395 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
9396 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
9397
9398Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
9399
9400 * configure.in: h8/300h support needs own .mt file.
9401 config/coff-h8300h.mt: New file.
9402
9403Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9404
9405 * ldmain.c: Don't include sys/stat.h; it already got included
9406 somewhere along the way.
9407
9408Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
9409
9410 * Makefile.in: Add h8300h support.
9411 emulparams/h8300h.sh: New file.
9412 scripttempl/h8300h.sc: New file.
9413
9414Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9415
9416 * ldfile.c (ldfile_open_file): In error message, use the name the
9417 user gave (e.g., "-lc"), rather than the base file name.
9418
9419 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
9420
9421 * ldmain.[ch]: Remove initial Q_ from function names.
9422 * ldexp.c, ldindr.c, ldlang.c: Change callers.
9423
9424 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
9425
9426 * ldlang.c (lang_process): Move loading of default script from
9427 here to main. Add a "/" to start of script name to prevent
9428 finding it in "." first.
9429
9430 * ldmain.c (set_scripts_dir): Don't look in "." first.
9431
9432 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
9433 option_longmap.
9434
9435Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
9436
9437 * Makefile.in (em_m88kbcs.c): Correct dependency.
9438 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
9439 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
9440 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
9441
9442Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9443
9444 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
9445 main.c (main): Print the errno string in the error message.
9446
9447Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
9448
9449 * configure.in: Accept h8300h for target cpu.
9450
9451 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
9452 present (demangle is smart enough to know whether to do it or not).
9453
9454Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9455
9456 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
9457 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
9458
9459 * ldlang.c (lang_process): Use sizeof instead of magic constant.
9460
9461 * ldmain.c (get_emulation, check_for_scripts_dir,
9462 set_scripts_dir): New functions.
9463 (main): Call them.
9464
9465Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9466
9467 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
9468 Create symbol "end" instead of "__end". Comment out some parts
9469 that may not be needed (yet) for elf.
9470
9471 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
9472
9473Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9474
9475 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
9476
9477 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
9478 when no prototype is being supplied.
9479 (ldmalloc, ldrealloc): Size argument is now size_t.
9480
9481 * ldmisc.c (finfo): New function, accepts FILE* argument.
9482 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
9483 without leading zeros.
9484 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
9485 bfd_vma value, instead of fprintf(%x) which won't hold a long long
9486 value.
9487 (concat, buystring): String lengths are size_t.
9488 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
9489
9490 * ldlang.c (new_statement): Size argument is now size_t. Added
9491 forward declaration with prototype.
9492
9493Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9494
9495 * ldgram.y (OPTION_v): Don't turn on verbose output.
9496
9497Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9498
9499 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
9500 bfd.h instead.
9501
9502Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
9503
9504 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
9505 collect2 doesn't look for gld any more anyhow.
9506
9507Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
9508
9509 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
9510 now have a non NULL srefs_chain.
9511
9512 * config/hp300hpux.mt: Use emulation hp3hpux rather than
9513 hp300hpux, since the latter does not exist.
9514
9515Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9516
9517 * genscripts.sh: Put the scripts in the ldscripts directory, not
9518 emulations.
9519 * configure.in (ldscripts): Make, instead of emulations.
9520 * Makefile.in (scriptdir): Take off the "ld" part.
9521 (install, clean, distclean): Use ldscripts, not emulations.
9522 In tests, don't pass -Lemulations.
9523 Don't pass tooldir/lib to genscripts.sh.
9524 * genscripts.sh: Don't take tooldir/lib arg.
9525 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
9526 default script file.
9527
9528Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
9529
9530 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
9531
9532Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
9533
9534 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
9535
9536Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
9537
9538 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
9539 run in parallel without colliding on yacc's static file names.
9540 Without the stub rule, make will try to start two yacc's
9541 concurrently which fails because of yacc's static file names.
9542
9543Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
9544
9545 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
9546 symbols.
9547
9548Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9549
9550 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
9551 different from libdir.
9552
9553 * Makefile.in (scriptdir): Base on tooldir, not datadir.
9554
9555Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9556
9557 * ldver.c (help): New function.
9558 * ldver.h: Declare it.
9559 * ldlex.l, ldgram.y: Recognize new options --help and --version.
9560
9561Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
9562
9563 * Makefile.in (INCLUDES): Don't need ../include any more.
9564
9565Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9566
9567 * ldlex.l, ldgram.y: Support new -oformat option.
9568 Remove attempt at supporting script fragments on the command line.
9569 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
9570 * mri.c (mri_format), ldgram.y: Change callers.
9571 * ldlang.h: Change prototype.
9572
9573Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
9574
9575 * Makefile.in: canonicalize install.sh; for use within
9576 this directory (and subdirs)
9577
9578Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9579
9580 * ldgram.y: Tweak grammar to make reporting of invalid options work.
9581
9582 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
9583 and .cc.o rule.
9584
9585Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9586
9587 * ldfile.c (ldfile_open_command): Don't try .ld extension.
9588 It wasn't documented (or likely used) and wastes time.
9589 (try_open): If EXTEN is empty, don't try it.
9590
9591 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
9592 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
9593 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
9594 with normal function declarations.
9595
9596 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
9597 Move *.sc-sh to scripttempl/*.sc.
9598 * {emultempl,emulparams,scripttempl}/README: New files.
9599 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
9600 removed, replaced with generic.em.
9601 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
9602 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
9603
9604 * *.em (*_get_script): Return script name instead of script contents.
9605 * ldlang.c (lang_process): Change caller.
9606
9607 * ldlex.l, ldgram.y: Recognize -m option.
9608 Check for input files after *all* options in grammar.
9609 * ldmain.c (main): Check for -m options. Add default directory
9610 for -m.
9611
9612 * mkscript.c: File removed.
9613 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
9614 to add to the default LIB_PATH.
9615 Look for input files in the new subdirectories.
9616 Create the scripts in emulations subdirectory and don't filter
9617 them through mkscript.
9618 * configure.in: Make the emulations subdirectory.
9619
9620 * Makefile.in: Account for all of the above changes.
9621 Remove unused .SUFFIXES. Get libgcc.a path with gcc
9622 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
9623 Put CFLAGS last in the compilation rules.
9624 Add -I../bfd to INCLUDES so sysdep.h is found.
9625
9626Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9627
9628 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
9629
9630 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
9631 dependent on RELOCATING, not RELOCATION.
9632 * hp3hpux.sh (SHLIB_PATH): Define it.
9633
9634Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9635
9636 * ldfile.c (try_open): If opening without the extension fails,
9637 try with the extension even if -v or -V was given.
9638 had_script is imported (from ldgram.y), not exported.
9639
9640Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
9641
9642 * Makefile.in: remove parentdir support, use INSTALL_XFORM
9643
9644Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
9645
9646 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
9647 * ldgram.y (statement_list_opt): New nonterminal, either empty or
9648 statement_list.
9649 (section): Use statement_list_opt, not statement_list.
9650 * m68kcoff.sc-sh: Gather constructors and destructors and define
9651 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
9652 * sa29200.sc-sh: Gather constructors and destructors and define
9653 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
9654
9655Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
9656
9657 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
9658 * configure.in: No longer need to configure to get sysdep.h.
9659
9660Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9661
9662 * Makefile.in: remove install:all and install-info:info
9663 dependencies (these cause some spurious rebuilds at 'make install'
50bbae35 9664 time)
252b5132
RH
9665
9666Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
9667
9668 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
9669 (mips-idt-ecoff*): Added trailing '*'.
9670 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
9671 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
9672 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
9673
9674 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
9675 incorrect definitions.
9676
9677Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
9678
9679 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
9680 symbols, unless stripping.
9681
9682Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
9683
9684 * Makefile.in: configure looks for ####, so remove lines with many
9685 '#' characters.
9686 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
9687 and HOSTING_LIBS correctly so that ``make check'' will work.
9688
9689Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
9690
9691 * mips.sc-sh: Define _etext, _edata, and _end, in addition
9692 to etext, edata, and end. Needed for IRIX 4.0.5F.
9693 Patch from mwp@iconix.oz.au (Michael Paddon).
9694
9695 * Version 2.2.1 released.
9696
9697Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9698
9699 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
9700 * mipsbsd.sh (EMULATION_NAME): Use new file name.
9701
9702Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9703
9704 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
9705 properly right now.
9706
9707 * Version 2.2 released.
9708
9709Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9710
9711 * ldver.c (ldversion): Bump version number to 2.2.
9712
9713Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
9714
9715 * NEWS: New file.
9716
9717Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
9718
9719 * mips.sc-sh: Don't define BSS_VAR unless relocating.
9720
9721Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
9722
9723 * Makefile.in (mkscript.o, mkscript): Build mkscript via
9724 mkscript.o, rather than directly from mkscript.c.
9725
9726Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9727
9728 * configure.in: Look for ${target_makefile_frag} relative to
9729 ${srcdir}, not relative to build directory.
9730
9731 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
9732 * configure.in: Recognize hppa*-hp-osf.
9733 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
9734 (em_hppaosf.c): Build it.
9735 * config/hppaosf.mh, hppaosf.mt: New files.
9736
9737 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
9738 some system header files. All uses changed.
9739
9740 * configure.in: Recognize i386-aix configurations as i386-coff
9741 targets.
9742
9743 * configure.in: Recognize m68*-*-hpux.
9744 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
9745 the value of STACKZERO.
9746 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
9747 (em_hp3hpux.c): Build it.
9748 * hp3hpux.sh, config/hp300hpux.mt: New files.
9749
9750Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
9751
9752 * mips.sc-sh: Put constructors in the .data section.
9753 * Makefile.in (cdtest): Added dependency on ld.new.
9754
9755Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
9756
9757 * Makefile.in: Change definition of $(tooldir) to match FSF.
9758 * vax.sh, config/vax.mt, configure.in, Makefile.in:
9759 Support VAX Ultrix and BSD.
9760
9761Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9762
9763 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
9764
9765Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
9766
9767 * ldlang.h (struct memory_region): Change `length' and
9768 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
9769 * ldlang.c, mri.c: Corresponding changes, plus lint.
9770
9771Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
9772
9773 * configure.in: For all i386 targets, accept i486 as well.
9774
9775Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
9776
9777 * ldlang.c (wild_doit): Preserve all flags for a
9778 SEC_SHARED_LIBRARY section.
9779 (size_input_section): Consider any SEC_HAS_CONTENTS section when
9780 computing largest_section.
9781
9782Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
9783
9784 * ldlang.c (lang_output_section_statement_lookup): Initialize all
9785 fields of newly created structure.
9786
9787Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
9788
9789 * ldmain.c (g_switch_value): New variable.
9790 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
9791 (command_line_option): Accept -G and set g_switch_value.
9792 * ldlex.l (COMMAND): Accept -G.
9793 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
9794
9795Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9796
9797 Support for linking and loading at different places:
9798
9799 * ldlex.l: Add "AT" keyword.
9800 * ldgram.y: Cleanup, and parse AT.
9801 * ldlang.c (print_output_section_statement): Print output address
9802 of section in map. (lang_size_sections): Fill sections' lma with
9803 load address.
9804 * ldlang.h (lang_output_section_statement_type): Add load_base
9805 information.
9806
9807 * ldindr.c (add_indirect): Keep more information in the alias
9808 symbol chain.
9809 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
9810 attribute from an input section.
9811 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
9812 default. (Q_enter_file_symbos): Indirect symbols now are known by
9813 their section, not a special symbol flag.
9814 * ldsym.c (write_file_locals): Indirect symbols aren't local.
9815 (write_file_globals): Write the mapping for an indirect symbol.
9816 * relax.c (build_it): When forced to write a NEVER_LOAD section,
9817 fill it with zeros.
9818
9819Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
9820
9821 * ld.texinfo: changes for q1
9822
9823Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9824
9825 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
9826
9827Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9828
9829 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
9830
9831Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
9832
9833 * mips.sc-sh: Added variables which may be overridden by a
9834 specific emulation.
9835 * mipsidt.sh: New file; emulation for IDT MIPS board.
9836 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
9837 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
9838 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
9839 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
9840
9841Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9842
9843 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
9844 ralphc@pyramid.com.
9845 * i386bsd.sh, config/i386bsd.mt: New files.
9846 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
9847
9848Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
9849
9850 * mri.c: Add extern declaration of strdup.
9851 * ldsym.c (KEEP macro): Add spaces around '=' for the
9852 sake of old (e.g. PCC) compilers.
9853
9854Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
9855
9856 * ldver.c: Bump to version 2.1.
9857
9858Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9859
9860 * ldgram.y: allow section types without address expressions.
9861 * ldlang.c (lang_relocate_globals): avoid possible hang with
9862 undefined but unreferenced symbols.
9863 * relax.c (relax_section): don't complain if the script file isn't
9864 relaxable but -relax is set
9865
9866Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9867
9868 * configure.in: go32 is the 3rd part of the triple, not the 2nd
9869
9870Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
9871
9872 * mipsbig.sh: New file. Big endian MIPS emulation.
9873 * config/mips-big.mt: New file. Use mipsbig emulation.
9874 * configure.in (mips-sgi-irix*): Use target mips-big.
9875 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
9876 (em_mipsbig.c): New target. Uses mipsbig.sh.
9877
9878Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
9879
9880 * mips.sc-sh: Put .scommon sections into .sbss section.
9881
9882 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
9883 rather than always putting them in bfd_com_section.
9884 * ldlang.c (lang_common): If a common symbol is not in
9885 bfd_com_section, put in a section of the same name, rather than
9886 always putting it in section COMMON.
9887
9888Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
9889
9890 * ldmain.c (subfile_wanted_p): If we already have a common
9891 definition of a symbol, don't necessarily pull in an object file
9892 that provides a non-common definition.
9893
9894 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
9895 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
9896 linker.
9897 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
9898 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
9899
9900Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
9901
9902 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
9903 the link to it.
9904
9905Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
9906
9907 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
9908 checking for equality to bfd_com_section.
9909
9910Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
9911
9912 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
9913 targets, linker script.
9914 * mipslit.sh: New file. Little endian MIPS emulation.
9915 * config/mips-lit.mt: New file. Use mipslit emulation.
9916 * configure.in (mips-dec-ultrix*): Use target mips-lit.
9917 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
9918 (em_mipslit.c): New target. Uses mipslit.sh.
9919
9920Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
9921
9922 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
9923 $(tooldir)/bin/gld, so that gcc can find it with or without
9924 collect2.
9925
9926Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9927
9928 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
9929 write_norel. All linking is now done via write_relax. Call
9930 ldsym_write before calling write_relax.
9931 * relax.c: Added copyright.
9932 (write_relax): Renamed from write_relaxnorel. Added relocateable
9933 argument. seclet_dump renamed to bfd_seclet_link.
9934 * relax.h: Added copyright.
9935
9936Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9937
9938 * ldmain.c (decode_library_subfile): Patch from
9939 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
9940
9941Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9942
9943 * config/vxworks960.mt renamed to config/i960.mt
9944
9945 * configure.in: sparc-aout emulates a sun4, as does
9946 sparc*-vxworks, i960-nindy uses gld960 emulation
9947
9948Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9949
9950 Fix support for NOLOAD, add INCLUDE
9951 * ldfile.c (ldfile_open_command_file): pass file name to
9952 lex_push_file.
9953 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
9954 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
9955 attribute.
9956
9957Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9958
9959 * Makefile.in, config.h: no more default emulation. Make the lack
9960 of emulation a compile time error
9961
9962Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9963
9964 * configure.in: recognise all sparclite variants, not just 'sparclite'
9965
9966Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
9967
9968 * m68kcoff.sc-sh: define _end as well as end, for consistency with
9969 aout.sc-sh.
9970
9971 * configure.in: accept *-ericsson-ose for any m68k CPU.
9972
9973 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
9974 for each output section.
9975
9976Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
9977
9978 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
9979 macro bfd_asymbol_bfd as appropriate.
9980 * Makefile.in: Un-duplicate ldlex.c dependency.
9981 * condigure.in: Replace my_host case table by sourcing
9982 ../bfd/configure.host. Allow std-host as the default.
9983 * ldmisc.c: Change logic for C++ name demangling: There is
9984 no initial '_' to remove from stab-derived function names.
9985
9986Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9987
9988 * ldlang.c (lang_init_script_file): don't attach the output file
9989 sections to the script file.
9990
9991Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9992 * ldlang.c (wild): run expansion loop over command line bfd too.
9993 (lang_ini_script_file): initialize more parts of the command line
9994 bfd.
9995 * ldlex.l: fix DEFINED start states.
9996
9997Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9998 -y support
9999 * ld.texinfo: new doc.
10000 * ldgram.y, ldlex.l: understand -y<symbol>
10001 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
10002 print info. (add_ysym): new function.
10003 * ldsym.h: (ldsym_type): new define SYM_Y.
10004
10005Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
10006
10007 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
10008 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
10009 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
10010 macros with PARAMS. Recreational cleanup. Update copyrights.
10011
10012Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10013
10014 * Makefile.in: pass down the bfd source directory for includes
10015
10016Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
10017
10018 * ldlang.c (lang_size_sections): don't change size and address for
10019 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
10020 sections.
10021
10022Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10023
10024 * relax.c (build_it): re-enable the processing of data_statements
10025 in scripts, makes counted contructor lists work again.
10026
10027Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
10028
10029 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
10030
10031Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
10032
10033 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
10034 and end.
10035
10036Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
10037
10038 * Support for i386-sysv.
10039 configure.in: check for i386-*-sysv* and i386-*-sco*.
10040 i386coff.sc-sh: rewrote to support SVR3 by default.
10041 ldctor.c (find_constructors): preserve stat_ptr.
10042 ldlang.c (wild_doit): initialize vma and size of new output
10043 section to corresponding input section. This is required for
10044 shared library support.
10045 (lang_size_sections): don't modify vma and size of sections which
10046 are never loaded (for shared libraries).
10047 ldwrite.c (copy_and_relocate): copy the contents of any section
10048 which has contents, not just sections which are loaded (for shared
10049 libraries).
10050
10051Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10052
10053 * ldlang.c (size_input_section): count the sizes of all sections
50bbae35 10054 we allocate.
252b5132
RH
10055
10056Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10057
10058 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
10059 to demangle symbols better
10060
10061Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
10062
10063 * ldlang.c (lang_finish): don't warn if -e start symbol does not
10064 exist when linking with -r.
10065
10066Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
10067
10068 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
10069 .bss segment.
10070
10071Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10072
10073 * ldmain.c (linear_library): don't even think about processing
10074 an object file if it's already been done
10075
10076Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10077
10078 * configure.in: the hp9000/300 config file is now hp300
10079
10080Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10081
10082 * config/z8ksim.mt: new file
10083
10084Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
10085
10086 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
10087 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
10088
10089 * ld.h (strip_symbols_type): Add value STRIP_SOME.
10090 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
10091 * ldlang.c (lang_add_keepsyms_file): New function.
10092 * ldlex.l: Handle "-retain-symbols-file".
10093 * ldsym.c (keepsyms_file, kept_syms): New vars.
10094 (process_keepsyms): New functihon; reads file, marks symbols for
10095 saving.
10096 (write_file_locals): File symbols should always be kept.
10097 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
10098 and "-s". Process retain-symbols file before setting symtab.
10099 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
10100 (keepsyms_file, kept_syms): Declare them.
10101
10102 * ldmain.c (main): Non-fatal errors should still cause non-zero
10103 exit status even with -r.
10104
10105Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10106
10107 Added initial support for the z8k
10108 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
10109 * configure.in, Makefile.in: modified to reflect above
10110
10111 * ldlang.c (lang_check): when linking conflicting architectures,
10112 make the output file reflect at least one of the bad inputs.
10113
10114Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
10115
10116 * Makefile.in (install): if $(tooldir) exists, install ld in
10117 $(tooldir)/bin.
10118
10119Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10120
10121 * Makefile.in, configure.in: modified to support i386-coff
10122 * i386coff.sh: new file
10123
10124Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
10125
10126 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
10127 added m68k-coff emulation mode, stolen from a29k emulation.
10128 Almost certainly wrong, but perhaps better than sun3.
10129
10130Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
10131
10132 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
10133 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
10134 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
10135 This is one character shorter, and lets people build on
10136 SVR3 system. (ld__h8300xray.[co] was the killer there;
10137 h8300xray.sc-sh is also overlong, but seems harmless.)
10138 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
10139 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
10140 * configure.in: Add host isc.
10141
10142 * ldver.c: Call it version 2.0.
10143
10144Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
10145
10146 * ldver.c: Bump to version 0.98.
10147 * TODO: New file.
10148
10149 * Makefile.in: Added mostlyclean, distclean, realclean rules.
10150
10151Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
10152
10153 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
10154 * ldlex.l: Moved comment() to end, since some compilers
10155 otherwise have problems with input() used before it is defined.
10156
10157Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10158
10159 * configure.in: added Solaris 2 and Irix 4 host support.
10160
10161Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10162
10163 * Makefile.in: remove -S flag from the FLEX definition
10164
10165 * configure.in: rewrote, using new style case statement. use
10166 m68k.mt for m68k-aout systems
10167
10168Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
10169
10170 * Makefile.in: map "ld" through program_transform_name when
10171 installing.
10172
10173Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
10174
10175 * cplus-dem.c: Removed. Use the version in libiberty now.
10176 * ldmisc.c: Use new libiberty version of cplus_demangle().
10177
10178Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
10179
10180 * gld960.em (gld960_choose_target): default to little endian, not
10181 big endian.
10182
10183Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10184
10185 * ldlang.c (lang_process): don't pass null pointers when
10186 abs_output_section is what is required.
10187 * ldwrite.c (ldwrite): use malloc to allocate the largest space
10188 used, and pass that down.
10189 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
10190 than alloca.
10191
10192Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
10193
10194 * configure.in, config/ose68.mt: renamed OSE to ose.
10195
10196Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
10197
10198 * ldsym.c (write_file_locals): Reorder check for common or
10199 undefined symbols so that it works.
10200
10201Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
10202
10203 * configure.in: accept all m68K family members.
10204
10205 * Makefile.in: always create installation directories.
10206
10207Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10208
10209 * ldlex.l: now parses comment correctly, added ~ to acceptable
10210 chars in filenames
10211
10212 * ldexp.c (exp_unop): pass down abs_output_section - now can have
10213 unary -ve constants.
10214
10215 * ldlang.c (lang_finish): warn when an entry symbol supplied on
10216 the command line can't be found.
10217
10218Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10219
10220 * ldlang.h: add new field "loadable" to output_section_statement.
10221 * ldlang.c (lang_output_section_statement_lookup): initilize new
10222 field. (wild_doit): if new field is not set, then stop output
10223 section from being loadable.
10224 (lang_enter_output_section_statement): set the field from the
10225 NOLOAD keyword
10226 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
10227 * h8300hms.sc-sh, h8300hms.em: get -r right.
10228
10229Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
10230
10231 * ldint.texinfo: New internals manual (beginnings thereof).
10232 * PORTING: Removed, merged into ldint.texinfo.
10233
10234Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
10235
10236 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
10237 cdtest.exp: A test program (copied from libg++/test-install)
10238 that tests that constructor and destructors are handled
10239 corrrectly.
10240
10241Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10242
10243 * Makefile.in (install): install from ld.new, renaming during the
10244 copy, or else the next 'make install' needs to re-link ld.
10245
10246Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
10247
10248 * configure.in: generalise hp recognition (from sef).
10249
10250Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10251
10252 * configure.in: recognize bsd and hpux hppa configurations.
10253 error messages echo to stderr, not stdout
10254
10255Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10256
10257 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
10258 ldmisc.c: removed rcsid's.
10259
10260Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10261
10262 * ldlang.c (lang_map): print changes in sizes due to relaxing
10263 (size_input_section): maintain the delta information.
10264 * ldlang.h: add new field to struct to contain delta info.
10265 * relax.c (relax_section): complain if input not relaxable.
10266 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
10267 start of a filename
10268
10269Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10270
10271 * ldmain.c(main): prevent -r and -relax from being on at the same
10272 time.
10273
10274Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10275
10276 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
10277 aliasing problems
10278
10279
10280Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10281
10282 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
10283 * ldexp.c: lint
10284 * ldlang.c(open_output): set the target arch and machine as soon
10285 as we can. (lang_size_sections): use new macros for setting vma
10286 * ldwrite.c: lint
10287
10288Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
10289
10290 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
10291 Also deleted an unreachable path to wrs.
10292
10293Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
10294
10295 * Makefile.in (install): use -d test for $tooldir before
10296 installing ld there so that $tooldir can be inherited from
10297 top-level Makefile.
10298
10299Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
10300
10301 * ldlang.c: Two non-substantial changes for the sake of
10302 the old Portable C Compiler.
10303
10304Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10305
50bbae35 10306 * ldgram.y, ldlex.l: parse ABSOLUTE
252b5132
RH
10307 * ldexp.c: add support for ABSOLUTE
10308
10309Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
10310
10311 * Makefile.in: Added default definitions for HOSTING_CRT0,
10312 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
10313 * config/*.mh: Miscellaneous clean-up: Removed definitions
10314 of YACC (since it is not longer used in the Makefile).
10315 Remove HOSTING_* definitions that are subsumed by the
10316 ones added to Makefile.in. Removed most definitions of CC.
10317 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
10318 These are no longer needed.
10319
10320Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
10321
10322 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
10323 rules, since these are used when building a distribution.
10324 * Makefile.in (ldlex.c): Don't re-direct output, since that
10325 leaves a bogus output files if it fails.
10326
10327 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
10328 * ldlex.c: Fix some unnecessary flex-specific-isms.
10329
10330Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10331
10332 * ldgram.y: move spurious semicolon
10333 * ldexp.h: fix prototype
10334
10335Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
10336
10337 * ld.texinfo: references to linker now say "ld" not "gld".
10338
10339Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10340
10341 changed calling convention for Q_enter_global_ref
10342 * ldexp.c, ldlang.c, ldmain.c: reflect this
10343 * ldver.c: bump version to 1.97.1
10344 * ldindr.c (add_indirect): when an edict declaring an indirect
10345 symbol is found, make sure that any ideas about the symbol being
10346 common are changed if it now known to be defined.
10347 * ldmain.c (linear_library): complain once if archive isn't
10348 ranlibbed.
10349 * ldlang.h, ldlang.c: make room for and initialize the complain
10350 once field.
10351
10352Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10353
10354 * Makefile.in: use flex & bison from ../ if they exist.
10355
10356Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10357
10358 * relax.c (build_it): don't allocate space in the output file for
10359 stuff if -R flag applys to it.
10360 * ldfile.c: merge in VMS filename support
10361 * ldmain.c (main): take out ./ from library path, and close file
10362 before unlinking. Make multiple defs of a symbol create an
10363 unexecable file.
10364 * ldmisc.c: fatal errosrs delete output file
10365
10366Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
10367
10368 * ldver.c: Increase version number to 1.97, for consistency
10369 with ../binutils.
10370
10371Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
10372
10373 * Makefile.in: FLEX -> LEX.
10374
10375 * ld.texinfo: {} -> @{@}.
10376
10377Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
10378
10379 * ld.texinfo: describe alternate, MRI-compatible linker scripts
10380 (and associated change in -c option, now used for these scripts)
10381
10382Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10383
10384 * ldver.c: Bumped version to 1.96 - new release, resync with the
10385 bfd too #.
10386 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
10387 rather than with raw malloc, makes it easier to track where memory
10388 is going.
10389 * ldsym.h, ldsym.c: create obstack for all global symbols too.
10390 * ldwrite.c (ldwrite): moved malloc so only used when needed.
10391 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
10392
10393
10394Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
10395
10396 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
10397
10398 * Makefile.in: use bootstrap for check.
10399
10400Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10401
10402 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
10403 PUBLIC.
10404 * Makefile.in: now use flex, not lex
10405 * ldlex.l, ldlang.c, ldctor.c: lint
10406
10407Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10408
10409 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
10410 different sorts of filenames on the command line than in a script.
10411
10412Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10413
10414 * Makefile.in: rework CFLAGS so that they can be passed on the
10415 make command line. Remove MINUS_G. Default CFLAGS to -g.
10416
10417Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10418
10419 * relax.c: added handling for new "padding" seclet type, used to
10420 fill out gaps between section.
10421 * ldgram.y, ldlex.l: now -defsym on the command line is done
10422 properly.
10423
10424Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10425
10426 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
10427
10428Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10429
10430 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
10431 scripts.
10432
10433Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
10434
10435 * Makefile.in (install): Install second copy in $(tooldir)/bin
10436 without $(program_prefix), since that's what gcc expects.
10437
10438Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10439
10440 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
10441 * h8300*: fix bit rot and add support for h8300xray target
10442 * go32.sh: target emulation for go32.
10443
10444Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
10445
10446 * gld960.em, i960.sc-sh. Fix i960 bit rot
10447
10448Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
10449
10450 * Makefile.in: install man page.
10451
10452Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10453
10454 * config/mt-<foo> renamed to <foo>.mt
10455 * config/mh-<foo> renamed to <foo>.mt
10456 * configure.in changed to reflect this
10457 * genscripts.sh now make .xbn files rather than .xN files
10458
10459Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
10460
10461 * ldver.h: fix decl of ldversion.
10462
10463Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
10464
10465 * Makefile.in: added check target.
10466
10467Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10468
10469 * ldmain.c (Q_enter_file_symbols): now aliases work again
10470
10471Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
10472
10473 * Makefile.in: added clean-info target.
10474
10475Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
10476
10477 * ldexp.c (exp_print_tree): don't try and follow null pointers
10478 around.
10479 * ldgram.y: remove 11 shift reduce errors
10480
10481Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10482
10483 * Makefile.in: added tooldir and program_prefix.
10484
10485Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10486
10487 * ldlang.c (size_input_section): don't move absolute sections
10488 around!
10489
10490
10491Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
10492
10493 * cplus-dem.c: yet another copy of this - maybe it should go into
10494 libiberty ?
10495 * ldgram.y: now -V and -v have different actions
10496 * ldver.c: if -V, prints list of emulations compiled in
10497 * ldmisc.c: support for cplus demangling
10498
10499
10500Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
10501
10502 * Makefile.in, configure.in: removed traces of namesubdir,
10503 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10504 copyrights to '92, changed some from Cygnus to FSF.
10505
10506Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
10507
10508 * Makefile.in: Change mkscript rule into one for ./mkscript
10509 (for the sake of makes that don't realize they're the same).
10510 * PORTING: Add more details.
10511 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
10512
10513Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
10514
10515 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
10516 config/mt-hp300bsd: New port to hp300 running BSD.
10517
10518Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
10519
10520 Major rewrite of how ld is configured. The major idea
10521 is to use shell scripts to generate everything.
10522 * generic.em replaces ldtemplate.
10523 * Other *.em files replace various *.c files.
10524 A *.em file is a shell script that generates the corresponding
10525 ld__*.c file that implements an emulation. This is usually
10526 a straight 'cat' of a here-document, possibly with substitutions.
10527 * Script files (*.sc) are places by *.sc-sh scripts.
10528 Again, these are simple shell scripts that 'cat'
10529 here-documents, usually with some substitutions.
10530 The output a *.sc-sh is a script file.
10531 * Each emulation is defined by a short shell script with
10532 extension *.sh that specifies the emulation-specific
10533 parameters (such as the name of the *.sh-sc and *.em
10534 files to use).
10535 * genscript.sh is the master shell script used to generate
10536 an emulation. It is passed various argument, including
10537 the name a the emulation-speciic *.sh file that it
10538 "sources" to set variables to emulation-specifc parameters.
10539 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
10540 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
10541 * config/mh-foo: Rename LDEMULATION names as appropriate
10542 (usually 'gldfoo' -> plain 'foo').
10543 * ldwrite.c: Fixed a typo in a comment.
10544 * Makefile.in: Major changes. Removed some the sed
10545 magic to converts scripts, since that is now handled
10546 by genscripts.sh and the *.sc-sh scipt generators.
10547 * config.h: Remove a bunch of macros defining emulations
10548 and targets. This becomes one less file to edit when
10549 adding emulations or targets.
10550 * ldemul.h (struct ld_emulation_xfer_struct): Add
10551 emulation_name and target_name fields.
10552 * ldemul.c, ldemul.h: Define some default functions used
10553 by most emulations (and remove from the *.em scripts).
10554 * ldemul.c (ldemul_choose_target): Search the new
10555 ld_emulations array using a loop (instead of a hardwired
10556 nested if statement).
10557 Define the ld_emulation from the automatically-geenrated
10558 ldemul-list.h. This means you no longer have to edit ldemul.c
10559 to add a new emulation.
10560 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
10561 their expansions, since the former no longer exist.
10562 * PORTING: A very rough first draft of a porting guide.
10563
10564 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
10565 to be terminated by a new-line (instead of requiring a semicolon).
10566
10567Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10568
10569 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
10570 tests for NULL pointers all over the place.
10571 * ldlang.c (lang_process): remember to relocate global symbols
10572 *after* relaxing has done it stuff.
10573
10574Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10575
10576 * config/mt-coff-h8300: use EMUL like everything else
10577 * ldlang.c: (print_padding_statement): print the right address.
10578 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
10579
10580
10581Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10582
10583 * ldlex.l: Put pack -noinhibit-exec and -sort-common
10584 * ldlang.c (print_data_statement): print the right address.
10585
10586Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
10587
10588 * Makefile.in: The rule for testing ld by re-linking itself
10589 via an intermediate -r link was moved to the ld1 rule
10590 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
10591 which allows the bootstrap rule to work.
10592 * ldctor.c (find_constructors): Don't create a constructor
10593 list if it is already defined (as would happen if ld is
10594 invoked by collect).
10595
10596Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10597
10598 * config/mh-sparc.h: now uses libgcc.a
10599 * ldmain.c: quit using exit
10600 * *sc: use *(COMMON) rather than [COMMON]
10601 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
10602 to allow preprocessing of .l file.
10603 * Makefile.in: New ldlex.l mangling
10604 * ldexp.c (fold_binary): perform expressions with % and / in
10605 integer.
10606 * ldfile.c (open_a): open archives on VMS in a special way
10607
10608
10609Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10610
10611 * ldgram.y: map -M behave in the same way as -Map (sets file name
10612 to be "-".
10613 * ldsym.c, ldlang.c: remember that size of a section is dependent on
10614 whether or not relaxing has been done.
10615 * ldmain.c: don't open a map file if it doesn't have a name
10616 * relax.c: all the brains have moved into bfd.
10617 * ldwrite.c: ammend comment
10618
10619Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
10620
10621 * Makefile.in: added relax, also made three stage go through a
10622 partial link stage.
10623 * relax.c : added
10624 * config.h: if GNU960 defined, then default emulation mode is
10625 GLD960
10626 * ldexp.h, ldexp.c: map to file hooks
10627 * ldlang.c: map to file hooks
10628 * ldgram.y: added -Map -relax
10629 * ldlex.l: added -relax, -Map
10630 * ldmain.c: open map file
10631 * ldmisc.c: support for map file
10632 * ldwrite.c: new relax magic
10633
10634Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
10635
10636 * Makefile.in, config/tm-*.h: Clean up make output, only
10637 pass DEFAULT_EMULATION to ldmain.c.
10638
10639Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
10640
10641 * ldver.c: Bump to version 1.94.
10642
10643Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10644
10645 * Makefile.in: infodir belongs in datadir.
10646
10647Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
10648
10649 * Makefile.in: Pass -y to bison. (Again;
10650 accidentally deleted by Rich.)
10651 * news.sc, ldgld68k.sc: Define __end as well as _end.
10652
10653Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
10654
10655 * ldindr.h: added to contain prototypes of ldindr.c
10656 * ldfile.c: include ctype.h
10657 * ldmain.c: include the requried prototype headers
10658 * ldwrite.c: get_reloc_upper_bound has been renamed
10659 bfd_get_reloc_upper_bound
10660
10661Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10662
10663 * Makefile.in: punt "fundamental" mode because it breaks my emacs
10664 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
10665 spaces following hyphens, bsd make can't cope. added
10666 standards.text support and made it look like all the other
10667 makefiles.
10668
10669 * configure.in: configure now runs entirely in objdir so make file
10670 existence checks against ${srcdir}. Mark this directory as
10671 target dependent.
10672
10673Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10674
10675 * Makefile.in: idestdir and ddestdir go away. Added copyrights
10676 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
10677 and mandir now keyed off datadir by default.
10678
10679Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
10680
10681 * ldver.c: Bumped version to 1.93.
10682 * Makefile.in: Pass -y to bison.
10683
10684Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
10685
10686 * config.h: h8 is now coff, not ieee
10687 * h8300hds.sc: reflect the same
10688
10689Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
10690
10691 * ldver.c (ldversion()): Update to 1.92.
10692 * ldctor.c: There are two places constructor sets
10693 can be defined. One of them checked for an existing
10694 duplicate, the other didn't. Unfortunately, the latter
10695 was called after the former ...
10696 So, factor out code for inserting a new element into
10697 constructor_name_list (after checking for a duplicate)
10698 into a new function add_constructor_name, and call
10699 it from both aforementioned places (ldlang_add_constructor
10700 and ldlang_check_for_constructors).
10701
10702Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
10703
10704 * Makefile.in: Rename .c files generated from ldtemplate
10705 to have names starting with ld__. This helps 'make clean'.
10706
10707Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
10708
10709 * Makefile.in: Take out the version number for install
10710 * m88kbcs.sc: put in contructor blocks.
10711
10712Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
10713
10714 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
10715 parameter, a format, and an arg pointer, and rename it to
10716 vfinfo(). Write info() in terms of new vfinfo().
10717 New einfo() is the same as info(), except it writes to stderr.
10718 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
10719 ldmisc.c: Replace "error" calls to info() by new einfo().
10720
10721Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
10722
10723 * ldlex.l ldgram.y: made -V option do same as -v
10724 * Makefile.in: Added $(MINUS_G) flag so debugging can be
10725 turned off
10726
10727Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
10728 i386 aout changes from Bob Kukura
10729 * Makefile.in, config.h: added i386aout support
10730 * configure.in: fixed /h-{myhost} typo
10731 * ldgram.y: -MM now gives more boring map.
10732 * ldlang.c: now does D_PAGED flag the right way.
10733 * ldsym.c: -MM flags does the right thing.
10734
10735Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
10736
10737 * configure.in: Fixed typo. Also, a fix for hp300bsd.
10738 * ldlang.c (init_os): Compensate for BFD change,
10739 where bfd_make_section now returns NULL for a duplicate
10740 section request, instead of the old section.
10741
10742Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
10743
10744 * ldver.c: Bump to version 1.91 (consistent with binutils).
10745
10746Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
10747
10748 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
10749 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
10750 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
10751 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
10752 Add or update copyright notices.
10753
10754Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
10755
10756 * README: New file.
10757 * Makefile.in: Changed installation directory name scheme
10758 to be consistent with gcc. Also changed 'install'.
10759
10760Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
10761
10762 * Makefile.in: new targets ld.mm, ld.me
10763
10764Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
10765
10766 * Makefile.in, ldtemplate: Need to use separate scripts
10767 for -n and -N options. Yet more complication.
10768
10769Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
10770
10771 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
10772 work). Add some lines to avoid Sun Make VPATH bugs.
10773
10774Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
10775
10776 * news.sc: Add alignment for data segment.
10777 * ldtemplate: Add (yet another) script to get for -n or -N
10778 options. (These need different alignment than ZMAGIC files.)
10779 * Makefile.in: Add stuff for new foo.xn scripts.
10780 These are generated by replacing "ALIGN(0x...00)" by ".".
10781
10782Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
10783
10784 * Makefile.in: new targets ld.ms, ld-index.ms
10785 ld.texinfo: remove tabs, other cleanups for texi2roff
10786
10787Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
10788
10789 * ldmain.c (main): Make config.magic_demand_paged be true
c7c54483 10790 by default. Don't set the WP_TEXT and D_PAGED flags of
252b5132
RH
10791 output_bfd here; it's too late, so set it when output_bfd
10792 is created (in ldlang.c). Also fix setting of EXEC_P flag
10793 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
10794 * ldlang.c: Remove some duplicate extern declarations.
10795 * ldgram.y: Fixes to -N and -n options.
10796 * Makefile.in: Recognize upper case letters in sed script
10797 to remove assignments from script files.
10798 * ldtemplate: Don't assukme that -N or -n options
10799 imply use of -r script.
10800 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
10801
10802Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
10803
10804 * ldtemplate: include bfd.h before sysdep.h.
10805
10806Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
10807
10808 Restructure configuration scheme for bfd, binutils, ld.
10809
10810 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
10811 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
10812 Change some config names to match other dirs.
10813 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
10814 get defined first.
10815 * config/: Rename some config files to match up h-*.h names.
10816 Remove all the HOST_SYS definitions from the config files.
10817
10818Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
10819
10820 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
10821 * ldtemplate: Remove ldfile_add_library_path calls;
10822 just use the SEARCH_DIR commands in the script files.
10823 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
10824 the SEARCH_DIR commands in the scripts (using ugly sed magic).
10825 This is primarily intended for cross-linking, where you would
10826 place libaries in a different place than native libraries.
10827 Also, emulations made from ldtemplate now use $(srcdir).
10828 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
10829 form; people can use the Makefile's LIB_PATH to override.
10830
10831Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
10832
10833 * Makefile.in: fix target ld.dvi, add target ld.info
10834 ld.texinfo: make info filename ld.info
10835
10836Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
10837
10838 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
10839 Make).
10840 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
10841 few BFD types & enums.
10842
10843\f
10844Local Variables:
10845mode: change-log
10846left-margin: 8
10847fill-column: 74
10848version-control: never
10849End:
This page took 0.557647 seconds and 4 git commands to generate.