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