]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
oops - omitted from previous delta
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
e6869249
NC
11999-12-02 Nick Clifton <nickc@cygnus.com>
2
3 * Makefile.am: Fix arm-epoc-pe dependencies.
4 * Makefile.in: Regenerate.
5
6 * emulparams/arm_epoc_pe.sh (SCRIPT_NAME): Set to epocpe.
7
8 * scripttempl/epocpe.sc: New file: copy of pe.sc, customised for
9 EPOC by placing .rdata into .text.
10
e4dabd0e
AS
111999-11-26 Andreas Schwab <schwab@suse.de>
12
13 * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
14 STRINGIFY. Use yes/no instead of true/false as value for cache
15 variable.
16 * configure: Regenerate.
17
50e05050
NC
181999-11-24 Nick Clifton <nickc@cygnus.com>
19
20 * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
21 attributes in order to be checked.
22
33275c22
NC
231999-11-22 Nick Clifton <nickc@cygnus.com>
24
25 * ldlang.c (lang_check_section_addresses): Fix test to determine
26 if a section should be tested.
27 (IGNORE_SECTION): New macro.
28
93a6d436
JL
29Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
30
31 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
32 Clean up code to use EXTRA_SHLIB_EXTENSION.
33
829ce307
NC
341999-11-03 Nick Clifton <nickc@cygnus.com>
35
36 * emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
37 * emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.
38
9503fd87
ILT
391999-11-01 Steve Chamberlain <sac@pobox.com>
40
41 * ldlang.c (section_already_linked): Rework to use hash table.
42 (already_linked_newfunc): New function.
43 (already_linked_table_init): New function.
44 (already_linked_table_free): New function.
45 (lang_process): Initialize and free the already_linked hash table.
46
d7498c1e
ILT
471999-10-27 Andreas Jaeger <aj@suse.de>
48
49 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
50 target "mips*-*-linux-gnu*".
51
29c4c6b5
NC
521999-10-27 Scott Bambrough <scottb@netwinder.org>
53
54 * emultempl/armelf.em: Include ctype.h to prevent compile time
55 warnings.
56
1ac6a752
NC
571999-10-26 Nick Clifton <nickc@cygnus.com>
58
59 * emultempl/armcoff.em (gld{}_finish): Remove extraneous
60 underscore from prototype.
61 * emultempl/armelf.em (gld{}_finish): Remove extraneous
62 underscore from prototype.
63
cfd0966c
GK
641999-10-07 Geoffrey Keating <geoffk@cygnus.com>
65
66 * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
67 being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
68 (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
69 (.rel.sbss): Make like .rel.bss.
70 (.rela.sbss): Make like .rel.bss.
71 (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
72 ld -r.
73 (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
74 .dynsbss.
75
6eec49fc
DD
761999-09-29 Andrew Haley <aph@cygnus.com>
77
78 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
79 merging sections when not relocating.
80
8a5b676c
DD
811999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
82
83 * pe-dll.c (process_def_file): Move the offset lookup from here to
84 (fill_exported_offsets): here. New static function.
85 (fill_edata): Use.
86
7c9e78f8
DD
871999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
88
89 * deffilep.y (tokens): Add upper and lower case versions of DATA,
90 CONSTANT, NONAME and PRIVATE tokens.
91 (command): Use DATAU.
92 (expline): Allow for drectve syntax as well.
93 (exp_opt_list): Likewise.
94 (exp_opt): Likewise.
95 * pe-dll.c (make_one): Only generate the idata entries for data
96 symbols.
97
13d92f2c
GK
981999-09-28 Geoffrey Keating <geoffk@cygnus.com>
99
100 * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
101 in .sdata too.
102
3c9cf3a3
NC
1031999-09-26 Nick Clifton <nickc@cygnus.com>
104
105 * scripttempl/elf.sc (.bss): Accept sections named .bss.*
106 (.sbss): Accept sections names .sbss.*
107
be2153ad
NC
1081999-09-22 Nick Clifton <nickc@cygnus.com>
109
110 * Makefile.am: Add earm_epoc_pe.c build target.
111
26040066
JL
112Sat Sep 18 07:57:10 1999 Jeffrey A Law (law@cygnus.com)
113
114 * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
115 they've been renamed to ".stub", which is handled automatically
116 by elf.sc.
117
118Fri Sep 17 11:00:33 1999 Jeffrey A Law (law@cygnus.com)
119
120 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
121 (DATA_START_SYMBOLS): Kill __hp_load_map definition
122
42d106a8
JL
123Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
124
d3cc5bd6
JL
125 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
126 Use the same filename extension for the bfd_elf_dt_needed_name call
127 as we did for finding the library.
128
88e99a39
JL
129 * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
130 (OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
131
42d106a8
JL
132 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define.
133
833be1c7
JL
134Wed Sep 15 02:47:43 1999 Jeffrey A Law (law@cygnus.com)
135
97444aea
JL
136 * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
137 (SHLIB_DATA_ADDR): Likewise.
138
139 * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
140
833be1c7
JL
141 * emulparms/elf64hppa.h (OTHER_READWRITE_SECTIONS): No longer combine
142 the .plt, .dlt, .opd into a single output section. Provide values
143 for __gp and __hp_load_map.
144
a8100d5b
MM
1451999-09-14 Michael Meissner <meissner@cygnus.com>
146
147 * configure.in (Canonicalization of target names): Remove adding
148 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
149 generates $ac_config_sub with a ${CONFIG_SHELL} already.
150 * configure: Regenerate.
151
e4e24acb
DD
1521999-09-14 Donn Terry <donn@interix.com>
153
154 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
155 terminating null.
156
93a6d436
JL
1571999-09-14 Ulrich Drepper <drepper@cygnus.com>
158
159 * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
160 * config.in: Add EXTRA_SHLIB_EXTENSION.
161
162 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
163 Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
164 is defined.
165
cf865442
NC
1661999-09-14 Nick Clifton <nickc@cygnus.com>
167
168 * Makefile.in: Add earm_epoc_pe.c build target.
169
2491f110
JL
170Tue Sep 14 05:26:34 1999 Jeffrey A Law (law@cygnus.com)
171
172 * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt.
173
361d94e7
ILT
1741999-09-13 Donn Terry <donn@interix.com>
175
176 * emultempl/pe.em: Remove the output file at the start, in case it
177 is not writable.
178
9169713a
JL
179Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
180
070f1aed
JL
181 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
182 Search for file with .sl extension if no file with a .so extension
183 is found.
184
9169713a
JL
185 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
186 at the start of the .dlt output section.
187
1069dd8d
ILT
1881999-09-12 Ian Lance Taylor <ian@zembu.com>
189
45455cdd
ILT
190 * pe.em: Don't include "../bfd/libbfd.h".
191 (gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
192 bfd_alloc.
193
1069dd8d
ILT
194 * pe-dll.h: New file.
195 * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed
196 to avoid warnings.
197 (edata_sz, reloc_sz): Change from int to size_t.
198 (pe_details_type): Change type of imagebase_reloc from int to
199 unsigned int.
200 (pe_detail_list): Fully initialize last entry.
201 (pe_dll_id_target): Change parameter to const.
202 (pe_dll_generate_def_file): Likewise.
203 (pe_dll_generate_implib): Likewise.
204 (pe_implied_import_dll): Likewise. Change dll_name to const.
205 * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in
206 pe-dll.h.
207 (init): Fully initialize __dll__ entry.
208 (gld_${EMULATION_NAME}_after_open): Remove unused variables
209 sequence, elt, and i.
210 * deffile.h: Add preprocessor guard.
211 * deffilep.y (def_debug): Remove.
212 * Makefile.am: Rebuild dependencies.
213 (HFILES): Add pe-dll.h.
214
2be9b2c7
ILT
2151999-09-12 Donn Terry <donn@interix.com>
216
45455cdd
ILT
217 * ld.h (ld_abort): Declare.
218 (abort): Define.
219 * ldmisc.c (ld_abort): Define.
220
be4514d3
ILT
221 * scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
222 Move .bss section after .rdata. Move .reloc section after .rsrc.
223
d98dd8ba
ILT
224 * lexsup.c (parse_args): Use strtoul for --split-by-reloc
225 argument.
226
03983865
ILT
227 * lexsup.c (parse_args): If we get an unrecognized argument,
228 mention --help.
229
bb8fe706
ILT
230 * ldlang.c (section_already_linked): Use comdat information if it
231 is available.
232
2be9b2c7
ILT
233 * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
234 OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
235 (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
236 defined, rather than a.exe.
237 (init): Define __subsystem__ as ${SUBSYSTEM}.
238 (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
239 name.
240
1b69a0bf
ILT
2411999-09-12 Ian Lance Taylor <ian@zembu.com>
242
243 * ldlang.c (open_output): Change local variable desired_endian
244 from int to enum bfd_endian.
245
be4514d3 246 * emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
1b69a0bf
ILT
247 INITIAL_SYMBOL_CHAR.
248 * emulparams/armpe.sh: Likewise.
249 * emulparams/morepe.sh: Likewise.
250 * emulparams/ppcpe.sh: Likewise.
be4514d3
ILT
251 * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
252 (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1b69a0bf 253
904ecb2d
JL
254Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
255
e5b08bf0
JL
256 * emulparms/elf64hppa.sh (LIB_PATH): Define.
257
904ecb2d
JL
258 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
259 unwinders so that they are closer to the text section.
260 (OTHER_BSS_SECTIONS): Define.
261 (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
262 (INIT_START, INIT_END): Define.
263 (FINI_START, FINI_END): Define.
264 * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
265 FINI_START, FINI_END and OTHER_BSS_SECTIONS.
266
7e4d694e
JL
267Thu Sep 9 21:43:58 1999 Jeffrey A Law (law@cygnus.com)
268
269 * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
270 (DATA_ADDR): Define.
271
2f2bc1bb
RH
2721999-09-09 Stan Shebs <shebs@andros.cygnus.com>
273
274 * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
275
1d0a3c9c
AS
2761999-09-09 Andreas Schwab <schwab@suse.de>
277
278 * ld.texinfo: Fix arguments of @var to not contain punctuation.
279
040266ab
JL
280Thu Sep 9 05:52:34 1999 Jeffrey A Law (law@cygnus.com)
281
282 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.
283
2841999-09-08 Ulrich Drepper <drepper@cygnus.com>
285
286 * emulparams/elf64hppa.sh (ELFSIZE): New. Set to 64.
287
288Wed Sep 8 00:07:39 1999 Jeffrey A Law (law@cygnus.com)
289
290 * emulparms/elf64hppa.sh (ENTRY): Define to main.
291
1c56fb87
NC
2921999-09-03 Scott Bambrough <scottb@netwinder.org>
293
294 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
295 target "arm*-*-linux-gnu*"
296
c6c8c6dc
ILT
2971999-09-04 Steve Chamberlain <sac@pobox.com>
298
299 * configure.tgt (pjl-*-*, pj-*-*): New targets.
300 * emulparams/pjelf.sh: New file.
301 * emulparams/pjlelf.sh: New file.
302 * scripttempl/pj.sc: New file.
303 * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
304 (epjelf.o, epjlelf.o): New targets.
305 * Makefile.in: Rebuild.
306
4b69d4ad
JL
307Fri Sep 3 20:17:08 1999 Jeffrey A Law (law@cygnus.com)
308
309 * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
310 (OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
311
f6e143a1
JL
312Thu Sep 2 14:32:03 1999 Jeffrey A Law (law@cygnus.com)
313
314 * emulparams/elf64hppa.sh: New file.
315 * configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
316 * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
317 (eelf64hppa.c): Add dependencies.
318 * Makefile.in: Rebuilt.
319
0f1ee889
NC
3201999-08-25 Philip Blundell <pb@nexus.co.uk>
321
322 * emulparams/armelf.sh (OTHER_BSS_SYMBOLS): Add __end__.
323 * emulparams/armelf_linux.sh: Likewise.
324 * emulparams/armelf_linux26.sh: Likewise.
325
8959586a
NC
3261999-08-24 Nick Clifton <nickc@cygnus.com>
327
328 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
329
330 * configure.tgt (arm-*-netbsd*): New target.
331 * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o.
332 (earmnbsd.c): New rule with deps.
333 * Makefile.on: Regenerate.
334 * emulparams/armnbsd.sh: New file.
335
3b108066
NC
3361999-08-23 Nick Clifton <nickc@cygnus.com>
337
093505ad
NC
338 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
339 Implement --base-file command line switch.
340
3b108066
NC
341 * emultempl/elf32.em: Add ability for individual targets to have
342 their own command line switches by defining PARSE_AND_LIST_ARGS.
343
cd5d26f2
AS
3441999-08-19 Andreas Schwab <schwab@suse.de>
345
346 * configure.host: Use ${CC} instead of gcc for finding compiler
347 related files.
348
0811443a
NC
3491999-08-11 Nick Clifton <nickc@cygnus.com>
350
351 * scripttempl/mcorepe.sc (OUTPUT_FORMAT): Fix typo.
352
9c9ef45f
ILT
3531999-08-09 Mark Elbrecht <snowball3@bigfoot.com>
354
355 * scripttempl/i386go32.sc: Handle g++ exception sections.
356
fe9edd22
ILT
3571999-08-09 Ian Lance Taylor <ian@zembu.com>
358
359 From Wally Iimura <iimura@microunity.com>:
360 * ldlang.c (lang_size_sections): When checking whether an address
361 is within a region, don't get confused by wrapping around at the
362 end of the address space.
363
f4162f5c
ILT
3641999-08-08 Ian Lance Taylor <ian@zembu.com>
365
667f5177
ILT
366 * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
367 SEC_SMALL_DATA.
368
f4162f5c
ILT
369 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
370 MKDEP. Rebuild dependencies.
371 * Makefile.in: Rebuild.
372
ae97059c
ILT
3731999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
374
375 * configure.host (sparc-*-linux-gnu*): New host.
376 (sparc64-*-linux-gnu*): New host.
377
597e2591
ILT
3781999-08-06 Ian Lance Taylor <ian@zembu.com>
379
3d9f6277
ILT
380 * lexsup.c (is_num): Reindent.
381 (parse_args): Mention program name in error message.
382
597e2591
ILT
383 * emultempl/ostring.sed: Rename from stringify.sed.
384 * emultempl/astring.sed: New file.
385 * Makefile.am (stringify.sed): New target.
386 (GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
387 stringify.sed.
388 * configure.in: Define and substitute STRINGIFY.
389 * emultempl/*.em: Use stringify.sed from build directory rather
390 than source directory.
391 * emultempl/elf32.em: Use stringify.sed rather than inline sed
392 script.
393 * emultempl/gld960.em, emultempl/gld960c.em: Likewise.
394 * emultempl/hppaelf.em, emultempl/linux.em: Likewise.
395 * emultempl/lnk960.em, emultempl/sunos.em: Likewise.
396 * configure, Makefile.in: Rebuild.
397
a7e78dae
ILT
3981999-08-05 Donn Terry <donn@interix.com>
399
400 * emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
3d9f6277 401 INITIAL_SYMBOL_CHAR.
a7e78dae
ILT
402 * emulparams/i386pe_posix.sh: New file.
403 * Makefile.am (YACC): If bison is not in the source tree, use
404 @YACC@ rather than bison -y.
405 (LEX): If flex is not in the source tree, use @LEX@ rather than
406 flex.
407 (ALL_EMULATIONS): Add ei386pe_posix.o.
408 (ei386pe_posix.c): New target.
409 * configure.tgt (i[3456]86-*-interix*): New target.
410 * configure.host (i[3456]86-pc-interix*): New host.
411 * Makefile.in: Rebuild.
412
18069efc
ILT
4131999-08-03 Ian Lance Taylor <ian@zembu.com>
414
415 * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
416 * emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
417
f7cc0a4d
ILT
4181999-08-03 H.J. Lu <hjl@gnu.org>
419
420 * Makefile.am (ALL_EMULATIONS): Remove ego32.o.
421 (ego32.c): Remove.
422 * Makefile.in: Rebuild.
423
5fa803d3
NC
4241999-07-22 Philip Blundell <pb@nexus.co.uk>
425
426 * emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
427 (OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
428 * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.
429
430 * configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
431 thumb-*-linux-gnu*): New targets.
432
b4089fdd 4331999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
8f36e47c 434
5a1bd109
ILT
435 * scripttempl/i386go32.sc: Add handling of linkonce sections.
436
8f36e47c 437 * configure.bat: Remove; obsolete.
b4089fdd
ILT
438 * emulparams/go32.sh: Remove; obsolete.
439 * scripttempl/go32coff.sc: Remove; obsolete.
8f36e47c 440
41d390a7
ILT
4411999-07-21 H.J. Lu <hjl@gnu.org>
442
443 * configure.tgt (mips*el-*-vxworks*): New target.
444
4451999-07-21 Brad M. Garcia <bgarcia@fore.com>
446
447 * configure.tgt (i[3456]86-*-vxworks*): New target.
448
7c83b342
DE
449Tue Jul 20 15:18:46 1999 Bob Manson <manson@charmed.cygnus.com>
450
451 * ldlang.c (lang_gc_sections): Only handle the start symbol
452 specially if there is one.
453
0ca63823
MM
454Mon Jul 19 14:19:14 1999 Mark P. Mitchell <mark@codesourcery.com>
455
456 * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
457 .MIPS.events and .MIPS.content handling.
458 * emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
459
e50d8076
NC
4601999-07-17 Nick Clifton <nickc@cygnus.com>
461
462 * ldlang.c (get_target): New function: Return true iff the
463 given target is the target being sought.
464 (stricpy): New function: Like strcpy but convert to lower
465 case as well.
466 (strcut): New function: Like strstr but remove the located
467 substring as well.
468 (name_compare): New function: Compute a compatability rating
469 for two target names.
470 (winner): New variable: Best target found by
471 closest_target_match() so far.
472 (closest_target_match): New function: Find the target which is
473 the closest match to the original target.
474 (get_first_input_target): New function: Find the target format
475 of the first of the linker's input file.
476 (open_output): Be more clever about deciding the output target
477 format.
478
e76d716a
RH
4791999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
480
481 * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
482
88659ef5
MM
483Thu Jul 15 15:55:15 1999 Mark P. Mitchell <mark@codesourcery.com>
484
485 * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6.
486
2844ed43
ILT
4871999-07-15 Ian Lance Taylor <ian@zembu.com>
488
489 * configure.in: Bump version number to 2.9.5.
490 * configure: Rebuild.
491
0eaf9820
RH
4921999-07-14 Richard Henderson <rth@cygnus.com>
493
494 * ldlang.c (wild_doit): Copy SEC_SHORT to output section.
495
496 * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
497 same order seen for the main sections. Add
498 OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
499
5d341b0e
AS
5001999-07-12 Andreas Schwab <schwab@suse.de>
501
49bdcdba
AS
502 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
503 structure initializations.
504
5d341b0e
AS
505 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
506 comma in initializer.
507
87f2a346
ILT
5081999-07-11 Ian Lance Taylor <ian@zembu.com>
509
510 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
511 as appropriate. Fill in structure initializations.
512
b90d1146
ILT
5131999-07-10 Ian Lance Taylor <ian@zembu.com>
514
515 * ldfile.c: Revert patch of 1999-07-08.
516 (ldfile_try_open_bfd): If we are searching for the file, skip
517 files with an incompatible architecture.
518
6da0974a
NC
5191999-07-09 Nick Clifton <nickc@cygnus.com>
520
521 * scripttempl/armcoff.sc (OUTPUT_FORMAT): Include big endian and
522 little endian formats.
523
7a274639
NC
5241999-07-08 Felix Lee <flee@cygnus.com>
525
526 * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
527
99f8f232
RH
5281999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
529
530 * ldfile.c (ldfile_open_file_search): Skip libraries made for
531 incompatible architectures in the search path. Let the user know
532 about any such skips.
533
5c61c5ab
JL
534Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
535
536 * configure.tgt (hppa*-linux-gnu*): New target.
537
22c675a7
MM
5381999-07-07 Mark Mitchell <mark@codesourcery.com>
539
540 * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
541 (eelf64bmip): New target.
542 * Makefile.in: Regenerated.
543 * configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
544 * emulparams/elf64bmip.sh: New file.
545
f11523b0
NC
5461999-07-05 Nick Clifton <nickc@cygnus.com>
547
548 * emultempl/pe.em (after_open): Abort if input format is ARM and
549 output format is not.
550 * emultempl/armcoff.em (after_open): Abort if input format is ARM
551 and output format is not.
552 * emultempl/armelf.em (after_open): Abort if input format is ARM
553 and output format is not.
554
39e878bf
ILT
5551999-07-02 Ian Lance Taylor <ian@zembu.com>
556
557 * ldlang.c: Revert change of 1999-06-23.
558
dc831978
MM
5591999-06-30 Mark Mitchell <mark@codesourcery.com>
560
561 * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
562 (eelf32bmipn32.c): New target.
563 * Makefile.in: Regenerated.
564 * configure.tgt (mips-sgi-irix6*): Make n32 the default
565 emulation.
566 * emulparams/elf32bmipn32.sh: New file.
567
a0290afa
NC
5681999-06-28 Jim Pick <jim@jimpick.com>
569
570 * emultempl/armelf.em: Added code so that .xs linker scripts are
571 called so that ARM shared libraries are built correctly.
572
3dbf70a2
MM
5731999-06-22 Mark Mitchell <mark@codesourcery.com>
574
575 * ldmain.c (main): Initialize link_info.init_function and
576 link_info.fini_function.
577 * lexsup.c (OPTION_INIT): New macro.
578 (OPTION_FINI): Likewise.
579 (ld_options): Add descriptions for them.
580 (parse_args): Handle them.
581
7b9eea34
ILT
5821999-06-23 Ian Lance Taylor <ian@zembu.com>
583
584 * ldlang.c (section_already_linked): Only discard link once
585 sections if we are building constructors.
586
5c6bbab8
NC
5871999-06-22 Nick Clifton <nickc@cygnus.com>
588
589 * ld.texinfo (Location Counter): Describe behaviour of
590 location counter inside section statements.
591
a8e53fb0
MM
5921999-06-20 Mark Mitchell <mark@codesourcery.com>
593
594 * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
595 controlling whether or not .rodata is in the data segment or the
596 text segment.
597
6f798e5c
NC
5981999-06-18 Nick Clifton <nickc@cygnus.com>
599
600 * emultempl/pe.em: Add new command line switch --thumb-entry.
601 * emultempl/armelf.em: Add new command line switch --thumb-entry.
602 * emultempl/armcoff.em: Add new command line switch --thumb-entry.
603 * ld.texinfo: Document new ARM command line switch: --thumb-entry.
ba2be581
RH
6041999-06-20 H.J. Lu <hjl@gnu.org>
605
606 * configure.in (all_libpath): Accumulate across all enabled targets.
607
f97f7300
RH
608Sun Jun 20 14:10:33 1999 Richard Henderson <rth@cygnus.com>
609
610 * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
611 DEFAULT_EMULATION.
612 * emultempl/elf32.em: Likewise.
613 * emultempl/sunos.em: Likewise.
614
3336653a
RH
615Fri Jun 18 15:24:48 1999 Richard Henderson <rth@cygnus.com>
616
617 * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
618 * configure.in (all_emuls): Add targ_extra_libpath.
619 (all_libpath, EMULATION_LIBPATH): Define.
620 * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
621 * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
622
308b1ffd
AS
623Mon Jun 14 10:38:36 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
624
625 * ld.texinfo: Fix use of @item vs. @itemx.
626
aa8804e4
ILT
6271999-06-13 Ian Lance Taylor <ian@zembu.com>
628
629 From Thomas Zenker <thz@lennartz-electronic.de>:
630 * ldgram.y (attributes_opt): Use attributes_list instead of NAME.
631 (attributes_list, attributes_string): New nonterminals.
632 * ldlang.c (lang_set_flags): Add invert parameter. Don't handle
633 '!'.
634 * ldlang.c (lang_set_flags): Update declaration.
635
2a275620
ILT
6361999-06-12 Ian Lance Taylor <ian@zembu.com>
637
638 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
639 entry_symbol as an undefined symbol when doing a relocateable
640 link. From <jeffdb@goodnet.com>.
641
2641b0c9
ILT
6421999-06-12 David O'Brien <obrien@freebsd.org>
643
644 * configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
645
f75692fe
NC
6461999-06-09 Nick Clifton <nickc@cygnus.com>
647
648 * lexsup.c (help): Restore previous format of output.
649
434d1125
NC
6501999-06-04 Nick Clifton <nickc@cygnus.com>
651
652 * emultempl/pe.em: If compiling for arm_epoc_pe rename
653 interworking functions to avoid a name space clash.
654
4305932a
RH
6551999-06-02 Jason Merrill <jason@yorick.cygnus.com>
656
657 * scripttempl/v850.sc: Add initp support.
658
46d23b7c
NC
6591999-06-02 Nick Clifton <nickc@cygnus.com>
660
661 * emultempl/pe.em: Rename global arm interworking functions to
662 avoid name collision when all targets BFD is built.
663
cd785be6
RH
6641999-05-30 Cort Dougan <cort@attis.cs.nmt.edu>
665
666 * Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
667 * configure.tgt (powerpc-*-linux-gnu): Use it.
668 * emulparams/elf32ppclinux.sh: New file.
669
511ab9e9
ILT
6701999-05-29 Ian Lance Taylor <ian@zembu.com>
671
672 * ld.texinfo (Options): Clarify that options which refer to files
673 must be properly ordered.
674
7ca69e9e
NC
6751999-05-29 Nick Clifton <nickc@cygnus.com>
676
677 * emultempl/armelf.em (..._parse_args): New function: Parse
678 command line option. Accept arm-elf specific command line option
679 '-p' or '--no-pipeline-knowledge'.
680 (..._list_options): New function: Describe the new command line
681 option.
682 (..._before_allocation): Pass the value of the new variable
683 no_pipeline_knowledge to bfd_elf32_arm_process_before_allocation.
684
685 * emultemp/armelf_oabi.em (..._before_allocation): Pass zero as
686 the third parameter to bfd_elf32_arm_process_before_allocation.
687
b3043ee4
NC
6881999-05-28 Nick Clifton <nickc@cygnus.com>
689
690 * lexsup.c (help): Minor formatting changes.
691
0ccf812a
ILT
6921999-05-28 Martin Dorey <mdorey@madge.com>
693
694 * configure.tgt (i960-*-elf*): New target.
695 * emulparams/elf32_i960.sh: New file.
696 * Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
697 (eelf32_i960.c): New target.
698 * Makefile.in: Rebuild.
699
a13cba0d
NC
7001999-05-26 Nick Clifton <nickc@cygnus.com>
701
702 * emulparams/armelf_oabi.sh (TEMPLATE_NAME): Set to armelf_oabi.
703
31ce0628
NC
7041999-05-24 Philip Blundell <philb@gnu.org>
705
706 * emultempl/armelf.em (before_parse): Set config.dynamic_link and
707 config.has_shared.
708 * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
709 * emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise.
710
1220a729
NC
7111999-04-13 Philip Blundell <philb@gnu.org>
712
713 * emultempl/armelf.em: Add definitions related to shared objects
714 (copied from elf32.em).
715
3699964a
AS
716Wed May 19 12:44:26 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
717
718 * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
719 earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
720 * Makefile.in: Regenerated.
721
06f2f02a
NC
7221999-05-16 Nick Clifton <nickc@cygnus.com>
723
724 * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Define.
725 (TEMPLATE_NAME): Define.
726
de24ad21
RH
727Thu May 13 09:48:09 1999 Joel Sherrill (joel@OARcorp.com)
728
729 * configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
730 (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
731
c6c37250
DD
7321999-05-10 DJ Delorie <dj@cygnus.com>
733
734 * scripttempl/pe.sc: Specify the output arch, which Ian says is
735 the Right Thing to do.
736
737 * emultempl/pe.em: various changes to parameterize the
738 target-specific information.
739 (gld_i386pe_after_open): Detect and fix MS import libraries
740 by renaming the member objects (which are all named the same).
741
742 * pe-dll.c: various changes to parameterize the target-specific
743 information.
744 (generate_reloc): support relocs more generically to allow for
745 expansion.
746 (pe_exe_build_sections): new; used to add .relocs to .exes
747 (pe_exe_fill_sections): ditto
748
626e0105
CM
7491999-05-10 Catherine Moore <clm@cygnus.com>
750
751 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
752 Check for TARGET_IS_arm_epoc_pe.
753 (gld_${EMULATION_NAME}_before_allocation): Likewise.
754
4dec4d4e
RH
7551999-05-12 Anthony Green <green@cygnus.com>
756
757 * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
758 output_section_callback, gc_section_callback): New functions for
759 generic section walks.
760 (wild, lang_gc_wild): Use walk_wild.
761 (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
762 walk_wild_file.
763 (wild_section, lang_gc_wild_section): Deleted. Common logic moved
764 to walk_fild_section. Unique logic moved into callbacks
765 output_section_callback and gc_section_callback.
766
252b5132
RH
7671999-04-26 Tom Tromey <tromey@cygnus.com>
768
769 * aclocal.m4, configure: Updated for new version of libtool.
770
252b5132
RH
7711999-04-12 Philip Blundell <pb@nexus.co.uk>
772
773 * emulparams/armelf_linux.sh: New file. Support for ARM
774 GNU/Linux ELF ABI.
775 * emulparams/armelf_linux26.sh: New file. APCS-26 version of above.
776 * configure.tgt: For arm*-*-linux-gnu*, set default emulation to
777 `armelf_linux', and also include `armelf_linux26' and `armelf'.
778 * Makefile.am: Add rules to make earmlinux.c and earmlinux26.c.
779 (ALL_EMULATIONS): Add earmlinux.o and earmlinux26.o.
780 * Makefile.in: Regenerate.
781
7821999-04-11 Richard Henderson <rth@cygnus.com>
783
784 * Makefile.am (ALL_EMULATIONS): Add elf_i386_be.o.
785 * configure.tgt (i[3456]86-*-beos*): Use it.
786 * emulparams/elf_i386_be.sh: New file.
787 * Makefile.in: Rebuild.
788
789 * configure.in (environ): Detect declaration.
790 * ldmain.c (main): Don't declare environ.
791 * sysdep.h (environ): Declare if needed.
792 * configure, config.in: Rebuild.
793
7941999-04-11 Richard Henderson <rth@cygnus.com>
795
796 * ldgram.y (ldgram_vers_current_lang): New.
797 (vers_defns): Accept `extern "lang" { }' syntax.
798 * ldlex.l (vers_node_nesting): New.
799 (V_IDENTIFIER): Accept . and $ in symbols.
800 (VERS_NODE): Accept `extern "lang" { }' tokens. Nest VERS_NODE states.
801 * ldlang.c (lang_new_vers_regex): New `lang' argument. Update callers.
802 (lang_vers_match_lang_c): New function.
803 (lang_vers_match_lang_cplusplus): New function.
804 (lang_vers_match_lang_java): New function.
805 (lang_do_version_exports_section): Fix iteration. Don't free
806 section contents, as it is still in use by the patterns.
807
8081999-04-10 Richard Henderson <rth@cygnus.com>
809
810 * ldmain.c (main): Init link_info.no_undefined.
811 * lexsup.c: Add command-line option --no-undefined.
812
252b5132
RH
8131999-04-06 Ian Lance Taylor <ian@zembu.com>
814
815 * ld.h (LC_MESSAGES): Never define.
816 * ldmain.c (main): Don't pass LC_MESSAGES to setlocale if the
817 system does not define it.
818
8191999-04-06 H.J. Lu <hjl@gnu.org>
820
821 * ldmain.h (demangling): Declare.
822 * ldmain.c (demangling): New global variable.
823 (main): Initialize demangling.
824 * ldmisc.c (vfinfo): Don't demangle symbol if ! demangling.
825 * lexsup.c (ld_options, parse_args): Handle --demangle and
826 --no-demangle.
827 * ld.texinfo, ld.1: Document --demangle/--no-demangle.
828
829 * ldlex.l (V_IDENTIFIER): Allow '.' in symbol.
830
8311999-04-05 Chris Torek <torek@BSDI.COM>
832
833 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Check that
834 a shared library really exists, avoiding broken symlinks.
835
836 * ldfile.c (ldfile_open_file): Generate a better error message if
837 we can't find a -l file.
838
8391999-04-05 DJ Delorie <dj@cygnus.com>
840
841 * configure.tgt (i386-*-pe): add targ_extra_ofiles for other PE
842 targets (i386-pe and i386-winnt)
843
8441999-04-04 Ian Lance Taylor <ian@zembu.com>
845
846 * deffilep.y: Include "sysdep.h" and "ldmisc.h".
847 (def_file_add_directive): Change return type to void. Remove
848 unused locals sh_reserve, sh_commit, and j.
849 (def_ungetc): Always return a value.
850 (def_lex): Correct parenthesization of || within &&.
851 * deffile.h (def_file_add_directive): Update declaration.
852 * pe-dll.c: Include <time.h>, <ctype.h>, and "ldemul.h".
853 (generate_edata): Remove unused local i.
854 (quoteput): Add cast to avoid warning.
855 (pe_dll_generate_def_file): Fix type in format string.
856 (quick_symbol): Remove unused local blhe.
857 (pe_dll_generate_implib): Add cast to avoid warning.
858 (pe_process_import_defs): Remove unused locals ar_head, ar_tail,
859 and n.
860 (pe_as16): Comment out.
861
8621999-04-04 Don Bowman <don@pixsci.com>
863
864 * configure.tgt: Add mips*-*-vxworks* target.
865
8661999-03-31 Nick Clifton <nickc@cygnus.com>
867
868 * Makefile.in (ALL_EMULATIONS): Add earm_epoc_pe.o
869 Add build rule and dependencies for earm_epoc_pe.c.
870
871 * emulparams/arm_epoc_pe.sh: New file.
872
873 * configure.tgt: Add 'targ_extra_ofiles' for ARM based PE
874 targets.
875
8761999-03-31 Philip Blundell <pb@nexus.co.uk>
877
878 * configure.tgt: Match `arm*-*-linux-gnu*' not
879 `armv*-*-linux-gnu'.
880
8811999-03-26 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
882
883 * scripttempl/elf.sc: Put the .eh_frame and .gcc_except_table
884 sections in the data segment.
885
886Fri Mar 26 12:05:51 1999 Catherine Moore <clm@cygnus.com>
887
888 * ld.h (wildcard_spec): Add exclude_name.
889 * ldgram.y (EXCLUDE_FILE): New token.
890 (wildcard_spec): Set exclude_name.
891 (file_NAME_list): Recognize EXCLUDE_FILE.
892 * ldlang.c (wild_section): Check for excluded files.
893 (print_wild_statement): Print excluded files.
894 (lang_add_wild): New argument exclude_filename.
895 Set exclude_filename.
896 * ldlang.h (lang_wild_statement_type): Add exclude_filename.
897 * ldlex.l: New token EXCLUDE_FILE.
898 * mri.c (mri_draw_tree): Add argument to lang_add_wild.
899 * scripttempl/elf.sc (CTOR, DTOR): Exclude crtend.o from ctor wildcard.
900 Reorder sorted and unsorted ctors.
901 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
902 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
903 * scripttempl/elfppc.sc (CTOR, DTOR): Likewise.
904
9051999-03-26 Nick Clifton <nickc@cygnus.com>
906
907 * ldlang.c (lang_gc_sections): If entry_symbol is not defined,
908 default to "start".
909
9101999-03-03 Nick Clifton <nickc@cygnus.com>
911
912 * scripttempl/elf.sc: Add explicit placements for the .eh_frame
913 and .gcc_except_table sections.
914
915Wed Mar 3 09:13:34 1999 Catherine Moore <clm@cygnus.clm>
916
917 * scripttempl/elf.sc: Remove .end.ctors and .end.dtors
918 sections. Reorder .ctors section entries.
919 * scripttempl/elfd10v.sc: Likewise.
920 * scripttempl/elfd30v.sc: Likewise.
921 * scripttempl/elfppc.sc: Likewise.
922
9231999-02-26 Jim Lemke <jlemke@cygnus.com>
924
925 * ldmain.c (main): Wrong error msg for -r and --mpc860c0.
926
9271999-02-25 Nick Clifton <nickc@cygnus.com>
928
929 * ldlang.c (lang_check_section_addresses): Remove extraneous
930 backslash.
931
932Thu Feb 25 15:07:24 1999 Catherine Moore <clm@cygnus.com>
933
934 * scripttempl/elf.sc: Don't gather .ctor and .dtor sections
935 for relocateable links.
936 * scripttempl/elfd10v.sc: Likewise.
937 * scripttempl/elfd30v.sc: Likewise.
938 * scripttempl/elfppc.sc: Likewise.
939
9401999-02-22 Jim Lemke <jlemke@cygnus.com>
941
942 * ldint.texinfo: remove extraneous right brace.
943 * ldmain.c (main): initialize and check option "mpc860c0".
944 * lexsup.c (ld_options, parse_args): add option "mpc860c0".
945
946Wed Feb 17 12:10:06 1999 Stan Cox <scox@cygnus.com>
947
948 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Remove special
949 .reginfo section handling.
950 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Likewise.
951 * emulparams/elf32elmip.sh (INITIAL_READONLY_SECTIONS): Removed
952 * emulparams/elf32ebmip.sh (INITIAL_READONLY_SECTIONS): Removed
953
9541999-02-17 Nick Clifton <nickc@cygnus.com>
955
956 Patch from: Scott Bambrough <scottb@corelcomputer.com>
957
958 * configure.tgt: Added armv*-*-linux-gnu to $targ_emul
959 recognition.
960
961Wed Feb 17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
962
963 * emultempl/armelf_oabi.em
964 (bfd_elf32_arm_allocate_interworking_sections,
965 bfd_elf32_arm_get_bfd_for_interworking,
966 bfd_elf32_arm_process_before_allocation): Define them to use the
967 old ABI versions of the functions.
968
969Tue Feb 16 16:48:19 1999 Ian Lance Taylor <ian@cygnus.com>
970
971 * configure.in: Change AC_PREREQ to 2.13. Change AM_PROG_INSTALL
972 to AC_PROG_INSTALL. Change AM_EXEEXT to AC_EXEEXT.
973 * Makefile.am (earmelf_oabi.c): Changes spaces to tab.
974 * acconfig.h: Remove.
975 * aclocal.m4: Rebuild.
976 * configure: Rebuild.
977 * Makefile.in: Rebuild.
978
979Mon Feb 15 18:21:48 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
980
981 * ldexp.h (struct etree_value_type): Change valid onto valid_p.
982
983 * ldexp.c (new_abs): Ditto.
984 (new_rel, new_rel_from_section, fold_binary, invalid, fold_name,
985 exp_fold_tree, exp_binop, exp_trinop, stat_alloc,
986 exp_get_abs_int): Ditto
987
988 * ldlang.c (print_assignment, lang_size_sections,
989 lang_do_assignments): Ditto.
990
9911999-02-11 Nick Clifton <nickc@cygnus.com>
992
993 * ldlang.c (lang_check_section_addresses): New function: Check
994 addresses assigned to section for overlaps.
995 (lang_process): Call lang_check_section_addresses if suitable.
996
997 * ld.h: Add new boolean field to args_type structure:
998 'check_section_addresses'.
999
1000 * ldmain.c: Initialise check_section_addresses field to true.
1001
1002 * lexsup.c: Add new command line options '--no-check-sections' and
1003 '--check-sections'.
1004
1005 * ld.texinfo: Document new command line options '--check-sections'
1006 and '--no-check-sections'.
1007
10081999-02-08 Nick Clifton <nickc@cygnus.com>
1009
1010 * configure.tgt: Add support for StrongARM target.
1011
1012Wed Feb 3 19:41:01 1999 Ian Lance Taylor <ian@cygnus.com>
1013
1014 * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once. Check for
1015 an owner of a section before using it to look up a reloc type.
1016 Don't set SEC_KEEP for the absolute section.
1017
1018Mon Feb 1 11:39:46 1999 Catherine Moore <clm@cygnus.com>
1019
1020 * Makefile.am (earmelf_oabi.o): New.
1021 * Makefile.in: Regenerate.
1022 * configure.tgt (arm-*-oabi): New.
1023 (thumb-*-oabi): New.
1024 * emulparams/armelf_oabi.sh: New.
1025 * emultempl/armelf_oabi.em: New.
1026
10271999-01-31 17:57:31 1998 Michael Meissner <meissner@cygnus.com>
1028
1029 * scripttempl/elfppc.sc: Add support for -fleading-underscores
1030 switch in all linker generated symbols.
1031
1032 * configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
1033 powerpc{,le}-*-eabi.
1034
1035Wed Jan 20 17:01:48 1999 Ian Lance Taylor <ian@cygnus.com>
1036
1037 * configure.tgt (i[3456]86-*-solaris2*): New target. From Pavel
1038 Roskin <pavel_roskin@geocities.com>.
1039
10401999-01-19 Nick Clifton <nickc@cygnus.com>
1041
1042 * ldlang.c (lang_size_sections): Count loadable sections as
1043 contributing to the size of the current segment.
1044
10451999-01-15 Nick Clifton <nickc@cygnus.com>
1046
1047 * ldlang.c (lang_size_sections): Only update the current
1048 address of a region if the section just placed into it is an
1049 allocated section.
1050
10511999-01-12 Nick Clifton <nickc@cygnus.com>
1052
1053 * Makefile.am: Replace efr30.o with eelf32fr30.o.
1054 * Makefile.in: Regenerate.
1055
1056 * configure.tgt: Replace fr30 with elf32fr30.
1057
1058 * emulparams/elf32fr30.sh: New file: Replaces fr30.sh, and uses
1059 generic elf.sc script. Also replaces the .stack section with a
1060 user definable symbol __stack.
1061
10621999-01-11 Nick Clifton <nickc@cygnus.com>
1063
1064 * scripttempl/fr30.sc: Fill .init and .fini sections with NOP
1065 pattern.
1066
10671999-01-03 Ken Raeburn <raeburn@cygnus.com>
1068
1069 * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU,
1070 HOSTING_CRT0, HOSTING_LIBS; the test suite can extract them from
1071 configure.host and configure.tgt now.
1072 * Makefile.in: Rebuild.
1073
10741998-12-27 Ulrich Drepper <drepper@cygnus.com>
1075
1076 * lexsup.c (parse_args, case OPTION_RPATH): Avoid adding duplicate
1077 elements to rpath.
1078
1079Thu Dec 10 11:12:28 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1080
1081 * Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
1082 (ALL_EMUL_EXTRA_OFILES): New variable. Put them here instead.
1083 * configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
1084 if configuring with all targets.
1085 * configure, Makefile.in, aclocal.m4: Rebuild.
1086
1087 * emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
1088 (pe_dll_do_default_excludes): Removed, unused.
1089 (pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
1090 pe_dll_stdcall_aliases): Don't initialize them, this file may be
1091 compiled more than once.
1092 * pe-dll.c (pe_def_file, pe_dll_export_everything,
1093 pe_dll_do_default_excludes, pe_dll_kill_ats,
1094 pe_dll_stdcall_aliases): Define and initialize them here instead.
1095 (generate_reloc): Fix allocation of reloc_addresses array to use
1096 bfd_vma instead of unsigned long. Fix element size in qsort call.
1097 (reloc_sort): Compare pointers to bfd_vma instead of unsigned
1098 long.
1099
1100Mon Dec 7 21:10:09 1998 J.J. van der Heijden <j.j.vanderheijden@student.utwente.nl>
1101
1102 * configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
1103 files.
1104
1105Sun Dec 6 16:33:33 1998 Ian Lance Taylor <ian@cygnus.com>
1106
1107 * configure.tgt (m68*-*-gnu*): New target. From Aymeric Vincent
1108 <aymeric.vincent@emi.u-bordeaux.fr>.
1109
11101998-12-04 Nick Clifton <nickc@cygnus.com>
1111
1112 * emulparams/fr30.sh (TEXT_START_ADDR): Change TEXT_START_ADDR
1113 from 0x100000 to 0x10000 so that it fits in 20 bits.
1114
1115Sat Nov 28 22:32:20 1998 Ian Lance Taylor <ian@cygnus.com>
1116
1117 * ldemul.h (ldemul_recognized_file): Declare.
1118
1119Sat Nov 28 22:30:55 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1120
1121 * ldlang.c (lang_add_wild): Don't pretend that there is an input
1122 file if the filename is a wildcard pattern.
1123
11241998-11-25 DJ Delorie <dj@cygnus.com>
1125
1126 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
1127 * ldemul.c (ldemul_recognized_file): new function, new hook
1128 * ldint.texinfo: document new hook.
1129 * ldlang.c (load_symbols): call recognized_hook for all objects we
1130 do recognize, in case the emulation needs to handle them
1131 specially. PE DLLs use this.
1132 * pe-dll.c (pe_dll_generate_def_file): take out hack and debug
1133 printfs
1134 * emultempl/pe.em (gld_i386_recognized_file): new function
1135 (gld_i486_unrecognized_file): take out hack
1136
11371998-11-23 DJ Delorie <dj@cygnus.com>
1138
1139 * pe-dll.c (fill_edata): fill in timestamp
1140 (make_head): name object files sequentially to ensure
1141 they link in the right order.
1142 (make_tail): same here
1143 (pe_process_import_defs): use sequential names for bfds to ensure
1144 proper link order.
1145 (pe_implied_import_dll): new function; handles linking directly
1146 against DLLs by simulating IMPORTS directives. * emultempl/pe.em
1147 (gld_i386pe_before_parse): hack bfd to not recognize .dll files
1148 via bfd_pe_dll_not_recognized_hack
1149
11501998-11-23 DJ Delorie <dj@cygnus.com>
1151
1152 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
1153 pe_dll_add_excludes
1154
1155Mon Nov 23 14:36:18 1998 Nick Clifton <nickc@cygnus.com>
1156
1157 * emultempl/pe.em (after_parse): Only create an undefined entry
1158 symbol if one has been specified.
1159
11601998-11-23 DJ Delorie <dj@cygnus.com>
1161
1162 * emultempl/pe.em (gld_i386pe_after_open): call
1163 pe_process_import_defs
1164 * pe-dll.c (pe_dll_generate_def_file): calculate BASE from
1165 pe_data, only print if actually set. Print version only if
1166 set.
1167 (save_relocs): save relocs for both input and output.
1168 (make_one): support internal/external different names.
1169 (pe_dll_generate_implib): support new make_one
1170 (pe_process_import_defs): new function; handles IMPORT
1171 directives in .def files.
1172
1173Fri Nov 20 13:06:49 1998 Nick Clifton <nickc@cygnus.com>
1174
1175 * ldmisc.c (vfinfo): Cope with empty symbol names.
1176
1177Thu Nov 19 13:31:15 1998 Nick Clifton <nickc@cygnus.com>
1178
1179 * scripttempl/pe.sc: Add provision of '_end' symbol.
1180
1181Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
1182
1183 * configure.tgt: change refs from cygwin32* to cygwin*.
1184 * aclocal.m4: regenerate
1185 * configure.in: don't need to call AM_CYGWIN32.
1186 * configure: regenerate
1187
1188Mon Nov 16 22:14:07 1998 DJ Delorie <dj@cygnus.com>
1189
1190 * emultempl/pe.em (gld_i386_finish): generate import library
1191 * deffile.h: add hint member.
1192 * pe-dll.c (pe_dll_generate_implib): New function with helpers;
1193 generates the import library directly from the export table.
1194 (fill_edata): remember the actual hint for the import library.
1195
1196Sat Nov 14 14:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
1197
1198 * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>.
1199
1200Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
1201
1202 * po/ld.pot: Regenerated.
1203 * po/POTFILES.in: Regenerated.
1204 * configure: Regenerated.
1205 * aclocal.m4: Regenerated.
1206 * Makefile.in: Regenerated.
1207
1208Wed Nov 11 18:10:15 1998 DJ Delorie <dj@cygnus.com>
1209
1210 * pe-dll.c (generate_reloc): don't output PE relocs for sections
1211 that won't be loaded.
1212
1213Wed Nov 11 13:44:54 1998 DJ Delorie <dj@cygnus.com>
1214
1215 * pe-dll.c (fill_edata): don't strip underscores
1216
1217Tue Nov 10 21:28:19 1998 DJ Delorie <dj@cygnus.com>
1218
1219 * ld.texinfo: added i386pe option summary
1220
1221Tue Nov 10 17:53:17 1998 DJ Delorie <dj@cygnus.com>
1222
1223 * pe-dll.c (process_def_file): properly note undefined exported
1224 symbols, clean up old code.
1225 (pe_dll_generate_def_file): don't crash if pe_def_file is NULL
1226 * emultempl/pe.em (gld_i386_parse_args): add
1227 (en/dis)able-stdcall-fixups
1228 (pe_fixup_stdcalls): warn about stdcall fixups
1229 (gld_i386_unrecognized_file): make exported symbols undefs so that
1230 archive members get pulled in
1231
1232Tue Nov 10 14:50:51 1998 Catherine Moore <clm@cygnus.com>
1233
1234 * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
1235 .fini, .dtors and .ctors. Add .data and .text
1236 wildcards to support section garbage collection.
1237
1238Mon Nov 9 22:52:50 1998 DJ Delorie <dj@indy.delorie.com>
1239
1240 * deffilep.y: properly handle relocs with multiple def_files,
1241 cache import module names
1242
1243Mon Nov 9 22:44:58 1998 DJ Delorie <dj@cygnus.com>
1244
1245 * pe-dll.c (process_def_file): don't assume exports won't move
1246 during a realloc
1247
1248Mon Nov 9 16:41:30 1998 DJ Delorie <dj@cygnus.com>
1249
1250 * pe-dll.c: New file; direct support for PE DLLs
1251 * deffile.h: New file; direct support for PE DLLs
1252 * deffilep.y: New file; direct support for PE DLLs
1253 * emultempl/pe.em: add direct support for PE DLLs
1254 * configure.tgt: allow target-specific extra files
1255 * configure.in: allow target-specific extra files
1256 * ldlang.c (lang_add_assignment): return the assignment so that
1257 one can change the value later based on the object files (pe-dll
1258 DEF files do this)
1259 * ldint.texinfo: add section for emulation walkthrough
1260 * Makefile.am: add new files and target-specific extra files
1261 * emultempl/pe.em (gld_i386_list_options): list dll-specific
1262 options.
1263 * pe-dll.c (process_def_file): auto-export everything if
1264 nothing is otherwise exported.
1265
1266Wed Nov 4 16:39:18 1998 Nick Clifton <nickc@cygnus.com>
1267
1268 * Makefile.am: Add support for FR30 target.
1269 * configure.tgt: Add support for FR30 target.
1270 * Makefile.in: Regenerate.
1271 * emulparams/fr30.sh: New file.
1272 * scripttemp/fr30.sc: New file.
1273
1274Mon Nov 2 14:47:15 1998 Catherine Moore <clm@cygnus.com>
1275
1276 * ldmain.c (main): Don't report error for dynamic links and
1277 --gc-sections.
1278
12791998-10-26 16:05 Ulrich Drepper <drepper@cygnus.com>
1280
1281 * lexsup.c (ld_options): Change text of -O to Optimize output file".
1282 (parse_args): Set link_info.optimize based on -O argument.
1283 * ldmain.c (main): Initialize link_info.optimze to false.
1284 * ld.texinfo: Describe -O option.
1285 * ld.1: Likewise.
1286
1287Mon Oct 12 14:29:56 1998 Nick Clifton <nickc@cygnus.com>
1288
1289 * scripttempl/v850.sc: Move .sbss and .scommon sections into their
1290 own segment, so that they can be next to the .bss section and so
1291 initialised by the same piece of code.
1292
1293Fri Oct 9 15:59:52 1998 Catherine Moore <clm@cygnus.com>
1294
1295 * scripttempl/elf.sc: Merge .sdata.* etc sections.
1296 * ldctor.c (ldctor_build_sets): Set SEC_KEEP for
1297 ctor sections.
1298
1299Mon Oct 5 09:40:43 1998 Catherine Moore <clm@cygnus.com>
1300
1301 * ldmain.c (main): Error if --gc-sections and
1302 dyanmic linking.
1303 * scripttempl/v850.sc: Add KEEP attribute to .init,
1304 .fini, .dtors and .ctors. Add .data and .text
1305 wildcards to support section garbage collection.
1306
1307Wed Sep 30 11:19:15 1998 Nick Clifton <nickc@cygnus.com>
1308
1309 * scripttempl/v850.sc: Rename .call_table section to
1310 .call_table_data and create a new section called
1311 .call_table_text.
1312
1313Sun Sep 20 00:43:26 1998 Ian Lance Taylor <ian@cygnus.com>
1314
1315 * scripttempl/elf.sc: Add alignment at the end of the .bss
1316 section, so that it is included in the memsize of the segment.
1317
1318Fri Sep 18 13:42:42 1998 Catherine Moore <clm@cygnus.com>
1319
1320 * emultempl/elf32.em (gld_place_orphan): Don't process for
1321 sections with SEC_EXCLUDE flag.
1322
1323Fri Sep 4 09:24:02 1998 Nick Clifton <nickc@cygnus.com>
1324
1325 * emulparams/d30velf.sh (TEXT_SIZE): Increased to 2000K.
1326 (DATA_SIZE): Increased to 2000K.
1327
1328Thu Sep 3 17:30:58 1998 Richard Henderson <rth@cygnus.com>
1329
1330 * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
1331
1332Mon Aug 31 01:06:00 1998 Catherine Moore <clm@cygnus.com>
1333
1334 * Makefile.am: Change armelf.sc to elf.sc
1335 * Makefile.in: Regenerate.
1336
1337Mon Aug 31 11:12:04 1998 Catherine Moore <clm@cygnus.com>
1338
1339 * emulparams/armelf.sh: Change SCRIPT_NAME to
1340 elf. Change TEXT_START_ADDR to 0x8000. Define
1341 OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
1342 OTHER_BSS_END_SYMBOLS.
1343 * scripttempl/elf.sc: Modify to use
1344 OTHER_BSS_END_SYMBOLS.
1345 * scripttempl/elfarm.sc: Remove file.
1346
1347Tue Aug 18 12:05:34 1998 Catherine Moore <clm@cygnus.com>
1348
1349 * emultempl/armelf.em (gld_armelf_before_allocation):
1350 Add bfd_ prefix to elf32_arm_process_before_allocation
1351 and elf32_arm_allocate_interworking_sections.
1352 (gld_armelf_after_open): Add bfd_ prefix to
1353 elf32_arm_get_bfd_for_interworking.
1354
1355Fri Aug 14 15:34:29 1998 Ian Lance Taylor <ian@cygnus.com>
1356
1357 * Makefile.am: Rebuild dependencies.
1358 * Makefile.in: Rebuild.
1359
1360 * ldgram.y: Include "ldctor.h".
1361 (statement): Accept SORT around CONSTRUCTORS.
1362 * ldctor.c: Include <ctype.h>.
1363 (constructors_sorted): New global variable.
1364 (ctor_prio, ctor_cmp): New static functions.
1365 (ldctor_build_sets): Sort constructors if requested.
1366 * ldctor.h (constructors_sorted): Declare.
1367 * ldlang.c (print_statement): Print sorted CONSTRUCTORS
1368 correctly.
1369 * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
1370 * ld.texinfo (Output Section Keywords): Document SORT
1371 (CONSTRUCTORS).
1372
1373Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>
1374
1375 * emulparams/armelf.sh: Define TEMPLATE_NAME to armelf.
1376 * scripttempl/elfarm.sc: Include .glue_7t and .glue7
1377 sections.
1378 * emultempl/armelf.em: New file.
1379
1380Thu Aug 13 12:52:45 1998 H.J. Lu <hjl@gnu.org>
1381
1382 * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
1383 * Makefile.in: Rebuild.
1384
1385Tue Aug 11 16:17:01 1998 Catherine Moore <clm@cygnus.com>
1386
1387 * scripttempl/elfarm.sc: Change text start address
1388 back to zero.
1389
1390Tue Aug 11 10:01:12 1998 Jeffrey A Law (law@cygnus.com)
1391
1392 * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
1393 * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
1394
1395Sun Aug 9 20:31:27 1998 Catherine Moore <clm@cygnus.com>
1396
1397 * scripttempl/elfarm.sc: Set text start address to
1398 0x8000. Add __bss_end definition.
1399
1400Sat Aug 1 11:47:37 1998 Catherine Moore <clm@cygnus.com>
1401
1402 * scripttempl/elfarm.sc: New file.
1403 * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
1404
1405Fri Jul 31 15:56:16 1998 Catherine Moore <clm@cygnus.com>
1406
1407 * emulparams/armelf.sh: New file.
1408 * configure.tgt: Recognize thumb-elf and arm-elf.
1409 * Makefile.am (earmelf.o): New.
1410 * Makefile.in: Rebuild.
1411
1412Fri Jul 24 12:00:57 1998 Ian Lance Taylor <ian@cygnus.com>
1413
1414 * Makefile.am (install-exec-local): Don't remove the file before
1415 checking whether $(bindir) == $(tooldir)/bin. From Maciej
1416 W. Rozycki <macro@ds2.pg.gda.pl>.
1417 * Makefile.in: Rebuild.
1418
1419 * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
1420
1421Thu Jul 23 11:15:12 1998 Ian Lance Taylor <ian@cygnus.com>
1422
1423 * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
1424 alignment of end symbol.
1425 * scripttempl/elf.sc: Likewise.
1426 * emulparams/sun4.sh (ALIGNMENT): Define.
1427 * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
1428 * ldint.texinfo (emulation parameters): Document ALIGNMENT.
1429
1430 * lexsup.c (parse_args): Add missing break statement.
1431
1432 * ldlang.c (lang_gc_sections_1): Add default case to switch to
1433 avoid warnings.
1434
1435Tue Jul 14 15:42:17 1998 Richard Henderson <rth@cygnus.com>
1436
1437 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
1438 * Makefile.am (ei386beos.o): New.
1439 * emulparams/i386beos.sh: New file.
1440 * emultempl/beos.em, scripttempl/i386beos.sc: New file.
1441
1442Tue Jul 14 15:35:42 1998 Richard Henderson <rth@cygnus.com>
1443
1444 * lexsup.c: New option --version-exports-section.
1445 * ld.h (struct args_type): Add version_exports_section.
1446 * ldlang.c (lang_do_version_exports_section): New function.
1447 (lang_process): Call it.
1448
1449Mon Jul 13 13:20:23 1998 Steve Chamberlain <sac@transmeta.com>
1450
1451 * ldlex.l: Accept ASSERT.
1452 * ldgram.y (exp): Add ASSERT_K case.
1453 * ldexp.h (node_type): Add etree_assert to node_class enum.
1454 (etree_type): Add assert_s field.
1455 (exp_assert): Declare.
1456 * ldexp.c (exp_fold_tree): Handle etree_assert.
1457 (exp_assert): New function.
1458 (exp_print_tree): Handle etree_assert.
1459 * ld.texinfo (Miscellaneous Commands): Document ASSERT.
1460
1461Wed Jul 8 14:03:12 1998 Ian Lance Taylor <ian@cygnus.com>
1462
1463 * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
1464 conflicts with system header files. Change all uses.
1465
1466 * Makefile.am (MAINTAINERCLEANFILES): Define.
1467 * Makefile.in: Rebuild.
1468
1469Tue Jul 7 18:03:22 1998 Ian Lance Taylor <ian@cygnus.com>
1470
1471 * Makefile.am (ldver.texi): New target.
1472 (ld.info, ld.dvi): Depend upon ldver.texi.
1473 * ld.texinfo: Include ldver.texi. Mention version number on title
1474 page and in top node.
1475 * Makefile.in: Rebuild.
1476
1477Mon Jul 6 14:55:13 1998 Ian Lance Taylor <ian@cygnus.com>
1478
1479 * configure.tgt (i[3456]86-*-solaris*): New target.
1480
1481Fri Jul 3 14:19:06 1998 Ian Lance Taylor <ian@cygnus.com>
1482
1483 * ldlang.c (wild_section): Don't get an assertion failure if the
1484 section is discarded.
1485
1486 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
1487 * emultempl/pe.em (sort_by_file_name): Remove.
1488 (sort_by_section_name): Remove.
1489 (sort_sections_1, sort_sections): Remove.
1490 (gld_${EMULATION_NAME}_before_allocation): Don't call
1491 sort_sections.
1492 (hold_section, hold_section_name): New static variables.
1493 (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
1494 (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good
1495 place to put the section. Align the section. Sort the input
1496 sections by name.
1497 (gld_${EMULATION_NAME}_place_section): New static function.
1498
1499 * ldlang.c (wild_sort): When sorting by file name, sort by archive
1500 name first.
1501
1502 * emultempl/pe.em (set_pe_subsystem): Don't call
1503 ldlang_add_undef.
1504 (gld_${EMULATION_NAME}_after_parse): New static function.
1505 (ld_${EMULATION_NAME}_emulation): Use new after_parse function
1506 rather than after_parse_default.
1507
1508 * ldgram.y (extern_name_list): Do not require symbols to be
1509 separated by commas.
1510 (ifile_p1): Add EXTERN.
1511 * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
1512 mode.
1513 * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
1514 (Miscellaneous Commands): Document EXTERN.
1515
1516Wed Jul 1 19:40:34 1998 Richard Henderson <rth@cygnus.com>
1517
1518 * ld.h (args_type): Add gc_sections.
1519 * ldgram.y (ldgram_had_keep, KEEP): New.
1520 (input_section_spec_no_keep): Rename from old input_section_spec.
1521 (input_section_spec): New. Recognize KEEP.
1522 * ldlang.c (wild_section): Handle keep sections.
1523 (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
1524 (lang_gc_sections_1, lang_gc_sections): New.
1525 (lang_process): Invoke lang_gc_sections.
1526 (lang_add_wild): Add keep argument. Update all callers.
1527 * ldlang.h (lang_wild_statement_struct): Add keep_sections.
1528 * ldlex.l (KEEP): Match it.
1529 * ldmain.c (main): Error on -r and --gc-sections.
1530 * lexsup.c: Add --gc-sections.
1531
1532 * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
1533 Mark startup sections with KEEP.
1534 * scripttempl/elfppc.sc: Likewise.
1535
1536 * ld.texinfo: Update for --gc-sections and KEEP.
1537
1538Wed Jul 1 15:21:20 1998 Ian Lance Taylor <ian@cygnus.com>
1539
1540 From Peter Jordan <pjordan@chla.usc.edu>:
1541 * scripttempl/i386go32.sc: Correct constructor handling for -u.
1542
1543Tue Jun 23 15:17:27 1998 Ian Lance Taylor <ian@cygnus.com>
1544
1545 * Makefile.am (install-data-local): Make ldscripts subdirectory.
1546 * Makefile.in: Rebuild.
1547
1548Tue Jun 23 15:17:04 1998 Mike Stump <mrs@wrs.com>
1549
1550 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
1551 with the program transform name.
1552 * Makefile.in: Rebuild.
1553
1554Sun Jun 21 23:55:16 1998 Jeffrey A Law (law@cygnus.com)
1555
1556 * ld.texinfo: Note that -relax may make symbolic debugging
1557 impossible on some platforms.
1558
1559Tue Jun 16 12:51:13 1998 Geoff Keating <geoffk@ozemail.com.au>
1560
1561 * Makefile.am (Makefile): Remove target.
1562 (config.status): New target.
1563 * Makefile.in: Rebuild.
1564
1565 * configure.host (powerpc*-*-linux-gnu*): New host.
1566
1567Fri Jun 12 17:38:07 1998 Doug Evans <devans@seba.cygnus.com>
1568
1569 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
1570
1571 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
1572 stack to 8MB.
1573
1574Fri Jun 12 19:33:17 1998 Ian Lance Taylor <ian@cygnus.com>
1575
1576 * Makefile.am (HFILES): Remove config.h.
1577 (EMULATION_OFILES, POTFILES): Move patch of May 14 from
1578 Makefile.in to Makefile.am.
1579 (earmcoff.c): Depend upon armcoff.em, not generic.em.
1580 * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
1581 ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
1582 * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
1583
1584Fri Jun 12 13:43:17 1998 Tom Tromey <tromey@cygnus.com>
1585
1586 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
1587 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
1588
1589Tue Jun 9 09:36:48 1998 Nick Clifton <nickc@cygnus.com>
1590
1591 * ldlang.c (lang_finish): Add CONST type modifier to declaration
1592 of 'send'.
1593
1594Fri Jun 5 18:19:59 1998 Ian Lance Taylor <ian@cygnus.com>
1595
1596 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
1597 config.has_shared to true.
1598 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
1599 Likewise.
1600 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
1601 Likewise.
1602
1603Tue Jun 2 12:55:03 1998 Ian Lance Taylor <ian@cygnus.com>
1604
1605 * ldlang.c (lang_finish): If the entry symbol is not found, try
1606 parsing it as a number.
1607 * ld.texinfo (Options): Document this.
1608
1609Mon Jun 1 14:01:20 1998 Ian Lance Taylor <ian@cygnus.com>
1610
1611 * ld.texinfo (Input Section Wildcards): Document SORT keyword.
1612
1613Mon May 18 12:42:53 1998 Doug Evans <devans@canuck.cygnus.com>
1614
1615 * ld.h (ld_config_type): New member has_shared.
1616 * ldmain.c (main): Initialize it.
1617 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
1618 * lexsup.c (parse_args): Treat -shared as error if not supported.
1619
1620Mon May 18 13:14:43 1998 Ian Lance Taylor <ian@cygnus.com>
1621
1622 From Jason Merrill <jason@cygnus.com>:
1623 * ldlang.c (wild_sort): Correct order of sort.
1624 * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
1625 .dtors.
1626 * scripttempl/elfd10v.sc: Likewise.
1627 * scripttempl/elfd30v.sc: Likewise.
1628 * scripttempl/elfppc.sc: Likewise.
1629
1630Fri May 15 00:22:35 1998 Ian Lance Taylor <ian@cygnus.com>
1631
1632 * ldlex.l: Recognize keyword SORT.
1633 * ldgram.y (current_file): Change to struct wildcard_spec.
1634 (%union): Add new fields cname and wildcard.
1635 (wildcard_name, wildcard_spec): New nonterminals.
1636 (file_NAME_list): Use wildcard_spec.
1637 (input_section_spec): Change current_file usage.
1638 * ld.h (struct wildcard_spec): Define.
1639 * ldlang.h (lang_wild_statement_struct): Add new fields
1640 sections_sorted and filenames_sorted.
1641 (lang_add_wild): Update declaration.
1642 * ldlang.c (wild_sort): New static function.
1643 (wild_section): Use wild_sort.
1644 (print_wild_statement): Print sorting information.
1645 (lang_add_wild): Add new parameters sections_sorted and
1646 filenames_sorted. Change all callers.
1647 * mri.c (mri_draw_tree): Update calls to lang_add_wild.
1648 * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
1649 * scripttempl/elfd10v.sc: Likewise.
1650 * scripttempl/elfd30v.sc: Likewise.
1651 * scripttempl/elfppc.sc: Likewise.
1652
1653Thu May 14 18:39:16 1998 Richard Henderson <rth@cygnus.com>
1654
1655 * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
1656
1657Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
1658
1659 * ldemul.h: Add new prototype: ldemul_list_emulation_options.
1660 (ld_emulation_xfer_struct): Add new field: list_options.
1661 * ldemul.c (ldemul_list_options): New function. Call the
1662 list_options field of the ld_emulation_xfer_struct for each
1663 supported emulation, if such a function is present.
1664 * lexsup.c (help): Call ldemul_list_emulation_options.
1665 * emultempl/pe.em (gld_<>_list_options): New function. Describe
1666 the pe emulation specific command line options.
1667 * emultempl/armcoff.em (gld<>_list_options): New function.
1668 Describe the armcoff emulation specific command line options.
1669
1670 * emultempl/pe.em: Add a new command line option:
1671 --support-old-code.
1672 * emultempl/armcoff.em: Ditto.
1673 * ld.texinfo: Document the --support-old-code option.
1674
1675 * Makefile.in: Add emulation files for POTFILES.in target.
1676 * emultempl/pe.em: Internationalise suitable strings.
1677 * emultempl/armcoff.em: Internationalise suitable strings.
1678 * po/POTFILES.in: Rebuilt.
1679
1680Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com)
1681
1682 * po/Make-in (install-info): New target.
1683
1684Tue Apr 28 19:18:30 1998 Tom Tromey <tromey@cygnus.com>
1685
1686 * ldmain.c (main): Conditionally call setlocale.
1687 * ld.h: Include <locale.h> if HAVE_LOCALE_H.
1688 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
1689
1690Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
1691
1692 * configure.in: Change version number to 2.9.4
1693 * configure: Rebuild.
1694
1695 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
1696
1697 Based on patch from H.J. Lu <hjl@gnu.org>:
1698 * emultempl/elf32.em (global_vercheck_needed): New file static
1699 variable.
1700 (global_vercheck_failed): New file static variable.
1701 (gld${EMULATION_NAME}_after_open): Check for shared libraries
1702 twice, once with force set to 0 and once with it set to 1.
1703 (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
1704 Change all callers.
1705 (gld${EMULATION_NAME}_search_needed): Likewise.
1706 (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check
1707 whether the libraries needs any incompatible versions.
1708 (gld${EMULATION_NAME}_vercheck): New static function.
1709
1710Wed Apr 22 16:01:35 1998 Tom Tromey <tromey@cygnus.com>
1711
1712 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
1713
1714Wed Apr 22 12:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
1715
1716 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
1717 invoking runtest.
1718 * Makefile.in: Rebuild.
1719
1720 * lexsup.c (parse_args): Change -l options into --library options
1721 to avoid confusion between -li and -library.
1722
1723 * ld.texinfo (MEMORY): Clarify use of >REGION.
1724
1725Tue Apr 21 23:12:40 1998 Tom Tromey <tromey@scribbles.cygnus.com>
1726
1727 * Many files: Added gettext invocations around user-visible
1728 strings.
1729 * ld.h: Added gettext-related includes and defines.
1730 * ldmain.c: Call setlocale, bindtextdomain, textdomain.
1731 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
1732 HAVE_LC_MESSAGES): Define.
1733 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
1734 po/Makefile. Use AM_PROG_LEX.
1735 (TDIRS): AC_SUBST early on, to avoid having value split when it
1736 happens to cross line 90 of the generated sed script.
1737 * Makefile.am (SUBDIRS): New macro.
1738 (POTFILES): Likewise.
1739 (po/POTFILES.in): New target.
1740 (ld_new_LDADD): Added INTLLIBS.
1741 (ld_new_DEPENDENCIES): Added INTLDEPS.
1742 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
1743
1744Tue Apr 21 23:07:07 1998 Ian Lance Taylor <ian@cygnus.com>
1745
1746 * ld.texinfo (Simple Example): Rewrite a few things as suggested
1747 by Nick Clifton <nickc@cygnus.com>.
1748 (PROVIDE): Likewise.
1749
1750Tue Apr 21 09:55:06 1998 Nick Clifton <nickc@cygnus.com>
1751
1752 * emultempl/pe.em: Rename external arm interworking functions
1753 to conform to BFD naming conventions. Add code to _after_open()
1754 function to obtain a bfd for use by the interworking code.
1755
1756 * emultempl/armcoff.em: Rename external arm interworking functions
1757 to conform to BFD naming conventions. Add new _after_open()
1758 function to obtain a bfd for use by the interworking code.
1759
1760Sun Apr 19 19:23:09 1998 Richard Henderson <rth@cygnus.com>
1761
1762 * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
1763 Update dot and the default memory section even when relaxing.
1764
1765Sat Apr 18 18:41:12 1998 Richard Henderson <rth@cygnus.com>
1766
1767 * ldlang.c (lang_one_common): Manipulate the section's cooked size
1768 rather than its raw size.
1769
1770Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
1771
1772 * configure.in (TESTBFDLIB): New. Defined and substituted.
1773 * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
1774 * configure, Makefile.in: Rebuild.
1775
1776Mon Apr 6 15:33:39 1998 Ian Lance Taylor <ian@cygnus.com>
1777
1778 * Makefile.am (ld.info): Invoke makeinfo with -I options directly
1779 rather than relying on default rule. Don't depend upon
1780 bfdsumm.texi.
1781 (ld.dvi): Likewise.
1782 (bfdsumm.texi): Remove target.
1783 (CLEANFILES): Take bfdsumm.texi out of value.
1784 * Makefile.in: Rebuild.
1785
1786Sun Apr 5 13:07:57 1998 Ian Lance Taylor <ian@cygnus.com>
1787
1788 * scripttempl/pe.sc: Use shell variables to avoid depending upon
1789 how $ is handled when expanding a shell substitution.
1790
1791Fri Apr 3 00:56:50 1998 Ian Lance Taylor <ian@cygnus.com>
1792
1793 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
1794 (DISTCLEANFILES): Add site.exp and site.bak.
1795 * Makefile.in: Rebuild.
1796
1797 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
1798 rather than in a shell variable and using AC_SUBST.
1799 * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs.
1800 (distclean-local): New target.
1801 * configure, Makefile.in: Rebuild.
1802
1803 * ld.texinfo: Completely rewrite linker script documentation.
1804
1805Mon Mar 30 12:47:33 1998 Ian Lance Taylor <ian@cygnus.com>
1806
1807 * configure.in: Set version to 2.9.1.
1808 * configure: Rebuild.
1809
1810 * Branched binutils 2.9.
1811
1812Sat Mar 28 16:48:19 1998 Ian Lance Taylor <ian@cygnus.com>
1813
1814 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
1815 (mostlyclean-local): New target to remove tmpdir.
1816 * Makefile.in: Rebuild.
1817
1818 Fix some gcc -Wall warnings:
1819 * ldcref.c (output_cref): Add casts to avoid warnings.
1820 * ldfile.c (ldfile_add_arch): Likewise.
1821 * ldlang.c (lang_leave_overlay_section): Likewise.
1822 * lexsup.c (OPTION_COUNT): Likewise.
1823 (parse_args): Likewise.
1824 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
1825 Likewise.
1826 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
1827 * ldlang.c (lang_check): Initialize variables to avoid warnings.
1828 * ldwrite.c (build_link_order): Likewise.
1829 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
1830 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
1831 Remove unused variables.
1832
1833 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
1834 MOSTCLEANFILES).
1835 * Makefile.in: Rebuild.
1836
1837Fri Mar 27 16:39:25 1998 Ian Lance Taylor <ian@cygnus.com>
1838
1839 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
1840 ARM code inside ifdef TARGET_IS_armpe.
1841
1842Wed Mar 25 11:34:13 1998 Ian Lance Taylor <ian@cygnus.com>
1843
1844 Based on patch from H.J. Lu <hjl@gnu.org>:
1845 * Makefile.am (LDDISTSTUFF): New variable.
1846 (diststuff): New target.
1847 * Makefile.in: Rebuild.
1848
1849 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
1850 relocating.
1851
1852Tue Mar 24 15:59:29 1998 Nick Clifton <nickc@cygnus.com>
1853
1854 * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
1855 hold Arm/Thumb stubs.
1856
1857 * emultempl/pe.em (gld_pe_before_allocation): Call
1858 arm_process_before_allocation (for ARM/Thumb targets) in order to
1859 gather interworking stb information.
1860
1861Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
1862
1863 * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
1864
1865Fri Mar 20 19:17:13 1998 Ian Lance Taylor <ian@cygnus.com>
1866
1867 * aclocal.m4, configure: Rebuild with libtool 1.2.
1868
1869Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
1870
1871 * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
1872 section to avoid copying certain data on fork. The linker used to
1873 include this between __data_start__ and __data_end__, but that
1874 breaks building the cygwin32 dll. The fix is to rename the
1875 section ".data_cygwin_nocopy" and explictly include it after
1876 __data_end__.
1877
1878Wed Mar 18 09:42:24 1998 Nick Clifton <nickc@cygnus.com>
1879
1880 * configure.tgt (targ_extra_emuls): Add thumb-pe target.
1881
1882Sun Mar 8 23:34:14 1998 Stan Cox <scox@equinox.cygnus.com>
1883
1884 * configure.tgt (sparclite*-*-elf): Added.
1885
1886Mon Mar 2 19:24:08 1998 Michael Meissner <meissner@cygnus.com>
1887
1888 * ldlang.c (lang_size_sections): If the default memory region is
1889 *default*, see if there is a memory region that could be used.
1890
1891Thu Feb 26 17:09:53 1998 Michael Meissner <meissner@cygnus.com>
1892
1893 * scripttempl/elfd30v.sc: Add support for .eit_v section and put
1894 it at 0xfffff020.
1895 * emulparams/d30v{elf,_o,_e}.sh: Ditto.
1896
1897Mon Feb 23 17:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
1898
1899 * emultempl/pe.em (sort_sections): Permit the wildcard to include
1900 a trailing '*' when sorting grouped sections.
1901 * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only
1902 include them when relocating.
1903
1904Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
1905
1906 * Makefile.am (install-exec-local): Install properly when ln
1907 fails or tooldir == prefix.
1908
1909Fri Feb 13 15:24:06 1998 Ian Lance Taylor <ian@cygnus.com>
1910
1911 * Makefile.am (AUTOMAKE_OPTIONS): Define.
1912 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1913
1914Thu Feb 12 14:10:44 1998 Ian Lance Taylor <ian@cygnus.com>
1915
1916 * scripttempl/elf.sc: Align the _end symbol according to the ELF
1917 format size. From Gordon W. Ross <gwr@mc.com>.
1918
1919 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
1920 * configure.host (alpha*-*-netbsd*): New host.
1921 * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
1922 targets.
1923
1924 * lexsup.c (help): Update bug-gnu-utils address.
1925 * ld.texinfo (Bug Reporting): Likewise.
1926
1927Tue Feb 10 18:05:56 1998 Ian Lance Taylor <ian@cygnus.com>
1928
1929 * ldlang.c (lang_size_sections): Warn if some memory regions were
1930 defined, but a loadable section is going into the default memory
1931 region.
1932
1933Tue Feb 10 16:17:20 1998 H.J. Lu <hjl@gnu.org>
1934
1935 * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
1936
1937Tue Feb 10 15:09:45 1998 Ian Lance Taylor <ian@cygnus.com>
1938
1939 * Makefile.am (Makefile): Add target, for dependencies on
1940 configure.host and configure.tgt.
1941 * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
1942 * Makefile.in: Rebuild.
1943
1944Mon Feb 9 13:44:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
1945
1946 * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
1947
1948 * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
1949 moved to 0x00.....4.
1950
1951Sat Feb 7 15:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
1952
1953 * configure, aclocal.m4: Rebuild with new libtool.
1954
1955Thu Feb 5 12:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
1956
1957 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
1958 From Thomas de Lellis <tdel@wrs.com>.
1959
1960 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
1961
1962Wed Feb 4 13:02:32 1998 Ian Lance Taylor <ian@cygnus.com>
1963
1964 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
1965 * Makefile.in: Rebuild.
1966
1967Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
1968
1969 Add tms320c30 support:
1970 * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
1971 * emulparams/tic30aout.sh: New file.
1972 * emulparams/tic30coff.sh: New file.
1973 * scripttempl/tic30aout.sc: New file.
1974 * scripttempl/tic30coff.sc: New file.
1975 * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
1976 etic30coff.o.
1977 (etic30aout.c, etic30coff.c): New targets.
1978 * Makefile.in: Rebuild.
1979
1980Mon Feb 2 14:10:59 1998 Ian Lance Taylor <ian@cygnus.com>
1981
1982 * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
1983 accept either ld.so or ld-linux.so.
1984
1985Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
1986
1987 * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
1988 to transform.
1989 * Makefile.in: Regenerate.
1990
1991Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
1992
1993 * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
1994
1995Fri Jan 30 11:43:49 1998 H.J. Lu <hjl@gnu.ai.mit.edu>
1996
1997 * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
1998 * Makefile.in: Rebuild.
1999
2000Thu Jan 29 16:04:21 1998 Mumit Khan <khan@xraylith.wisc.edu>
2001
2002 * ldfile.c (slash): Set to backslash if _WIN32 but not
2003 __CYGWIN32__.
2004 (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
2005 leading backslash or a leading x: as an absolute path.
2006 (ldfile_find_command_file): Use slash rather than / when
2007 generating name to try.
2008 * lexsup.c (PATH_SEPARATOR): Define.
2009 (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
2010
2011Wed Jan 28 14:06:30 1998 Richard Henderson <rth@cygnus.com>
2012
2013 * emulparams/elf64_sparc.sh (ELFSIZE): 64
2014 (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
2015 (DATA_PLT): Needed by v9 abi.
2016
2017Wed Jan 28 16:37:27 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
2018
2019 * configure.tgt (i[3456]86-*-mingw32*): New entry.
2020
2021Wed Jan 28 15:51:58 1998 Ian Lance Taylor <ian@cygnus.com>
2022
2023 * scripttempl/elf.sc: Only include linkonce sections in final
2024 sections when relocating.
2025
2026Wed Jan 28 14:10:01 1998 Ian Lance Taylor <ian@cygnus.com>
2027
2028 * ld.texinfo (Options): Add a brief description of the types of
2029 information included in a link map.
2030
2031 * ld.texinfo (Options): Mention LDEMULATION in description of -m.
2032 (Environment): Mention LDEMULATION.
2033
2034 * ld.texinfo (Options): Clarify --export-dynamic a bit.
2035
2036Thu Jan 22 16:07:23 1998 Richard Henderson <rth@cygnus.com>
2037
2038 * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
2039 pattern could match.
2040
2041Wed Jan 21 22:26:46 1998 Ian Lance Taylor <ian@cygnus.com>
2042
2043 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
2044 a relocateable link, set the image base to 0, and don't define the
2045 various symbols.
2046 * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
2047 * scripttempl/pe.sc: Swap the .data and .bss sections so that
2048 .data comes first. If doing a relocateable link, use
2049 RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
2050 sections at 0, and don't define any symbols.
2051
2052 * ldlang.c (lang_memory_default): Correct parenthisization of
2053 expression.
2054
2055Wed Jan 21 21:20:32 1998 Manfred Hollstein <manfred@s-direktnet.de>
2056
2057 * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
2058 here; they are included already via sysdep.h.
2059
2060Tue Jan 6 13:40:02 1998 Richard Henderson <rth@cygnus.com>
2061
2062 * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
2063
2064Fri Jan 2 20:15:37 1998 Michael Meissner <meissner@cygnus.com>
2065
2066 * ldgram.y (attributes_opt): Pass region pointer to
2067 lang_set_flags, not &region->flags.
2068
2069 * ldlang.c (lang_memory_default): New function to figure out a
2070 default memory region for a section if it was not specified.
2071 (lang_memory_region_lookup): Zero flags, not_flags field.
2072 (lang_map{,_flags}): Print attribute flags in memory map.
2073 (lang_size_sections): Call lang_memory_default to get default
2074 memory region.
2075 (lang_set_flags): Implement attribute flags for real. Take new
2076 argument to give the flags we are to skip for this region.
2077
2078 * ldlang.h (memory_region_struct): Add not_flags field, make both
2079 flags fields flagword type.
2080 (lang_output_section_state): Make flags field flagword type.
2081 (lang_set_flags): Update prototype to match new calling sequence.
2082 (lang_memory_region_default): Add prototype.
2083
2084 * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
2085 Define whether or not the region gets default sections, and if so,
2086 what sections.
2087
2088 * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
2089 default sections.
2090
2091Thu Jan 1 22:58:04 1998 Michael Meissner <meissner@cygnus.com>
2092
2093 * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
2094
2095Thu Jan 1 18:04:51 1998 Jeffrey A Law (law@cygnus.com)
2096
2097 * scripttempl/h8300h.sc: Fix typo.
2098 * scripttempl/h8300s.sc: Likewise.
2099
2100Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
2101
2102 * ldexp.c (fold_name): Don't crash if the symbol is defined in a
2103 section with no output section, such as a shared library section.
2104
2105Wed Dec 17 12:14:11 1997 Ian Lance Taylor <ian@cygnus.com>
2106
2107 * lexsup.c (parse_args): Keep track of where we are in the option
2108 parsing before calling ldemul_parse_args, so that we don't call it
2109 multiple times on the same argument and confuse the getopt
2110 internals.
2111
2112Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
2113
2114 * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
2115 d30velf_o to d30v_o to work in DOS environments.
2116 * Makefile.{am,in}: Ditto.
2117
2118 * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
2119 * emulparams/d30velf_{o,e}: Deleted.
2120
2121Wed Dec 10 17:40:08 1997 Nick Clifton <nickc@cygnus.com>
2122
2123 * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
2124 branch).
2125
2126 * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
2127
2128 * emultempl/armcoff.em: New file, imported from Arm branch.
2129
2130Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
2131
2132 * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
2133 defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
2134 external memory sections for rodata. Delete .string, .rodata1,
2135 and .data1 sections.
2136
2137Tue Dec 9 15:28:17 1997 Michael Meissner <meissner@cygnus.com>
2138
2139 * Makefile.am: Add Oct 23 changes to Makefile.in here.
2140
2141 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
2142
2143 * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
2144
2145 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
2146 (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
2147 external memory.
2148 (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
2149 onchip memory.
2150
2151 * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
2152 stack.
2153 ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
2154 ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
2155 .bss should go in.
2156
2157 * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
2158 .text, .data, etc go in external memory or onchip memory.
2159
2160 * configure.tgt (d30v-*-*ext*): New configuration to default
2161 .text, .data, etc. in external memory.
2162 (d30v-*-*onchip*): New configuration to default .text, .data,
2163 etc. in onchip memory.
2164 (d30v-*-*): Add d30velf_{e,o} emulations.
2165
2166 * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
2167 either the onchip text/data areas or the external memory area.
2168 (MEMORY): Get sizes from d30velf.sh.
2169 (.e{data,text,bss}): Put sections in the external memory region.
2170 (.stext): Put section in the onchip text region.
2171 (.s{data,bss}): Put sections in the onchip data region.
2172 (__stack): Assign from ${STACK_START_ADDR}.
2173 (.text): Put in ${TEXT_MEMORY} memory region.
2174 (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
2175 region.
2176 (.bss): Put in ${BSS_MEMORY} memory region.
2177
2178Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
2179
2180 * configure.tgt (targ_extra_emuls): Add support for Thumb target.
2181
2182Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
2183
2184 * ldlex.l: Don't define hex_mode. Correct number regexp to not
2185 accept hex digits without a leading $ or 0x. Handle leading $
2186 correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
2187 * ldlex.h (hex_mode): Don't declare.
2188
2189Sun Nov 16 20:16:45 1997 Michael Meissner <meissner@cygnus.com>
2190
2191 * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
2192 of internal data area and external memory on chip.
2193
2194 * scripttempl/elfd30v.sc: Define a MEMORY region that describes
2195 the 3 regions of memory on the chip. Put .text/.init/.fini into
2196 the text memory region, put other segments into the data memory
2197 region. Add more of the standard elf sections. Default __stack
2198 to be 0x20008000, which is 1 byte beyond end of the internal data
2199 region.
2200
2201Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
2202
2203 * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
2204 variant.
2205
2206Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2207
2208 * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
2209 HOSTING_LIBS.
2210
2211Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
2212
2213 * ld.h (args_type): Add warn_mismatch field.
2214 * ldmain.c (main): Initialize warn_mismatch field.
2215 * lexsup.c (parse_args): Handle --no-warn-mismatch option.
2216 * ldlang.c (ignore_bfd_error): New static function.
2217 (lang_check): If warn_mismatch is false, don't warn about
2218 mismatched input files.
2219 * ld.texinfo, ld.1: Document new option.
2220
2221Thu Oct 23 14:38:18 1997 Nick Clifton <nickc@cygnus.com>
2222
2223 * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
2224 to avoid conflicts with C code which is defining a variable called
2225 'stack'.
2226
2227Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
2228
2229 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
2230 (ALL_64_EMULATIONS): ... here.
2231 (eelf64_sparc.c): Template should be elf32 not generic.
2232 * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
2233
2234Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
2235
2236 * configure.tgt: Add sparc64-*-linux*.
2237 * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
2238
2239Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
2240
2241 * scripttempl/pe.sc: Put .eh_frame in .rdata.
2242
2243Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
2244
2245 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
2246 since we need to be able to export different versions of the same
2247 symbol.
2248
2249Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
2250
2251 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
2252
2253Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
2254
2255 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
2256 config.guess now recognizes alphaev5 etc.
2257
2258Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
2259
2260 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
2261 -s and -u as -static and -unix.
2262
2263Thu Oct 2 18:40:28 1997 Ian Lance Taylor <ian@cygnus.com>
2264
2265 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
2266 are not adding the first input section, and SEC_READONLY is clear
2267 on the output section, then don't copy it from the input section.
2268 If SEC_READONLY is not set on the input section, then clear it on
2269 the output section.
2270
2271 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
2272 elf32bmip.
2273 (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
2274 to elf32bsmip.
2275 (mips*-*-linux*): Likewise.
2276 * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
2277 setting ENTRY to __start.
2278 * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
2279 setting ENTRY to __start.
2280 * scripttempl/elf.sc: Always set ENTRY to _start if it was not
2281 already set.
2282
2283Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
2284
2285 * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
2286 Variables.
2287
2288 * scripttempl/v850.sc: Move read only areas out of zero and small
2289 data sections and into their own sections.
2290
2291Wed Sep 24 16:59:15 1997 Joel Sherrill <joel@oarcorp.com>
2292
2293 * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
2294
2295Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
2296
2297 * ld.texinfo (Section Options): Improve documentation of NOLOAD
2298 directive.
2299
2300 * aclocal.m4: Rebuild with new libtool.
2301 * configure: Rebuild.
2302
2303Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
2304
2305 * ldlang.c (wild_doit): Revert patch of September 3.
2306
2307Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
2308
2309 * Makefile.am, Makefile.in: Add rule for ev850.c
2310 * configure.tgt (targ_extra_emuls): Add v850 target.
2311
2312Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
2313
2314 * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
2315 * scripttempl/v850.sc: Add call table data area
2316
2317Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
2318
2319 Merge change from Martin Hunt:
2320
2321 * scripttempl/elfd30v.sc: Put .rodata in the .text section.
2322
2323Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
2324
2325 * ldlang.c (lang_memory_region_lookup): Remove extraneous
2326 initialization of p.
2327
2328Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
2329
2330 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
2331 expression produced for -bpT and -bpD options, align to a 32 byte
2332 boundary rather than an 8 byte boundary.
2333 * scripttempl/aix.sc: Put .tocbss at start of .bss section.
2334
2335 * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
2336 function name conflict with AIX 4.2 unistd.h header file.
2337
2338Wed Sep 3 15:12:32 1997 Ian Lance Taylor <ian@cygnus.com>
2339
2340 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
2341 noload_section.
2342
2343Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
2344
2345 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
2346 * Makefile.in: Rebuild.
2347
2348Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
2349
2350 * configure.tgt (arc-*-elf*): Recognize.
2351 * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
2352 * Makefile.in: Regenerate.
2353 * emulparams/arcelf.sh: New file.
2354
2355Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
2356
2357 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
2358 pattern to be treated as a wildcard pattern.
2359
2360 * ldgram.y (atype): Accept parentheses with no type.
2361
2362 * ld.texinfo (Section Definition): Clarify use of whitespace.
2363 (Section Placement): Likewise.
2364
2365Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
2366
2367 * configure.tgt (targ_extra_emuls): Add support for v850e target.
2368
2369Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
2370
2371 * configure.tgt (targ_extra_emuls): Add support for v850e target.
2372
2373Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
2374
2375 * Makefile.am (ld.info): Change dependency from
2376 $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
2377 (ld.dvi): Likewise.
2378 (bfdsumm.texi): New target.
2379 (CLEANFILES): Add bfdsumm.texi.
2380 * Makefile.in: Rebuild.
2381
2382 * Makefile.am: New file, based on old Makefile.in.
2383 * acinclude.m4: New file, from old aclocal.m4.
2384 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
2385 shared library handling; now handled by libtool. Replace
2386 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
2387 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
2388 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
2389 * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
2390 * acconfig.h: Mention PACKAGE and VERSION.
2391 * stamp-h.in: New file.
2392 * ldver.c (ld_program_version): Set ld_program_version from
2393 VERSION.
2394 * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
2395 * Makefile.in: Now built with automake.
2396 * aclocal.m4: Now built with aclocal.
2397 * configure, config.in: Rebuild.
2398
2399Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
2400
2401 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
2402 win32 dependencies.
2403 * configure: Regenerated with autoconf 2.12.
2404 * Makefile.in: Add $(EXEEXT) to executable.
2405
2406Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
2407
2408 * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
2409 (SEGMENT_SIZE): Set to 0x200.
2410 * scripttempl/i386go32.sc: Rewrite.
2411 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
2412
2413Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
2414
2415 From Manfred Hollstein <manfred@s-direktnet.de>:
2416 * configure.host (i[3456]86-*-linux*libc1*): Renamed from
2417 i[3456]86-*-linux*.
2418 (i[3456]86-*-linux*): New host.
2419
2420Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
2421
2422 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
2423 sections in the output .rsrc section.
2424
2425Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2426
2427 * configure.host (m68*-*-linux*libc1*): Renamed from
2428 `m68*-*-linux*'.
2429 (m68*-*-linux*): New configuration for use with GNU libc 2.
2430
2431Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
2432
2433 * scripttempl/elfppc.sc: Correct .rela.sdata entries.
2434
2435 * scripttempl/elfppc.sc: Put the PLT between the small and large
2436 BSS segments.
2437 * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
2438 program base of 0x02000000 is recommended...' because otherwise
2439 shared libraries are less efficient. We use 0x01800000 because
2440 otherwise it's impossible to branch to location 0, for instance if
2441 you have an undefined weak symbol.
2442
2443Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2444
2445 * ldlang.c (lang_place_undefineds): Add \n in einfo call.
2446 (lang_size_sections): Likewise.
2447 * ldlex.l: Likewise.
2448 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
2449 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
2450 Likewise.
2451 (check_sections): Likewise.
2452 (gld${EMULATION_NAME}_after_allocation): Likewise.
2453 * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
2454 Likewise.
2455 * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
2456 * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
2457 (check_sections): Likewise.
2458 (gldmipsidt_after_allocation): Likewise.
2459
2460 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
2461
2462Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
2463
2464 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
2465 the import list.
2466
2467Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
2468
2469 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
2470 crash if an output section has no BFD section.
2471
2472Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
2473
2474 * lexsup.c (ld_options): Add entry for the new "task-link" option.
2475 (parse_args): Handle the "task-link" option.
2476 (OPTION_TASK_LINK): Add define.
2477
2478Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
2479
2480 * ldmain.c (main): Correct check of fclose return value when
2481 handling --force-exe-suffix.
2482
2483Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
2484
2485 * ldlang.c (lang_check): Add test of the return value from the
2486 call to bfd_merge_private_bfd_data().
2487
2488Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
2489
2490 * scripttempl/elfmips.sc: Remove.
2491 * scripttempl/elf.sc: Set ENTRY based on target. Permit
2492 TEXT_DYNAMIC to control .dynamic segment. Permit
2493 SHLIB_TEXT_START_ADDR to set start of shared object. Support
2494 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
2495 .gnu.linkonce.t* in .text when relocating. Support
2496 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
2497 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
2498 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
2499 (DATA_ADDR): Don't set.
2500 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
2501 (OTHER_TEXT_SECTIONS): Set.
2502 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
2503 (MACHINE): Set to empty string.
2504 * emulparams/elf32l4300.sh: Likewise.
2505 * emulparams/elf32ebmip.sh: Likewise.
2506 * emulparams/elf32elmip.sh: Likewise.
2507 * emulparams/elf32bmip.sh: Likewise. Also:
2508 (TEXT_DYNAMIC): Set.
2509 * emulparams/elf32lmips.sh: Likewise.
2510 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
2511 elfmips.sc.
2512 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
2513
2514Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2515
2516 * scripttempl/elf.sc: Don't align the data segment on the next 8
2517 byte boundary, instead let the linker use whatever the individual
2518 sections require.
2519
2520Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
2521
2522 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
2523
2524Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
2525
2526 From Sean McNeil <sean@mcneil.com>:
2527 * emultempl/pe.em (sort_by_file_name): Sort by archive name
2528 first.
2529 (sort_sections): Sort all sections, not just sections in the same
2530 archive.
2531
2532Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
2533
2534 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
2535 targets.
2536
2537Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
2538
2539 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
2540 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
2541 in the .text section. Move .const, .ctors, .dtors into separate
2542 sections.
2543
2544Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
2545
2546 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
2547 around assignment of current location pointer.
2548
2549Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
2550
2551 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
2552 appropriately.
2553
2554Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
2555
2556 * Makefile.in (INSTALL): Set to @INSTALL@.
2557 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
2558 (install): Depend upon ld.new and installdirs. Use
2559 $(program_transform_name) directly, rather than using
2560 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
2561 (installdirs): New target.
2562 (install-info): Run mkinstalldirs.
2563
2564Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
2565
2566 * Makefile.in (INSTALL): Change install.sh to install-sh.
2567
2568 From Thomas Graichen <graichen@rzpd.de>:
2569 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
2570 * configure: Rebuild.
2571
2572Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
2573
2574 * emultempl/pe.em: Include "libiberty.h".
2575 (sort_sections_1): Use xmalloc rather than alloca.
2576
2577 * ldlex.l: Recognize SQUAD.
2578 * ldgram.y (length): Add SQUAD.
2579 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
2580 reloc.
2581 * ldlang.c (print_data_statement): Handle SQUAD.
2582 (lang_size_sections, lang_do_assignments): Likewise.
2583 * ldexp.c (exp_print_token): Add SQUAD to table.
2584 * ldwrite.c (build_link_order): Handle SQUAD.
2585 * ld.texinfo (Section Data Expressions): Document SQUAD.
2586
2587Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
2588
2589 * ldver.c (ld_program_version): Set to 2.8.1.
2590
2591 * Branched binutils 2.8.
2592
2593Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
2594
2595 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
2596 * mpw-elfmips.c: Rename from mpw-emipself.c.
2597 * mpw-config.in: Update accordingly.
2598
2599 * ldlang.c (lang_process): Call lang_check immediately after
2600 opening the input files, rather than at the end of the link.
2601
2602Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
2603
2604 * emultempl/pe.em (init): Fully bracket initializer.
2605 (set_pe_stack_heap): Remove locals begin_commit and end.
2606 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
2607 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
2608
2609Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
2610
2611 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
2612
2613Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2614
2615 Contributed by David S. Miller <davem@caip.rutgers.edu>:
2616 * configure.tgt (sparc*-*-linuxaout*): New target.
2617 (sparc*-*-linux*): New target.
2618 * emulparams/sparclinux.sh: New file.
2619 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
2620 (esparclinux.c): New target.
2621
2622Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
2623
2624 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
2625 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
2626 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
2627 elf32elmip.
2628
2629Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
2630
2631 * lexsup.c (parse_args): Update copyright date in version
2632 message.
2633
2634Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
2635
2636 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
2637
2638Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
2639
2640 * Makefile.in: Rebuild dependencies.
2641
2642 * emultempl/aix.em: Include "obstack.h".
2643
2644Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
2645
2646 * ldlang.c: Include "obstack.h".
2647
2648Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
2649
2650 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
2651
2652Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
2653
2654 * ldemul.h (ldemul_list_emulations): Use full prototype.
2655 * ldlang.c (print_one_symbol): Add declaration.
2656 * ldlang.h (dprint_statements): Declare.
2657 * ldmain.c (remove_output): Declare.
2658 * ldmisc.c (vfinfo): Declare.
2659 * ldwrite.c (clone_section): Declare.
2660 (split_sections): Make static. Declare.
2661 * mri.c: Include libiberty.h.
2662 (strdup): Don't declare.
2663 (mri_alias): Use xstrdup rather than strdup.
2664
2665Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
2666
2667 * scripttempl/elfmips.sc: Change handling of data area when
2668 generating a shared library to not skip a large block of memory.
2669 From Per Fogelstrom <pefo@cvs.openbsd.org>.
2670
2671Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
2672
2673 * ldmain.c (multiple_definition): Only skip the warning if the
2674 output section is absolute when the input section is not
2675 absolute.
2676
2677 * ldlex.l: Accept whitespace in VERS_START state. Warn about
2678 invalid characters in VERS_* states.
2679
2680Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
2681
2682 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
2683 trailing space lead us to think that there is a zero address.
2684
2685Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
2686
2687 * ldgram.y (vers_node): Correct typo of '(' for '{'.
2688
2689Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
2690
2691 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
2692 rather than _start.
2693 (__edata): Define this rather than "edata".
2694 (__end): Define this rather than "end".
2695
2696Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
2697
2698 * configure.tgt (tic80-*-*): Allow dropping of -coff.
2699
2700Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
2701
2702 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
2703 as TEXINPUTS. Needed for building in separate build dir.
2704 * ldint.texinfo (SCRIPT_NAME): Fix typo.
2705 * emulparams/tic80coff.sh: Rewrite to include internal documentation
2706 about each shell variable that is set (or not set).
2707 * scripttempl/tic80coff.sc: Complete rewrite.
2708
2709Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
2710
2711 * ldmain.c (main): Call bfd_set_default_target.
2712 * Makefile.in (ldmain.o): Define TARGET when compiling.
2713
2714Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
2715
2716 * ldmain.c (main): Don't initialize link_info.lprefix or
2717 link_info.lprefix_len.
2718 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
2719
2720 * emultempl/m88kbcs.em: Remove.
2721 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
2722 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
2723 m88kbcs.em.
2724
2725 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
2726 to lang_enter_output_section_statement. From Mark Rasin
2727 <mark.rasin@telrad.co.il>.
2728
2729Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
2730
2731 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
2732 section.
2733
2734Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
2735
2736 * configure.tgt (mips*-*-lnews*): New target.
2737 * Makefile.in (emipslnews.c): New target.
2738 * emulparams/mipslnews.sh: New file.
2739
2740Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
2741
2742 * emultempl/elf32.em (hold_interp): New static variable.
2743 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
2744 after hold_interp. Choose a unique output section name.
2745 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
2746 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
2747
2748Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
2749
2750 From Eric Youngdale <eric@andante.jic.com>:
2751 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
2752 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
2753 information.
2754 (ldlex_version_script, ldlex_version_file): New functions.
2755 * ldlex.h (enum input_enum): Add input_version_script.
2756 (ldlex_version_script): Declare.
2757 (ldlex_version_file): Declare.
2758 * ldgram.y (%union): Add deflist, versyms, and versnode.
2759 (VERS_TAG, VERS_IDENTIFIER): New terminals.
2760 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
2761 (file): Accept INPUT_VERSION_SCRIPT.
2762 (ifile_p1): Accept version.
2763 (version_script_file): New nonterminal.
2764 (version, vers_nodes, vers_node): Likewise.
2765 (verdep, vers_tag, ver_defns): Likewise.
2766 * ldlang.c (lang_elf_version_info): New global variable.
2767 (lang_new_vers_regex): New function.
2768 (lang_new_vers_node): New function.
2769 (version_index): New static variable.
2770 (lang_register_vers_node): New function.
2771 (lang_add_vers_depend): New function.
2772 * ldlang.h (lang_elf_version_info): Declare.
2773 (lang_new_vers_regex, lang_new_vers_node): Declare.
2774 (lang_add_vers_depend, lang_register_vers_node): Declare.
2775 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
2776 (ld_options): Add "version-script".
2777 (parse_args): Handle OPTION_VERSION_SCRIPT.
2778 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2779 Pass lang_elf_version_info to size_dynamic_sections.
2780 * scripttempl/elf.sc: Add .gnu.version sections.
2781 * ld.texinfo: Document symbol versioning.
2782
2783Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2784
2785 * Makefile.in (ed30velf.c): New target.
2786 * configure.tgt (d30v-*-*): New target.
2787 * emulparams/d30velf.sh: New file.
2788 * scripttempl/elfd30v.sc: New file.
2789
2790Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
2791
2792 * ld.texinfo (Option Commands): Document the INCLUDE command.
2793
2794Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
2795
2796 * configure.in: Call BFD_NEED_DECLARATION on getenv.
2797 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
2798 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
2799 * ldemul.c (ld_emul_default_target): Do not cast getenv return
2800 value.
2801 * ldmain.c (get_emulation): Likewise.
2802 * configure, config.in: Rebuild.
2803
2804Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
2805
2806 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
2807 .mips16.call.* in .text.
2808
2809Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
2810
2811 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
2812 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
2813 * Makefile.in (etic80coff.c): Add target and rule to build it.
2814 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
2815
2816Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
2817
2818 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
2819 ".so" in the name, not ".so.".
2820 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
2821
2822 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
2823 <alan@spri.levels.unisa.edu.au>.
2824
2825Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
2826
2827 * emultempl/sunos.em: Include <ctype.h>.
2828 (gld${EMULATION_NAME}_find_so): Skip the directory name when
2829 searching for ".so.".
2830 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
2831 has a version number, and that only version numbers follow .so.
2832
2833Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
2834
2835 * scripttempl/pe.sc:
2836 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
2837 section so Win32 executables are valid.
2838
2839Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
2840
2841 * scripttempl/elf.sc: Put linkonce reloc section in other
2842 appropriate reloc sections.
2843 * scripttempl/elfmips.sc: Add linkonce support.
2844 * scripttempl/elfppc.sc: Likewise.
2845
2846Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
2847
2848 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
2849 stack up to 0x80000.
2850 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
2851
2852Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
2853
2854 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
2855 to define `_stack'.
2856
2857Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
2858
2859 * ld.h (args_type): Rename auxiliary_filter_shlib to
2860 auxiliary_filters, and make it char **.
2861 * lexsup.c (parse_args): Handle -f by setting up an array.
2862 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2863 new name of auxiliary_filters.
2864
2865 * ld.texinfo (Options): Improve documentation of --filter and
2866 --auxiliary.
2867
2868Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
2869
2870 * ld.texinfo (Options): Clarify that the normal usage is -T.
2871 (Commands): Likewise.
2872
2873Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
2874
2875 * scripttempl/armcoff.sc: Correct mask used for .data address.
2876
2877Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
2878
2879 * emultempl/pe.em: make default executable a.exe instead of
2880 a.out
2881
2882Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
2883
2884 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
2885 shifting .plt back. Rumour has it that the NetBSD ld.so depends
2886 on .dynamic being after .got, so we leave that.
2887
2888Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
2889
2890 * Makefile.in (clean): Don't remove configdoc.texi.
2891 (maintainer-clean): Do remove configdoc.texi.
2892
2893 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
2894 to avoid confusing texi2roff.
2895
2896Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2897
2898 * scripttempl/v850.sc (.zdata): Add .zcommon section.
2899 (.tdata): Add .tcommon and .tcommon_byte sections.
2900
2901Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
2902
2903 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
2904 * scripttempl/elfmips.sc: Use __start as the entry address for
2905 mips*-*-linux*.
2906
2907Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
2908
2909 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
2910
2911 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
2912 fields.
2913 * lexsup.c (parse_args): Recognize --auxiliary/-f and
2914 --filter/-F.
2915 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2916 Pass filter_shlib and auxiliary_filter_shlib to
2917 size_dynamic_sections.
2918 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
2919
2920Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2921
2922 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
2923
2924Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
2925
2926 * mpw-make.sed: Use NewFolderRecursive for installation.
2927
2928Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2929
2930 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
2931 {s,t}data sections. Do not emit any linker generated symbols if
2932 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
2933 where the different sections go. Change some whitespace.
2934
2935 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
2936 appropriately. Remove crud not used anymore.
2937
2938Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
2939
2940 * Makefile.in (emn10200.c): Add dependencies.
2941 * configure.tgt: Handle mn10200.
2942 * emulparms/mn10200.sh: New file.
2943
2944Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
2945
2946 * emultempl/gld960c.em: Include <ctype.h>.
2947 (gld960_set_output_arch): Get the machine type from the -A option
2948 if there is one, rather than always using core.
2949
2950Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
2951
2952 * emulparms/mn10300.sh: Handle leading underscores.
2953
2954Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
2955
2956 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
2957 set hold_rel if SEC_ALLOC is set.
2958
2959Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
2960
2961 * ldlang.c (section_already_linked): Set the output_offset as well
2962 as the output_section when only reading symbols from a file.
2963
2964Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
2965
2966 * emulparams/*.sh: Make sure that each set of parameters which
2967 uses the elf.sc script sets MACHINE.
2968
2969Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
2970
2971 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
2972 * scripttempl/elfd10v.sc: Likewise.
2973 * scripttempl/v850.sc: Likewise.
2974
2975Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
2976
2977 * configure: Rebuild with autoconf 2.12.
2978
2979Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
2980
2981 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
2982 for bfd_vma to init loop.
2983
2984Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
2985
2986 * emulparms/mn10300.sh: Remove bogus '_' prefix for
2987 entry symbol and ctor/dtor stuff.
2988
2989Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
2990
2991 * Makefile.in (emn10300.c): Add dependencies.
2992 * configure.tgt: Handle mn10300.
2993 * emulparms/mn10300.sh: New file.
2994
2995Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2996
2997 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
2998 (EMBEDDED): Define.
2999
3000Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
3001
3002 * ld.texinfo: Add section on reporting bugs.
3003
3004 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
3005 symbols are correctly aligned.
3006
3007Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
3008
3009 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
3010 romzbss too.
3011
3012Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3013
3014 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
3015 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
3016 0x2000000.
3017
3018 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
3019 .stack to start at 0x2007ffe.
3020
3021Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
3022
3023 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
3024
3025Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
3026
3027 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
3028
3029 * scriptempl/v850.sc (zdata): Make sure this stays
3030 in lo-memory.
3031
3032Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
3033
3034 * scripttempl/v850.sc (__ep): Put it at the start
3035 of the tda section.
3036
3037 * scriptempl/v850.sc: Move all "normal" sections into
3038 the external memory region (0x100000 - 0x200000).
3039
3040Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
3041
3042 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
3043 0x10000, so that is more room for data.
3044
3045 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
3046 (READONLY_START_ADDR): Now 0x0.
3047 (SCRIPT_NAME): Now elfd10v.
3048
3049 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
3050
3051Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
3052
3053 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
3054
3055Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
3056
3057 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
3058 (ALL_64_EMULATIONS): New variable.
3059 * configure.in: Accept --enable-64-bit-bfd option. If it is set
3060 with --enable-targets=all, include ALL_64_EMULATIONS in
3061 EMULATION_OFILES.
3062 * configure: Rebuild.
3063
3064Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
3065
3066 * scripttempl/v850.sc (__gp, __ep): Define.
3067
3068Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
3069
3070 * ld.texinfo: Try to consistently use a single or a double dash
3071 for each option.
3072
3073Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
3074
3075 * emulparams/m32relf.sh (EMBEDDED): Define.
3076
3077Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
3078
3079 * scripttempl/v850.sc (.zdata): Add this before .text.
3080 (.sdata): Also include .rosdata as part of the .sdata.
3081 (.tdata): Include this just before .sdata.
3082
3083 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
3084 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
3085
3086Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
3087
3088 * scripttempl/v850.sc: New linker script for the V850.
3089 * Makefile.in: Use it.
3090
3091Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
3092
3093 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
3094 OTHER_READWRITE_SECTIONS.
3095 * emulparams/elf32l4300.sh: Likewise.
3096
3097Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
3098
3099 * ld.h (ld_config_type): Add warn_section_align field.
3100 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
3101 (ld_options): Add --warn-section-align.
3102 (parse_args): Handle --warn-section-align.
3103 * ldlang.c (lang_size_sections): If warn_section_align, warn if
3104 the start of a section changes due to alignment.
3105 * ld.texinfo, ld.1: Document --warn-section-align.
3106 * ld.texinfo: Change some single dashes to double dashes.
3107
3108 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
3109 subsystem type. Ifdef out os2 type. Recognize a version number.
3110
3111Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
3112
3113 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
3114 to windows, set the entry point.
3115
3116 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
3117
3118Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
3119
3120 * ld.texinfo (Options): Mention .so extensions for shared
3121 libraries.
3122
3123Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
3124
3125 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
3126
3127Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
3128
3129 * scripttempl/m68kcoff.sc: Only set the address of .text if
3130 RELOCATING.
3131
3132Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
3133
3134 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
3135 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
3136 (OUTPUT_FORMAT): Support bi-endian targets.
3137
3138Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
3139
3140 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
3141 * Makefile.in: Rebuild dependencies.
3142 (CFILES): Remove fnmatch.c.
3143 (HFILES): Remove fnmatch.h.
3144 (OFILES): Remove fnmatch.o.
3145
3146Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3147
3148 * Makefile.in (mostlyclean): Move config.log to distclean.
3149
3150Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
3151
3152 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
3153 (necessary in order to compile parse.c in gcc sources under NT)
3154
3155Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
3156
3157 * lexsup.c (ld_options): Fix typo in --rpath-link description.
3158 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
3159 --rpath if a needed library is not found.
3160
3161Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
3162
3163 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
3164
3165Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
3166
3167 * ld.texinfo (Options): Give more detail on -l option.
3168
3169 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
3170 elf.sc does, so that glibc works better.
3171
3172 * ldver.c (ld_program_version): New variable.
3173 (ldversion): Use it.
3174 * ldver.h (ld_program_version): Declare.
3175 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
3176 --version. Change --version handling to match current GNU
3177 standards.
3178 (help): Print bug report address.
3179
3180Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
3181
3182 * Makefile.in (em32relf.c): Add rule for.
3183 * configure.tgt (m32r-*-*): Recognize.
3184 * emulparams/m32relf.sh: New file.
3185
3186Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
3187
3188 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
3189 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
3190 wildcards in matching.
3191 * mpw-emipself.c: New file, pregenerated mips elf emulation.
3192
3193Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
3194
3195 * ldint.texinfo: Rewrote.
3196
3197 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
3198
3199Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
3200
3201 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
3202 syntax error on __end__ line.
3203
3204 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
3205 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
3206
3207Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
3208
3209 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
3210
3211Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
3212
3213 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
3214 stack at top of simulator memory.
3215
3216Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
3217
3218 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
3219
3220Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
3221
3222 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
3223
3224Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
3225
3226 * ldlang.c (section_already_linked): Accept a lang_input_statement
3227 as the PTR argument. If the file is symbols only, discard all
3228 input sections.
3229 (ldlang_add_file): Pass entry to bfd_map_over_sections.
3230
3231Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
3232
3233 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
3234 <fila@ibi.com>.
3235
3236Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
3237
3238 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
3239
3240Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
3241
3242 * emulparms/v850.sh: Set EMBEDDED.
3243
3244Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
3245
3246 * emulparms/v850.sh: Entry symbol is "_start", tweak
3247 ctor/dtor support.
3248
3249Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
3250
3251 * configure.tgt (sh-*-elf*): New target.
3252 * emulparams/shelf.sh: New file.
3253 * emulparams/shlelf.sh: New file.
3254 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
3255 (eshelf.c, eshlelf.c): New targets.
3256 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
3257 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
3258 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
3259 OTHER_RELOCATING_SECTIONS if RELOCATING.
3260
3261Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3262
3263 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
3264 pro.
3265
3266Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
3267
3268 * ldgram.y (section): Add opt_nocrossrefs; pass value to
3269 lang_enter_overlay.
3270 (opt_nocrossrefs): New nonterminal.
3271 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
3272 * ldlang.c (overlay_nocrossrefs): New static variable.
3273 (lang_enter_overlay): Add nocrossrefs parameter.
3274 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
3275 is set. Initialize overlay_nocrossrefs.
3276 * ldlang.h (lang_enter_overlay): Update declaration.
3277 * ld.texinfo (Overlays): Update documentation.
3278
3279 * ldver.c (ldversion): Print GNU ld in the version message.
3280
3281Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
3282
3283 * configure.host: Set HLDENV.
3284 * configure.in: Substitute HLDENV.
3285 * configure: Rebuild.
3286 * Makefile.in (HLDENV): New variable.
3287 ($(LD_PROG)): Use $(HLDENV).
3288
3289Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
3290
3291 * Makefile.in (ev850.c): New target.
3292 * configure.tgt (v850-*-*): New target.
3293 * emulparams/v850.sh: New file.
3294
3295Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
3296
3297 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
3298
3299Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
3300
3301 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
3302 containing sections.
3303
3304Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
3305
3306 * fnmatch.c: Include sysdep.h.
3307
3308Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3309
3310 * genscripts.sh: Undo 8/16 change.
3311
3312 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
3313
3314Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3315
3316 * genscripts.sh: Explicitly reset any shell variables set or used
3317 by the various .sc scripts to allow inadvertant use of these
3318 names as normal environment variables by the person running
3319 configure.
3320
3321 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
3322
3323Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
3324
3325 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
3326 __data_start__, __data_end__): Added to keep in sync. with the
3327 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
3328
3329Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
3330
3331 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
3332 defined in info->defsec, not just the section symbol.
3333
3334Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
3335
3336 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
3337 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
3338 (NEED_DECLARATION_SBRK): New macro.
3339 * configure, config.in: Rebuild.
3340 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
3341 * ldmain.c (sbrk): Declare if HAVE_SBRK and
3342 NEED_DECLARATION_SBRK.
3343
3344 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
3345
3346Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
3347
3348 * ldlex.l: Recognize OVERLAY.
3349 * ldgram.y: Add section_phdr field to %union.
3350 (section): Handle phdr_opt result. Add OVERLAY case.
3351 (opt_exp_without_type): New nonterminal.
3352 (phdr_opt): Return list of phdrs.
3353 (overlay_section): New nonterminal.
3354 * ldlang.c: Include <ctype.h>.
3355 (lang_leave_output_section_statement): Add phdrs parameter.
3356 Change all callers.
3357 (lang_section_in_phdr): Remove.
3358 (overlay_vma, overlay_lmn, overlay_max): New static variables.
3359 (struct overlay_list): Define.
3360 (overlay_list): New static variable.
3361 (lang_enter_overlay, lang_enter_overlay_section): New functions.
3362 (lang_leave_overlay_section, lang_leave_overlay): New functions.
3363 * ldlang.h (lang_leave_output_section_statement): Update
3364 declaration for new parameter.
3365 (lang_section_in_phdr): Don't declare.
3366 (lang_enter_overlay, lang_enter_overlay_section): Declare.
3367 (lang_leave_overlay_section, lang_leave_overlay): Declare.
3368 * ld.texinfo (Overlays): New node under SECTIONS, documenting
3369 overlays.
3370
3371 * ldlex.l: Recognize MAX and MIN.
3372 * ldgram.y (MAX, MIN): New terminals.
3373 (exp): Recognize MAX and MIN.
3374 * ldexp.c (fold_binary): Handle MAX and MIN.
3375 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
3376
3377 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
3378 index entries.
3379
3380 * ldgram.y (SIZEOF, ADDR): Do not specify type.
3381
3382 * ldcref.c (check_nocrossref): Skip symbols with no output
3383 sections.
3384
3385Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
3386
3387 * ldgram.y (LOADADDR): New terminal.
3388 (exp): Handle LOADADDR.
3389 * ldlex.l: Recognize LOADADDR.
3390 * ldexp.c (exp_print_token): Add LOADADDR.
3391 (fold_name): Implement LOADADDR.
3392 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
3393 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
3394
3395Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
3396
3397 * ld.h (check_nocrossrefs): Declare.
3398 * ldlang.h (struct lang_nocrossref): Define.
3399 (struct lang_nocrossrefs): Define.
3400 (nocrossref_list): Declare.
3401 (lang_add_nocrossref): Declare.
3402 * ldlex.l: Recognize NOCROSSREFS keyword.
3403 * ldgram.y (%union): Add nocrossref field.
3404 (NOCROSSREFS): New terminal.
3405 (ifile_p1): Recognize NOCROSSREFS.
3406 (nocrossref_list): New nonterminal.
3407 * ldlang.c (nocrossref_list): Define.
3408 (lang_add_nocrossref): New function.
3409 * ldmain.c (main): If nocrossref_list is not NULL, call
3410 check_nocrossrefs.
3411 (warning_callback): Free symbols if there is no place to store
3412 them.
3413 (notice): Call add_cref if nocrossref_list is not NULL.
3414 * ldcref.c: Include "ldexp.h" and "ldlang.h".
3415 (check_nocrossrefs): New function.
3416 (check_nocrossref): New static function.
3417 (struct check_refs_info): Define.
3418 (check_refs, check_reloc_refs): New static functions.
3419 * Makefile.in: Rebuild dependencies.
3420 * ld.texinfo (Option Commands): Document NOCROSSREFS.
3421
3422 * ld.texinfo (Section Placement): Improve the wording of the
3423 wildcard documentation. Mention that wildcards are only searched
3424 for on the command line, not in the file system.
3425
3426 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
3427 definition of lib_path inside condition where it is used.
3428
3429Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3430
3431 * emulparams/d10velf.sh: Now works with elf.sc.
3432
3433Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3434
3435 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
3436
3437Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
3438
3439 * ldlang.c (lang_size_sections): Add the section VMA to the result
3440 value when computing the address of a section.
3441
3442 * ld.h (args_type): Add cref field.
3443 * lexsup.c (parse_args): Set command_line.cref.
3444 * ldmain.c (main): Check command_line.cref rather than
3445 link_info.notice_all.
3446 (notice): Likewise.
3447
3448 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
3449 in a section without an owner.
3450
3451Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
3452
3453 * fnmatch.h, fnmatch.c: New files.
3454 * ldlex.l: Remove unused definition of FILENAME. Add definition
3455 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
3456 NAME.
3457 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
3458 (input_section_spec): Accept '?' specially.
3459 (statement): Change exp to mustbe_exp in length and FILL cases.
3460 (section): Call ldlex_script before section statements, and call
3461 ldlex_popstate after them.
3462 * ldlang.c: Include "fnmatch.h".
3463 (wildcardp): New static function.
3464 (wild_section): Permit the section name to be a wildcard.
3465 (wild_file): New static function, broken out of wild.
3466 (wild): Call wild_file. Permit the file name to be a wildcard.
3467 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
3468 * Makefile.in: Rebuild dependencies.
3469 (CFILES): Add fnmatch.c.
3470 (HFILES): Add fnmatch.h.
3471 (OFILES): Add fnmatch.o.
3472 * ld.texinfo: Document that file and section names can now be
3473 wildcard patterns.
3474
3475 * ldlang.c (lang_place_orphans): Correct condition: place a common
3476 section if not relocateable or if common definitions are forced.
3477
3478Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3479
3480 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
3481
3482Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
3483
3484 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
3485
3486Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3487
3488 * Makefile.in (ed10velf.c): New target.
3489 * configure.tgt (d10v-*-elf*): New target.
3490 * emulparams/d10velf.sh: New file.
3491
3492Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
3493
3494 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
3495 <ANDREWG@microlise.co.uk>.
3496
3497 * configure.host: Change irix5 to irix[56]*.
3498 * configure.tgt: Likewise.
3499
3500Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
3501
3502 * emultempl/pe.em (sort_sections): Pay attention to return code.
3503
3504 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
3505
3506Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3507
3508 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
3509 the value of __start_SECNAME to the alignment required by the
3510 section to be placed.
3511
3512Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
3513
3514 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
3515 (mips*-*-elf*): Use elf32ebmip.
3516 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
3517 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
3518 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
3519 EMBEDDED defined.
3520 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
3521 EMBEDDED defined.
3522 * emulparams/elf32b4300.sh (EMBEDDED): Define.
3523 * emulparams/elf32l4300.sh (EMBEDDED): Define.
3524 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
3525 (eelf32ebmip.c, eelf32elmip.c): New targets.
3526
3527Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
3528
3529 * ldver.c (ldversion): Set version to cygnus-2.7.1.
3530
3531 * Released binutils 2.7.
3532
3533 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
3534 System V file name limitations.
3535 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
3536 pc532macha rather than pc532machaout.
3537 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
3538 epc532macha.o.
3539 (epc532macha.c): Rename target from epc532machaout.c.
3540
3541Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
3542
3543 * ldlang.c (print_padding_statement): Use %u, not %x, to print
3544 fill value.
3545
3546Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
3547
3548 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
3549
3550Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
3551
3552 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
3553 file just before the .so file, rather than just after.
3554
3555 * configure.host: Use -print-file-name=FILE rather than piping
3556 -print-libgcc-file-name through sed.
3557 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
3558 crtend.o files, in case gcc doesn't use them.
3559 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
3560
3561Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
3562
3563 * configure.tgt (mips*-dec-osf*): New target.
3564
3565Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3566
3567 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
3568 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
3569 (docdir): Removed.
3570 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
3571 (AC_PROG_INSTALL): Added.
3572 * configure: Rebuilt.
3573
3574Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3575
3576 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
3577 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
3578 non-fixed location.
3579
3580Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
3581
3582 * ldlang.h (enum section_type): Define.
3583 (lang_output_section_statement_type): Remove loadable field. Add
3584 sectype field.
3585 (lang_enter_output_section_statement): Change flags parameter in
3586 prototype to sectype.
3587 * ldgram.y (typebits): Remove.
3588 (sectype): New static variable.
3589 (opt_at): Use sectype rather than typebits.
3590 (type): Set sectype rather than typebits.
3591 (atype): Likewise.
3592 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
3593 EXPRESSION mode.
3594 * ldlang.c (lang_output_section_statement_lookup): Set sectype
3595 field rather than loadable field.
3596 (wild_doit): Check sectype rather than loadable.
3597 (lang_record_phdrs): Likewise.
3598 (lang_enter_output_section_statement): Rename flags parameter to
3599 sectype. Set sectype field rather than loadable field. Set flags
3600 field based on sectype.
3601
3602Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
3603
3604 * scripttempl/elf.sc: Force .stab* and .comment sections to start
3605 at 0.
3606
3607 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
3608 using shared libraries.
3609 * configure: Rebuild with autoconf 2.10.
3610
3611Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
3612
3613 * configure.tgt: Add support for *-*-rtems* configurations.
3614
3615Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
3616
3617 * configure.tgt (alpha-*-linuxecoff*): New target.
3618 (alpha-*-linux*): Use elf64alpha.
3619 * emulparams/elf64alpha.sh: New file.
3620 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
3621 ${ELFSIZE} rather than 32 when calling BFD routines.
3622 (hold_rodata): New static variable.
3623 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
3624 readonly section that is not code.
3625 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
3626 a .rel section unless its bfd_section field is not NULL.
3627 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
3628 (eelf64alpha.c): New target.
3629
3630Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
3631
3632 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
3633
3634Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
3635
3636 Add enough support to understand the gcc svr3.ifile script:
3637 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
3638 BIND keyword.
3639 * ldgram.y: Add BIND token.
3640 (section): Recognize GROUP.
3641 (opt_ext_with_type): Recognize a couple of cases of BIND.
3642 * ldlang.c (init_os): Don't do anything if section is already
3643 initialized. Call exp_init_os on addr_tree field.
3644 (exp_init_os): New static function.
3645 (map_input_to_output_sections): Call exp_init_os on assignment
3646 expression.
3647 (lang_place_orphans): Check for common sections by name COMMON
3648 rather than by common_section field. Don't warn about absence of
3649 [COMMON] command.
3650
3651 * ldlang.h (lang_input_statement_type): Remove useless fields
3652 common_section, common_output_section, and complained, as well as
3653 all references to them.
3654
3655 * ldexp.c: Reindent a lot of code.
3656 (exp_fold_tree): Call FAIL rather than einfo in default case.
3657
3658Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
3659
3660 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
3661 <randall.hron@medaphis.com>.
3662
3663Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
3664
3665 * scripttempl/h8300s.sc: New file for H8/S.
3666 * emulpararms/h8300s.sh: New file for H8/S.
3667 * Makefile.in (ALL_EMULATIONS): Add H8/S.
3668 (e_h8300s.c): Add dependencies.
3669 * configure.tgt: Add H8/S to targ_extra_emuls.
3670
3671Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
3672
3673 * configure.tgt (i[345]86*-*-isc*): New target. From
3674 <uddeborg@carmen.se>.
3675
3676Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
3677
3678 * lexsup.c: Include "libiberty.h".
3679 (parse_args): Copy the -Y argument into memory.
3680 (set_default_dirlist): Don't put the ':' back into the directory
3681 list.
3682
3683Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
3684
3685 * emultempl/sunos.em: Include libiberty.h.
3686 (gld${EMULATION_NAME}_set_symbols): New static function to add
3687 LD_LIBRARY_PATH to the list of search directories.
3688 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
3689
3690Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
3691
3692 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
3693 rather than . when computing _gp value. From Per Fogelstrom.
3694 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
3695
3696 * ldmain.c (main): Don't close and unlink the file on error, since
3697 remove_output will do it anyhow.
3698 * ldlang.c (open_output): Set boolean variable to true, not 1.
3699
3700Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
3701
3702 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
3703 elfmips instead of elf.
3704
3705Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
3706
3707 * ldcref.c: New file.
3708 * ld.h (add_cref, output_cref): Declare.
3709 * ldmain.c (main): Initialize notice_all field. If it is set at
3710 end of link, call output_cref.
3711 (notice): Rename from notice_ysym. Check notice_all.
3712 * ldmisc.c (finfo): Make globally visible.
3713 * ldmisc.h (finfo): Declare.
3714 * lexsup.c (OPTION_CREF): Define.
3715 (ld_options): Add "cref".
3716 (parse_args): Handle OPTION_CREF.
3717 * Makefile.in: Rebuild dependencies.
3718 (CFILES): Add ldcref.c.
3719 (OFILES): Add ldcref.o.
3720 * ld.texinfo, ld.1: Document --cref.
3721
3722Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
3723
3724 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
3725
3726Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
3727
3728 * emultempl/pe.em (sort_sections): Don't assume that a
3729 wild_statement has a section name.
3730
3731Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
3732
3733 * scripttempl/elfmips.sc: Quote test -z argument.
3734
3735 * ld.texinfo: Clarify the CONSTRUCTORS command.
3736
3737Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
3738
3739 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
3740 file, not impfile.
3741
3742Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
3743
3744 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
3745 if final link.
3746 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
3747 (sort_by_section_name, sort_sections_1): New functions.
3748 (sort_sections): Only sort by file name sections in .idata.
3749 Add "Grouped Sections" support.
3750 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
3751 Sections.
3752 (gld${EMULATION_NAME}_place_section): Delete.
3753 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
3754 (.CRT,.rsrc): Rewrite to use Grouped Section support.
3755
3756Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
3757
3758 * mpw-eppcmac.c: Update to reflect changes to aix.em.
3759
3760Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
3761
3762 * ldlang.c (dprint_statement): Stop printing at end of list.
3763
3764Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
3765
3766 Support for --force-exe-suffix
3767 * ld.h (args_type): Add force_exe_suffix.
3768 * ld.texinfo: Add documentation.
3769 * ldmain.c (main): Add support for option.
3770 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
3771 (ld_options, parse_args): Add support for option.
3772
3773Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
3774
3775 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
3776
3777Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3778
3779 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
3780 referenced but not defined.
3781
3782Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
3783
3784 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
3785 Set a new variable to signify if the final target is an embedded
3786 system.
3787 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
3788 .text for an embedded system.
3789
3790Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
3791
3792 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
3793 (gld${EMULATION_NAME}_place_section): New function.
3794 (hold_{section,use,text,rdata,data}): New static locals.
3795 (ld_${EMULATION_NAME}_emulation): Update orphan field.
3796 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
3797 (INIT,FINI): Delete, unused.
3798 (.text): Document orphan .text.foo sections.
3799 (.rdata): Document orphan .rdata.foo sections.
3800 (.data): Document orphan .data.foo sections.
3801
3802Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
3803
3804 * scripttempl/h8300.sc: Place ".tiny" sections right
3805 after ".data" sections.
3806 * scripttempl/h8300h.sc: Place ".tiny" sections into
3807 the "tiny" memory region, 0xff8000 through 0xffff00.
3808
3809 * scripttempl/h8300.sc: Set the entry point to the value of
3810 "_start" rather than the start of the text segment.
3811 * scripttempl/h8300h.sc: Likewise.
3812
3813 * scripttempl/h8300.sc: Place .rodata sections before .text
3814 sections in main ram.
3815 * scripttempl/h8300h.sc: Likewise.
3816
3817Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
3818
3819 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
3820 8-bit region and 8-bit sections.
3821
3822Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
3823
3824 * ldlang.c (section_already_linked): Fix typos.
3825
3826Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
3827
3828 * scripttempl/pe.sc (.endjunk): Define __end__.
3829
3830Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
3831
3832 * ldlang.c (longest_section_name): Remove.
3833 (SECTION_NAME_MAP_LENGTH): Define.
3834 (print_size, print_alignment, print_fill, print_section): Remove.
3835 (print_flags): Remove.
3836 (lang_map): Rewrite.
3837 (print_output_section_statement): Rewrite.
3838 (print_assignment): Rewrite.
3839 (print_one_symbol): Rewrite.
3840 (print_input_section): Rewrite.
3841 (print_fill_statement): Rewrite.
3842 (print_data_statement): Rewrite.
3843 (print_address_statement): New static function.
3844 (print_reloc_statement): Rewrite.
3845 (print_padding_statement): Rewrite.
3846 (print_wild_statement): Rewrite.
3847 (print_statement_list): Clean up.
3848 (print_statement): Clean up. Some minor output changes.
3849 (print_statements): Clean up.
3850 (load_symbols): Put another - before -whole-archive.
3851 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
3852 print 0x and to omit leading zeroes. For etree_rel, use %B to
3853 print the BFD. For etree_assign, remove the space after the
3854 destination name.
3855 * ldwrite.c: Include "libiberty.h".
3856 (clone_section): Call xstrdup, not strdup.
3857 (ldwrite): Don't print any map information.
3858 (print_symbol_table, print_file_stuff, print_symbol): Remove.
3859 * ldmain.c (main): Call lang_map when appropriate.
3860 * ldmisc.c (vfinfo): Add support for %W.
3861 (print_address): Remove.
3862 * ldmisc.h (print_address): Don't declare.
3863 * Makefile.in: Rebuild dependencies.
3864
3865Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3866
3867 * configure.host (m68*-*-linux*): Add -dynamic-linker to
3868 HOSTING_CRT0. Search -lgcc both before and after -lc in
3869 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
3870 at first.
3871 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
3872 directory at first.
3873
3874Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
3875
3876 * ldmisc.h (demangle): Declare.
3877 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
3878 not <>.
3879 (demangle): Make non-static. Remove remove_underscore paramter.
3880 Always return an allocated string.
3881 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
3882 functionname, rather than calling demangle. Print a colon between
3883 the BFD(section+offset) and the line number.
3884 * ldmain.c (add_archive_element): Improve format of archive
3885 information in map file.
3886 (constructor_callback): Don't print anything to the map file.
3887 * ldlang.c (lang_one_common): Improve format of common symbol
3888 information in map file.
3889 * ldctor.c (ldctor_build_sets): If producing a map file, print set
3890 information.
3891 * ldwrite.c (print_symbol_table): Print a newline before the
3892 header in the map file.
3893 * Makefile.in: Rebuild dependencies.
3894
3895 * ldmisc.c (vfinfo): Reindent.
3896
3897Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
3898
3899 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
3900 don't clobber it when not relaxing.
3901
3902 * ld.h (ld_config_type): Remove traditional_format field.
3903 * ldmain.c (main): Use link_info.traditional_format rather than
3904 config.traditional_format.
3905 * ldlang.c (ldlang_open_output): Likewise.
3906 * lexsup.c (parse_args): Likewise.
3907 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
3908 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
3909
3910 * ldlang.c (wild_doit): Discard debugging sections if we are
3911 stripping debugging information.
3912
3913 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
3914
3915Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
3916
3917 * ldexp.c (fold_binary): Correct handling of subtraction with
3918 absolute values.
3919 (fold_name): Permit symbols in lang_allocating_phase_enum.
3920
3921 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
3922 accidental changes in last patch.
3923
3924Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3925
3926 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
3927 (powerpcle*-*-{sysv,solaris}): Ditto.
3928
3929Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
3930
3931 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
3932 in m68k/crt0.S without things blowing up.
3933
3934Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
3935
3936 * scripttempl/m68kcoff.sc: Remove default address for .data so
3937 .text, .data, and .bss are all sequential.
3938
3939Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
3940
3941 * scripttempl/m68kcoff.sc: Remove regions and simplify.
3942
3943Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
3944
3945 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
3946 bytes of the address space. Put data from the ".eight" sections
3947 into the 8-bit area.
3948 * scripttempl/h8300h.sc: Likewise.
3949
3950Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
3951
3952 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
3953 Pass $ARCH to ldfile_set_output_arch instead of setting
3954 ldfile_output_architecture directly.
3955
3956Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3957
3958 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
3959 next to .text. Put _etext after .text, .init, .fini, and
3960 .rodata{,2} sections.
3961
3962Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
3963
3964 * ld.texinfo: Rearrange option documentation.
3965
3966 * lexsup.c (ld_options): New static array.
3967 (parse_args): Build shortopts and longopts from ld_options array.
3968 (help): New static function.
3969 * ldver.h (help): Don't declare.
3970 * ldver.c (ldversion): Reindent.
3971 (help): Remove.
3972
3973 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
3974
3975Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
3976
3977 * emultempl/elf32.em: When checking for a native emulation, check
3978 that the current emulation is the default emulation.
3979 * emultempl/sunos.em: Likewise.
3980
3981 * configure.in: Permit --enable-shared to specify a list of
3982 directories.
3983 * configure: Rebuild.
3984
3985 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
3986 for HP/UX compatibility.
3987
3988Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
3989
3990 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
3991 static function, if ${host} = ${target}.
3992 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
3993 needed shared library if ${host} = $[target}.
3994
3995 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
3996 HOSTING_CRT0. Search -lgcc both before and after -lc in
3997 HOSTING_LIBS.
3998
3999 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
4000 Polstra <jdp@polstra.com>.
4001
4002Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
4003
4004 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
4005 architecture number.
4006 * scripttempl/elf.sc: Use $MACHINE definition if present.
4007 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
4008 template as 4300.
4009
4010Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
4011
4012 * ldlang.c (lang_size_sections): Change region check to handle
4013 regions which end at the highest possible address correctly.
4014 From Roland Weber <roweber@ira.uka.de>.
4015
4016 * ldlang.c (section_already_linked): New static function.
4017 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
4018 relocateable link. Don't worry about section being NULL, since it
4019 never should be. Don't call init_os unless the section is going
4020 to be added.
4021 (ldlang_add_file): Call section_already_linked for each section.
4022 * ldmain.c (multiple_definition): Don't warn about multiple
4023 definitions in sections which are being discarded.
4024
4025Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
4026
4027 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
4028 * emultempl/pe.em (init): Remove special case PPC code.
4029
4030Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
4031
4032 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
4033 so as not to overwrite the magic syscall entry at 0xc4.
4034 * scripttempl/h8300h.sc: Likewise.
4035
4036Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
4037
4038 * configure.tgt (sparc64-*-solaris2*): Delete.
4039 Stick with sparc-*-solaris2*.
4040
4041Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
4042
4043 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
4044 * ldlang.c (init_os): Fail on an attempt to initialize any section
4045 named DISCARD_SECTION_NAME.
4046 (wild_doit): Discard input sections assigned to an output section
4047 named DISCARD_SECTION_NAME.
4048 * ld.texinfo: Document use of /DISCARD/.
4049
4050 * ldlang.c: Fix some indentation and comments.
4051
4052Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
4053
4054 * ldmain.c (main): Call bfd_set_error_program_name.
4055
4056Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
4057
4058 * ld.texinfo: Fix a couple of indexing entries. Mention that
4059 --verbose displays builtin linker scripts.
4060
4061 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
4062 and the local symbol name does not match the filename, print the
4063 filename as well.
4064
4065 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
4066 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
4067 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
4068 as TEXT_START_ADDR.
4069
4070Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4071
4072 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
4073
4074Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
4075
4076 * ldmain.c (add_wrap): New function.
4077 * ldmain.h (add_wrap): Declare.
4078 * lexsup.c (parse_args): Call add_wrap.
4079
4080Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
4081
4082 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
4083
4084Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
4085
4086 * scripttempl/h8300.sc: Change name of page zero memory
4087 from "null" to "vectors". Create an output section for
4088 vectors. Add comments on how to explicitly place items
4089 in the vector table.
4090 * scripttempl/h8300h.sc: Likewise.
4091
4092Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
4093
4094 * emultempl/lnk960.em (machine_table): Add jx and hx.
4095
4096 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
4097 support it.
4098
4099Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
4100
4101 * ld.h (ld_config_type): Add warn_multiple_gp field.
4102 * lexsup.c (parse_args): Handle --warn-multiple-gp.
4103 * ldmain.c (warning_callback): Suppress multiple gp values warning
4104 if --warn_multiple_gp was not used.
4105 * ld.texinfo, ld.1: Document --warn-multiple-gp.
4106
4107Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
4108
4109 * lexsup.c (parse_args): Handle --wrap.
4110 * ldmain.c (main): Initialize link_info.wrap_hash.
4111 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
4112 and NAME cases.
4113 * ld.texinfo, ld.1: Document --wrap.
4114
4115 * configure: Rebuild with autoconf 2.8.
4116
4117 Don't do SunOS style dynamic linking for sparc-aout:
4118 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
4119 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
4120 (sparc*-wrs-vxworks*): Likewise.
4121 * emulparams/sparcaout.sh: New file.
4122 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
4123 (esparcaout.c): New target.
4124
4125Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4126
4127 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
4128 in a different manner to work around differences in shell variable
4129 expansion.
4130
4131Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
4132
4133 * ldemul.h (ldemul_unrecognized_file): Declare.
4134 (ldemulation_xfer_type): Add unrecognized_file field.
4135 * ldemul.c (ldemul_unrecognized_file): New function.
4136 * ldlang.c (load_symbols): If a file can not be recognized, call
4137 ldemul_unrecognized_file before trying it as a linker script.
4138 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
4139 function.
4140 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
4141 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
4142
4143Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
4144
4145 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
4146 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
4147
4148Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4149
4150 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
4151 Search trinary.cond rather than searching trinary.lhs twice.
4152
4153Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
4154
4155 * mpw-make.sed: Edit out shared library support.
4156 (@TDIRS@): Edit out, can't use genscripts.
4157
4158Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4159
4160 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
4161 * emulparams/m68klinux.sh: New file.
4162 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
4163 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
4164 bfd_linux_size_dynamic_sections.
4165 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
4166 (em68klinux.c): New target.
4167 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
4168
4169Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
4170
4171 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
4172 Fill in missing entries.
4173
4174 * lexsup.c (parse_args): Recognize --no-whole-archive.
4175 * ldlang.h (lang_input_statement_type): Add whole_archive field.
4176 * ldlang.c (new_afile): Set whole_archive field.
4177 (load_symbols): Check input file specific whole_archive field
4178 rather than global variable.
4179 * ld.texinfo, ld.1: Document --no-whole-archive.
4180
4181Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
4182
4183 * configure.tgt: Correct gldi960 to gld960.
4184
4185Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
4186
4187 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
4188 the SONAME if it is available.
4189 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
4190 filename, when checking for conflicting library versions. Don't
4191 assume that the suffix is only numbers and dots.
4192
4193 * ld.texinfo: Mention that -R can be used for -rpath.
4194
4195Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
4196
4197 * configure.host: Check for 'do not mix' from native linker before
4198 trying to use -rpath.
4199
4200Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
4201
4202 * configure.in: Remove explicit substitution of CFLAGS; autoconf
4203 does it anyhow.
4204 * configure: Rebuild.
4205 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
4206
4207 * configure.in: Call AC_PROG_CC before configure.host.
4208 * configure: Rebuild.
4209 * configure.host: Remove go32 host, since it should no longer be
4210 necessary. Don't set CC for romp host.
4211
4212 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
4213 the text segment ends exactly on a page boundary.
4214
4215 * configure.in: Substitute RPATH_ENVVAR.
4216 * configure: Rebuild.
4217 * configure.host: Set RPATH_ENVVAR.
4218 * Makefile.in (RPATH_ENVVAR): New variable.
4219 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
4220
4221Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
4222
4223 * configure.in: Redo emulation handling so that each emulation
4224 searches the correct tool directory, based on the target alias.
4225 For example, "configure --enable-targets=m68k-coff i386-linux"
4226 will search /usr/local/i386-linux/lib for linux and
4227 /usr/local/m68k-coff/lib for m68k-coff.
4228 * configure: Rebuild.
4229 * configure.tgt: Add special tdir settings for Linux.
4230 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
4231 for each eEMUL.c target.
4232 * genscripts.sh: Accept specific alias as 9th argument, and use it
4233 in LIB_PATH.
4234
4235Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
4236
4237 * ldlang.c (lang_set_startof): Don't do anything for a
4238 relocateable link.
4239
4240 * ldgram.y (mri_script_file): Call mri_draw_tree.
4241 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
4242 create memory regions.
4243 (mri_load): Don't call mri_draw_tree.
4244 * mri.h (mri_draw_tree): Declare.
4245
4246 * configure.tgt (m68*-*-psos): New target.
4247 * emulparams/m68kpsos.sh: New file.
4248 * scripttempl/psos.sc: New file.
4249 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
4250 (em68kpsos.c): New target.
4251
4252Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
4253
4254 * configure.tgt (*-*-ieee*): New target; use vanilla.
4255
4256 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
4257 `:foo' from ${ARCH}.
4258
4259Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
4260
4261 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
4262 .rodata in .data.
4263
4264Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
4265
4266 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
4267
4268 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
4269 it looks like we might be linking in two different versions of the
4270 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
4271
4272Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
4273
4274 * ldlang.c (lang_size_sections): Increment the section size when a
4275 padding statement is encountered.
4276
4277Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
4278
4279 * configure.in: Look for --enable-shared. Change the value of
4280 BFDLIB when linking against a shared library on SunOS.
4281 * configure: Rebuild.
4282 * configure.host: If using a shared BFD library, try to pass a
4283 reasonable -rpath option when linking.
4284 * Makefile.in (BFDLIB): Set to @BFDLIB@.
4285
4286Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
4287
4288 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
4289 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
4290
4291Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
4292
4293 Support for building bfd and opcodes as shared libraries, based on
4294 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
4295 * configure.in (HLDFLAGS): New substitution.
4296 * configure: Rebuild.
4297 * configure.host: Set HLDFLAGS on SunOS.
4298 * Makefile.in (HLDFLAGS): New variable.
4299 (BFDDEP): New variable.
4300 (BFDLIB): Change to -L../bfd -lbfd.
4301 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
4302 $(HLDFLAGS) in link.
4303 (check): Set LD_LIBRARY_PATH in the environment.
4304
4305Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4306
4307 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
4308 in the read-only section, not read/write unless we are making a
4309 shared library.
4310 (.debug*): Add dwarf debug sections.
4311 (.rela.{sdata*,sbss*}): Add sections.
4312
4313Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
4314
4315 * configure: Regenerate.
4316
4317Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
4318
4319 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
4320 for SVR4 compatibility.
4321
4322 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
4323
4324Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
4325
4326 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
4327 * emultempl/pe.em (definfo init): Make the default stack reserve
4328 of a PPC larger.
4329
4330Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
4331
4332 * configure.tgt (m68*-apple-aux*): New target.
4333 * emulparams/m68kaux.sh: New file.
4334 * scripttempl/m68kaux.sc: New file.
4335 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
4336 (em68kaux.c): New target.
4337
4338Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
4339
4340 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
4341 -bnoentry, since the right thing tends to happen anyhow.
4342
4343Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
4344
4345 * ld.texinfo, ld.1: Document -export-dynamic.
4346
4347Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4348
4349 * emultempl/sunos.em: Check for native compile by comparing
4350 ${target} and ${host}.
4351
4352Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
4353
4354 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
4355 TEXT_START_ADDR to allow use on IDT and PMON systems.
4356
4357Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
4358
4359 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
4360 correct spelling.
4361
4362Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
4363
4364 * configure.tgt (sparc64-*-solaris2*): New configuration.
4365 (sparc64-*-aout*): Renamed from sparc64*.
4366
4367Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4368
4369 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
4370 * genscripts.sh: Set host, target and target_alias variables.
4371 Check for native compile by comparing ${target} and ${host}.
4372 * emultempl/elf32.em: Likewise.
4373 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
4374
4375Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4376
4377 * scripttempl/elfppc.sc: Refine eabi support to better support
4378 .sdata, .sdata2, .sbss, etc. sections.
4379
4380Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
4381
4382 * ldgram.y (%union): Add phdr field.
4383 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
4384 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
4385 (opt_hdrs, hdr): Remove.
4386 (phdr_val): New nonterminal.
4387 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
4388 and phdrs parameters. Add flags parameter.
4389 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
4390 to bfd_record_phdr.
4391 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
4392 phdrs fields. Add flags field.
4393 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
4394 (lang_new_phdr): Update declaration.
4395 * ld.texinfo: Document FLAGS.
4396
4397Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
4398
4399 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
4400 Don't make a shared library because of an undefined reference to
4401 __GLOBAL_OFFSET_TABLE_.
4402
4403 Add some Irix 5 support, mostly from Kazumoto Kojima
4404 <kkojima@info.kanagawa-u.ac.jp>:
4405 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
4406 (SHLIB_TEXT_START_ADDR): Define.
4407 (OTHER_GOT_SYMBOLS): Define.
4408 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
4409 (EXECUTABLE_SYMBOLS): Don't define.
4410 (DYNAMIC_LINK): Don't define.
4411 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
4412 * scripttempl/elfmips.sc: New file.
4413 * configure.host (mips*-dec-bsd*): Change mips to mips*.
4414 (mips*-sgi-irix4*): Likewise.
4415 (mips*-sgi-irix5*): New entry.
4416 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
4417 elf.sc.
4418 (eelf32lmip.c): Likewise.
4419
4420Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4421
4422 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
4423 .rela.got.neg section.
4424
4425Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
4426
4427 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
4428
4429 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
4430 ANSI_PROTOTYPES is defined. Remove special handling of
4431 WINDOWS_NT. Various indendation fixes.
4432 (vfinfo): Change fmt parameter to const char *.
4433 (info_msg): Write <stdarg.h> version.
4434 (einfo, minfo, finfo): Likewise.
4435 (info_assert): Change file parameter to const char *.
4436 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
4437 defined, use a real prototype.
4438 (info_assert): Change first parameter to be const char *.
4439
4440Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4441
4442 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
4443 in old support that 2.7.2 needs, but the current compiler does
4444 not.
4445
4446 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
4447 correct Linker script template.
4448
4449 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
4450 not 0x400000.
4451 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
4452
4453Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
4454
4455 * scripttempl/alpha.sc: Put .rconst right after .rdata.
4456
4457Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
4458
4459 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
4460 sort using right pointer.
4461
4462Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4463
4464 * scripttempl/elfppc.sc: Remove support for creating special
4465 labels for eabi section begin/end here. The compiler now uses
4466 crt{i,n}.o to create these symbols.
4467
4468Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
4469
4470 * configure.host: Change existing Linux HOSTING_CRT0 to be used
4471 for a.out only, and put in appropriate HOSTING_CRT0 and
4472 HOSTING_LIBS values for Linux ELF.
4473
4474Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
4475
4476 * scripttempl/h8300.sc: Use all 64K for ram.
4477 * scripttempl/h8300h.sc: Define 256K ram size.
4478
4479Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
4480
4481 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
4482 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
4483 was used, regardless of whether -bE was used.
4484
4485Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
4486
4487 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
4488 relocateable before calling ldctor_build_sets if the output file
4489 is in an XCOFF format.
4490
4491Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
4492
4493 * ldwrite.c (build_link_order): When handling a data statement, if
4494 the endianness of the output file is unknown, use the endianness
4495 of the input file.
4496
4497Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
4498
4499 * mpw-config.in: Recognize mips-*-* as equivalent to
4500 mips-idt-ecoff.
4501 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
4502 * mpw-ld.r: Add version resources.
4503 (cfrg): Use symbolic instead of literal name for executable.
4504
4505Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
4506
4507 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
4508
4509Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
4510
4511 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
4512 (print_statement_list): Renamed from print_statement. All callers
4513 updated.
4514 (print_statement): New function to print just one statement.
4515 (print_{data,reloc,padding}_statement): Don't crash if
4516 output_section == NULL.
4517 (dprint_statement): New function.
4518
4519 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
4520 call to sort_sections.
4521
4522Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
4523
4524 * emultempl/aix.em (unix_ld): New static variable.
4525 (gld${EMULATION_NAME}_parse_args): Handle -unix.
4526 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
4527 gc as false and export_defineds as true to size_dynamic_sections.
4528
4529 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
4530 phase if the current section is abs_output_section.
4531
4532
4533Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
4534
4535 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
4536 to sort_sections.
4537
4538Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
4539
4540 * ldgram.y (PHDRS): New token.
4541 (ifile_p1): Accept phdrs.
4542 (section): Accept phdr_opt at the end of the section definition.
4543 (phdr_op): New nonterminal.
4544 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
4545 * ldlex.l: Accept PHDRS.
4546 * ldlang.h (struct lang_output_section_phdr_list): Define.
4547 (lang_output_section_statement_type): Add phdrs field.
4548 (struct lang_phdr): Define.
4549 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
4550 (lang_new_phdr): Declare.
4551 * ldlang.c (lang_phdr_list): New static variable.
4552 (lang_output_section_statement_lookup): Initialize phdrs field.
4553 (lang_process): Call lang_record_phdrs.
4554 (lang_new_phdr): New function.
4555 (lang_section_in_phdr): New function.
4556 (lang_record_phdrs): New static function.
4557 * ld.texinfo: Document PHDRS.
4558
4559Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
4560
4561 * scripttempl/ppcpe.sc: Moved .edata into its own section to
4562 expose it.
4563
4564Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4565
4566 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
4567 HOSTING_LIBS for testing.
4568 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
4569 testing.
4570
4571Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
4572
4573 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
4574 and -n.
4575
4576Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
4577
4578 * configure: Rebuild with autoconf 2.7.
4579
4580Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
4581
4582 * scripttempl/pe.sc: Two .junk's is too much junk.
4583
4584Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
4585
4586 * configure.in: Use BFD_NEED_DECLARATION.
4587 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
4588 * configure, config.in: Rebuild with autoconf 2.6.
4589
4590 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
4591 being unsupported if this is not a relocateable link and the input
4592 BFD supports it, since ldctor_build_sets can cope with that case.
4593
4594Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
4595
4596 * configure.tgt (powerpc-*-macos*): New target.
4597 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
4598 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
4599 (eppcmacos.c): New target.
4600 * mpw-eppcmacos.c: Update.
4601 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
4602
4603Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
4604
4605 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
4606 $(host_canonical) and $(target_canonical).
4607 (CXX_FOR_TARGET): Likewise.
4608
4609Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
4610
4611 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
4612 so the malloc heap begins at a sane place.
4613
4614Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
4615
4616 Version 2.6 released.
4617 * ldver.c (ldversion): Update to 2.6.
4618
4619 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
4620 $(GENERATED_*FILES), since they need to be retained by distclean.
4621 (maintainer-clean, realclean): Delete them here.
4622
4623Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
4624
4625 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
4626 base file with FOPEN_WB, not "w".
4627
4628 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
4629 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
4630 were used.
4631 (gld${EMULATION_NAME}_before_allocation): Use the environment
4632 variable LD_RUN_PATH if -rpath was not used.
4633 * ld.texinfo, ld.1: Document LD_RUN_PATH.
4634
4635Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
4636
4637 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
4638 -bl and -bloadmap options.
4639
4640 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
4641 report a better error.
4642
4643 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
4644 new local variable special_sections, and pass it to
4645 size_dynamic_sections. Look through the results, and move the
4646 sections around in the mapping so that they are defined correctly.
4647
4648Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
4649
4650 * ldemul.c (ldemul_default_target): Cast getenv return value.
4651
4652Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
4653
4654 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
4655 Executable support.
4656 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
4657 support.
4658
4659 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
4660 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
4661
4662 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
4663 (gld_$_before_allocation): added hooks for toc construction based
4664 on the above macro.
4665
4666Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
4667
4668 * ld.texinfo: The linker does not use _main as an entry point.
4669
4670Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4671
4672 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
4673 0x2000 not 0x200.
4674
4675Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
4676
4677 * configure.in: Add test for whether free must be declared.
4678 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
4679 * acconfig.h: Explain NEED_DECLARATION_FREE.
4680 * configure, config.in: Rebuild.
4681
4682 * lexsup.c (parse_args): Take B:: out of shortopts.
4683
4684Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
4685
4686 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
4687 for now, as with m68k4kbsd, until shared library support gets
4688 done.
4689
4690 * configure.host: For i386 BSD variants, crt0.o lives in
4691 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
4692
4693Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4694
4695 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
4696 (edelta68.c): New target.
4697 * configure.tgt (m68*-motorola-sysv*): New target.
4698 * emulparams/delta68.sh: New file.
4699 * scripttempl/delta68.sc: New file.
4700
4701 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
4702 addresses.
4703
4704Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
4705
4706 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
4707 ALIGN and ALIGNMOD statements.
4708
4709 * emultempl/aix.em: Include ldgram.h.
4710 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
4711 AIX 4.1.
4712 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
4713
4714Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
4715
4716 * configure.host (alpha-*-linux*): New host.
4717 * configure.tgt (alpha-*-linux*): New target.
4718
4719Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
4720
4721 * emultempl/aix.em (export_files): Remove.
4722 (import_files): Make static.
4723 (struct export_symbol_list): Define.
4724 (export_symbols): New static variable.
4725 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
4726 correctly. Call read_file for an export file.
4727 (gld${EMULATION_NAME}_before_allocation): Call
4728 bfd_xcoff_export_symbol for each export symbol, rather than
4729 calling read_file for each export file.
4730 (gld${EMULATION_NAME}_read_file): For an export file, make the
4731 exported symbols undefined, and store them on the export_symbols
4732 list.
4733
4734Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
4735
4736 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
4737 Don't hang if last option is unrecognised.
4738 (gld_${EMULATION_NAME}_set_symbols): Insert created
4739 symbols into ABS output section.
4740
4741Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
4742
4743 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
4744 m68k4k arch.
4745 (em68k4knbsd.c): New rule.
4746
4747 * configure.tgt: Added support for the NetBSD m68k4k arch.
4748
4749 * genscripts.sh, ldint.texinfo,
4750 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
4751 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
4752 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
4753 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
4754 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
4755 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
4756 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
4757 PAGE_SIZE to TARGET_PAGE_SIZE.
4758
4759 * emulparams/m68knbsd.h: Ditto.
4760 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
4761 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
4762 being.
4763
4764 * emulparams/m68k4knbsd.sh: New file.
4765
4766 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
4767
4768Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
4769
4770 * emultempl/aix.em: Include ldctor.h.
4771 (gld${EMULATION_NAME}_after_open): New static function.
4772 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
4773 (gld${EMULATION_NAME}_find_relocs): New static function.
4774 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
4775 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
4776 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
4777 * ldctor.c (struct set_info): Move definition into ldctor.h.
4778 (struct set_element): Likewise.
4779 (sets): Make non-static.
4780 (ldctor_add_set_entry): Add name parameter. Save it in the new
4781 set element.
4782 (ldctor_build_sets): Avoid being called twice. Pass set element
4783 name to lang_add_reloc.
4784 * ldctor.h (struct set_info): Move definition here from ldctor.c.
4785 (struct set_element): Likewise. Add new field name.
4786 (sets): Declare.
4787 (ldctor_add_set_entry): Declare new name parameter.
4788 * ldwrite.c (build_link_order): Don't insist that either name or
4789 section be NULL in a lang_reloc_statement.
4790 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
4791 new name parameter.
4792 (constructor_callback): Pass name to ldctor_add_new_set_entry for
4793 new name parameter.
4794
4795 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
4796
4797Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
4798
4799 * mpw-config.in: Add PowerMac target support, generate config.h.
4800 * mac-ld.r: New file, Mac resources.
4801 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
4802 * mpw-make.in: Remove.
4803 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
4804
4805Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
4806
4807 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
4808 -static as a synonym for -bnso.
4809
4810 * scripttempl/aix.sc: Move special symbols inside sections.
4811 Always start .data at 0.
4812
4813Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
4814
4815 * Makefile.in (diststuff): Also make info.
4816 (maintainer-clean realclean): Also delete *.info*.
4817
4818Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
4819
4820 * emultempl/aix.em: Add support for various AIX linker options,
4821 for AIX import and export files, and for AIX shared objects.
4822 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
4823
4824 * ldmain.c (main): Initialize new field link_info.static_link.
4825
4826 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
4827 (constructor_callback): Likewise.
4828 * ldmisc.c (vfinfo): Likewise.
4829 * ldwrite.c (build_link_order): Likewise.
4830
4831 * ld.texinfo: The MRI ALIGN directive is supported.
4832
4833Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
4834
4835 * emulparams/elf32vr4300.sh: Deleted.
4836 * emulparams/elf32vr4300el.sh: Deleted.
4837 * emulparams/elf32b4300.sh: Added.
4838 * emulparams/elf32l4300.sh: Added.
4839 * configure.tgt, Makefile.in: Updated the build to use the
4840 new 8.3 unique names.
4841
4842Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
4843
4844 * ldlang.c (entry_symbol): Make non-static.
4845 * ldlang.h (entry_symbol): Declare.
4846
4847 * ldlex.l: Treat PROVIDE as a keyword in expression state.
4848
4849Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
4850
4851 * scripttempl/pe.sc (.bss): Move to be after .text
4852
4853Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
4854
4855 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
4856 Search trinary.cond rather than searching trinary.lhs twice. From
4857 linli@ihp.PHys.ethz.CH.
4858
4859 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
4860 directory searching code into gld${EMULATION_NAME}_search_dir.
4861 (gld${EMULATION_NAME}_search_dir): New static function, extracted
4862 from gld${EMULATION_NAME}_find_so.
4863 (global_needed, global_found): New static variables.
4864 (gld${EMULATION_NAME}_after_open): New static function.
4865 (gld${EMULATION_NAME}_search_needed): New static function.
4866 (gld${EMULATION_NAME}_try_needed): New static function.
4867 (gld${EMULATION_NAME}_check_needed): New static function.
4868 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
4869 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
4870
4871 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
4872 (eelf32lppc.c): Likewise.
4873 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
4874 (GENERATE_SHLIB_SCRIPT): Define as yes.
4875
4876Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
4877
4878 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
4879 bfd_link_needed-list; make appropriate changes.
4880
4881 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
4882 (rs6000-*-aix*): New target; use aixrs6.
4883 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
4884 * emultempl/aix.em: New file.
4885 * scripttempl/aix.sc: New file.
4886 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
4887 (eaixppc.c, eaixrs6.c): New targets.
4888
4889Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
4890
4891 * scripttemp/pe.sc (.reloc): Move to the end.
4892
4893Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
4894
4895 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
4896 section which was not linked into the final output.
4897
4898Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
4899
4900 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
4901 fatal typos.
4902
4903Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
4904
4905 * ld.h (args_type): Add rpath_link field.
4906 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
4907 required dependencies in rpath_link path. Only search
4908 LD_LIBRARY_PATH when configured native.
4909 * lexsup.c (parse_args): Recognize -rpath-link.
4910 * ld.1, ld.texinfo: Document -rpath-link.
4911
4912Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
4913
4914 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4915 bother searching for needed libraries unless doing a final link.
4916
4917Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
4918
4919 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4920
4921 * ld/ld.1: Fix formatting bugs.
4922
4923Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
4924
4925 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
4926 * ldexp.h (exp_get_abs_int): Update declaration.
4927 * ldlang.c (print_output_section_statement): Use fprintf_vma to
4928 print return value of exp_get_abs_int.
4929
4930Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
4931
4932 * emultempl/elf32.em (global_stat): New file static variable.
4933 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
4934 that the file has not already been included under another name.
4935 (gld${EMULATION_NAME}_stat_needed): New static function.
4936
4937Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
4938
4939 * scripttempl/armcoff.sc: Start .text at 0x8000.
4940 Start .data at 0x40000.
4941
4942Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
4943
4944 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
4945 command_line.rpath is set, use it, rather than the -L options, to
4946 build the rules section.
4947 * ld.texinfo: Document this use of -rpath.
4948
4949 * lexsup.c (parse_args): Don't set link_info.shared for -assert
4950 pure-text. Pass true, not 1, to lang_add_entry.
4951 * emultempl/sunos.em (find_assign): New static variable.
4952 (found_assign): New static variable.
4953 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
4954 If not a relocateable link, and no start symbol was specified on
4955 the command line, and there are any undefined symbols, set
4956 link_info.shared. If link_info.shared is set, set the address of
4957 the .text section to 0x20.
4958 (gld${EMULATION_NAME}_find_assignment): Rename from
4959 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
4960 set, then just set found_assign based on whether an assignment is
4961 found to find_assign.
4962 (gld${EMULATION_NAME}_get_script): Don't use a special script when
4963 producing a shared library.
4964 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
4965 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
4966 * ldlang.c (entry_from_cmdline): New global variable.
4967 (lang_add_entry): Change cmdline parameter from int to boolean.
4968 Use global entry_from_cmdline rather than function static
4969 from_cmdline.
4970 * ldlang.h (entry_from_cmdline): Declare.
4971 (lang_add_entry): Change declaration of second parameter from int
4972 to boolean.
4973 * ldgram.y: Pass false, not 0, to lang_add_entry.
4974
4975Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
4976
4977 * ld.h (parsing_defsym): Declare.
4978 * ldlex.h (lex_string): Declare.
4979 * ldlex.l (lex_string): Define.
4980 * lexsup.c (parsing_defsym): Define.
4981 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
4982 lex_redirect, and clear it after calling yyparse. Set
4983 parsing_defsym around call to yyparse.
4984 * ldmain.c (main): Set lex_string before calling lex_redirect, and
4985 clear it after calling yyparse.
4986 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
4987 in linker scripts correctly.
4988
4989 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
4990 COFF targets, allowing for the leading underscore used on SPARC
4991 COFF.
4992
4993 * lexsup.c (parse_args): Handle -assert.
4994 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
4995 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
4996 shared library script when appropriate.
4997 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
4998 section at SIZEOF_HEADERS.
4999
5000Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
5001
5002 * Makefile.in (earmcoff.c): Build.
5003 * configure.tgt (arm-*-coff): New target
5004 * emulparms/armcoff.sh: New file.
5005 * scripttempl/armcoff.sc: New file.
5006
5007Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
5008
5009 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
5010
5011Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
5012
5013 * ldfile.c (ldfile_set_output_arch): Make arch const.
5014
5015Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5016
5017 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
5018 beginning of the .bss area, not at the end of data. Add
5019 __sbss_{start,end} symbols.
5020
5021Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
5022
5023 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
5024 (CXX_FOR_TARGET, install): Likewise.
5025
5026Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
5027
5028 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
5029 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
5030 (CXX_FOR_TARGET): Likewise.
5031 (install): Likewise.
5032 (GENERATED_HFILES): Remove config.h.
5033 (.dep): Depend upon config.h.
5034
5035Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
5036
5037 * configure.tgt (mips*-dec-netbsd*): New target.
5038
5039Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
5040
5041 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
5042
5043Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
5044
5045 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
5046
5047Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
5048
5049 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
5050 Start .text section on the right boundary. Always align
5051 stabs.
5052
5053Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
5054
5055 * Makefile.in (maintainer-clean): New target.
5056
5057 * ldmain.c (struct warning_callback_info): Define.
5058 (warning_callback): Add new parameter symbol. Call
5059 warning_find_reloc to try to find the section and VMA.
5060 (warning_find_reloc): New static function.
5061 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5062 Pass NULL as symbol parameter to warning callback.
5063
5064 * ld.texinfo: Clarify -L option.
5065
5066 * ldlang.c (lang_one_common): Add cast to avoid warning.
5067 (topower): Likewise. Also, reindent.
5068 * ldwrite.c (clone_section): Change i to unsigned int.
5069 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
5070 cast to avoid warning.
5071
5072Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
5073
5074 * Makefile.in (config.status): Depend upon configure.tgt.
5075
5076 * ldemul.h (ldemul_set_symbols): Declare.
5077 (ldemul_parse_args): Declare.
5078 * ldemul.c (ldemul_parse_args): Fix indentation.
5079
5080 * configure.in: Call AC_HEADER_DIRENT.
5081 * configure, config.in: Rebuild.
5082 * emultempl/sunos.em: Use autoconf recommend mechanism to define
5083 DIR and struct dirent.
5084
5085 * configure.tgt (mips*-*-bsd*): New case.
5086
5087 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
5088 New case.
5089 * configure.tgt (i[345]86-*-ptx*): New case.
5090
5091Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
5092
5093 * config.in: Rename from config.h.in.
5094 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
5095 Check for config.h:config.in when creating stamp-h.
5096 * configure: Rebuild.
5097 * Makefile.in (stamp-h): Depend upon config.in rather than
5098 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
5099 calling config.status.
5100
5101 * Makefile.in (distclean): Remove config.h and stamp-h.
5102
5103 * configure.host (sparc-*-sunos64*): Remove.
5104 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
5105
5106 * ldexp.c (exp_fold_tree): Don't warn about moving the location
5107 counter backward in the absolute section.
5108
5109Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
5110
5111 * configure.in: Rewrite to use autoconf.
5112 * configure.host: New file.
5113 * configure.tgt: New file.
5114 * aclocal.m4: New file.
5115 * configure: New file, built by autoconf.
5116 * acconfig.h: New file.
5117 * config.h.in: New file, built by autoheader.
5118 * sysdep.h: New file.
5119 * ld.h: Incorporate old contents of config.h.
5120 * config.h: Remove.
5121 * Makefile.in: Various changes for new configure script. Also:
5122 (CC_FOR_BUILD): Remove.
5123 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
5124 (dep.sed): Use @SRCDIR@, not @srcdir@.
5125 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
5126 * genscripts.sh: Create ldscripts if it does not exist.
5127 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
5128 * mpw-esh.c, emultemp/*.em: Likewise.
5129 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
5130 HAVE_SBRK here.
5131 * config/*.mt, config/*.mh: Remove.
5132
5133Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
5134
5135 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
5136 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
5137
5138Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
5139
5140 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
5141
5142Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
5143
5144 * ldmain.c (warning_callback): Add abfd, section, and address
5145 parameters.
5146 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5147 Change call to warning accordingly.
5148
5149 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
5150 relocateable and not shared, put .gnu.warning.SYMBOL sections into
5151 the .text section.
5152
5153Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
5154
5155 * configure.in: Added mips*vr4300-idt-elf* and
5156 mips*vr4300el-idt-elf* targets.
5157 * Makefile.in: Added eelf32vr4300* targets.
5158 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
5159 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
5160
5161Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
5162
5163 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
5164 <brendan@cygnus.com>.
5165
5166Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
5167
5168 * ldemul.c (ldemul_parse_args): New.
5169 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
5170 * lexsup.c (all pe stuff): Moved into pe.em
5171 (parse_args): Call emulation arg parser.
5172 * emultempl/pe.em (parse_args): handle PE specfic args.
5173
5174Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
5175
5176 * ldlang.c (lang_memory_region_lookup): Don't use the first region
5177 as the default region. Create a new region instead.
5178
5179Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
5180
5181 * ldemul.c (ldemul_set_symbols): New function.
5182 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
5183 * ldmain.c (main): Add call to ldemul_set_symbols.
5184 * lexsup.c (set_pe_value): New args.
5185 (set_pe_name): New.
5186 (parse_args): Cope with new set_pe_value args.
5187 * emultempl/pe.em (set_symbols): New function.
5188 (ld_emulation_xfer_struct): Add set_symbols.
5189 * scripttempl/pe.sc: Use new symbols.
5190
5191Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
5192
5193 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
5194 For -Y, ignore a leading `P,', and only call set_default_dirlist
5195 after processing all the other arguments.
5196
5197Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
5198
5199 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
5200 * emulparams/armpe.sh: Run PE script.
5201
5202Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
5203
5204 * ldmain.c (main): Remove PE stuff.
5205 * lexsup.c (options): Load more PE options.
5206 (set_pe_value): New function.
5207
5208Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
5209
5210
5211 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
5212 * emultempl/pe.sc: New file performs generic PE support and sorts
5213 archive members.
5214 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
5215 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
5216 * scripttempl/pe.sc: New.
5217 * Makefile.in: Use new files.
5218
5219Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
5220
5221 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
5222 (.strings,.ctors,.dtors): Likewise.
5223
5224Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
5225
5226 * scripttempl/armpe.sc: Always start code at 0x401000, even
5227 if -r.
5228 * ldwrite.c (strdup): New extern declaration.
5229 * ldgram.y (atype): New rule to clarify type parsing.
5230 * ldlang.c (init_os): Remove commented out code.
5231 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
5232 unless told not to by the link script.
5233
5234Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
5235
5236 * ldlang.c (lang_set_startof): New static function.
5237 (lang_process): Call it.
5238
5239 * ldgram.y: Tweak casesymlist to avoid bison errors.
5240
5241 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
5242 Solaris compatibility.
5243
5244Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
5245
5246 * ldgram.y (YYDEBUG): If not defined, define as 1.
5247 (CASE, EXTERN, START): New tokens.
5248 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
5249 (casesymlist): New nonterminal.
5250 (extern_name_list): New nonterminal.
5251 * ldlex.l: Accept lower case trailing base specifiers. Don't
5252 ignore the first digit when the base is a suffix. Accept many
5253 EXPRESSION state tokens in MRI state. Support MRI continuation
5254 lines and MRI semicolon comments. Accept all MRI keywords in
5255 lower case. Add CASE, EXTERN, and START MRI keywords.
5256
5257Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
5258
5259 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
5260 instead of alloca.
5261
5262Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
5263
5264 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
5265 $r/../gcc/xgcc unless it is present.
5266
5267Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
5268
5269 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
5270 when CONSTRUCTING.
5271 * scripttempl/m68klynx.sc: Likewise.
5272 * scripttempl/nw.sc: Likewise.
5273 * scripttempl/sa29200.sc: Likewise.
5274 * scripttempl/sparclynx.sc: Likewise.
5275
5276Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
5277
5278 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
5279
5280Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
5281
5282 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
5283
5284Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
5285
5286 * scripttempl/i386pe.sc: Cope with constructors.
5287 * scripttempl/z8ksim.sc: Deleted.
5288 * scripttempl/z8000.sc: Resurrected as this, but
5289 can handle z8001 and z8002 formats.
5290 * emulparams/z8ksim.sh: Deleted.
5291 * emulparams/{z8001.sh, z8002.sh}: New files.
5292 * config/z8ksim.mt: Deleted
5293 * config/z8k-coff.mt: New, generates both emulations.
5294
5295Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
5296
5297 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
5298 %B, in case it is in an archive.
5299
5300Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
5301
5302 * ldlang.c (lang_process): Call reset_memory_regions for each
5303 relaxation pass.
5304
5305Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
5306
5307 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
5308 _SDA_BASE.
5309
5310Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
5311
5312 * ldmain.c (constructor_callback): Allocate set_name in stack
5313 frame, rather than always calling alloca with a fixed size.
5314
5315Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
5316
5317 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
5318 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
5319
5320Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
5321
5322 * ldwrite.c (clone_section): Set the alignment of the clone
5323 section to that of the section being cloned.
5324
5325 * ldwrite.c (split_sections): Don't split the first input section
5326 into a new output section.
5327
5328Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
5329
5330 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
5331 (GENERATE_SHLIB_SCRIPT): Define as yes.
5332
5333Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
5334
5335 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
5336
5337 * ldver.c (help): Update list of options to match currently
5338 supported list.
5339
5340Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
5341
5342 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
5343 after_open field.
5344
5345 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
5346 it takes a size_t anyhow.
5347 (exp_binop): Likewise.
5348 (exp_trinop): Likewise.
5349 (exp_unop): Likewise.
5350 (exp_nameop): Likewise.
5351 (exp_assop): Likewise.
5352 * ldlang.c (lang_memory_region_lookup): Likewise.
5353 (init_os): Likewise.
5354 (ldlang_add_undef): Likewise.
5355 (insert_pad): Likewise.
5356 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
5357 bfd_size_type.
5358
5359 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
5360
5361Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
5362
5363 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
5364 declaration.
5365 (ld_emulation_xfer_type): Add search parameter to
5366 open_dynamic_archive entry point.
5367 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
5368 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
5369 make non-static. Change all callers to use new name.
5370 (ldfile_open_file_search): Make static. If entry is dynamic, call
5371 ldemul_open_dynamic_archive.
5372 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
5373 * ldfile.h (ldfile_open_file_search): Don't declare.
5374 (ldfile_try_open_bfd): Declare.
5375 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
5376 Accept search parameter. Don't search for a library, just look in
5377 a single place.
5378 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
5379 Likewise.
5380
5381Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
5382
5383 * ldmain.c (set_scripts_dir): Don't base script directory on
5384 current directory.
5385
5386Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
5387
5388 * ldmisc.c (vfinfo): Don't print the line number if it isn't
5389 meaningful.
5390
5391Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
5392
5393 * ld.h (ld_config_type): Add field warn_constructors.
5394 * ldmain.c (add_to_set): Warn if config.warn_constructors.
5395 (constructor_callback): Likewise.
5396 * lexsup.c (parse_args): Handle -warn-constructors.
5397 * ld.texinfo, ld.1: Document -warn-constructors.
5398
5399 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
5400 get confused by directory names if we searched for the file.
5401
5402 Based on patches from H.J. Lu <hjl@nynexst.com>:
5403 * ldlang.h (lang_input_statement_type): Add new field dynamic.
5404 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
5405 * ldfile.c: Include bfdlink.h.
5406 (ldfile_open_file): Check dynamic field of entry, not global
5407 dynamic_link field. Don't do a dynamic search when doing a
5408 relocateable link.
5409 * ldmain.c (main): Don't warn about dynamic_link for a
5410 relocateable link.
5411 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
5412 dynamic is false.
5413 (gld${EMULATION_NAME}_create_output_section_statements): Always
5414 loop over input files.
5415 * Makefile.in: Rebuild dependencies.
5416
5417 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
5418 -shared.
5419
5420Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
5421
5422 * ldmain.c (main): Set link_info.symbolic to false.
5423 * lexsup.c (parse_args): Handle -Bsymbolic.
5424
5425Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
5426
5427 * ldmain.c (HAVE_SBRK): Define for everything except
5428 specific systems that are known to not support sbrk.
5429 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
5430
5431Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
5432
5433 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
5434 Handle etree_provide.
5435
5436 * emultempl/elf32.em (global_needed): New static variable.
5437 (global_found): Likewise.
5438 (gld${EMULATION_NAME}_after_open): New static function.
5439 (gld${EMULATION_NAME}_search_needed): Likewise.
5440 (gld${EMULATION_NAME}_try_needed): Likewise.
5441 (gld${EMULATION_NAME}_check_needed): Likewise.
5442 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
5443 gld${EMULATION_NAME}_after_open.
5444
5445Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
5446
5447 * configure.in (i386-*-win32): New target.
5448
5449Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
5450
5451 * lexsup.c (parse_args): Let -G either set the small data size or
5452 be equivalent to --shared, depending on the next argument. Accept
5453 and ignore -z for Solaris compatibility.
5454
5455Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
5456
5457 * lexsup.c (parse_args): Cast fopen result to PTR before storing
5458 it in link_info.base_file. Fix indentation.
5459
5460Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
5461
5462 * ldmain.c (main): Always initialize PE info in link_info.
5463 * lexsup.c (OPTION_BASE_FILE): New option.
5464 (parse_args): Handle new option.
5465 * emulparams/armpe.sh: Output pei.
5466 * emultempl/i386pe.em: Add newline to end.
5467 * scripttempl/armpe.sc: Change output and quote the $s.
5468 * scripttempl/i386pe.sc: Change output and quote the $s.
5469
5470Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5471
5472 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
5473
5474 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
5475 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
5476 (i386msdos.o): New target.
5477 * config/i386-msdos.mt: Created.
5478 * emulparams/i386msdos.sh: Created.
5479 * scripttempl/i386msdos.sc: Created.
5480
5481Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5482
5483 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
5484 that contains pointers to be relocated.
5485
5486Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
5487
5488 * mpw-esh.c: New file, modified for MPW from esh.c.
5489 * scripttempl/sh.sc: Reformatted to simplify MPWification,
5490 use *() to concat stab sections instead of [].
5491
5492Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
5493
5494 * scripttempl/armpe.sc: Add constructor support.
5495
5496Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
5497
5498 * ldlang.c (lang_size_sections): Any section with a DATA
5499 statement has contents.
5500
5501Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5502
5503 * emulparams/m68kelf.sh (NOP): Define.
5504 (DYNAMIC_LINK): Don't define.
5505 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
5506 will come from the linker script.
5507
5508Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
5509
5510 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
5511
5512Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
5513
5514 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
5515
5516Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5517
5518 From Andrew Cagney <cagney@highland.com.au>
5519 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
5520 elf32lppc.
5521
5522Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
5523
5524 Add support for ARM-PE.
5525 * Makefile.in (ALL_EMULATIONS): Add armpe.o
5526 * configure.in: Recognize armpe.
5527 * config/arm-pe.mt: New file.
5528 * emulparams/armpe.sh: New file.
5529 * scripttempl/armpe.sc: New file.
5530
5531
5532Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
5533
5534 * configure.in (h8300h-*-hms): Deleted
5535 * config/cf-h8300h.mt: Deleted.
5536
5537Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
5538
5539 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
5540
5541 From David Taylor (dtaylor@armltd.co.uk)
5542 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
5543 * configure.in: Recognize arm{,e[lb]-*-aout.
5544 * config/arm[lb]-aout.mt: New files.
5545 * emulparams/armaout[lb].sh: New files.
5546 * scripttempl/armaout.sc: New file.
5547
5548Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5549
5550 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
5551 be unique in 8 characters for DOS.
5552
5553 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
5554 * emulparams/elf32ppcle.sh: Deleted.
5555
5556Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
5557 Tom Griest <griest@cs.yale.edu>
5558
5559 Initial support for PE executables (eg NT, win32)
5560
5561 * Makefile.in (configure.in, ei386pe): Add support.
5562 * ldmain.c (main): Initialize PE argument info.
5563 * ldwrite.c (print_file_stuff): Don't print out .drectve
5564 and .debug section info.
5565 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
5566 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
5567 Handle new arguments.
5568 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
5569 New files
5570
5571Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
5572
5573 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
5574 segment. This allows ld -r to preserve unwind sections.
5575
5576Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5577
5578 * configure.in: Add little endian PowerPC support.
5579
5580 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
5581 (eelf32ppcle.c): Support for little endian PowerPC.
5582
5583 * config/ppcle-elf32.mt: New file for little endian PowerPC.
5584 * emulparams/elf32ppcle.sh: Ditto.
5585
5586Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5587
5588 * ldlang.c (print_output_section_statement): Check
5589 subsection_alignment, instead of checking section_alignment twice.
5590 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
5591
5592Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
5593
5594 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
5595
5596Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
5597
5598 * ldwrite.c (ldwrite): Before doing anything, reset the error
5599 code. If bfd_final_link returns an error, but the error code is
5600 unset, don't issue an extra message. Assume a correct error
5601 message was already set.
5602
5603Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5604
5605 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
5606 (em68kelf.o): New target.
5607 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
5608 * configure.in: Use them for m68*-*-elf.
5609
5610Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
5611
5612 Merge in support for Mac MPW as a host.
5613 (Old change descriptions retained for informational value.)
5614
5615 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
5616 (i386-unknown-coff): Remove.
5617 (sh-hitachi-hms): New target.
5618 (emulation_ofiles): Set correctly for each target.
5619 (version, TDEFINES): Add to makefile fragment.
5620 * mpw-make.in (BISON): Use byacc instead of bison.
5621 (em_*.c): Replace with e*.c everywhere.
5622 (ldgram.h): Separate action from ldgram.c generation.
5623 (LD_PROG): Depend on Version.r.
5624 (Version.r): generate from version info.
5625 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
5626
5627 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
5628 i386-unknown-aout, i386-unknown-coff): New targets.
5629 (m68k-aout, m68k-coff): Remove targets.
5630 (mk.tmp): Add definition of EMUL.
5631
5632 * mpw-config.in (emulname): Set based on target.
5633 (ldemul-list.h): Construct.
5634 * mpw-make.in (install-only): New target.
5635 (install): Depend on install-only.
5636
5637 * mpw-make.in (bindir): Fix pathname.
5638 (install): Move here from mpw-build.in.
5639
5640 * mpw-config.in: New file, MPW configuration fragment.
5641 * mpw-make.in: New file, MPW makefile fragment.
5642 (This file is semi-automatically generated from Makefile.in.)
5643 * ldfile.c (slash): If MPW, set to `:'.
5644 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
5645 prevent redefinition errors.
5646
5647Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
5648
5649 * ldwrite.c (clone_section): Align clone sections on even
5650 boundaries.
5651
5652Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
5653
5654 * configure.in: Change linux to default to elf. Using
5655 i[345]86-*-linuxaout will build a linker which defaults to a.out.
5656 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
5657 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
5658 * config/i386-lelf.mt: Remove.
5659
5660Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
5661
5662 * ldmain.c (main): If opening the map file fails, call
5663 bfd_set_error before calling einfo.
5664
5665 * ld.texinfo, ld.1: Document the -no-keep-memory option.
5666
5667Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
5668
5669 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
5670 does mark shared libraries as executable.
5671
5672Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
5673
5674 * ldlang.c (lang_common): Change power to int. Pass larger values
5675 before smaller values.
5676 (lang_one_common): Treat info as int *. Don't bother to check for
5677 last value, since it is now zero.
5678
5679Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
5680
5681 * ldlang.c (load_symbols): An empty archive is OK.
5682
5683Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
5684
5685 * ldmain.c (progress.h): Include.
5686 (main): Call START_PROGRESS and END_PROGRESS.
5687
5688Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
5689
5690 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
5691 .dtors sections, so that these pointers get relocated also.
5692 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
5693 and end of the constructors/destructors.
5694
5695Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5696
5697 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
5698 describes an archive, call bfd_link_add_symbols on each member.
5699 * ldmain.c (whole_archive): New variable.
5700 (main): Initialize it to false.
5701 * ldmain.h: Declare whole_archive.
5702 * lexsup.c (parse_args): Grok --whole-archive switch.
5703 * ld.texinfo, ld.1: Document --whole-archive.
5704
5705Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
5706
5707 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
5708 using the default emulation.
5709
5710 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
5711 LDEMULATION.
5712 * config/hppaelf.mh (HOSTING_EMU): Likewise.
5713
5714Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
5715
5716 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
5717 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
5718
5719Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
5720
5721 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
5722
5723 * ldlex.l: Return -lFILENAME as the token LNAME.
5724 * ldgram.y: Add token LNAME.
5725 (input_list): Treat LNAME like NAME, but pass it to
5726 lang_add_input_file as lang_input_file_is_l_enum.
5727 * ld.texinfo: Document using -lFILENAME in INPUT.
5728
5729Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5730
5731 * ldlang.c (lang_check): If the architectures are compatible call
5732 bfd_merge_private_bfd_data to let the backend do additional
5733 checks.
5734
5735Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
5736
5737 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
5738 all supported emulations.
5739
5740Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
5741
5742 * ldemul.c (ldemul_list_emulations): New function.
5743 * ldemul.h (ldemul_list_emulations): Declare.
5744 * ldver.c (help): List supported targets and emulations.
5745
5746Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
5747
5748 * scripttempl/elf.sc (.debug): Relocate to address 0.
5749 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
5750 .debug_sfnames, .line): Likewise.
5751
5752Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
5753
5754 * emultempl/elf32.em (hold_rel): New static variable.
5755 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
5756 contents whose names begin with ".rel" after hold_rel. Remove the
5757 assertion which checked for unplaced .rel sections. Don't try to
5758 sort the section into place if place->bfd_section is NULL.
5759 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
5760 section beginning with ".rel".
5761
5762Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
5763
5764 Doc note from pierre@phi.la.tce.com (Pierre Willard):
5765 * ld.texinfo: -X and -x work even if -s or -S are not specified.
5766 * ld.1: Similar change.
5767
5768Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
5769
5770 * emulparams/gld960coff.sh (COFF_CTORS): Define.
5771 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
5772
5773Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
5774
5775 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
5776 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
5777 * config/i386-lelf.mt: New file.
5778 * config/i386-gelf.mt: New file.
5779
5780Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
5781
5782 * configure.in: Match on mips-ecoff, and default to the IDT
5783 configuration.
5784
5785Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
5786
5787 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
5788 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
5789 to double the size of the table.
5790
5791Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5792
5793 * Makefile.in (distclean): Do recursive deletion, since ldscripts
5794 is a directory.
5795
5796Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
5797
5798 * ldmain.c (main): If trace_file_tries is true, and we are using
5799 an internal linker script, print out the script.
5800 * ldfile.c (try_open): Reindent function. Make the messages about
5801 opening script files more informative.
5802
5803 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
5804 * ld.texinfo, ld.1: Update accordingly.
5805
5806Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
5807
5808 * ldlang.c (lang_one_common): Adjust references to common symbol
5809 information for new structure.
5810
5811Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
5812
5813 * ldmain.c (undefined_symbol): Handle section being NULL.
5814
5815 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
5816 * ldexp.c (fold_name): Likewise.
5817 * ldlang.c (print_one_symbol): Likewise.
5818 (lang_finish): Likewise.
5819 * ldmain.c (multiple_common): Likewise.
5820 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
5821 renamed to bfd_link_hash_undefweak.
5822
5823 * scripttempl/alpha.sc: Set address of .data section correctly
5824 when -n or -N is used. Patch from Chris G Demetriou
5825 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
5826 * scripttempl/mips.sc: Similar change.
5827
5828Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
5829
5830 * ldlang.c (lang_size_sections): Clarify error message when user
5831 specified start addr conflicts with region. Fix resetting of
5832 region pointer.
5833
5834Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
5835
5836 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
5837 in lang_allocating_phase_enum.
5838
5839Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
5840
5841 * Makefile.in (distclean): Depend upon clean. Don't bother to
5842 remove files which will be removed by clean. From patch by
5843 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
5844
5845Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
5846
5847 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
5848 a MIPS target, clobber the size of all but the first input
5849 .reginfo section to be 0, so that lang_size_sections sets the
5850 correct size for the output .reginfo section.
5851
5852Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
5853
5854 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5855 Remove unused variable is.
5856
5857Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5858
5859 * configure.in: Add support for powerpc-*-eabi.
5860
5861 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
5862 support.
5863
5864 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
5865 elf.sc, which defines some new symbols PowerPC elf needs.
5866
5867Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
5868
5869 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
5870 constructor entry is in the absolute section.
5871
5872Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
5873
5874 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
5875 * config/i386-gnu.mt: New file. Include ELF support.
5876
5877Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
5878
5879 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
5880 there are any input sections named .gnu.warning, treat them as
5881 containing a warning message to be printed by the linker, and
5882 clobber the size so that the message is not copied into the output
5883 file.
5884 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
5885 section.
5886
5887Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
5888
5889 * configure.in (w65-*-*): New target.
5890 * Makefile.in: Update.
5891 * scripttempl/w65.sc: New.
5892 * config/coff-w65.mt: New.
5893
5894Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
5895
5896 * ldlang.c (lang_place_orphans): Don't ignore files with
5897 just_syms_flag set. Instead, put all their sections in
5898 bfd_abs_section_ptr, using the section VMA as the output_offset.
5899
5900Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5901
5902 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
5903 name `reloc_howto_type', since it's now defined to be const.
5904 * ldlang.c (lang_add_reloc): Ditto.
5905 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
5906
5907Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
5908
5909 * ldexp.c (fold_binary): Adding or subtracting an absolute value
5910 to a relative value does not require forcing the relative value to
5911 be absolute. Also, reindent function.
5912
5913Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5914
5915 * ldwrite.c (clone_section): Create a symbol with the
5916 same name as the section.
5917
5918Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5919
5920 * ld.h (split_by_reloc, split_by_file): New flags.
5921 * ldwrite.c (clone_section, split_sections): New functions.
5922 * lexsup.c (parse_args): Understand new split options.
5923
5924Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5925
5926 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
5927 .data segment. They must be writable when creating a shared
5928 library. From H.J. Lu <hjl@nynexst.com>.
5929
5930Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
5931
5932 * emultempl/miposecoff.em: New file.
5933 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
5934 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
5935 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
5936 provide __runtime_reloc_start and __runtime_reloc_stop if they are
5937 used. Align _fdata to a 16 byte boundary.
5938 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
5939 generic.em.
5940 (emipsidtl.c): Likewise.
5941 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
5942
5943 * ld.h (args_type): Add new field embedded_relocs.
5944 * ldemul.h (ldemul_after_open, after_open_default): Declare.
5945 (ld_emulation_xfer_struct): Add new field after_open.
5946 * ldemul.c (ldemul_after_open): New function.
5947 (after_open_default): New function.
5948 * ldlang.c (lang_process): Call ldemul_after_open.
5949 * lexsup.c (parse_args): Handle --embedded-relocs.
5950 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
5951 new after_open field to after_open_default.
5952 * emultempl/generic.em, emultempl/gld960.em: Likewise.
5953 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
5954 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
5955 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
5956 * ld.texinfo, ld.1: Mention -embedded-relocs.
5957
5958Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5959
5960 * Makefile.in: Add eshl.o.
5961 * config/coff-sh.mt: Add shl emulation.
5962
5963Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5964
5965 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
5966 Youngdale <eric@aib.com>.
5967
5968Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5969
5970 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
5971 * config/i386linux.mh: New file; set HOSTING_CRT0.
5972 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
5973 /usr/lib, since that is already in LIB_PATH.
5974
5975Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
5976
5977 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
5978 address.
5979 (.data, .bss): If "-N", then place the data/bss just after the end
5980 of the .text section rather than at the default 0x40000000.
5981
5982 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
5983 text segment.
5984
5985Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5986
5987 Patches from Eric Youngdale <eric@aib.com>:
5988 * ldlang.c (lang_finish): Don't warn if entry symbol not found
5989 when generating a shared library.
5990 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
5991 attempting to place an orphaned relocation section when generating
5992 a dynamically linked object.
5993
5994 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
5995 _start.
5996
5997Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
5998
5999 * ld.h (args_type): Add field export_dynamic.
6000 * lexsup.c (parse_args): Recognize --export-dynamic.
6001 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6002 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
6003
6004Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6005
6006 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
6007 we allocate common symbols.
6008
6009Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
6010
6011 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
6012 .rela.fini to the list of .rel* sections.
6013
6014Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6015
6016 * ldlang.c (load_symbols): Add new argument place. Only accept
6017 linker scripts if place is not NULL. Put commands found in an
6018 assumed linker script into place.
6019 (lookup_name): Pass NULL as place argument to load_symbols.
6020 (open_input_bfds): In lang_input_statement_enum case, pass a place
6021 argument to load_symbols, and store any new statements after the
6022 current one.
6023
6024Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6025
6026 * ldver.c (ldversion): Bump to 2.5.3.
6027
6028Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6029
6030 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
6031
6032Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6033
6034 * Makefile.in (check): Add missing "else true" clause.
6035
6036 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
6037
6038 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
6039 entry point to "start". Align at end of each section to 0x200.
6040 Start .text section 0x1000 later. Add _etext, _edata, _end
6041 symbols.
6042
6043Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6044
6045 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
6046 composed of different object file formats.
6047 (ldctor_build_sets): If the output format does not support the
6048 reloc, and we are not generating a relocateable link, try getting
6049 the reloc from the input format.
6050
6051Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
6052
6053 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
6054 (em68knbsd.c): New target.
6055
6056 * config/m68k-nbsd.mt: New file.
6057 * emulparams/m68knbsd.sh: New file.
6058 * configure.in (m68*-*-netbsd*): Use above configs.
6059
6060Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6061
6062 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
6063 appropriately named static library, stop the search at that
6064 directory.
6065
6066Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
6067
6068 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
6069 and esparcnbsd.o; sorted entries.
6070 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
6071
6072 * config/netbsd532.mt: Removed.
6073 * emulparams/netbsd532.sh: Removed.
6074
6075 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
6076 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
6077 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
6078 sparc*-*-netbsd*): Use above configs.
6079
6080Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6081
6082 * ldmain.c (multiple_common): One of the types may now be
6083 bfd_link_hash_indirect. The old BFD argument may be NULL.
6084
6085Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6086
6087 * configure.in: Add * at the end of m68k-hp-hpux.
6088
6089Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6090
6091 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
6092 YY_CHAR *.
6093
6094Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
6095
6096 * scripttempl/nw.sc: Gather constructors and destructors and
6097 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
6098
6099Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
6100
6101 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
6102 (ei386nw.c, eppcnw.c): New targets.
6103
6104 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
6105 scripttempl/nw.sc: New files, for i386 and powerpc netware.
6106
6107 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
6108 instead of {i386,ppc}-elf.
6109
6110 * configure.in (sparc*-*-netware): Removed. There is no such
6111 thing anymore.
6112
6113 * ldint.texinfo: Move misplaced `@end iftex'.
6114
6115Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
6116
6117 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
6118 .rela.dtors to the list of .rel* sections.
6119
6120Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6121
6122 * ldver.c (ldversion): Update to version 2.5.
6123 * Version 2.5 released.
6124
6125 * configure.in (all_targets): Handle i386-linux*.
6126
6127Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6128
6129 * scripttempl/aout.sc: Set _etext and __etext to ., not
6130 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
6131 will not break any other system. From Eric Valette
6132 <ev@chorus.fr>.
6133
6134Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6135
6136 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
6137 --verbose to get the old -V behaviour.
6138 * ld.1, ld.texinfo: Document this change.
6139
6140Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6141
6142 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
6143 assertion, since it could fail with a user defined linker script.
6144
6145 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
6146 name in the hash table during the first phase--the hash table does
6147 not even exist at that point, much less have the right value.
6148
6149 * Makefile.in (CC): Define.
6150 (CXX): Move definition, change from g++ to gcc.
6151 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
6152 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
6153 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
6154 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
6155 (.cc.o): Comment out.
6156 (testdir): Remove.
6157 (site.exp): Don't create testdir or set tmpdir.
6158 (check): Run checks even if not running native. Use CC_FOR_TARGET
6159 instead of RUNTEST_CC, and likewise for CXX.
6160 (cdtest targets): Comment out.
6161 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
6162 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
6163 * cdtest-main.cc, cdtest.exp: Remove.
6164
6165Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6166
6167 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
6168 file naming problems.
6169 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
6170 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
6171 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
6172 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
6173 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
6174 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
6175 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
6176
6177 * genscripts.sh: Always search /usr/local/TARGET/lib.
6178
6179 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
6180
6181Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6182
6183 * configure.in: Handle i386-bsdi* targets like i386-bsd.
6184
6185Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6186
6187 * lexsup.c (parse_args): Add support for -a for HP/UX
6188 compatibility.
6189
6190 * lexsup.c (parse_args): -c takes an argument.
6191
6192Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6193
6194 * ld.h (args_type): Add new field endian.
6195 * lexsup.c (parse_args): Handle -EB and -EL by setting
6196 command_line.endian.
6197 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
6198 * ldlang.c (lang_add_output_format): Add arguments big and little.
6199 If command_line.endian is set, use it to select big or little
6200 rather than the default. Changed all callers.
6201 * ldlang.h (lang_add_output_format): Update declaration.
6202 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
6203 LITTLE_OUTPUT_FORMAT.
6204 * emulparams/elf32mipl.sh: Likewise.
6205 * emulparams/mipsbig.sh: Likewise.
6206 * emulparams/mipsbsd.sh: Likewise.
6207 * emulparams/mipsidt.sh: Likewise.
6208 * emulparams/mipsidtl.sh: Likewise.
6209 * emulparams/mipslit.sh: Likewise.
6210 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
6211 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
6212 OUTPUT_FORMAT.
6213 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
6214 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
6215 * scripttempl/mipsbsd.sc: Likewise.
6216
6217 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
6218 depending upon ldgram.c, so that a parallel make does not try to
6219 build both at once.
6220
6221 * configure.in (mips*el-elf*): New target.
6222 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
6223 (eelf32mipl.c): New target.
6224
6225 * config/mipsl-elf32.mt: New file.
6226 * emulparams/elf32mipl.sh: New file.
6227
6228Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6229
6230 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
6231 ld -r -S -x.
6232
6233Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6234
6235 * ldmisc.c (vfinfo): Print BFD file name as well as file name
6236 returned by find_nearest_line, in case the file name is something
6237 unhelpful such as a .h file. Handle %u.
6238
6239Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6240
6241 * ldlang.c (lang_do_assignments): Make sure output statement
6242 has an attached bfd_section before trying to dereference it.
6243
6244Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6245
6246 * ld.h (ld_config_type): Add new field warn_once.
6247 * ldmain.c (undefined_symbol): Handle -warn-once.
6248 * lexsup.c (parse_args): Recognize -warn-once.
6249 * ld.texinfo (Options): Document -warn-once.
6250 * ld.1: Likewise.
6251
6252 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
6253 name. For %C, print the function name on a separate line, to keep
6254 the length of error messages under control.
6255 * ldmain.c (multiple_definition): Use %D for ``first defined
6256 here.''
6257 (undefined_symbol): Use %D for ``more undefined references
6258 follow''.
6259
6260 * ldmisc.c (multiple_warn): Remove; no longer used.
6261 * ldmisc.h (multiple_warn): Don't declare.
6262
6263Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6264
6265 * ldlang.c (print_output_section_statement): Print all lines
6266 to the map file.
6267
6268Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6269
6270 * ldlang.c (load_symbols): Check for archive before object. Use
6271 bfd_check_format_matches, and, if ambiguous, print a list of
6272 matching formats. If file format is not recognized, treat file as
6273 a linker script.
6274 * ldgram.y (yyerror): If assuming an object file is a script,
6275 mention that. Tweak the format of the error messages.
6276 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
6277 guess that this is not actually a script, and just report that the
6278 file format was not recognized.
6279 * ld.texinfo (Options): Admit that -( may be used more than once.
6280 Add note that unrecognized object files are now treated as linker
6281 scripts.
6282
6283 * ldfile.c (ldfile_input_filename): Make const.
6284 (ldfile_assumed_script): New variable.
6285 (try_open): Change arguments types to const.
6286 (ldfile_find_command_file): Likewise.
6287 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
6288 * ldfile.h: Update declarations for ldfile.c changes.
6289 * ldlex.l: Include <ctype.h>.
6290 (file_name_stack): Change to be const char *.
6291 (lineno_stack): New static variable.
6292 (<<EOF>>): Set lineno as well as ldfile_input_filename.
6293 (lex_push_file): Make name argument const. Initialize
6294 lineno_stack entry.
6295 (lex_redirect): Initialize lineno_stack entry.
6296 (lex_warn_invalid): Handle non printable characters nicely.
6297 * ldlex.h (lex_push_file): Declare second argument as const.
6298
6299 * ldgram.y (ifile_p1): Recognize GROUP.
6300 * ldlex.l: Recognize GROUP.
6301 * ld.texinfo (Option Commands): Document GROUP.
6302
6303Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6304
6305 * config/m68klynx.mh: New file.
6306
6307Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
6308
6309 * emultempl/hppaelf.em: Add newlines to the error messages.
6310
6311Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6312
6313 * config/i386lynx.mh: New file.
6314 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
6315 unless CONSTRUCTING.
6316
6317Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6318
6319 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
6320 (GENERATE_SHLIB_SCRIPT): Define as yes.
6321 (DYNAMIC_LINK): Define as false.
6322 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
6323 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
6324 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
6325 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
6326 generic.em.
6327
6328Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6329
6330 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
6331
6332Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6333
6334 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
6335 .got section is now explicitly handled in elf.sc.
6336
6337Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6338
6339 * scripttempl/alpha.sc: Redo script to set . outside of sections
6340 and not bother to explicitly specify section addresses.
6341 Explicitly place .sdata section.
6342
6343Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6344
6345 * scripttempl/m68kcoff.sc: Put .bss in data segment.
6346
6347 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
6348 0, and to only be marked as NOLOAD if relocating.
6349 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
6350 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
6351 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
6352 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
6353 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
6354 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
6355 * scripttempl/sparclynx.sc: Likewise.
6356
6357Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
6358
6359 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
6360 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
6361 New files.
6362
6363Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
6364
6365 * ld.h (args_type): Add field soname.
6366 * lexsup.c (parse_args): Handle -soname argument.
6367 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
6368 pass soname.
6369 * ld.texinfo: Document -soname.
6370
6371Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6372
6373 * ldlang.c (lang_check): Don't try to set the architecture if the
6374 input and output files are incompatible. Just warn.
6375
6376Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6377
6378 * configure.in: Change i[34]86 to i[345]86.
6379
6380Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6381
6382 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
6383
6384Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6385
6386 Make the ELF linker handle orphaned sections reasonably. Also,
6387 define __start_SECNAME and __stop_SECNAME around sections whose
6388 names can be represented in C, for the benefit of symbol sets in
6389 glibc.
6390 * ldemul.h (ldemul_place_orphan): Declare.
6391 (ld_emulation_xfer_type): Add place_orphan field.
6392 * ldemul.c (ldemul_place_orphan): New function.
6393 * ldlang.h (wild_doit): Declare.
6394 * ldlang.c (wild_doit): Make nonstatic.
6395 (lang_place_orphans): Call ldemul_place_orphan.
6396 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
6397 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
6398 static variables.
6399 (gld${EMULATION_NAME}_place_orphan): New static function.
6400 (gld${EMULATION_NAME}_place_section): New static function.
6401 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
6402
6403Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
6404
6405 * scripttempl/aout.sc: Add .linux-dynamic after .data.
6406
6407Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6408
6409 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
6410 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
6411
6412Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6413
6414 * ldexp.h (exp_get_abs_int): Declare.
6415
6416Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6417
6418 * ldlang.c (lang_do_assignments): Handle complex AT's better.
6419 * ldexp.c (exp_get_abs_int): New function.
6420
6421Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
6422
6423 * configure.in: add i960-nindy-coff support.
6424
6425Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6426
6427 * ldlex.l (yy_create_string_buffer): Handle change to internal
6428 interface in flex 2.4.7.
6429
6430Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
6431
6432 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
6433 New function; add 0x20 to any use of -Ttext.
6434 (gld${EMULATION_NAME}_create_output_section_statements): New
6435 function.
6436 (ld_${EMULATION_NAME}_emulation): Use the new function
6437 gld${EMULATION_NAME}_create_output_section_statements.
6438
6439Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6440
6441 * scripttempl/mips.sc: Redo script to set . outside of sections
6442 and not bother to explicitly specify section addresses.
6443
6444Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6445
6446 * scripttempl/elf.sc: Copy several more relocation sections into
6447 the output. Put .got.plt sections into .got.
6448
6449Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6450
6451 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
6452
6453 Add a new script operator, PROVIDE, to define a symbol only if it
6454 is needed.
6455 * ldgram.y (PROVIDE): New token.
6456 (assignment): Accept PROVIDE.
6457 * ldlex.l (PROVIDE): New token.
6458 * ldexp.h (node_type): Add etree_provide to node_class enum.
6459 (exp_provide): Declare.
6460 * ldexp.c (exp_fold_tree): Handle etree_provide.
6461 (exp_provide): New function.
6462 (exp_print_tree): Handle etree_provide.
6463 * ld.texinfo: Document PROVIDE.
6464
6465 * ldlang.c (lang_common): Pass desired alignment to
6466 lang_one_common as power of two.
6467 (lang_one_common): Get common symbol alignment from linker hash
6468 table entry. Treat desired alignment as a power of two.
6469
6470 * ldlang.c (wild_section): Attach all section with the given name,
6471 not just the first one. If there is no name, attach all sections
6472 even if the SEC_IS_COMMON flag is set.
6473
6474Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6475
6476 * ld.h (args_type): Add field rpath.
6477 * lexsup.c (S_ISDIR): Define if not already defined.
6478 (parse_args): Add support for -rpath. If -R is used to name a
6479 directory, treat it as -rpath for Solaris compatibility.
6480 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6481 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
6482 * ldmain.c (main): Initialize command_line.rpath to NULL.
6483 * ld.texinfo: Document -rpath option.
6484
6485Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
6486
6487 * emulparams/pc532machaout.sh: New file. Pc532 mach script
6488 parameters.
6489
6490 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
6491
6492 * config/pc532mach.mt: New file. Pc532 mach target support.
6493
6494 * config/pc532mach.mh: New file. Pc532 mach host support.
6495
6496 * config/netbsd532.mt: New file. Netbsd 532 target support.
6497
6498 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
6499
6500 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
6501 dependency.
6502
6503Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6504
6505 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
6506 bfd_abs_section_ptr, not &bfd_abs_section.
6507
6508 * lexsup.c (parse_args): Changed "retain-symbols-file" from
6509 no_argument to required_argument. From djm.
6510
6511Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6512
6513 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
6514 sections to force a VMA of 0; needed for ELF backends which have
6515 not been converted to the new linker style.
6516
6517Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
6518
6519 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
6520 it was for the HPUX dynamic loader's use and it creates problems
6521 with ELF GDB.
6522
6523Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
6524
6525 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
6526 * ldlang.h (lang_do_assignments): Put external decl here.
6527 * emultempl/hppaelf.em: Minor cleanups throughout file.
6528 (hppa_elf_create_output_section_statements): Rewrite.
6529 (hppaelf_finish): Rewrite.
6530
6531Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6532
6533 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
6534
6535 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
6536 accept plain -B.
6537 * ld.texinfo: -Bstatic is not ignored.
6538
6539Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
6540
6541 * ldlex.l: Recognize \r the same as \n.
6542
6543Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6544
6545 Preliminary support for generating shared libraries, from Eric
6546 Youngdale <ericy@cais.cais.com>.
6547 * genscripts.sh: If the emulation parameter file sets
6548 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
6549 CREATE_SHLIB defined.
6550 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
6551 link_info.shared is set, use the .xs script file.
6552 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
6553 .interp section, and don't include TEXT_START_ADDR in the starting
6554 address of the first section.
6555 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
6556 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
6557
6558Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
6559
6560 * configure.in: Change --with-targets to --enable-targets.
6561
6562Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6563
6564 * lexsup.c (parse_args): Add support for new options -( -) with
6565 synonyms --start-group --end-group.
6566 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
6567 (lang_group_statement_type): Define new struct.
6568 (lang_statement_union_type): Add group_statement field.
6569 (lang_enter_group, lang_leave_group): Declare.
6570 * ldlang.c (lang_for_each_statement_worker): Handle
6571 lang_group_statement_enum.
6572 (map_input_to_output_sections, print_statement): Likewise.
6573 (lang_size_sections, lang_do_assignments): Likewise.
6574 (open_input_bfds): Completely rewrite. Now does its own looping,
6575 rather than using lang_for_each_statement. Handle groups.
6576 (lang_process): Update call to open_input_bfds.
6577 (print_group): New static function.
6578 (lang_enter_group, lang_leave_group): New static functions.
6579 * ldfile.c (ldfile_open_file): If the file has already been
6580 opened, just return rather than taking an assertion failure.
6581 * ldver.c (help): Mention new options.
6582 * ld.texinfo: Document new options.
6583
6584 * ldlang.c (end_of_data_section_statement_list): Don't define.
6585 (lang_leave_output_section_statement): Don't set obsolete variable
6586 end_of_data_section_statement_list.
6587
6588 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
6589 ALIGN.
6590
6591 * ldlang.c (lang_size_sections): Adjust current region address
6592 even for sections with an explicit address. From
6593 ralphc@pyramid.com (Ralph Campbell).
6594
6595 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
6596 From jrs@world.std.com (Rick Sladkey).
6597
6598 * scripttempl/mipsbsd.sc: Let sections align to their natural
6599 boundaries.
6600
6601Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6602
6603 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
6604 &bfd_abs_section.
6605 (lang_abs_symbol_at_beginning_of): Likewise.
6606 (lang_abs_symbol_at_end_of): Likewise.
6607 (lang_size_sections): Use bfd_is_abs_section to check for the
6608 absolute section. Don't try to set the VMA or output_offset or
6609 size of the absolute section.
6610 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
6611 undefined section.
6612
6613Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
6614
6615 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
6616 when generating relocatable objects.
6617
6618Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
6619
6620 * emultempl/linux.em: New file providing support for linking
6621 against Linux shared libraries.
6622 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
6623 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
6624
6625Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6626
6627 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
6628 * ldmain.c (main): Initialize link_info.shared to false. Give
6629 error if link_info.relocateable and link_info.shared are both set.
6630
6631 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
6632 it as naming an emulation to be added to EMULATION_OFILES.
6633 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
6634
6635 * Makefile.in: Rebuilt dependencies.
6636 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
6637 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
6638 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
6639 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
6640 (ei386linux.c): Remove; now in Makefile.in.
6641 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
6642 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
6643 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
6644 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
6645 (eelf64_sparc.c): Remove; now in Makefile.in.
6646 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
6647 (eelf32_sparc.c): Remove; now in Makefile.in.
6648
6649 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
6650 no owner--it might be bfd_abs_section. From Eric Youngdale
6651 <ericy@cais.cais.com>.
6652
6653 * scripttempl/aout.sc: Let sections align to their natural
6654 boundaries.
6655
6656Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6657
6658 * ldemul.h (ldemul_open_dynamic_archive): Declare.
6659 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
6660 * ldemul.c: Include ldexp.h and ldlang.h.
6661 (ldemul_open_dynamic_archive): New function.
6662 * ldfile.h (ldfile_open_file_search): Declare.
6663 * ldfile.c: Include ldemul.h.
6664 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
6665 argument, not bfd *. Change all callers.
6666 (ldfile_open_file_search): Rename from open_a. Return boolean
6667 argument, not bfd *. Clean up. Change all callers.
6668 (ldfile_open_file): If doing a dynamic link, call
6669 ldemul_open_dynamic_archive rather than assuming the extension of
6670 a dynamic object is ".so".
6671 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
6672 New function.
6673 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
6674 field.
6675 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
6676
6677 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
6678 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
6679 Accept -static as a synonym for -non_shared.
6680
6681 Let the user change the dynamic linker used by ELF code.
6682 * ld.h (args_type): Add new field interpreter.
6683 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
6684 handle it.
6685 * ldmain.c (main): Initialize command_line.interpreter to NULL.
6686 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
6687 the ELF backend to return the .interp section. If
6688 command_line.interpreter is not NULL, set the contents of .interp
6689 to it.
6690 * ld.texinfo: Mention -dynamic-linker.
6691
6692 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
6693 generic.em.
6694
6695 * lexsup.c (parse_args): Sort out the option macros and change the
6696 definitions to make it easier to add a new option.
6697
6698 * scripttempl/aout.sc: Define __etext and __edata to go along with
6699 _etext and _edata.
6700
6701 * ld.h (ld_config_type): Add new field traditional_format.
6702 * lexsup.c (parse_args): Add traditional-format to longopts, and
6703 handle it.
6704 * ldmain.c (main): Initialize config.traditional_format to false.
6705 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
6706 flags of output_bfd according to config.traditional_format.
6707 * ldver.c (help): Mention -traditional-format.
6708 * ld.texinfo: Document -traditional-format.
6709
6710Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6711
6712 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
6713 they are encountered.
6714
6715Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
6716
6717 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
6718 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
6719
6720Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6721
6722 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
6723 _FTEXT, _ETEXT and _FDATA. Dont define _END.
6724
6725 * ldfile.c (open_a): If this is not an archive, try to open it in
6726 the current directory before searching for it.
6727
6728 * lexsup.c (parse_args): Treat -i as a synonym for -r.
6729
6730 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
6731 BLOCK works in a section address as documented.
6732
6733 * ldgram.y (YYDEBUG): Don't define.
6734
6735Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6736
6737 * emultempl/gld960.em: Pass false for new argument to
6738 ldfile_add_library_path.
6739 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
6740
6741 * emultempl/sunos.em: Only look for .so files if doing a dynamic
6742 link.
6743
6744Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
6745
6746 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
6747
6748Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
6749
6750 * Makefile.in (check): Delete ld.new dependency so that a regression
6751 test doesn't trigger a rebuild of the linker.
6752
6753Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6754
6755 * ldlang.c (map_input_to_output_sections): For lang_address, call
6756 init_os if it hasn't already been called.
6757
6758Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6759
6760 Add support for SunOS shared libraries.
6761 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
6762 shared library support code.
6763 * emultempl/sunos.em: New file.
6764 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
6765 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
6766 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
6767 (esun3.c): Likewise.
6768
6769 * ldlang.c: Minor formatting cleanups.
6770 (lang_for_each_input_file): New function.
6771 * ldlang.h (lang_for_each_input_file): Declare.
6772
6773 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
6774 field.
6775 (search_head): Declare.
6776 (ldfile_add_library_path): Add new cmdline argument in prototype.
6777 * ldfile.c (search_head): Make non-static.
6778 (search_dirs_type): Move to ldfile.h.
6779 (ldfile_add_library_path): Accept cmdline argument, and save it.
6780 * lexsup.c (parse_args): Pass true for new cmdline argument of
6781 ldfile_add_library_path.
6782 (set_default_dirlist): Likewise.
6783 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
6784 argument of ldfile_add_library_path.
6785 * ldgram.y (ifile_p1): Likewise.
6786
6787Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6788
6789 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
6790 total_size, superfile and chain.
6791 * ldfile.c (open_a): Don't clear search_dirs_flag.
6792 (ldfile_open_file): Don't try to open superfile. Assert that file
6793 has not already been opened.
6794 * ldlang.c (new_afile): Don't initialize superfile.
6795 * ldmain.c (add_archive_element): Don't initialize subfiles or
6796 chain or superfile. Initialize search_dirs_flag to false.
6797
6798Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6799
6800 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
6801
6802 Changes from binutils-2.4 release:
6803
6804 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
6805 variables, use whitespace, so scripts don't break.
6806
6807 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
6808
6809 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
6810
6811 * cdtest-bar.cc: Renamed from cdtest-func.cc.
6812 * Makefile.in: Noted change.
6813
6814 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
6815 don't know where that's supposed to come from, or why it's
6816 necessary.
6817
6818 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
6819
6820 * configure.bat: update to latest makefile.in
6821 * emulpara/go32.sh: set to coff-go32 not aout
6822 * emultemp/generic.em: strength-reduce the structure of
6823 this shell script, since the only available shell for
6824 DOS can't handle complex syntax.
6825 * emultemp/stringify.sed: for "sed -f" instead of inline.
6826 * makefile.in: depend on stringify.sed as well as genscripts.sh
6827 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
6828 * genscripts.sh: empty variables aren't always considered "set",
6829 so set them to "y" instead.
6830
6831Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6832
6833 * ldlang.c (entry_symbol): Make static.
6834 (lang_add_entry): Add cmdline argument.
6835 * ldlang.h (lang_add_entry): Change prototype.
6836 * ldgram.y (statement_anywhere): Change lang_add_entry call.
6837 * lexsup.c (parse_args): Likewise.
6838
6839Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6840
6841 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
6842 .reginfo an address.
6843 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
6844 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
6845 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
6846
6847Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6848
6849 Add support for ELF shared libraries.
6850 * ld.h (ld_config_type): Add field dynamic_link.
6851 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
6852 on attempts to use -r with -relax, -call_shared or -s.
6853 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
6854 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
6855 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
6856 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
6857 OPTION_NON_SHARED by setting dynamic_link field accordingly.
6858 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
6859 -r and -Ur.
6860 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
6861 opening a file with a .so extension first.
6862 * emultempl/elf32.em: New file.
6863 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
6864 (NONPAGED_TEXT_START_ADDR): Likewise.
6865 (TEMPLATE_NAME): Define as elf32.
6866 (DATA_PLT): Define.
6867 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
6868 * scripttempl/elf.sc: Add placement for new dynamic sections.
6869 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
6870 outside of any section. Don't use ALIGN(8); just let one section
6871 VMA follow another. Put .dynbss in .bss. Don't mention debugging
6872 sections; they'll be handled correctly anyhow.
6873 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
6874
6875Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
6876
6877 * Makefile.in (install): Redirect output of ln to /dev/null.
6878
6879Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
6880
6881 * emultempl/hppaelf.em: Change all references of
6882 .hppa_linker_stubs to .PARISC.stubs.
6883 * scripttempl/hppaelf.sc: Likewise.
6884
6885Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6886
6887 * ldlang.c (print_output_section_statement): Change ``no attached
6888 output section'' message slightly.
6889 (lang_do_assignments): Don't recurse down if there is no real
6890 section.
6891
6892 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
6893 match corresponding change in emulation templates.
6894 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
6895 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
6896
6897Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6898
6899 * ldver.c (ldversion): Updated version number.
6900
6901 * cdtest-foo.cc: Use explicit "#pragma implementation".
6902 * cdtest-bar.cc: Renamed from cdtest-func.cc.
6903 * Makefile.in: References to cdtest-func.o changed to
6904 cdtest-bar.o.
6905
6906Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6907
6908 Don't create unnecessary output sections.
6909 * ldlang.c (out_bfd_get_section_by_name): Remove.
6910 (wild_section): Call bfd_get_section_by_name rather than
6911 our_bfd_get_section_by_name. Don't call wild_doit if there is no
6912 section.
6913 (lang_create_output_section_statements): Remove.
6914 (map_input_to_output_sections): For several cases, call init_os if
6915 it has not already been called.
6916 (lang_size_sections): If output section was not created, skip it.
6917 (lang_process): Don't call lan_create_output_section_statements.
6918 (lang_place_orphans): Skip files with just_syms_flags set to true.
6919 * ld.texinfo: Document change.
6920
6921Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6922
6923 * ldlang.c (wild_doit): Don't bother initializing the vma and
6924 section size. Don't special case SEC_SHARED_LIBRARY.
6925 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
6926 specially.
6927
6928Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
6929
6930 * config/go32.mh : New file for Xgo32X.
6931
6932Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6933
6934 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
6935 before calling einfo, since we are reporting an fopen failure.
6936 From jrs@world.std.com (Rick Sladkey).
6937
6938 * configure.in: Use "e" rather than "em_" as prefix for
6939 emulations.
6940
6941Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
6942
6943 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
6944 filename.
6945 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
6946 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
6947 Ditto.
6948 * Makefile.in: Changed all generated file names.
6949 (ldemul-list.h): Depend on Makefile, not config.status. Changed
6950 sed patterns to handle new filenames.
6951
6952 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
6953 * configure.in: Adjusted.
6954
6955Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6956
6957 * Makefile.in (install-info): Don't use "$<*", it doesn't always
6958 work. Instead, check build dir and $srcdir explicitly, and use
6959 `echo' to get all the filenames.
6960
6961 * configure.in (h8300h-*-hms): Changed ld_target name to
6962 cf-h8300h.
6963 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
6964 unique in 8.3.
6965
6966 * config/i960coff.mt: New file.
6967 * emulparams/gld960coff.sh: New file.
6968 * emultempl/gld960c.em: New file.
6969 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
6970 i960coff configuration.
6971 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
6972
6973 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
6974 code isn't included in FSF releases, and it can still be
6975 explicitly selected.
6976 (distclean): Remove site.bak and tmpdir.
6977 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
6978 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
6979
6980 Patches from Ralph Campbell:
6981 * config/mipsbsd.mh: New file.
6982 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
6983 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
6984 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
6985 instead of `aout'.
6986
6987 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
6988
6989Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6990
6991 * config/m68k.mt (EMUL): Set to m68kaout.
6992 * emulparams/m68kaout.sh: New file.
6993 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
6994 (em_m68kaout.c): New target.
6995
6996 * ldlang.c (lang_size_sections): If dot moves because of an
6997 assignment, don't try to insert a pad into the absolute output
6998 section, just change the address of the default memory region
6999 instead.
7000
7001 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
7002 cdtest-ur.out, and cdtest-ur.tmp.
7003
7004Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7005
7006 * scripttempl/sa29200.sc: Align all sections to four byte
7007 boundaries.
7008
7009Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
7010
7011 * Makefile.in, configure.in: Support for go32 coff.
7012 * config/i386-go32.mt: New file
7013 * emulparams/i386go32.sh: New file
7014 * scripttempl/i386go32.sc: New file
7015
7016Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
7017
7018 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
7019 Lynx-specific script templates.
7020 * configure.in (sparclite*-*-coff): Use coff-sparc.
7021 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
7022 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
7023 (ENTRY): Set to __main.
7024 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
7025 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
7026 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
7027
7028Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7029
7030 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
7031 byte boundary, in case the global constructors do not take up an
7032 even 16 bytes.
7033
7034 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
7035 exist, get crtbegin based on gcc -print-libgcc-file-name.
7036 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
7037
7038Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7039
7040 * ldlang.c (lang_size_sections): When no address is given for a
7041 section, align it according to its requirements.
7042
7043Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7044
7045 * Makefile.in (clean, distclean): Remove configdoc.texi.
7046
7047Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
7048
7049 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
7050
7051Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7052
7053 * ldlang.c (lang_size_sections): When relaxing, adjust the
7054 position of a padding statement, and adjust dot accordingly.
7055
7056Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
7057
7058 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
7059
7060Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7061
7062 * scripttempl/i386coff.sc: If relocating, don't put .init and
7063 .fini sections into .text; keep them separate.
7064 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
7065 exist, get crtbegin based on gcc -print-libgcc-file-name.
7066 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
7067
7068Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
7069
7070 * Makefile.in (check): Set TCL_LIBRARY for runtest.
7071
7072Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7073
7074 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
7075 manufacturer.
7076
7077 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
7078 if building a final executable.
7079
7080Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7081
7082 * ldmain.c (main): Check the return value of bfd_close.
7083
7084Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7085
7086 * scripttempl/alpha.sc: Clean up section alignment to ensure that
7087 sections never overlap when using -r.
7088
7089Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7090
7091 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
7092 changes: get_symtab_upper_bound renamed and returns long,
7093 bfd_canonicalize_symtab returns long, check for error indications.
7094
7095Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7096
7097 * ldlang.c (print_input_section): For section size, use
7098 _cooked_size if it is non-zero, size otherwise.
7099 (size_input_section): Likewise.
7100 (lang_do_assignments): Likewise (case lang_input_section_enum).
7101
7102Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7103
7104 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
7105 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
7106 (lang_add_input_file): Pass true to new_afile for add_to_list.
7107 (lookup_name): Remove force_load argument. Changed all callers.
7108 Pass false to new_afile for add_to_list. Split loading of symbols
7109 out into separate function.
7110 (load_symbols): New function split out of lookup_name. Don't load
7111 the symbols if they are already loaded.
7112 (open_input_bfds): For lang_input_statement_enum call load_symbols
7113 rather than lookup_name.
7114 (lang_process): Pass abs_output_section rather than NULL to
7115 lang_size_sections.
7116 (lang_startup): Set real field of first_file to true.
7117
7118Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7119
7120 * ldlang.c (had_relax): Removed.
7121 (relax_again): New static variable.
7122 (lang_size_sections): Change call to bfd_relax_section to
7123 correspond to BFD changes. Set relax_again appropriately.
7124 (lang_process): Remove #if 0 code. When relaxing, keep calling
7125 lang_do_assignments and lang_size_sections until relax_again
7126 becomes false.
7127
7128 * emultemp/gld960.em: Include libiberty.h
7129 (gld960_before_parse): Pass NULL as final argument to concat.
7130
7131Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7132
7133 * scripttempl/aout.sc: Force _end and __end to be aligned to a
7134 four byte boundary.
7135
7136 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
7137 building a bfd_data_link_order, rather than by setting the section
7138 contents immediately.
7139
7140Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7141
7142 Changes to make -Ur work again.
7143 * ldmain.c (add_to_set): Now takes reloc argument rather than
7144 bitsize. Check config.build_constructors here. If an new hash
7145 table entry is created, mark it as undefined.
7146 (constructor_callback): No longer takes bitsize argument. Pass
7147 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
7148 BFD backend supports it.
7149 (reloc_overflow): Handle a NULL abfd argument.
7150 (reloc_dangerous, unattached_reloc): Likewise.
7151 * ldctor.c: Include ldmain.h.
7152 (struct set_info): Change bitsize field to reloc.
7153 (ldctor_add_set_entry): Now takes reloc argument rather than
7154 bitsize. Don't bother to check config.build_constructors here.
7155 (ldctor_build_sets): Get the size from the reloc howto. If
7156 generating relocateable output, call lang_add_reloc rather than
7157 lang_add_data.
7158 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
7159 instead of bitsize.
7160 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
7161 (lang_reloc_statement_type): New structure.
7162 (lang_statement_union_type): Add reloc_statement field.
7163 (lang_add_reloc): Declare new function.
7164 * ldlang.c (lang_for_each_statement_worker): Handle
7165 lang_reloc_statement_enum.
7166 (map_input_to_output_sections, print_statement): Likewise.
7167 (lang_size_sections, lang_do_assignments): Likewise.
7168 (print_reloc_statement): New function.
7169 (lang_add_reloc): New function.
7170 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
7171
7172 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
7173 (cdtest-ur, cdtest-ur.out): New targets.
7174 (check-cdtest): Now also check that -Ur works correctly.
7175
7176 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
7177
7178Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7179
7180 * ldlang.c (lang_process): Move lang_common call before
7181 map_input_to_output_sections, to ensure that any alignment
7182 constraints set by common symbols are copied over to the output
7183 sections.
7184
7185Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7186
7187 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
7188 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
7189 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
7190 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
7191 needed for ELF.
7192
7193Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7194
7195 * config/i386bsd.mh: New file.
7196
7197Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7198
7199 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
7200 defined.
7201 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
7202 (DATA_START_SYMBOLS): Define _fdata.
7203
7204Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
7205
7206 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
7207
7208Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7209
7210 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
7211 works again. Attach some output symbols to the stub file bfd.
7212
7213 * emultempl/hppaelf.em: Include elf32-hppa.h.
7214 (file_chain): Add decl.
7215 (hppa_look_for_stubs_in_section): Delete decl.
7216 (hppaelf_finish): Reenable code. Do not pass symbols
7217 down to hppa_look_for_stubs_in_section.
7218
7219Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
7220
7221 * ldmain.c (write_map): Don't define. Removed all references.
7222 Just use map_file or map_filename instead.
7223 (add_archive_element): Use minfo to write map information, not
7224 info_msg.
7225 (constructor_callback): Use fprintf to write map information, not
7226 info_msg.
7227 * ldmain.h (write_map): Don't declare.
7228 * ldgram.y (mri_script_command): Removed reference to write_map.
7229 * ldlang.c (lang_one_common): Likewise.
7230 * lexsup.c (parse_args): Likewise.
7231
7232Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
7233
7234 * scripttempl/elf.sc: Force all sections to be aligned.
7235
7236 * ldgram.y (section): Reverse the order of memspec_opt and
7237 fill_opt to avoid an ambiguity when both are used.
7238 * ld.texinfo: Changed accordingly.
7239
7240 * ldgram.y: Move include of ldlex.h back with other includes.
7241 * ldlex.h (input_type): Don't initialize enum constants to
7242 particular values.
7243 * ldlex.l: Use a switch to return the right token based on
7244 input_type, rather than knowing that input_type has a value based
7245 on a token type.
7246
7247 * ldgram.y (dirlist_ptr): Removed; not used.
7248 * lexsup.c: Include ldver.h.
7249 * Makefile.in: Rebuilt dependencies.
7250
7251Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
7252
7253 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
7254 (ldlang_add_file): call it here instead.
7255
7256Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7257
7258 * ldgram.y: Include ldlex.h after %token decls, for byacc.
7259
7260Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7261
7262 * emultempl/hppaelf.em: First attempt to clean this file up.
7263 Add comments in several functions as to their purpose and
7264 how they function (or my current best guess). Clean up horrible
7265 spacing and indention that never should have been accepted in the
7266 first place. Add FIXMEs for issues which need to be resolved.
7267 Disable linker-stub generation until it gets fixed. This allows
7268 the linker to at least work on simple code for testing purposes.
7269
7270 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
7271 it via hppaelf_finish). Prototype moved into ldlang.h.
7272 (lang_process): Move problematic extra call to lang_size_sections
7273 into the PA ELF specific code.
7274 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
7275 lang_size_sections moved here.
7276
7277Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
7278
7279 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
7280 * config/ppc-elf32.mt: New file.
7281 * emulparams/elf32ppc.sh: New file.
7282 * emultempl/ppc.em: New file.
7283 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
7284 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
7285 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
7286
7287Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7288
7289 * lexsup.c (parse_args): Use symbolic numbers for long options.
7290 Fix misunderstanding in -Y and -call_shared et al.
7291
7292 Use getopt instead of lex and yacc to parse the command line.
7293
7294 * ld.texinfo (Options): Document changes to option syntax.
7295 * Makefile.in: Update dependencies.
7296 * ldver.c (help): Tweak dashes in usage message.
7297 * ldgram.y (%union): Remove unused members.
7298 Remove %tokens for command line options; add ones for input types.
7299 (command_line): Rules removed.
7300 (file): Instead of command line, recognize an
7301 input type indicator, then use the nonterminal for that type.
7302 (defsym_expr): New nonterminal from code formerly in command_line.
7303 * ldlex.h: Declare parser input type enum and variable.
7304 Don't declare parse_line.
7305 * ldlex.l: Remove unused variables. Make some used ones static
7306 and comment them.
7307 (COMMAND): Start state and its rules removed.
7308 At start of yylex, return input state token if at start of input.
7309 (lex_redirect): Don't need to set yyout.
7310 (ldlex_command): Function removed.
7311 * ldmain.c (main): Instead of calling parse_line, set up the
7312 redirections and call yyparse directly.
7313 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
7314 "command line".
7315 * lexsup.c: Remove #if 0'd code.
7316 (parse_line): Function removed.
7317 (parse_args): Rewrite to use getopt_long_only.
7318 (set_default_dirlist): New function from code formerly in
7319 ldgram.y:command_line.
7320 (set_section_start): New function.
7321 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
7322 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
7323 compiled-in link scripts in "{" and "}", as the grammar no longer
7324 wants them to be.
7325
7326Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
7327
7328 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
7329 require that it be in $(srcdir).
7330
7331Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
7332
7333 * ldlang.c (lang_size_sections): Only align section to alignment
7334 required by linker script, not to maximum alignment of input
7335 sections.
7336
7337 * ldlang.h (largest_section): Don't declare.
7338 * ldlang.c (largest_section): Don't define.
7339 (size_input_section): Don't set largest_section; not used.
7340
7341Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
7342
7343 * ldlang.c (new_afile): Pass NULL as last argument to concat.
7344
7345Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7346
7347 * ldlang.c, ldmain.c: Include libiberty.h.
7348
7349 * ldmisc.h (concat): Don't declare.
7350 * ldmisc.c (concat): Don't define; just use the one in libiberty.
7351
7352 * ld.h (as_output_section_statement): Removed; not used.
7353
7354Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7355
7356 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
7357 bfd_set_error and new error names.
7358
7359Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7360
7361 * ldwrite.c (build_link_order): If the cooked size of the section
7362 has been set, use it, for determining link_order size.
7363 (ldwrite): In the error message displayed if bfd_final_link fails,
7364 indicate that it was in fact the final link step that failed.
7365
7366 * ldlang.c (lang_size_sections): Clear bfd_error before calling
7367 bfd_relax_section, in case it returns false but doesn't flag an
7368 error. If an error is returned, indicate which one it is in the
7369 error message.
7370
7371 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
7372 it'll get picked up from $(srcdir) if appropriate.
7373
7374Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7375
7376 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
7377 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
7378
7379Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7380
7381 * ldlex.l (comment): Increment line number when newline is read.
7382
7383Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7384
7385 * ldlang.c (lookup_name): Take new argument, force_load. If true,
7386 reload the file even if it is already loaded.
7387 (wild): Call lookup_name with force_load argument of 0.
7388 (open_input_bfds): Call lookup_name with force_load argument of 1.
7389 (print_symbol): Remove declaration of non-existent function.
7390 (print_one_symbol): Return true rather than falling off end.
7391
7392Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7393
7394 * ldmain.c (main): Use %ld when printing long values.
7395
7396 * scripttempl/elf.sc: Move _edata after the .sdata section.
7397 Permit OTHER_BSS_SYMBOLS to be defined.
7398 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
7399
7400Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7401
7402 * Rename all "hppaosf" files to "hppaelf".
7403 * Change all "osf" references to "elf" in hppaelf files.
7404 * Makefile.in: Likewise.
7405 * configure.in: Likewise.
7406
7407Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7408
7409 * ldmain.c (main): Call xatexit, not atexit.
7410 Call xmalloc_set_program_name.
7411
7412 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
7413 bfd_errno.
7414
7415Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7416
7417 * emultempl/lnk960.em (append), emultempl/hppaosf.em
7418 (hppaosf_finish): Call xmalloc, not ldmalloc.
7419 * ldmain.c (preserve_output): Function removed.
7420 (main): Do it here instead.
7421
7422Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7423
7424 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
7425 GNU C specific macros.
7426
7427 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
7428 call to LANG_FOR_EACH_INPUT_SECTION.
7429
7430Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7431
7432 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
7433 deleted; will use libiberty versions instead.
7434 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
7435 mri.c Makefile.in: Change callers.
7436
7437 * ldmisc.c (vfinfo): Remove cleanup code.
7438 * ldmain.c (remove_output): Put it here (new function).
7439 (preserve_output): New function.
7440 (main): Register remove_output and preserve_output with atexit.
7441 * ldmain.c ldgram.y: Call xexit instead of exit.
7442 * ldmisc.h: Declare xexit.
7443
7444Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
7445
7446 * Makefile.in: Lots of new H8/500 memory models.
7447
7448Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7449
7450 * ldlex.l: Removed duplicate rules.
7451 (yywrap): Provide default definition, needed with some versions of
7452 flex.
7453
7454Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7455
7456 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
7457 the archive filename too.
7458
7459 * ldlex.l: Add rule to catch invalid input characters instead of
7460 printing them. Include "ldmain.h" for program_name decl.
7461 (lex_warn_invalid): New function.
7462 * Makefile.in: Add dependency.
7463
7464Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7465
7466 * Makefile.in (check): Don't bother running any tests of
7467 cross-linker until the test suite no longer assumes native mode.
7468
7469Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7470
7471 * ldlang.c (print_one_symbol, print_input_section): Print
7472 global symbols in symbol table again.
7473
7474Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7475
7476 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
7477 exit successfully instead of complaining if no input files are
7478 given.
7479
7480Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
7481
7482 * Makefile.in: Format variable definitions consistently.
7483 (LD_PROG): Remove unnecessary variables from link command,
7484 change variable LOADLIBES to EXTRALIBS.
7485
7486 * ldmain.c (main): Compute and display total execution time.
7487 * ld.texinfo (-stats): Document the option.
7488
7489Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7490
7491 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
7492 arguments.
7493
7494 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
7495 after opening BFD.
7496
7497 * ldlang.c (relaxing): Removed global variable.
7498 (lang_size_sections): If the canonical symbols have not already
7499 been read in, read them in before relaxing.
7500 * ldlang.h (relaxing): Removed declaration.
7501
7502Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7503
7504 * ldlang.c (new_afile): Initialize loaded field to false.
7505 (lookup_name): If file was already loaded, don't call the
7506 add_symbols entry point again.
7507
7508Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7509
7510 * ld.texinfo: Clarify what -T option does.
7511
7512Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7513
7514 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
7515 for a.out.
7516
7517Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7518
7519 * ldmain.c (add_archive_element): If trace_files or
7520 trace_file_tries, print file name.
7521 * ldlang.c (lookup_name): Likewise.
7522 (ldlang_add_file): Don't put files on input_bfds list in reverse
7523 order.
7524
7525 * scripttempl/elf.sc: Correct typo.
7526
7527Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7528
7529 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
7530 their arguments optional, for compatibility with the old GNU ld.
7531
7532Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7533
7534 * scripttempl/elf.c: Define __bss_start before the .sbss section.
7535
7536Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7537
7538 * ldmain.c (add_to_set): Add bitsize argument.
7539 (constructor_callback): New function.
7540 (link_callbacks): Add constructor_callback.
7541 * ldctor.c (struct set_info): Add bitsize field.
7542 (ldctor_add_set_entry): Add bitsize argument.
7543 (ldctor_build_sets): Base the size of the elements of the set on
7544 the bitsize, rather than always using LONG.
7545 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
7546
7547 * ld.h (QUAD_SIZE): Define.
7548 * ldgram.y (QUAD): New token.
7549 (length): Handle it.
7550 * ldlex.l: Return QUAD.
7551 * lexsup.c (keywords): Add QUAD.
7552 * ldwrite.c (build_link_order): Handle QUAD.
7553 * ldlang.c (print_data_statement): Handle QUAD.
7554 (lang_size_sections): Likewise.
7555 (lang_do_assignments): Likewise.
7556 * ldexp.c (exp_print_token): Add QUAD to table.
7557 * ld.texinfo: Describe QUAD.
7558
7559 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
7560 since the Alpha doesn't use them.
7561
7562Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7563
7564 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
7565
7566Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
7567
7568 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
7569 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
7570
7571Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7572
7573 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
7574 needed for i386mach. (Should be a no-op on other systems.)
7575
7576 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
7577 (PAGE_SIZE): Don't define; not used.
7578
7579Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7580
7581 * ldgram.y (yyerror): Make argument const char *, and actually
7582 print it out rather than assuming it is a syntax error.
7583 * ldmisc.h: Change declaration of yyerror.
7584 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
7585
7586Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7587
7588 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
7589 exec header offset, since the exec header isn't loaded.
7590 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
7591
7592Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7593
7594 A major rewrite to move the bulk of the linker into BFD so that
7595 more efficient backend code can be written for specific object
7596 files.
7597 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
7598 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
7599 * ldctor.c, ldctor.h: Complete rewrite.
7600 * ldwrite.c, ldwrite.h: Complete rewrite.
7601 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
7602 link_info.strip instead. Changed all uses.
7603 (discard_locals_type, discard_locals): Removed. Use
7604 link_info.discard instead. Changed all uses.
7605 (ld_config_type): Removed relocateable_output field; use
7606 link_info.relocateable instead; changed all uses. Added stats
7607 field.
7608 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
7609 set_loader_symbol): Removed.
7610 * ldexp.h (node_class): Added etree_rel.
7611 (etree_type): Added rel field.
7612 * ldexp.c (exp_print_token): Bracketed table initialization.
7613 (exp_relop): New function.
7614 (fold_name): Use linker hash table rather than ldsym functions.
7615 (exp_fold_tree): Likewise. Also, handle etree_rel case.
7616 (exp_print_tree): Handle etree_rel.
7617 * ldgram.y (strip_symbols, discard_locals): Removed.
7618 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
7619 (REL): New token. Does not appear in grammar, but needed for
7620 expression code.
7621 (file): Don't call lang_final; it's called by main anyhow.
7622 * ldlex.l: Accept -stats and -no-keep-memory options.
7623 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
7624 * ldlang.c: Consistently use fill_type for fill argument.
7625 (lang_init_script_file, script_file): Removed.
7626 (create_object_symbols): Removed. Use
7627 link_info.create_object_symbols_section instead. Changed all
7628 uses.
7629 (lang_add_keepsyms_file): Removed.
7630 (lookup_name): Call bfd_link_add_symbols instead of
7631 ldmain_open_file_read_symbol.
7632 (wild): Don't iterate over script_file.
7633 (open_output): Create link hash table.
7634 (lang_place_undefineds): Rewrote.
7635 (lang_size_sections): Handle relaxing (doesn't work yet).
7636 (lang_relocate_globals): Removed.
7637 (lang_finish): Use link hash table rather than ldsym functions.
7638 (lang_common): Rewrote.
7639 (lang_one_common): New function.
7640 (ldlang_add_file): Add file to link_info.input_bfds list. Set
7641 usrdata.
7642 (create_symbol): Removed.
7643 (lang_process): Don't call lang_init_script_file. Call
7644 ldctor_build_sets rather than find_constructors. Don't call
7645 lang_relocate_globals.
7646 (lang_abs_symbol_at_beginning_of): Rewrote.
7647 (lang_abs_symbol_at_end_of): Rewrote.
7648 * ldmain.c (had_y): Removed.
7649 (lprefix, lprefix_len): Removed; use link_info fields instead.
7650 Changed all uses.
7651 (multiple_def_count, commons_pending, undefined_global_sym_count,
7652 total_symbols_seen, total_files_seen): Removed.
7653 (link_callbacks, link_info): New variables.
7654 (main): Initialize link_info. Don't call init_bfd_error_vector or
7655 ldsym_init. Don't set now unused variables. Handle -stats.
7656 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
7657 (add_ysym): Rewrote.
7658 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
7659 search_library, gnu960_check_format, decode_library_subfile,
7660 linear_library, symdef_library, clear_syms, subfile_wanted_p):
7661 Removed.
7662 (add_keepsyms_file, add_archive_element, multiple_definition,
7663 multiple_common, add_to_set, warning_callback, undefined_symbol,
7664 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
7665 New functions.
7666 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
7667 require symbols for %C; look them up instead.
7668 * emultempl/hppaosf.em: Pass link_info to
7669 hppa_look_for_stubs_in_section.
7670 * Makefile.in: Rebuilt dependencies.
7671 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
7672 relax.c.
7673 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
7674 relax.h.
7675 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
7676 ldlang.h and ldctor.h.
7677
7678 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
7679 declarations of free and malloc from flex output. Change malloc
7680 to ldmalloc in flex output.
7681
7682Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
7683
7684 * ldmain.c (lprefix): Change default from a char to a string
7685 with only one character.
7686 (lprefix_len): Set default to one.
7687
7688 * ldmain.h (lprefix_len): Declare.
7689
7690 * ldsym.c (write_file_locals): Use strncmp rather than a character
7691 comparison for lprefix.
7692
7693 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
7694 correctly.
7695
7696 * emultmpl/hppaosf.em: Include ldexp.h.
7697 (before_parse): Set lprefix and lprefix_len correctly.
7698
7699Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7700
7701 * ldlex.h: Don't declare yywrap if it is a macro.
7702 * ldlex.l: Include sysdep.h.
7703 * ldlang.c (lang_for_each_statement_worker,
7704 lang_for_each_statement): Forgot to use PARAMS.
7705
7706Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7707
7708 * Makefile.in: Added .PHONY targets where appropriate. Added some
7709 comments. Also:
7710 (gcclibdir, version): Removed unused variables.
7711 (DEP): New variable, set to mkdep.
7712 (ALL_CFLAGS): New variable. Used in .c.o target.
7713 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
7714 variables.
7715 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
7716 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
7717 mostly obsolete variables. Adjusted remaining uses.
7718 (DEF_EMUL): Removed variable.
7719 (ldmain.o): Handle undefined EMUL error correctly.
7720 (ldemul-list.h): Depend on config.status rather than Makefile.
7721 Create via temporary file.
7722 (ver960.c, roll, make): Removed obsolete targets.
7723 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
7724 dependencies.
7725 * dep-in.sed: New file, used when rebuilding dependencies.
7726
7727Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
7728
7729 Made many changes to eliminate gcc warnings. Made various
7730 cosmetic changes, declared various things in header files, removed
7731 various extern declarations from .c files. No substantive
7732 changes.
7733
7734 * ldlang.c (lang_process): Ifdef out final call to
7735 lang_size_sections again (reverting change of Nove 2), since it
7736 breaks the Sun4 linker.
7737
7738Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7739
7740 * configure.in (alpha-*-netware*): New target; use alpha.
7741
7742Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
7743
7744 * configure.in: Group targets by CPU. Merge some m68k target
7745 entries with different CPU specs that use the same ld_target
7746 values.
7747
7748 * configure.in: Add sparc*-*-coff.
7749 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
7750 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
7751 (em_coff_sparc.c): Add dependencies and build rules.
7752
7753 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
7754
7755Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7756
7757 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
7758 New tokens.
7759 (command_line_option): Accept and ignore them (for now).
7760 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
7761 where n is a number.
7762
7763Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7764
7765 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
7766 not in bfd_com_section, create the section in the BFD so that it
7767 can be placed in the right output section.
7768
7769Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7770
7771 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
7772 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
7773 (OTHER_READONLY_SECTIONS): Define for .reginfo.
7774 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
7775 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
7776 Move OTHER_READONLY_SECTIONS after all the other readonly
7777 sections. Don't use DATA_ADDR twice.
7778
7779 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
7780 p is in a common section, make sure the BFD has a section of that
7781 name.
7782
7783 * ldlang.c (lang_common): Add newline to error message.
7784
7785Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
7786
7787 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
7788 Lynx-specific script instead of m68kcoff.
7789 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
7790 (ENTRY): Define as __main.
7791 (TEXT_START_ADDR): Define as 0.
7792 (PAGE_SIZE): Define as 0x1000.
7793 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
7794 * scripttempl/m68klynx.sc: New file.
7795
7796Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7797
7798 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
7799 arguments rather than treating them as emulation names.
7800
7801Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
7802
7803 * configure.in: Support x86 unixware and netware plus generic netware.
7804
7805Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7806
7807 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
7808 Correct values (?).
7809
7810Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
7811
7812 * Makefile.in (distclean): Don't delete dvi or info files.
7813 (ld.info): Update dependency list.
7814 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
7815
7816Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7817
7818 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
7819 Set output_filename instead of creating a new node.
7820 (open_output): Don't set output_filename.
7821 (lang_final): Create the new node here.
7822 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
7823
7824Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
7825
7826 From Pete Hoogenboom (hoogen@cs.utah.edu):
7827
7828 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
7829 edata, _edata, end): Add definitions of these symbols.
7830 (__end): Remove definition of this symbol.
7831 (__data_start): Move definition of this symbol.
7832
7833 * emultempl/hppaosf.em: Various fixes and support for linker stub
7834 generation.
7835 (hppaosf_finish, hppaosf_search_for_padding_statements,
7836 hppaosf_create_output_section_statements): New functions in
7837 support of linker stub generation.
7838 (ld_hppaosf_emulation): Redefine to include new
7839 emulation-specific routines.
7840
7841 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
7842 Pass abs_output_section rather than NULL to avoid invalidating
7843 absolute symbols.
7844
7845Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7846
7847 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
7848 (em_i386mach.c): New rule.
7849 * configure.in (i[34]86-*-mach*): New case.
7850 * config/i386-mach.mt: New file.
7851 * emulparams/i386mach.sh: New file.
7852
7853Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7854
7855 * ld.h (flag_is_*): Removed macros.
7856 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
7857 Consistently check the BFD symbol flags directly, rather than
7858 using file_is_* macros.
7859
7860Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
7861
7862 * configure.in (sparc*-*-lynxos*): New target.
7863 * Makefile.in: Add rule for em_sparclynx.c.
7864 (ALL_EMULATIONS): Add Lynx emulations.
7865 * config/sparc-lynx.mt: New file.
7866 * emulparams/sparclynx.sh: New file.
7867 * scripttempl/sparccoff.sc: New file.
7868
7869Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7870
7871 * Makefile.in: Add dependency for $(EMULATION_OFILES).
7872
7873Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7874
7875 * relax.c (write_relax): Check return value of bfd_seclet_link.
7876
7877Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
7878
7879 * ldlang.c (delete_output_file_on_failure): New variable.
7880 (open_output): Set it after bfd open succeeds.
7881 * ldmisc.c (vfinfo): Test it.
7882
7883 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
7884
7885 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
7886 symbols.
7887
7888 * ldemul.c: Support was added to allow emulation-specific
7889 processing to occur. This support was added primarily for linker
7890 stub generation in the elf32-hppa gld.
7891 (ldemul_finish, ldemul_create_output_section_statements): New
7892 functions.
7893 * ldemul.h: Support was added to allow emulation-specific
7894 processing to occur. (As described above.) Added finish and
7895 create_output_section_statements fields to
7896 ld_emulation_xfer_struct structure.
7897 * ldlang.c: Add calls to emulation-specific routines.
7898 (lang_process): Add call to
7899 ldemul_create_output_section_statements function.
7900 (lang_process): Add call to a emulation-specific routine (and
7901 some processing after the call).
7902
7903Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7904
7905 * configure.in: mips*- instead of mips-, mips*el changes
7906
7907Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7908
7909 * configure.in (alpha-*-osf*): New target; use alpha.mt.
7910 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
7911 (em_alpha.c): New target; use alpha.sh and alpha.sc.
7912 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
7913 * config/alpha.mt: New file.
7914 * emulparams/alpha.sh: New file.
7915 * scripttempl/alpha.sc: New file.
7916
7917Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
7918
7919 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
7920 types of different sizes (eg: 64 and 32 bits), so coerce.
7921 * ld.h (ALIGN_N): Add warning about usage.
7922
7923Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7924
7925 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
7926 which we already have a definition, rather than checking in
7927 several different places whether the symbol is weak.
7928
7929Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7930
7931 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
7932 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
7933 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
7934 expanded within them.
7935 * config/mipsb-elf32.mt: New file.
7936 * emulparams/elf32mipb.sh: New file.
7937 * Makefile.in (em_elf32mipb.c): New target.
7938
7939Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
7940
7941 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
7942 lang_input_file_is_search_file_enum so objects brought in using
7943 INPUT() do a path lookup.
7944
7945Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
7946
7947 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
7948 instead of {i386,m68k}-coff.
7949 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
7950 * config/i386-lynx.mt: New file.
7951 * config/m68k-lynx.mt: New file.
7952 * emulparams/i386lynx.sh: New file.
7953 * emulparams/m68klynx.sh: New file.
7954
7955 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
7956 but defaulting to _start.
7957
7958 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
7959 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
7960 LynxOS libc.
7961
7962Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
7963
7964 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
7965 HOSTING_LIBS for testing.
7966
7967Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7968
7969 Finish up support for i386-sysv4 (without shared libraries):
7970 * ld.h (flag_is_weak): Define.
7971 * ldlang.c (print_symbol): Mention whether symbol is weak.
7972 (print_input_section): Print weak symbols as globals.
7973 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
7974 (enter_global_ref): Do not warn if a weak symbol redefines a
7975 global symbol. Do not let a weak symbol redefine a common symbol.
7976 (enter_file_symbols): Treat weak symbols as global symbols.
7977 (subfile_wanted_p): Do not pull in an object file from a archive
7978 just to resolve an undefined weak symbol.
7979 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
7980 error; the error might be that malloc has run out of space.
7981 * ldsym.c (write_file_locals): Treat weak symbols as global.
7982 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
7983 use i386-elf.
7984 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
7985 * config/i386-elf.mt: New file; set EMUL to elf_i386.
7986 * emulparams/elf_i386.sh: New file.
7987 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
7988 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
7989 (ALL_EMULATIONS): Add em_elf_i386.o.
7990 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
7991 (em_elf_i386.c): New target, like other em_*.c targets.
7992 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
7993 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
7994 nonempty, and configured for native, add it to LIB_PATH.
7995
7996Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
7997
7998 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
7999 Added statements to pass stab and stabstr sections through and
8000 mark them as NOLOAD, which makes GDB happier.
8001
8002Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
8003
8004 * configure.in: Accept m68k-lynx-lynxos config.
8005
8006 * Makefile.in: Use $(SHELL) to run genscripts.sh.
8007
8008Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
8009
8010 * config/coff-h8300.mt: Add EMUL=h8300h.
8011
8012 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
8013
8014Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8015
8016 * Makefile.in: Changed CXX back to g++.
8017
8018Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8019
8020 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
8021
8022Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8023
8024 * Makefile.in (TAGS): Use shell wildcards.
8025
8026Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
8027
8028 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
8029
8030Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
8031
8032 * ld.texinfo: re-enable included config file; conditionalize doc
8033 for -oformat to interact properly with SingleFormat doc config
8034 var; rename @up/@down to @raisesections/@lowersections.
8035
8036Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8037
8038 * configure.in: recognize m88110.
8039
8040Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8041
8042 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
8043 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
8044 ELF emulation is "elf32-hppa" not "elf-big".
8045 (hppaosf_before_parse): Remove unneeded processing of environment
8046 variables.
8047 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
8048 .text segment of output file.
8049 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
8050
8051Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8052
8053 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
8054 longer in bfd.h.
8055
8056 * ldlang.c, ld.h: updated copyright.
8057
8058Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8059
8060 * ldlang.c (open_output, lang_check): Check return value of
8061 bfd_set_arch_mach.
8062
8063Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8064
8065 * scripttempl/h8500.sc: Start all sections in a different segment.
8066 * scripttempl/z8ksim.sc: Handle constructors
8067
8068Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
8069
8070 * Makefile.in: revert earlier changes back to execute runtest
8071 with make check. cdtest and bootstrap now function as they
8072 did within the Makefile.
8073
8074Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8075
8076 * Makefile.in: Update dependencies.
8077
8078 * configure.in: Set EMULATION_OFILES in Makefile based on
8079 --with-targets option.
8080
8081Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8082
8083 * Makefile.in: check targets reimplemented to old way.
8084
8085Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
8086
8087 * config/i386v.mh, config/irix4.mh: Use gcc
8088 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
8089 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
8090 bfd/configure.host change.
8091
8092Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8093
8094 * scripttempl/elf.sc: Handle .line and .debug* sections.
8095
8096 * ldlex.l: Use bfd_scan_vma, not strtoul.
8097
8098Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8099
8100 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
8101 Remove inital caps in some error messages, change "can't" to
8102 "cannot", add missing colons.
8103 * ldmisc.c (vfinfo): Print "%%" as a single %.
8104 For '%' followed by unrecognized character, print them both
8105 verbatim instead of expecting a char * arg.
8106 For '%C', don't put the function name in parens.
8107
8108 * ldexp.c (invalid): Pass "%%", not "% ".
8109
8110Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8111
8112 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
8113 (BSS_VAR): Removed; now always define _fbss.
8114 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
8115 Removed.
8116
8117Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8118
8119 * configure.in: z8k-coff is the same as z8k-sim
8120
8121Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
8122
8123 * testsuite/lib/ld.exp: new file
8124 * testsuite/config/unix-ld.exp: new file
8125 * testsuite/ld.bootstrap/bootstrap.exp: new file
8126 * Makefile.in: add dejagnu support for make check
8127
8128Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8129
8130 * ldlex.l (comment): Add missing newline in message.
8131 * ldindr.c (add_indirect): Ditto.
8132 * ldexp.c (exp_fold_tree): Ditto.
8133
8134Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8135
8136 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
8137 into externs.
8138
8139 * ldmisc.c (multiple_warn): New function.
8140 * ldmisc.h: Declare it.
8141 * ldmain.c (enter_global_ref): Call it.
8142 * ld.h (ld_config_type): Add warn_common.
8143 * ldlex.l, ldgram.y: Set it with -warn-common option.
8144 * ldver.c (help): Document it.
8145
8146Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8147
8148 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
8149 target-specific sections, and for changing data section vma.
8150
8151Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8152
8153 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
8154 terminals, for Solaris.
8155 (dirlist_ptr): New static variable.
8156 (command_line_option): Accept new options.
8157
8158 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
8159 "-YP,...".
8160
8161 * config/sun4sol2.mt: Pass emulation name without ".sh".
8162
8163 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
8164 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
8165
8166Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8167
8168 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
8169 .dtors, .data1, .rodata1 sections, instead of combining them into
8170 other sections. For `-r', set all section start addresses to
8171 zero.
8172
8173 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
8174 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
8175 (MAXPAGESIZE): Renamed from PAGE_SIZE.
8176
8177Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8178
8179 * genscripts.sh: If this is the default emulation, set
8180 COMPILE_IN.
8181 * emultempl/*.em: Use it to determine whether to compile in the
8182 scripts.
8183
8184 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
8185 genscripts.sh. Pass the current emulation name without ".sh" on
8186 the end.
8187 * genscripts.sh: Take an default emulation arg.
8188 Use the current emulation name as EMULATION_NAME.
8189 Make default lib path for cross-compiling ':', not null.
8190 * emulparams/*.sh: Don't set EMULATION_NAME.
8191 * ldemul.c (ldemul_get_script): Take isfile arg.
8192 Pass it to emulation's get_script function.
8193 * ldemul.h: Adjust get_script prototypes.
8194 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
8195 No longer static.
8196 * ldfile.h: Declare it.
8197 * ldgram.y: Accept a script on the command line again,
8198 for parsing compiled-in scripts.
8199 * ldmain.c (main): If ld script is a file, parse it as a -T
8200 option, otherwise parse it directly.
8201 * emultempl/*.em (*get_script): Return the scripts themselves if
8202 this is the default emulation; otherwise return their file names.
8203 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
8204 generic.em.
8205 * emulparams/m88kbcs.sh: Use it.
8206
8207 * ld.h (ld_config_type::unix_relocate): Remove unused element.
8208
8209Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8210
8211 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
8212 there's no change log entry yet, tsk tsk) from the list of
8213 emulations compiled in until Mark gets around to checking in
8214 emulparams/i386linux.sh.
8215 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
8216 changed, this file gets updated.
8217
8218Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
8219
8220 * ldgram.y (OPTION_Lfile): New token.
8221 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
8222 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
8223
8224Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
8225
8226 * configure.in: h8/300h support needs own .mt file.
8227 config/coff-h8300h.mt: New file.
8228
8229Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8230
8231 * ldmain.c: Don't include sys/stat.h; it already got included
8232 somewhere along the way.
8233
8234Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
8235
8236 * Makefile.in: Add h8300h support.
8237 emulparams/h8300h.sh: New file.
8238 scripttempl/h8300h.sc: New file.
8239
8240Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8241
8242 * ldfile.c (ldfile_open_file): In error message, use the name the
8243 user gave (e.g., "-lc"), rather than the base file name.
8244
8245 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
8246
8247 * ldmain.[ch]: Remove initial Q_ from function names.
8248 * ldexp.c, ldindr.c, ldlang.c: Change callers.
8249
8250 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
8251
8252 * ldlang.c (lang_process): Move loading of default script from
8253 here to main. Add a "/" to start of script name to prevent
8254 finding it in "." first.
8255
8256 * ldmain.c (set_scripts_dir): Don't look in "." first.
8257
8258 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
8259 option_longmap.
8260
8261Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
8262
8263 * Makefile.in (em_m88kbcs.c): Correct dependency.
8264 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
8265 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
8266 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
8267
8268Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8269
8270 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
8271 main.c (main): Print the errno string in the error message.
8272
8273Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
8274
8275 * configure.in: Accept h8300h for target cpu.
8276
8277 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
8278 present (demangle is smart enough to know whether to do it or not).
8279
8280Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8281
8282 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
8283 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
8284
8285 * ldlang.c (lang_process): Use sizeof instead of magic constant.
8286
8287 * ldmain.c (get_emulation, check_for_scripts_dir,
8288 set_scripts_dir): New functions.
8289 (main): Call them.
8290
8291Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8292
8293 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
8294 Create symbol "end" instead of "__end". Comment out some parts
8295 that may not be needed (yet) for elf.
8296
8297 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
8298
8299Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8300
8301 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
8302
8303 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
8304 when no prototype is being supplied.
8305 (ldmalloc, ldrealloc): Size argument is now size_t.
8306
8307 * ldmisc.c (finfo): New function, accepts FILE* argument.
8308 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
8309 without leading zeros.
8310 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
8311 bfd_vma value, instead of fprintf(%x) which won't hold a long long
8312 value.
8313 (concat, buystring): String lengths are size_t.
8314 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
8315
8316 * ldlang.c (new_statement): Size argument is now size_t. Added
8317 forward declaration with prototype.
8318
8319Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8320
8321 * ldgram.y (OPTION_v): Don't turn on verbose output.
8322
8323Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8324
8325 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
8326 bfd.h instead.
8327
8328Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
8329
8330 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
8331 collect2 doesn't look for gld any more anyhow.
8332
8333Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
8334
8335 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
8336 now have a non NULL srefs_chain.
8337
8338 * config/hp300hpux.mt: Use emulation hp3hpux rather than
8339 hp300hpux, since the latter does not exist.
8340
8341Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8342
8343 * genscripts.sh: Put the scripts in the ldscripts directory, not
8344 emulations.
8345 * configure.in (ldscripts): Make, instead of emulations.
8346 * Makefile.in (scriptdir): Take off the "ld" part.
8347 (install, clean, distclean): Use ldscripts, not emulations.
8348 In tests, don't pass -Lemulations.
8349 Don't pass tooldir/lib to genscripts.sh.
8350 * genscripts.sh: Don't take tooldir/lib arg.
8351 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
8352 default script file.
8353
8354Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
8355
8356 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
8357
8358Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
8359
8360 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
8361
8362Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8363
8364 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
8365 run in parallel without colliding on yacc's static file names.
8366 Without the stub rule, make will try to start two yacc's
8367 concurrently which fails because of yacc's static file names.
8368
8369Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
8370
8371 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
8372 symbols.
8373
8374Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8375
8376 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
8377 different from libdir.
8378
8379 * Makefile.in (scriptdir): Base on tooldir, not datadir.
8380
8381Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8382
8383 * ldver.c (help): New function.
8384 * ldver.h: Declare it.
8385 * ldlex.l, ldgram.y: Recognize new options --help and --version.
8386
8387Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8388
8389 * Makefile.in (INCLUDES): Don't need ../include any more.
8390
8391Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8392
8393 * ldlex.l, ldgram.y: Support new -oformat option.
8394 Remove attempt at supporting script fragments on the command line.
8395 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
8396 * mri.c (mri_format), ldgram.y: Change callers.
8397 * ldlang.h: Change prototype.
8398
8399Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
8400
8401 * Makefile.in: canonicalize install.sh; for use within
8402 this directory (and subdirs)
8403
8404Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8405
8406 * ldgram.y: Tweak grammar to make reporting of invalid options work.
8407
8408 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
8409 and .cc.o rule.
8410
8411Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8412
8413 * ldfile.c (ldfile_open_command): Don't try .ld extension.
8414 It wasn't documented (or likely used) and wastes time.
8415 (try_open): If EXTEN is empty, don't try it.
8416
8417 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
8418 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
8419 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
8420 with normal function declarations.
8421
8422 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
8423 Move *.sc-sh to scripttempl/*.sc.
8424 * {emultempl,emulparams,scripttempl}/README: New files.
8425 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
8426 removed, replaced with generic.em.
8427 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
8428 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
8429
8430 * *.em (*_get_script): Return script name instead of script contents.
8431 * ldlang.c (lang_process): Change caller.
8432
8433 * ldlex.l, ldgram.y: Recognize -m option.
8434 Check for input files after *all* options in grammar.
8435 * ldmain.c (main): Check for -m options. Add default directory
8436 for -m.
8437
8438 * mkscript.c: File removed.
8439 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
8440 to add to the default LIB_PATH.
8441 Look for input files in the new subdirectories.
8442 Create the scripts in emulations subdirectory and don't filter
8443 them through mkscript.
8444 * configure.in: Make the emulations subdirectory.
8445
8446 * Makefile.in: Account for all of the above changes.
8447 Remove unused .SUFFIXES. Get libgcc.a path with gcc
8448 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
8449 Put CFLAGS last in the compilation rules.
8450 Add -I../bfd to INCLUDES so sysdep.h is found.
8451
8452Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8453
8454 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
8455
8456 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
8457 dependent on RELOCATING, not RELOCATION.
8458 * hp3hpux.sh (SHLIB_PATH): Define it.
8459
8460Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8461
8462 * ldfile.c (try_open): If opening without the extension fails,
8463 try with the extension even if -v or -V was given.
8464 had_script is imported (from ldgram.y), not exported.
8465
8466Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
8467
8468 * Makefile.in: remove parentdir support, use INSTALL_XFORM
8469
8470Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
8471
8472 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
8473 * ldgram.y (statement_list_opt): New nonterminal, either empty or
8474 statement_list.
8475 (section): Use statement_list_opt, not statement_list.
8476 * m68kcoff.sc-sh: Gather constructors and destructors and define
8477 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
8478 * sa29200.sc-sh: Gather constructors and destructors and define
8479 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
8480
8481Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
8482
8483 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
8484 * configure.in: No longer need to configure to get sysdep.h.
8485
8486Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8487
8488 * Makefile.in: remove install:all and install-info:info
8489 dependencies (these cause some spurious rebuilds at 'make install'
8490 time)
8491
8492Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
8493
8494 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
8495 (mips-idt-ecoff*): Added trailing '*'.
8496 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
8497 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
8498 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
8499
8500 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
8501 incorrect definitions.
8502
8503Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
8504
8505 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
8506 symbols, unless stripping.
8507
8508Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
8509
8510 * Makefile.in: configure looks for ####, so remove lines with many
8511 '#' characters.
8512 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
8513 and HOSTING_LIBS correctly so that ``make check'' will work.
8514
8515Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
8516
8517 * mips.sc-sh: Define _etext, _edata, and _end, in addition
8518 to etext, edata, and end. Needed for IRIX 4.0.5F.
8519 Patch from mwp@iconix.oz.au (Michael Paddon).
8520
8521 * Version 2.2.1 released.
8522
8523Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8524
8525 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
8526 * mipsbsd.sh (EMULATION_NAME): Use new file name.
8527
8528Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8529
8530 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
8531 properly right now.
8532
8533 * Version 2.2 released.
8534
8535Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8536
8537 * ldver.c (ldversion): Bump version number to 2.2.
8538
8539Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
8540
8541 * NEWS: New file.
8542
8543Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
8544
8545 * mips.sc-sh: Don't define BSS_VAR unless relocating.
8546
8547Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
8548
8549 * Makefile.in (mkscript.o, mkscript): Build mkscript via
8550 mkscript.o, rather than directly from mkscript.c.
8551
8552Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8553
8554 * configure.in: Look for ${target_makefile_frag} relative to
8555 ${srcdir}, not relative to build directory.
8556
8557 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
8558 * configure.in: Recognize hppa*-hp-osf.
8559 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
8560 (em_hppaosf.c): Build it.
8561 * config/hppaosf.mh, hppaosf.mt: New files.
8562
8563 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
8564 some system header files. All uses changed.
8565
8566 * configure.in: Recognize i386-aix configurations as i386-coff
8567 targets.
8568
8569 * configure.in: Recognize m68*-*-hpux.
8570 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
8571 the value of STACKZERO.
8572 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
8573 (em_hp3hpux.c): Build it.
8574 * hp3hpux.sh, config/hp300hpux.mt: New files.
8575
8576Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
8577
8578 * mips.sc-sh: Put constructors in the .data section.
8579 * Makefile.in (cdtest): Added dependency on ld.new.
8580
8581Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
8582
8583 * Makefile.in: Change definition of $(tooldir) to match FSF.
8584 * vax.sh, config/vax.mt, configure.in, Makefile.in:
8585 Support VAX Ultrix and BSD.
8586
8587Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8588
8589 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
8590
8591Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
8592
8593 * ldlang.h (struct memory_region): Change `length' and
8594 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
8595 * ldlang.c, mri.c: Corresponding changes, plus lint.
8596
8597Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
8598
8599 * configure.in: For all i386 targets, accept i486 as well.
8600
8601Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
8602
8603 * ldlang.c (wild_doit): Preserve all flags for a
8604 SEC_SHARED_LIBRARY section.
8605 (size_input_section): Consider any SEC_HAS_CONTENTS section when
8606 computing largest_section.
8607
8608Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
8609
8610 * ldlang.c (lang_output_section_statement_lookup): Initialize all
8611 fields of newly created structure.
8612
8613Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
8614
8615 * ldmain.c (g_switch_value): New variable.
8616 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
8617 (command_line_option): Accept -G and set g_switch_value.
8618 * ldlex.l (COMMAND): Accept -G.
8619 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
8620
8621Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8622
8623 Support for linking and loading at different places:
8624
8625 * ldlex.l: Add "AT" keyword.
8626 * ldgram.y: Cleanup, and parse AT.
8627 * ldlang.c (print_output_section_statement): Print output address
8628 of section in map. (lang_size_sections): Fill sections' lma with
8629 load address.
8630 * ldlang.h (lang_output_section_statement_type): Add load_base
8631 information.
8632
8633 * ldindr.c (add_indirect): Keep more information in the alias
8634 symbol chain.
8635 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
8636 attribute from an input section.
8637 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
8638 default. (Q_enter_file_symbos): Indirect symbols now are known by
8639 their section, not a special symbol flag.
8640 * ldsym.c (write_file_locals): Indirect symbols aren't local.
8641 (write_file_globals): Write the mapping for an indirect symbol.
8642 * relax.c (build_it): When forced to write a NEVER_LOAD section,
8643 fill it with zeros.
8644
8645Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
8646
8647 * ld.texinfo: changes for q1
8648
8649Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8650
8651 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
8652
8653Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8654
8655 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
8656
8657Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
8658
8659 * mips.sc-sh: Added variables which may be overridden by a
8660 specific emulation.
8661 * mipsidt.sh: New file; emulation for IDT MIPS board.
8662 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
8663 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
8664 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
8665 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
8666
8667Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8668
8669 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
8670 ralphc@pyramid.com.
8671 * i386bsd.sh, config/i386bsd.mt: New files.
8672 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
8673
8674Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
8675
8676 * mri.c: Add extern declaration of strdup.
8677 * ldsym.c (KEEP macro): Add spaces around '=' for the
8678 sake of old (e.g. PCC) compilers.
8679
8680Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
8681
8682 * ldver.c: Bump to version 2.1.
8683
8684Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8685
8686 * ldgram.y: allow section types without address expressions.
8687 * ldlang.c (lang_relocate_globals): avoid possible hang with
8688 undefined but unreferenced symbols.
8689 * relax.c (relax_section): don't complain if the script file isn't
8690 relaxable but -relax is set
8691
8692Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8693
8694 * configure.in: go32 is the 3rd part of the triple, not the 2nd
8695
8696Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
8697
8698 * mipsbig.sh: New file. Big endian MIPS emulation.
8699 * config/mips-big.mt: New file. Use mipsbig emulation.
8700 * configure.in (mips-sgi-irix*): Use target mips-big.
8701 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
8702 (em_mipsbig.c): New target. Uses mipsbig.sh.
8703
8704Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
8705
8706 * mips.sc-sh: Put .scommon sections into .sbss section.
8707
8708 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
8709 rather than always putting them in bfd_com_section.
8710 * ldlang.c (lang_common): If a common symbol is not in
8711 bfd_com_section, put in a section of the same name, rather than
8712 always putting it in section COMMON.
8713
8714Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
8715
8716 * ldmain.c (subfile_wanted_p): If we already have a common
8717 definition of a symbol, don't necessarily pull in an object file
8718 that provides a non-common definition.
8719
8720 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
8721 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
8722 linker.
8723 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
8724 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
8725
8726Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
8727
8728 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
8729 the link to it.
8730
8731Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
8732
8733 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
8734 checking for equality to bfd_com_section.
8735
8736Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
8737
8738 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
8739 targets, linker script.
8740 * mipslit.sh: New file. Little endian MIPS emulation.
8741 * config/mips-lit.mt: New file. Use mipslit emulation.
8742 * configure.in (mips-dec-ultrix*): Use target mips-lit.
8743 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
8744 (em_mipslit.c): New target. Uses mipslit.sh.
8745
8746Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
8747
8748 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
8749 $(tooldir)/bin/gld, so that gcc can find it with or without
8750 collect2.
8751
8752Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8753
8754 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
8755 write_norel. All linking is now done via write_relax. Call
8756 ldsym_write before calling write_relax.
8757 * relax.c: Added copyright.
8758 (write_relax): Renamed from write_relaxnorel. Added relocateable
8759 argument. seclet_dump renamed to bfd_seclet_link.
8760 * relax.h: Added copyright.
8761
8762Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8763
8764 * ldmain.c (decode_library_subfile): Patch from
8765 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
8766
8767Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8768
8769 * config/vxworks960.mt renamed to config/i960.mt
8770
8771 * configure.in: sparc-aout emulates a sun4, as does
8772 sparc*-vxworks, i960-nindy uses gld960 emulation
8773
8774Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8775
8776 Fix support for NOLOAD, add INCLUDE
8777 * ldfile.c (ldfile_open_command_file): pass file name to
8778 lex_push_file.
8779 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
8780 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
8781 attribute.
8782
8783Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8784
8785 * Makefile.in, config.h: no more default emulation. Make the lack
8786 of emulation a compile time error
8787
8788Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8789
8790 * configure.in: recognise all sparclite variants, not just 'sparclite'
8791
8792Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
8793
8794 * m68kcoff.sc-sh: define _end as well as end, for consistency with
8795 aout.sc-sh.
8796
8797 * configure.in: accept *-ericsson-ose for any m68k CPU.
8798
8799 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
8800 for each output section.
8801
8802Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
8803
8804 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
8805 macro bfd_asymbol_bfd as appropriate.
8806 * Makefile.in: Un-duplicate ldlex.c dependency.
8807 * condigure.in: Replace my_host case table by sourcing
8808 ../bfd/configure.host. Allow std-host as the default.
8809 * ldmisc.c: Change logic for C++ name demangling: There is
8810 no initial '_' to remove from stab-derived function names.
8811
8812Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8813
8814 * ldlang.c (lang_init_script_file): don't attach the output file
8815 sections to the script file.
8816
8817Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8818 * ldlang.c (wild): run expansion loop over command line bfd too.
8819 (lang_ini_script_file): initialize more parts of the command line
8820 bfd.
8821 * ldlex.l: fix DEFINED start states.
8822
8823Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8824 -y support
8825 * ld.texinfo: new doc.
8826 * ldgram.y, ldlex.l: understand -y<symbol>
8827 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
8828 print info. (add_ysym): new function.
8829 * ldsym.h: (ldsym_type): new define SYM_Y.
8830
8831Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
8832
8833 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
8834 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
8835 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
8836 macros with PARAMS. Recreational cleanup. Update copyrights.
8837
8838Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8839
8840 * Makefile.in: pass down the bfd source directory for includes
8841
8842Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
8843
8844 * ldlang.c (lang_size_sections): don't change size and address for
8845 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
8846 sections.
8847
8848Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8849
8850 * relax.c (build_it): re-enable the processing of data_statements
8851 in scripts, makes counted contructor lists work again.
8852
8853Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
8854
8855 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
8856
8857Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
8858
8859 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
8860 and end.
8861
8862Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
8863
8864 * Support for i386-sysv.
8865 configure.in: check for i386-*-sysv* and i386-*-sco*.
8866 i386coff.sc-sh: rewrote to support SVR3 by default.
8867 ldctor.c (find_constructors): preserve stat_ptr.
8868 ldlang.c (wild_doit): initialize vma and size of new output
8869 section to corresponding input section. This is required for
8870 shared library support.
8871 (lang_size_sections): don't modify vma and size of sections which
8872 are never loaded (for shared libraries).
8873 ldwrite.c (copy_and_relocate): copy the contents of any section
8874 which has contents, not just sections which are loaded (for shared
8875 libraries).
8876
8877Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8878
8879 * ldlang.c (size_input_section): count the sizes of all sections
8880 we allocate.
8881
8882Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8883
8884 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
8885 to demangle symbols better
8886
8887Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
8888
8889 * ldlang.c (lang_finish): don't warn if -e start symbol does not
8890 exist when linking with -r.
8891
8892Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
8893
8894 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
8895 .bss segment.
8896
8897Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8898
8899 * ldmain.c (linear_library): don't even think about processing
8900 an object file if it's already been done
8901
8902Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8903
8904 * configure.in: the hp9000/300 config file is now hp300
8905
8906Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8907
8908 * config/z8ksim.mt: new file
8909
8910Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
8911
8912 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
8913 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
8914
8915 * ld.h (strip_symbols_type): Add value STRIP_SOME.
8916 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
8917 * ldlang.c (lang_add_keepsyms_file): New function.
8918 * ldlex.l: Handle "-retain-symbols-file".
8919 * ldsym.c (keepsyms_file, kept_syms): New vars.
8920 (process_keepsyms): New functihon; reads file, marks symbols for
8921 saving.
8922 (write_file_locals): File symbols should always be kept.
8923 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
8924 and "-s". Process retain-symbols file before setting symtab.
8925 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
8926 (keepsyms_file, kept_syms): Declare them.
8927
8928 * ldmain.c (main): Non-fatal errors should still cause non-zero
8929 exit status even with -r.
8930
8931Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8932
8933 Added initial support for the z8k
8934 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
8935 * configure.in, Makefile.in: modified to reflect above
8936
8937 * ldlang.c (lang_check): when linking conflicting architectures,
8938 make the output file reflect at least one of the bad inputs.
8939
8940Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
8941
8942 * Makefile.in (install): if $(tooldir) exists, install ld in
8943 $(tooldir)/bin.
8944
8945Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
8946
8947 * Makefile.in, configure.in: modified to support i386-coff
8948 * i386coff.sh: new file
8949
8950Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
8951
8952 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
8953 added m68k-coff emulation mode, stolen from a29k emulation.
8954 Almost certainly wrong, but perhaps better than sun3.
8955
8956Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
8957
8958 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
8959 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
8960 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
8961 This is one character shorter, and lets people build on
8962 SVR3 system. (ld__h8300xray.[co] was the killer there;
8963 h8300xray.sc-sh is also overlong, but seems harmless.)
8964 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
8965 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
8966 * configure.in: Add host isc.
8967
8968 * ldver.c: Call it version 2.0.
8969
8970Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
8971
8972 * ldver.c: Bump to version 0.98.
8973 * TODO: New file.
8974
8975 * Makefile.in: Added mostlyclean, distclean, realclean rules.
8976
8977Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
8978
8979 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
8980 * ldlex.l: Moved comment() to end, since some compilers
8981 otherwise have problems with input() used before it is defined.
8982
8983Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8984
8985 * configure.in: added Solaris 2 and Irix 4 host support.
8986
8987Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8988
8989 * Makefile.in: remove -S flag from the FLEX definition
8990
8991 * configure.in: rewrote, using new style case statement. use
8992 m68k.mt for m68k-aout systems
8993
8994Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
8995
8996 * Makefile.in: map "ld" through program_transform_name when
8997 installing.
8998
8999Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
9000
9001 * cplus-dem.c: Removed. Use the version in libiberty now.
9002 * ldmisc.c: Use new libiberty version of cplus_demangle().
9003
9004Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
9005
9006 * gld960.em (gld960_choose_target): default to little endian, not
9007 big endian.
9008
9009Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9010
9011 * ldlang.c (lang_process): don't pass null pointers when
9012 abs_output_section is what is required.
9013 * ldwrite.c (ldwrite): use malloc to allocate the largest space
9014 used, and pass that down.
9015 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
9016 than alloca.
9017
9018Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
9019
9020 * configure.in, config/ose68.mt: renamed OSE to ose.
9021
9022Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
9023
9024 * ldsym.c (write_file_locals): Reorder check for common or
9025 undefined symbols so that it works.
9026
9027Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
9028
9029 * configure.in: accept all m68K family members.
9030
9031 * Makefile.in: always create installation directories.
9032
9033Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9034
9035 * ldlex.l: now parses comment correctly, added ~ to acceptable
9036 chars in filenames
9037
9038 * ldexp.c (exp_unop): pass down abs_output_section - now can have
9039 unary -ve constants.
9040
9041 * ldlang.c (lang_finish): warn when an entry symbol supplied on
9042 the command line can't be found.
9043
9044Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9045
9046 * ldlang.h: add new field "loadable" to output_section_statement.
9047 * ldlang.c (lang_output_section_statement_lookup): initilize new
9048 field. (wild_doit): if new field is not set, then stop output
9049 section from being loadable.
9050 (lang_enter_output_section_statement): set the field from the
9051 NOLOAD keyword
9052 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
9053 * h8300hms.sc-sh, h8300hms.em: get -r right.
9054
9055Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
9056
9057 * ldint.texinfo: New internals manual (beginnings thereof).
9058 * PORTING: Removed, merged into ldint.texinfo.
9059
9060Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
9061
9062 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
9063 cdtest.exp: A test program (copied from libg++/test-install)
9064 that tests that constructor and destructors are handled
9065 corrrectly.
9066
9067Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9068
9069 * Makefile.in (install): install from ld.new, renaming during the
9070 copy, or else the next 'make install' needs to re-link ld.
9071
9072Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
9073
9074 * configure.in: generalise hp recognition (from sef).
9075
9076Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9077
9078 * configure.in: recognize bsd and hpux hppa configurations.
9079 error messages echo to stderr, not stdout
9080
9081Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9082
9083 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
9084 ldmisc.c: removed rcsid's.
9085
9086Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9087
9088 * ldlang.c (lang_map): print changes in sizes due to relaxing
9089 (size_input_section): maintain the delta information.
9090 * ldlang.h: add new field to struct to contain delta info.
9091 * relax.c (relax_section): complain if input not relaxable.
9092 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
9093 start of a filename
9094
9095Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9096
9097 * ldmain.c(main): prevent -r and -relax from being on at the same
9098 time.
9099
9100Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9101
9102 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
9103 aliasing problems
9104
9105
9106Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9107
9108 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
9109 * ldexp.c: lint
9110 * ldlang.c(open_output): set the target arch and machine as soon
9111 as we can. (lang_size_sections): use new macros for setting vma
9112 * ldwrite.c: lint
9113
9114Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
9115
9116 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
9117 Also deleted an unreachable path to wrs.
9118
9119Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
9120
9121 * Makefile.in (install): use -d test for $tooldir before
9122 installing ld there so that $tooldir can be inherited from
9123 top-level Makefile.
9124
9125Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
9126
9127 * ldlang.c: Two non-substantial changes for the sake of
9128 the old Portable C Compiler.
9129
9130Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9131
9132 * ldgram.y, ldlex.l: parse ABSOLUTE
9133 * ldexp.c: add support for ABSOLUTE
9134
9135Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
9136
9137 * Makefile.in: Added default definitions for HOSTING_CRT0,
9138 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
9139 * config/*.mh: Miscellaneous clean-up: Removed definitions
9140 of YACC (since it is not longer used in the Makefile).
9141 Remove HOSTING_* definitions that are subsumed by the
9142 ones added to Makefile.in. Removed most definitions of CC.
9143 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
9144 These are no longer needed.
9145
9146Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
9147
9148 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
9149 rules, since these are used when building a distribution.
9150 * Makefile.in (ldlex.c): Don't re-direct output, since that
9151 leaves a bogus output files if it fails.
9152
9153 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
9154 * ldlex.c: Fix some unnecessary flex-specific-isms.
9155
9156Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9157
9158 * ldgram.y: move spurious semicolon
9159 * ldexp.h: fix prototype
9160
9161Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9162
9163 * ld.texinfo: references to linker now say "ld" not "gld".
9164
9165Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9166
9167 changed calling convention for Q_enter_global_ref
9168 * ldexp.c, ldlang.c, ldmain.c: reflect this
9169 * ldver.c: bump version to 1.97.1
9170 * ldindr.c (add_indirect): when an edict declaring an indirect
9171 symbol is found, make sure that any ideas about the symbol being
9172 common are changed if it now known to be defined.
9173 * ldmain.c (linear_library): complain once if archive isn't
9174 ranlibbed.
9175 * ldlang.h, ldlang.c: make room for and initialize the complain
9176 once field.
9177
9178Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9179
9180 * Makefile.in: use flex & bison from ../ if they exist.
9181
9182Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9183
9184 * relax.c (build_it): don't allocate space in the output file for
9185 stuff if -R flag applys to it.
9186 * ldfile.c: merge in VMS filename support
9187 * ldmain.c (main): take out ./ from library path, and close file
9188 before unlinking. Make multiple defs of a symbol create an
9189 unexecable file.
9190 * ldmisc.c: fatal errosrs delete output file
9191
9192Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
9193
9194 * ldver.c: Increase version number to 1.97, for consistency
9195 with ../binutils.
9196
9197Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
9198
9199 * Makefile.in: FLEX -> LEX.
9200
9201 * ld.texinfo: {} -> @{@}.
9202
9203Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9204
9205 * ld.texinfo: describe alternate, MRI-compatible linker scripts
9206 (and associated change in -c option, now used for these scripts)
9207
9208Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9209
9210 * ldver.c: Bumped version to 1.96 - new release, resync with the
9211 bfd too #.
9212 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
9213 rather than with raw malloc, makes it easier to track where memory
9214 is going.
9215 * ldsym.h, ldsym.c: create obstack for all global symbols too.
9216 * ldwrite.c (ldwrite): moved malloc so only used when needed.
9217 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
9218
9219
9220Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
9221
9222 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
9223
9224 * Makefile.in: use bootstrap for check.
9225
9226Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9227
9228 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
9229 PUBLIC.
9230 * Makefile.in: now use flex, not lex
9231 * ldlex.l, ldlang.c, ldctor.c: lint
9232
9233Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9234
9235 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
9236 different sorts of filenames on the command line than in a script.
9237
9238Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9239
9240 * Makefile.in: rework CFLAGS so that they can be passed on the
9241 make command line. Remove MINUS_G. Default CFLAGS to -g.
9242
9243Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9244
9245 * relax.c: added handling for new "padding" seclet type, used to
9246 fill out gaps between section.
9247 * ldgram.y, ldlex.l: now -defsym on the command line is done
9248 properly.
9249
9250Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9251
9252 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
9253
9254Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9255
9256 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
9257 scripts.
9258
9259Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
9260
9261 * Makefile.in (install): Install second copy in $(tooldir)/bin
9262 without $(program_prefix), since that's what gcc expects.
9263
9264Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9265
9266 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
9267 * h8300*: fix bit rot and add support for h8300xray target
9268 * go32.sh: target emulation for go32.
9269
9270Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
9271
9272 * gld960.em, i960.sc-sh. Fix i960 bit rot
9273
9274Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
9275
9276 * Makefile.in: install man page.
9277
9278Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9279
9280 * config/mt-<foo> renamed to <foo>.mt
9281 * config/mh-<foo> renamed to <foo>.mt
9282 * configure.in changed to reflect this
9283 * genscripts.sh now make .xbn files rather than .xN files
9284
9285Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
9286
9287 * ldver.h: fix decl of ldversion.
9288
9289Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
9290
9291 * Makefile.in: added check target.
9292
9293Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9294
9295 * ldmain.c (Q_enter_file_symbols): now aliases work again
9296
9297Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
9298
9299 * Makefile.in: added clean-info target.
9300
9301Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9302
9303 * ldexp.c (exp_print_tree): don't try and follow null pointers
9304 around.
9305 * ldgram.y: remove 11 shift reduce errors
9306
9307Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9308
9309 * Makefile.in: added tooldir and program_prefix.
9310
9311Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
9312
9313 * ldlang.c (size_input_section): don't move absolute sections
9314 around!
9315
9316
9317Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
9318
9319 * cplus-dem.c: yet another copy of this - maybe it should go into
9320 libiberty ?
9321 * ldgram.y: now -V and -v have different actions
9322 * ldver.c: if -V, prints list of emulations compiled in
9323 * ldmisc.c: support for cplus demangling
9324
9325
9326Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
9327
9328 * Makefile.in, configure.in: removed traces of namesubdir,
9329 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
9330 copyrights to '92, changed some from Cygnus to FSF.
9331
9332Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
9333
9334 * Makefile.in: Change mkscript rule into one for ./mkscript
9335 (for the sake of makes that don't realize they're the same).
9336 * PORTING: Add more details.
9337 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
9338
9339Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
9340
9341 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
9342 config/mt-hp300bsd: New port to hp300 running BSD.
9343
9344Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
9345
9346 Major rewrite of how ld is configured. The major idea
9347 is to use shell scripts to generate everything.
9348 * generic.em replaces ldtemplate.
9349 * Other *.em files replace various *.c files.
9350 A *.em file is a shell script that generates the corresponding
9351 ld__*.c file that implements an emulation. This is usually
9352 a straight 'cat' of a here-document, possibly with substitutions.
9353 * Script files (*.sc) are places by *.sc-sh scripts.
9354 Again, these are simple shell scripts that 'cat'
9355 here-documents, usually with some substitutions.
9356 The output a *.sc-sh is a script file.
9357 * Each emulation is defined by a short shell script with
9358 extension *.sh that specifies the emulation-specific
9359 parameters (such as the name of the *.sh-sc and *.em
9360 files to use).
9361 * genscript.sh is the master shell script used to generate
9362 an emulation. It is passed various argument, including
9363 the name a the emulation-speciic *.sh file that it
9364 "sources" to set variables to emulation-specifc parameters.
9365 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
9366 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
9367 * config/mh-foo: Rename LDEMULATION names as appropriate
9368 (usually 'gldfoo' -> plain 'foo').
9369 * ldwrite.c: Fixed a typo in a comment.
9370 * Makefile.in: Major changes. Removed some the sed
9371 magic to converts scripts, since that is now handled
9372 by genscripts.sh and the *.sc-sh scipt generators.
9373 * config.h: Remove a bunch of macros defining emulations
9374 and targets. This becomes one less file to edit when
9375 adding emulations or targets.
9376 * ldemul.h (struct ld_emulation_xfer_struct): Add
9377 emulation_name and target_name fields.
9378 * ldemul.c, ldemul.h: Define some default functions used
9379 by most emulations (and remove from the *.em scripts).
9380 * ldemul.c (ldemul_choose_target): Search the new
9381 ld_emulations array using a loop (instead of a hardwired
9382 nested if statement).
9383 Define the ld_emulation from the automatically-geenrated
9384 ldemul-list.h. This means you no longer have to edit ldemul.c
9385 to add a new emulation.
9386 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
9387 their expansions, since the former no longer exist.
9388 * PORTING: A very rough first draft of a porting guide.
9389
9390 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
9391 to be terminated by a new-line (instead of requiring a semicolon).
9392
9393Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9394
9395 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
9396 tests for NULL pointers all over the place.
9397 * ldlang.c (lang_process): remember to relocate global symbols
9398 *after* relaxing has done it stuff.
9399
9400Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9401
9402 * config/mt-coff-h8300: use EMUL like everything else
9403 * ldlang.c: (print_padding_statement): print the right address.
9404 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
9405
9406
9407Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9408
9409 * ldlex.l: Put pack -noinhibit-exec and -sort-common
9410 * ldlang.c (print_data_statement): print the right address.
9411
9412Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
9413
9414 * Makefile.in: The rule for testing ld by re-linking itself
9415 via an intermediate -r link was moved to the ld1 rule
9416 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
9417 which allows the bootstrap rule to work.
9418 * ldctor.c (find_constructors): Don't create a constructor
9419 list if it is already defined (as would happen if ld is
9420 invoked by collect).
9421
9422Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9423
9424 * config/mh-sparc.h: now uses libgcc.a
9425 * ldmain.c: quit using exit
9426 * *sc: use *(COMMON) rather than [COMMON]
9427 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
9428 to allow preprocessing of .l file.
9429 * Makefile.in: New ldlex.l mangling
9430 * ldexp.c (fold_binary): perform expressions with % and / in
9431 integer.
9432 * ldfile.c (open_a): open archives on VMS in a special way
9433
9434
9435Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9436
9437 * ldgram.y: map -M behave in the same way as -Map (sets file name
9438 to be "-".
9439 * ldsym.c, ldlang.c: remember that size of a section is dependent on
9440 whether or not relaxing has been done.
9441 * ldmain.c: don't open a map file if it doesn't have a name
9442 * relax.c: all the brains have moved into bfd.
9443 * ldwrite.c: ammend comment
9444
9445Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9446
9447 * Makefile.in: added relax, also made three stage go through a
9448 partial link stage.
9449 * relax.c : added
9450 * config.h: if GNU960 defined, then default emulation mode is
9451 GLD960
9452 * ldexp.h, ldexp.c: map to file hooks
9453 * ldlang.c: map to file hooks
9454 * ldgram.y: added -Map -relax
9455 * ldlex.l: added -relax, -Map
9456 * ldmain.c: open map file
9457 * ldmisc.c: support for map file
9458 * ldwrite.c: new relax magic
9459
9460Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
9461
9462 * Makefile.in, config/tm-*.h: Clean up make output, only
9463 pass DEFAULT_EMULATION to ldmain.c.
9464
9465Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
9466
9467 * ldver.c: Bump to version 1.94.
9468
9469Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9470
9471 * Makefile.in: infodir belongs in datadir.
9472
9473Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
9474
9475 * Makefile.in: Pass -y to bison. (Again;
9476 accidentally deleted by Rich.)
9477 * news.sc, ldgld68k.sc: Define __end as well as _end.
9478
9479Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
9480
9481 * ldindr.h: added to contain prototypes of ldindr.c
9482 * ldfile.c: include ctype.h
9483 * ldmain.c: include the requried prototype headers
9484 * ldwrite.c: get_reloc_upper_bound has been renamed
9485 bfd_get_reloc_upper_bound
9486
9487Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9488
9489 * Makefile.in: punt "fundamental" mode because it breaks my emacs
9490 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
9491 spaces following hyphens, bsd make can't cope. added
9492 standards.text support and made it look like all the other
9493 makefiles.
9494
9495 * configure.in: configure now runs entirely in objdir so make file
9496 existence checks against ${srcdir}. Mark this directory as
9497 target dependent.
9498
9499Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9500
9501 * Makefile.in: idestdir and ddestdir go away. Added copyrights
9502 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
9503 and mandir now keyed off datadir by default.
9504
9505Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
9506
9507 * ldver.c: Bumped version to 1.93.
9508 * Makefile.in: Pass -y to bison.
9509
9510Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
9511
9512 * config.h: h8 is now coff, not ieee
9513 * h8300hds.sc: reflect the same
9514
9515Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
9516
9517 * ldver.c (ldversion()): Update to 1.92.
9518 * ldctor.c: There are two places constructor sets
9519 can be defined. One of them checked for an existing
9520 duplicate, the other didn't. Unfortunately, the latter
9521 was called after the former ...
9522 So, factor out code for inserting a new element into
9523 constructor_name_list (after checking for a duplicate)
9524 into a new function add_constructor_name, and call
9525 it from both aforementioned places (ldlang_add_constructor
9526 and ldlang_check_for_constructors).
9527
9528Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
9529
9530 * Makefile.in: Rename .c files generated from ldtemplate
9531 to have names starting with ld__. This helps 'make clean'.
9532
9533Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
9534
9535 * Makefile.in: Take out the version number for install
9536 * m88kbcs.sc: put in contructor blocks.
9537
9538Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
9539
9540 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
9541 parameter, a format, and an arg pointer, and rename it to
9542 vfinfo(). Write info() in terms of new vfinfo().
9543 New einfo() is the same as info(), except it writes to stderr.
9544 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
9545 ldmisc.c: Replace "error" calls to info() by new einfo().
9546
9547Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
9548
9549 * ldlex.l ldgram.y: made -V option do same as -v
9550 * Makefile.in: Added $(MINUS_G) flag so debugging can be
9551 turned off
9552
9553Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
9554 i386 aout changes from Bob Kukura
9555 * Makefile.in, config.h: added i386aout support
9556 * configure.in: fixed /h-{myhost} typo
9557 * ldgram.y: -MM now gives more boring map.
9558 * ldlang.c: now does D_PAGED flag the right way.
9559 * ldsym.c: -MM flags does the right thing.
9560
9561Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
9562
9563 * configure.in: Fixed typo. Also, a fix for hp300bsd.
9564 * ldlang.c (init_os): Compensate for BFD change,
9565 where bfd_make_section now returns NULL for a duplicate
9566 section request, instead of the old section.
9567
9568Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
9569
9570 * ldver.c: Bump to version 1.91 (consistent with binutils).
9571
9572Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
9573
9574 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
9575 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
9576 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
9577 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
9578 Add or update copyright notices.
9579
9580Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
9581
9582 * README: New file.
9583 * Makefile.in: Changed installation directory name scheme
9584 to be consistent with gcc. Also changed 'install'.
9585
9586Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
9587
9588 * Makefile.in: new targets ld.mm, ld.me
9589
9590Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
9591
9592 * Makefile.in, ldtemplate: Need to use separate scripts
9593 for -n and -N options. Yet more complication.
9594
9595Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
9596
9597 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
9598 work). Add some lines to avoid Sun Make VPATH bugs.
9599
9600Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
9601
9602 * news.sc: Add alignment for data segment.
9603 * ldtemplate: Add (yet another) script to get for -n or -N
9604 options. (These need different alignment than ZMAGIC files.)
9605 * Makefile.in: Add stuff for new foo.xn scripts.
9606 These are generated by replacing "ALIGN(0x...00)" by ".".
9607
9608Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
9609
9610 * Makefile.in: new targets ld.ms, ld-index.ms
9611 ld.texinfo: remove tabs, other cleanups for texi2roff
9612
9613Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
9614
9615 * ldmain.c (main): Make config.magic_demand_paged be true
9616 by default. Don't the WP_TEXT and D_PAGED flags of
9617 output_bfd here; it's too late, so set it when output_bfd
9618 is created (in ldlang.c). Also fix setting of EXEC_P flag
9619 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
9620 * ldlang.c: Remove some duplicate extern declarations.
9621 * ldgram.y: Fixes to -N and -n options.
9622 * Makefile.in: Recognize upper case letters in sed script
9623 to remove assignments from script files.
9624 * ldtemplate: Don't assukme that -N or -n options
9625 imply use of -r script.
9626 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
9627
9628Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
9629
9630 * ldtemplate: include bfd.h before sysdep.h.
9631
9632Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
9633
9634 Restructure configuration scheme for bfd, binutils, ld.
9635
9636 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
9637 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
9638 Change some config names to match other dirs.
9639 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
9640 get defined first.
9641 * config/: Rename some config files to match up h-*.h names.
9642 Remove all the HOST_SYS definitions from the config files.
9643
9644Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
9645
9646 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
9647 * ldtemplate: Remove ldfile_add_library_path calls;
9648 just use the SEARCH_DIR commands in the script files.
9649 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
9650 the SEARCH_DIR commands in the scripts (using ugly sed magic).
9651 This is primarily intended for cross-linking, where you would
9652 place libaries in a different place than native libraries.
9653 Also, emulations made from ldtemplate now use $(srcdir).
9654 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
9655 form; people can use the Makefile's LIB_PATH to override.
9656
9657Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
9658
9659 * Makefile.in: fix target ld.dvi, add target ld.info
9660 ld.texinfo: make info filename ld.info
9661
9662Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
9663
9664 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
9665 Make).
9666 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
9667 few BFD types & enums.
9668
9669\f
9670Local Variables:
9671mode: change-log
9672left-margin: 8
9673fill-column: 74
9674version-control: never
9675End: