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