When deciding if ".text" section should be read-only, don't forget to reset
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
1f0df59a
NC
12000-05-22 Igor Shevlyakov <igor@windriver.com>
2
3 * ldmain.c (main): When deciding if ".text" section should be
4 read-only, don't forget to reset SEC_READONLY because it
5 could be already set.
6
176355da
NC
72000-05-22 Thomas de Lellis <tdel@windriver.com>
8
9 * ld.1: Add documentation for new command line option:
10 --section-start <sectionname>=<sectionorg>
11 This is a generic version of -Ttext etc. which accepts
12 any section name as a parameter instead of just text/data/
13 bss.
14 * ld.texinfo: More docs.
15 * NEWS: More docs.
16 * lexsup.c: (parse_args): Recognize new command line option.
17 (ld_options): Add new option.
18
8c5ff972
L
192000-05-18 H.J. Lu <hjl@gnu.org>
20
21 * lexsup.c (parse_args): `i' == `r', not `q'.
22
0b76fe77
JL
23Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
24
25 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
26
a712da20
NC
272000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
28 Rick Gorton <gorton@scrugs.lkg.dec.com>
29
30 Add support for '-q' == '--emit-relocs' switch.
31 * ldmain.c (main): Default to false.
32 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
33 * NEWS: Describe the emitrelocations switch.
34 * ld.texinfo: Describe the emitrelocations switch.
35
690a460e
NC
362000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
37
38 * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
39 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
40 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
41 link options.
42
c2f1343c
AM
432000-05-15 David O'Brien <obrien@FreeBSD.org>
44
45 * lexsup.c (parse_args): Update the year in the copyright notice.
46
897083bd
AM
472000-05-13 Alan Modra <alan@linuxcare.com.au>
48
49 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
50 Replace defines with those from intl/libgettext.h to quieten gcc
51 warnings.
52
cd4c806a
L
532000-05-10 H.J. Lu <hjl@gnu.org>
54
55 * ldlang.c (open_input_bfds): Don't load the same file within
56 a group again if the whole archive has been loaded already.
57
93697284
AM
582000-05-03 Alan Modra <alan@linuxcare.com.au>
59
60 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
61 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
62 strtoul.
63
ebd6fc29
JW
64Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
65
99a4150f
JW
66 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
67
ebd6fc29
JW
68 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
69 host "ia64-*-linux-gnu*".
70
a1934524
AM
712000-04-29 Andreas Jaeger <aj@suse.de>
72
73 * ld.h: Correctly check GCC version.
74
730a39a0
JL
75Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
76
77 * Makefile.am: Add PA64 support. Add missing dependencies for
78 PA32 elf support.
79 * Makefile.in: Rebuilt.
80 * configure.tgt: Add PA64 support (currently disabled).
81
aea4bd9d
AM
822000-04-25 Alan Modra <alan@linuxcare.com.au>
83
84 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
85 (output_rel_find): New function.
86 (hold_section, hold_use): Delete.
87 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
88 hold_interp): Make local to place_orphan.
89 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
90 rather than place_section to find possible previous use of orphan.
91 Similarly find the place-holder output sections. Use returned
92 value from lang_enter_output_section_statement rather than calling
93 lang_output_section_statement_lookup.
94 * emultempl/armelf.em: Same here.
95 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
96
97 * ldlang.c (lang_enter_output_section_statement): Return output
98 section statement.
99 * ldlang.h (lang_enter_output_section_statement): Change
100 declaration too.
101
102 * ldlang.h (lang_output_section_statement): Export it.
103 * ldlang.c (lang_output_section_statement): Ditto.
104
2b5fc1f5
NC
1052000-04-24 Nick Clifton <nickc@cygnus.com>
106
107 * ld.texinfo (Output Section Data): Add note that section data
108 commands cannot appear outside of section directives.
109
d8475ff6
JL
1102000-04-2 Matthew Green <mrg@cygnus.com>
111
112 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
113
800eeca4
JW
114Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
115 David Mosberger <davidm@hpl.hp.com>
116
117 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
118 (eelf64_ia64.c): New rule.
119 * Makefile.in: Rebuild.
120 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
121 * emulparams/elf64_ia64.sh: New file.
122
c9637625
RH
1232000-04-21 Richard Henderson <rth@cygnus.com>
124
125 * scripttempl/elfd30v.sc: Place .gcc_except_table.
126
28ea9521
AM
1272000-04-19 Alan Modra <alan@linuxcare.com.au>
128
129 * dep-in.sed: Match space at start of file name, not at end.
130
20d04697
L
1312000-04-18 H.J. Lu <hjl@gnu.org>
132
133 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
134 lang_leave_output_section_statement () after calling
135 lang_enter_output_section_statement ().
136 * emultempl/armelf.em: Likewise.
137
5ba47421
AM
1382000-04-18 Alan Modra <alan@linuxcare.com.au>
139
140 * emultempl/elf32.em (struct orphan_save): Add section field.
141 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
142 better order, and place first orphan section as we did before the
143 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
144 Don't call make_bfd_section here, let wild_doit do the job for us.
145 Don't build a statement list when we'll only throw it away.
146 * emultempl/armelf.em: Ditto.
147 * emultempl/pe.em: Similarly.
148
bdbe5705
GK
1492000-04-14 Geoff Keating <geoffk@cygnus.com>
150
151 * scripttempl/elfppc.sc: Remove.
152 * emulparams/elf32ppc.sh: Use elf.sc.
153 * emulparams/elf32lppc.sh: Use elf.sc.
154 * emulparams/elf32ppclinux.sh: Use elf.sc.
155 * emulparams/elf32ppcsim.sh: New file.
156 * emulparams/elf32lppcsim.sh: New file.
157 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
158 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
159 * Makefile.in: Regenerate.
160 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
161
01cc8ff8
AM
1622000-04-14 Alan Modra <alan@linuxcare.com.au>
163
5ba47421 164 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 165 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
166 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
167 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
168 Also set all relocateable section start addresses.
169
6c86c541
GK
1702000-04-13 Geoff Keating <geoffk@cygnus.com>
171
172 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
173 Add new BSS_PLT variable for when .plt need not be contained in
174 the file. Move _etext so that it is also after .fini, and provide
175 both etext and _etext with a leading underscore. Mark the start
176 and end of .sbss.
177
6a345e87
AM
1782000-04-12 Alan Modra <alan@linuxcare.com.au>
179
180 * emultempl/elf32.em (struct orphan_save): New.
181 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
182 hold_interp): Make them struct orphan_save.
183 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
184 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
185 the end of the relevant section list. Also add associated section
186 statements to the end of any previous orphan statements.
187 * emultempl/armelf.em: Similarly.
188 * emultempl/pe.em: Similarly.
189
8be86746
AM
1902000-04-11 Alan Modra <alan@linuxcare.com.au>
191
192 * ld.texinfo (Simple Example): Remove extraneous paragraph.
193
a2d91340
AC
194Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
195
196 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
197 --enable-build-warnings option.
198 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
199 * Makefile.in, configure: Re-generate.
200
41b49281
AM
2012000-04-04 Alan Modra <alan@linuxcare.com.au>
202
8ad3436c
AM
203 * po/ld.pot: Regenerate.
204
205 * lexsup.c (help): Restore translated part of bug string.
206
41b49281
AM
207 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
208 (DEP): Quote when passing vars to sub-make. Add warning message
209 to end.
210 (DEP1): Rewrite for "gcc -MM".
211 (CLEANFILES): Add DEP2.
212 Update dependencies.
213 * Makefile.in: Regenerate.
214
c20f4f8c
AM
2152000-04-03 Alan Modra <alan@linuxcare.com.au>
216
217 * ld.h: #include "bin-bugs.h"
218 * lexsup.c (help): Use REPORT_BUGS_TO.
219
adde6300
AM
2202000-03-27 Denis Chertykov <denisc@overta.ru>
221
222 * configure.tgt (avr-*-*): New target support.
223 * Makefile.am: Likewise.
224 * scripttempl/elf32avr.sc: New script file.
225 * emulparams/avr1200.sh: New file.
226 * emulparams/avr23xx.sh: New file.
227 * emulparams/avr4433.sh New file.
228 * emulparams/avr44x4.sh New file.
229 * emulparams/avr85xx.sh New file.
230 * emulparams/avrmega103.sh New file.
231 * emulparams/avrmega161.sh New file.
232 * emulparams/avrmega603.sh New file.
233 * Makefile.in: Regenerate.
234
9282ff41
L
2352000-03-09 Andreas Jaeger <aj@suse.de>
236
237 * Makefile.am (check-DEJAGNU): Also unset LANG.
238 * Makefile.in: Rebuild.
239
a9998805
ILT
2402000-03-06 Ian Lance Taylor <ian@zembu.com>
241
242 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
243 archive.
244
f9bc20e7
NC
2452000-03-02 H.J. Lu <hjl@gnu.org>
246
247 * emulparams/elf32mcore.sh: Include "getopt.h".
248
4e277b38
ILT
2492000-03-01 Ian Lance Taylor <ian@zembu.com>
250
251 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
252
f0c87f88
NC
2532000-03-01 H.J. Lu <hjl@gnu.org>
254
255 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
256 * emulparams/shpe.sh: Likewise.
257
2582000-03-01 Nick Clifton <nickc@cygnus.com>
259
260 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
261 to unused parameters.
262
263 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
264 functions only used by DLL code.
265 (_place_orphan): Initialise 'dollar'.
266
b6f29aaa
L
2672000-03-01 H.J. Lu <hjl@gnu.org>
268
269 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
270 indicate if the undefined symbol is a fatal error or not.
271 Don't delete the output file if "fatal" is false.
272
af28fce3
L
2732000-02-29 H.J. Lu <hjl@gnu.org>
274
275 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
276 Set LC_COLLATE and LC_ALL to null and export them. It is for
277 sort which expects the C locale.
278 Add $(LIBS) to all $(HOSTING_LIBS).
279 * Makefile.in: Rebuild.
280
40d109bf
AM
2812000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
282
283 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
284 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
285 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
286 (ld_emulation_xfer_struct): Add missing NULL initialiser for
287 find_potential_libraries.
288
db5be682
JB
2892000-02-28 Jim Blandy <jimb@redhat.com>
290
291 * ldgram.y (exclude_name_list): Don't require a comma to separate
292 list entries; the lexer considers commas to be valid part of a
293 filename, so in something like `foo, bar' the comma is considered
294 part of the first filename, `foo,'.
295 * ld.texinfo: Update section on EXCLUDE_FILE lists.
296
3558ff4c
ILT
2972000-02-27 Loren J. Rittle <ljrittle@acm.org>
298
299 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
300 host "i[3456]86-*-freebsdelf*".
301
4eee2681
ILT
3022000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
303
304 * scripttempl/i386go32.sc: Move misplaced semicolons.
305
8d75d12d
ILT
3062000-02-25 Ian Lance Taylor <ian@zembu.com>
307
308 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
309 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
310 (eelf64hppa.c, ehppaelf.c): Remove targets.
311 * Makefile.in: Rebuild.
312
a1836d49
AO
3132000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
314
ad51fb57
AO
315 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
316 GNU/Linux/sparc, but keep the default as 32.
317
a1836d49
AO
318 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
319 it default if sparcv9 or sparc64.
320
344a211f
NC
3212000-02-24 Nick Clifton <nickc@cygnus.com>
322
323 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
324 * Makefile.in: Regenerate.
325 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
326
327 * ldemul.h (ld_emulation_xfer_struct): Add new field:
328 find_potential_libraries.
329 * ldemul.c (ldemul_find_potential_libraries): New function.
330
331 * ldfile.c (ldfile_open_file_search): Allow function to be
332 exported.
333 (ldfile_open_file): Call ldemul_find_potential_libraries.
334 * ldfile.h: Add prototype for ldfile_open_file_search.
335
336 * pe-dll.c: Add support for ARM, MIPS and SH targets.
337
338 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
339 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
340
341 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
342 (gld_X_find_potential_libraries): New function. Search for
343 libraries called "*.lib".
344
345 * scriptempl/pe.sc: Add .pdata section.
346
eaba1dd3
RH
3472000-02-23 Richard Henderson <rth@cygnus.com>
348
349 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
350 Add and use memory regions.
351
5b93d8bb
AM
3522000-02-23 Linas Vepstas (linas@linas.org)
353
354 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
355
356 * Makefile.am: Add support for Linux/IBM 370.
357 * configure.tgt: Likewise.
358
359 * Makefile.in: Regenerate.
360
f6af82bd
AM
3612000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
362
363 * ldlang.c (print_input_section, print_data_statement,
364 print_reloc_statement, print_padding_statement, insert_pad,
365 size_input_section, lang_check_section_addresses,
366 lang_size_sections, lang_do_assignments, lang_set_startof,
367 lang_one_common): Change `opb' to unsigned.
368 (lang_do_assignments): Also change `size' to unsigned.
369
9e673ad1
RH
3702000-02-16 Richard Henderson <rth@cygnus.com>
371
372 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
373
562d3460
TW
3742000-02-16 Timothy Wall <twall@cygnus.com>
375
376 * mri.c (mri_draw_tree): Add default LMA region argument to call
377 to lang_leave_output_section_statement.
378 * ldlang.h: Update prototypes with LMA region arguments.
379 * ldlang.c (lang_size_sections): Encapsulate region bounds
380 checking in os_check_region call.
381 (os_check_region): New function.
382 (lang_output_section_statement_lookup): Initialize lma_region.
383 (lang_leave_output_section_statement): Add LMA region argument.
384 (lang_leave_overlay): Ditto.
385 * ldgram.y: Handle LMA region syntax.
386 * ld.texinfo (Output Section Description): Describe LMA region usage.
387 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 388 lma region in call to lang_leave_output_section_statement.
562d3460 389 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 390 lma region in call to lang_leave_output_section_statement.
562d3460 391 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 392 lma region in call to lang_leave_output_section_statement.
562d3460
TW
393
394
9e4ed18c
TW
3952000-02-04 Timothy Wall <twall@redhat.com>
396
397 * ldlang.c (lang_check_section_addresses): Use bytes instead of
398 octets when calculating section end addresses.
399
32edc927
TW
4002000-02-04 Timothy Wall <twall@redhat.com>
401
402 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
403
4cbfc3ac
TW
4042000-02-03 Timothy Wall <twall@redhat.com>
405
406 * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
407 octet count.
408 * ld/ldlang.c (print_input_section, print_data_statement,
409 print_reloc_statement, print_padding_statement): Print target
410 address values and section sizes as bytes, not octets.
411 (insert_pad) Calculate padding size in octets, and adjust "dot"
412 by bytes.
413 (size_input_section) Always adjust "dot" by bytes, not octets.
414 (lang_check_section_addresses, lang_do_assignments) Adjust
415 "dot" by bytes, not octets. Use the larger of the directive size
416 or octets_per_byte for the number of octets actually allocated in
417 the output section.
418 (lang_set_startof) Make sure STARTOF returns a target address.
419 (lang_one_common) Record size changes in octets.
420 (lang_abs_symbol_at_end_of) Section end symbol's value is
421 recorded in target bytes.
422 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
423 to be clear about behavior when an octet is smaller than one byte.
424
305c7206
AM
4252000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
426
427 * ldcref.c (output_cref): Don't pass message strings to printf
428 as format arg.
429 Update copyright.
430
431 * ldmisc.c (vfinfo): Same here.
432 Update copyright.
433
e1c47aa4
AM
4342000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
435
436 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
437 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
438 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
439 Add missing NULL initialisers, and comments.
440
441 * testsuite/ld-srec/sr3.cc (__rethrow): New.
442
13392b77
NC
4432000-01-21 Nick Clifton <nickc@cygnus.com>
444
445 * ldlang.c (lang_size_sections): Fix typo in comment.
446
cce4c4c5
NC
4472000-01-18 H.J. Lu <hjl@gnu.org>
448
449 * ldlang.c (lang_size_sections): Also update the current
450 address of a region if the SEC_NEVER_LOAD bit is not set.
451
0decc840
NC
4522000-01-10 Philip Blundell <pb@futuretv.com>
453
454 * configure.tgt (arm*-*-conix*): New target.
455
4e53152f
NC
4562000-01-07 Nick Clifton <nickc@cygnus.com>
457
458 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
459 line switches with -Wl, (or whatever is appropriate) if it is
460 being invoked by a comnpiler driver program.
461 Fix description of the behaviour of the -n command line switch.
4e53152f 462
18625d54
CM
463Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
464
465 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
466 (name_list): New.
467 * ld.texinfo (EXCLUDE_FILE): Update documentation.
468 * ldgram.y (wildcard_spec): Support a list of excluded_files.
469 (exclude_name_list): New.
470 ldlang.c (walk_wild_section): Support list of excluded files.
471 (print_wild_statement): Likewise.
472 (lang_add_wild): Likewise.
473 * ldlang.h (lang_wild_statement_type): Likewise.
474 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
475
5aaace27
NC
4762000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
477
870df5dc
NC
478 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
479 (process_def_file): Use.
480 (pe_dll_compat_implib): New variable.
481 (make_one): Use.
482
483 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
484 pe_dll_compat_implib.
485
486 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
487 compat-implib options.
488 (gld_${EMULATION_NAME}_list_options): List new options.
489 (gld_${EMULATION_NAME}_parse_args): Handle.
490
5aaace27
NC
491 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
492 dll.
870df5dc 493
5aaace27
NC
494 * deffilep.y (opt_name): Allow "." in name.
495
e6869249
NC
4961999-12-02 Nick Clifton <nickc@cygnus.com>
497
498 * Makefile.am: Fix arm-epoc-pe dependencies.
499 * Makefile.in: Regenerate.
500
501 * emulparams/arm_epoc_pe.sh (SCRIPT_NAME): Set to epocpe.
502
503 * scripttempl/epocpe.sc: New file: copy of pe.sc, customised for
504 EPOC by placing .rdata into .text.
505
e4dabd0e
AS
5061999-11-26 Andreas Schwab <schwab@suse.de>
507
508 * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
509 STRINGIFY. Use yes/no instead of true/false as value for cache
510 variable.
511 * configure: Regenerate.
512
50e05050
NC
5131999-11-24 Nick Clifton <nickc@cygnus.com>
514
515 * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
516 attributes in order to be checked.
517
33275c22
NC
5181999-11-22 Nick Clifton <nickc@cygnus.com>
519
520 * ldlang.c (lang_check_section_addresses): Fix test to determine
521 if a section should be tested.
522 (IGNORE_SECTION): New macro.
523
93a6d436
JL
524Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
525
526 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
527 Clean up code to use EXTRA_SHLIB_EXTENSION.
528
829ce307
NC
5291999-11-03 Nick Clifton <nickc@cygnus.com>
530
531 * emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
532 * emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.
533
9503fd87
ILT
5341999-11-01 Steve Chamberlain <sac@pobox.com>
535
536 * ldlang.c (section_already_linked): Rework to use hash table.
537 (already_linked_newfunc): New function.
538 (already_linked_table_init): New function.
539 (already_linked_table_free): New function.
540 (lang_process): Initialize and free the already_linked hash table.
541
d7498c1e
ILT
5421999-10-27 Andreas Jaeger <aj@suse.de>
543
544 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
545 target "mips*-*-linux-gnu*".
546
29c4c6b5
NC
5471999-10-27 Scott Bambrough <scottb@netwinder.org>
548
549 * emultempl/armelf.em: Include ctype.h to prevent compile time
550 warnings.
551
1ac6a752
NC
5521999-10-26 Nick Clifton <nickc@cygnus.com>
553
554 * emultempl/armcoff.em (gld{}_finish): Remove extraneous
555 underscore from prototype.
556 * emultempl/armelf.em (gld{}_finish): Remove extraneous
557 underscore from prototype.
558
cfd0966c
GK
5591999-10-07 Geoffrey Keating <geoffk@cygnus.com>
560
561 * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
562 being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
563 (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
564 (.rel.sbss): Make like .rel.bss.
565 (.rela.sbss): Make like .rel.bss.
566 (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
567 ld -r.
568 (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
569 .dynsbss.
570
6eec49fc
DD
5711999-09-29 Andrew Haley <aph@cygnus.com>
572
573 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
574 merging sections when not relocating.
575
8a5b676c
DD
5761999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
577
578 * pe-dll.c (process_def_file): Move the offset lookup from here to
579 (fill_exported_offsets): here. New static function.
580 (fill_edata): Use.
581
7c9e78f8
DD
5821999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
583
584 * deffilep.y (tokens): Add upper and lower case versions of DATA,
585 CONSTANT, NONAME and PRIVATE tokens.
586 (command): Use DATAU.
587 (expline): Allow for drectve syntax as well.
588 (exp_opt_list): Likewise.
589 (exp_opt): Likewise.
590 * pe-dll.c (make_one): Only generate the idata entries for data
591 symbols.
592
13d92f2c
GK
5931999-09-28 Geoffrey Keating <geoffk@cygnus.com>
594
595 * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
596 in .sdata too.
597
3c9cf3a3
NC
5981999-09-26 Nick Clifton <nickc@cygnus.com>
599
600 * scripttempl/elf.sc (.bss): Accept sections named .bss.*
601 (.sbss): Accept sections names .sbss.*
602
be2153ad
NC
6031999-09-22 Nick Clifton <nickc@cygnus.com>
604
690a460e 605 * Makefile.am: Add earm_epoc_pe.c build target.
be2153ad 606
26040066
JL
607Sat Sep 18 07:57:10 1999 Jeffrey A Law (law@cygnus.com)
608
609 * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
610 they've been renamed to ".stub", which is handled automatically
611 by elf.sc.
612
613Fri Sep 17 11:00:33 1999 Jeffrey A Law (law@cygnus.com)
614
615 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
616 (DATA_START_SYMBOLS): Kill __hp_load_map definition
617
42d106a8
JL
618Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
619
d3cc5bd6
JL
620 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
621 Use the same filename extension for the bfd_elf_dt_needed_name call
622 as we did for finding the library.
623
88e99a39
JL
624 * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
625 (OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
626
42d106a8
JL
627 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define.
628
833be1c7
JL
629Wed Sep 15 02:47:43 1999 Jeffrey A Law (law@cygnus.com)
630
97444aea
JL
631 * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
632 (SHLIB_DATA_ADDR): Likewise.
633
634 * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
635
833be1c7
JL
636 * emulparms/elf64hppa.h (OTHER_READWRITE_SECTIONS): No longer combine
637 the .plt, .dlt, .opd into a single output section. Provide values
638 for __gp and __hp_load_map.
639
a8100d5b
MM
6401999-09-14 Michael Meissner <meissner@cygnus.com>
641
642 * configure.in (Canonicalization of target names): Remove adding
643 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
644 generates $ac_config_sub with a ${CONFIG_SHELL} already.
645 * configure: Regenerate.
646
e4e24acb
DD
6471999-09-14 Donn Terry <donn@interix.com>
648
649 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
650 terminating null.
651
93a6d436
JL
6521999-09-14 Ulrich Drepper <drepper@cygnus.com>
653
654 * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
655 * config.in: Add EXTRA_SHLIB_EXTENSION.
656
657 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
658 Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
659 is defined.
660
cf865442
NC
6611999-09-14 Nick Clifton <nickc@cygnus.com>
662
663 * Makefile.in: Add earm_epoc_pe.c build target.
664
2491f110
JL
665Tue Sep 14 05:26:34 1999 Jeffrey A Law (law@cygnus.com)
666
667 * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt.
668
361d94e7
ILT
6691999-09-13 Donn Terry <donn@interix.com>
670
671 * emultempl/pe.em: Remove the output file at the start, in case it
672 is not writable.
673
9169713a
JL
674Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
675
070f1aed
JL
676 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
677 Search for file with .sl extension if no file with a .so extension
678 is found.
679
9169713a
JL
680 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
681 at the start of the .dlt output section.
682
1069dd8d
ILT
6831999-09-12 Ian Lance Taylor <ian@zembu.com>
684
45455cdd
ILT
685 * pe.em: Don't include "../bfd/libbfd.h".
686 (gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
687 bfd_alloc.
688
1069dd8d
ILT
689 * pe-dll.h: New file.
690 * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed
691 to avoid warnings.
692 (edata_sz, reloc_sz): Change from int to size_t.
693 (pe_details_type): Change type of imagebase_reloc from int to
694 unsigned int.
695 (pe_detail_list): Fully initialize last entry.
696 (pe_dll_id_target): Change parameter to const.
697 (pe_dll_generate_def_file): Likewise.
698 (pe_dll_generate_implib): Likewise.
699 (pe_implied_import_dll): Likewise. Change dll_name to const.
700 * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in
701 pe-dll.h.
702 (init): Fully initialize __dll__ entry.
703 (gld_${EMULATION_NAME}_after_open): Remove unused variables
704 sequence, elt, and i.
705 * deffile.h: Add preprocessor guard.
706 * deffilep.y (def_debug): Remove.
707 * Makefile.am: Rebuild dependencies.
708 (HFILES): Add pe-dll.h.
709
2be9b2c7
ILT
7101999-09-12 Donn Terry <donn@interix.com>
711
45455cdd
ILT
712 * ld.h (ld_abort): Declare.
713 (abort): Define.
714 * ldmisc.c (ld_abort): Define.
715
be4514d3
ILT
716 * scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
717 Move .bss section after .rdata. Move .reloc section after .rsrc.
718
d98dd8ba
ILT
719 * lexsup.c (parse_args): Use strtoul for --split-by-reloc
720 argument.
721
03983865
ILT
722 * lexsup.c (parse_args): If we get an unrecognized argument,
723 mention --help.
724
bb8fe706
ILT
725 * ldlang.c (section_already_linked): Use comdat information if it
726 is available.
727
2be9b2c7
ILT
728 * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
729 OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
730 (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
731 defined, rather than a.exe.
732 (init): Define __subsystem__ as ${SUBSYSTEM}.
733 (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
734 name.
735
1b69a0bf
ILT
7361999-09-12 Ian Lance Taylor <ian@zembu.com>
737
738 * ldlang.c (open_output): Change local variable desired_endian
739 from int to enum bfd_endian.
740
be4514d3 741 * emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
1b69a0bf
ILT
742 INITIAL_SYMBOL_CHAR.
743 * emulparams/armpe.sh: Likewise.
744 * emulparams/morepe.sh: Likewise.
745 * emulparams/ppcpe.sh: Likewise.
be4514d3
ILT
746 * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
747 (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1b69a0bf 748
904ecb2d
JL
749Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
750
e5b08bf0
JL
751 * emulparms/elf64hppa.sh (LIB_PATH): Define.
752
904ecb2d
JL
753 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
754 unwinders so that they are closer to the text section.
755 (OTHER_BSS_SECTIONS): Define.
756 (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
757 (INIT_START, INIT_END): Define.
758 (FINI_START, FINI_END): Define.
759 * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
760 FINI_START, FINI_END and OTHER_BSS_SECTIONS.
761
7e4d694e
JL
762Thu Sep 9 21:43:58 1999 Jeffrey A Law (law@cygnus.com)
763
764 * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
765 (DATA_ADDR): Define.
766
2f2bc1bb
RH
7671999-09-09 Stan Shebs <shebs@andros.cygnus.com>
768
769 * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
770
1d0a3c9c
AS
7711999-09-09 Andreas Schwab <schwab@suse.de>
772
773 * ld.texinfo: Fix arguments of @var to not contain punctuation.
774
040266ab
JL
775Thu Sep 9 05:52:34 1999 Jeffrey A Law (law@cygnus.com)
776
777 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.
778
7791999-09-08 Ulrich Drepper <drepper@cygnus.com>
780
781 * emulparams/elf64hppa.sh (ELFSIZE): New. Set to 64.
782
783Wed Sep 8 00:07:39 1999 Jeffrey A Law (law@cygnus.com)
784
785 * emulparms/elf64hppa.sh (ENTRY): Define to main.
786
1c56fb87
NC
7871999-09-03 Scott Bambrough <scottb@netwinder.org>
788
789 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
790 target "arm*-*-linux-gnu*"
791
c6c8c6dc
ILT
7921999-09-04 Steve Chamberlain <sac@pobox.com>
793
794 * configure.tgt (pjl-*-*, pj-*-*): New targets.
795 * emulparams/pjelf.sh: New file.
796 * emulparams/pjlelf.sh: New file.
797 * scripttempl/pj.sc: New file.
798 * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
799 (epjelf.o, epjlelf.o): New targets.
800 * Makefile.in: Rebuild.
801
4b69d4ad
JL
802Fri Sep 3 20:17:08 1999 Jeffrey A Law (law@cygnus.com)
803
804 * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
805 (OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
806
f6e143a1
JL
807Thu Sep 2 14:32:03 1999 Jeffrey A Law (law@cygnus.com)
808
809 * emulparams/elf64hppa.sh: New file.
810 * configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
811 * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
812 (eelf64hppa.c): Add dependencies.
813 * Makefile.in: Rebuilt.
814
0f1ee889
NC
8151999-08-25 Philip Blundell <pb@nexus.co.uk>
816
817 * emulparams/armelf.sh (OTHER_BSS_SYMBOLS): Add __end__.
818 * emulparams/armelf_linux.sh: Likewise.
819 * emulparams/armelf_linux26.sh: Likewise.
820
8959586a
NC
8211999-08-24 Nick Clifton <nickc@cygnus.com>
822
823 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
824
825 * configure.tgt (arm-*-netbsd*): New target.
826 * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o.
827 (earmnbsd.c): New rule with deps.
828 * Makefile.on: Regenerate.
829 * emulparams/armnbsd.sh: New file.
830
3b108066
NC
8311999-08-23 Nick Clifton <nickc@cygnus.com>
832
093505ad
NC
833 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
834 Implement --base-file command line switch.
835
3b108066
NC
836 * emultempl/elf32.em: Add ability for individual targets to have
837 their own command line switches by defining PARSE_AND_LIST_ARGS.
838
cd5d26f2
AS
8391999-08-19 Andreas Schwab <schwab@suse.de>
840
841 * configure.host: Use ${CC} instead of gcc for finding compiler
842 related files.
843
0811443a
NC
8441999-08-11 Nick Clifton <nickc@cygnus.com>
845
846 * scripttempl/mcorepe.sc (OUTPUT_FORMAT): Fix typo.
847
9c9ef45f
ILT
8481999-08-09 Mark Elbrecht <snowball3@bigfoot.com>
849
850 * scripttempl/i386go32.sc: Handle g++ exception sections.
851
fe9edd22
ILT
8521999-08-09 Ian Lance Taylor <ian@zembu.com>
853
854 From Wally Iimura <iimura@microunity.com>:
855 * ldlang.c (lang_size_sections): When checking whether an address
856 is within a region, don't get confused by wrapping around at the
857 end of the address space.
858
f4162f5c
ILT
8591999-08-08 Ian Lance Taylor <ian@zembu.com>
860
667f5177
ILT
861 * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
862 SEC_SMALL_DATA.
863
f4162f5c
ILT
864 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
865 MKDEP. Rebuild dependencies.
866 * Makefile.in: Rebuild.
867
ae97059c
ILT
8681999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
869
870 * configure.host (sparc-*-linux-gnu*): New host.
871 (sparc64-*-linux-gnu*): New host.
872
597e2591
ILT
8731999-08-06 Ian Lance Taylor <ian@zembu.com>
874
3d9f6277
ILT
875 * lexsup.c (is_num): Reindent.
876 (parse_args): Mention program name in error message.
877
597e2591
ILT
878 * emultempl/ostring.sed: Rename from stringify.sed.
879 * emultempl/astring.sed: New file.
880 * Makefile.am (stringify.sed): New target.
881 (GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
882 stringify.sed.
883 * configure.in: Define and substitute STRINGIFY.
884 * emultempl/*.em: Use stringify.sed from build directory rather
885 than source directory.
886 * emultempl/elf32.em: Use stringify.sed rather than inline sed
887 script.
888 * emultempl/gld960.em, emultempl/gld960c.em: Likewise.
889 * emultempl/hppaelf.em, emultempl/linux.em: Likewise.
890 * emultempl/lnk960.em, emultempl/sunos.em: Likewise.
891 * configure, Makefile.in: Rebuild.
892
a7e78dae
ILT
8931999-08-05 Donn Terry <donn@interix.com>
894
895 * emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
3d9f6277 896 INITIAL_SYMBOL_CHAR.
a7e78dae
ILT
897 * emulparams/i386pe_posix.sh: New file.
898 * Makefile.am (YACC): If bison is not in the source tree, use
899 @YACC@ rather than bison -y.
900 (LEX): If flex is not in the source tree, use @LEX@ rather than
901 flex.
902 (ALL_EMULATIONS): Add ei386pe_posix.o.
903 (ei386pe_posix.c): New target.
904 * configure.tgt (i[3456]86-*-interix*): New target.
905 * configure.host (i[3456]86-pc-interix*): New host.
906 * Makefile.in: Rebuild.
907
18069efc
ILT
9081999-08-03 Ian Lance Taylor <ian@zembu.com>
909
910 * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
911 * emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
912
f7cc0a4d
ILT
9131999-08-03 H.J. Lu <hjl@gnu.org>
914
915 * Makefile.am (ALL_EMULATIONS): Remove ego32.o.
916 (ego32.c): Remove.
917 * Makefile.in: Rebuild.
918
5fa803d3
NC
9191999-07-22 Philip Blundell <pb@nexus.co.uk>
920
921 * emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
922 (OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
923 * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.
924
925 * configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
926 thumb-*-linux-gnu*): New targets.
927
b4089fdd 9281999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
8f36e47c 929
5a1bd109
ILT
930 * scripttempl/i386go32.sc: Add handling of linkonce sections.
931
8f36e47c 932 * configure.bat: Remove; obsolete.
b4089fdd
ILT
933 * emulparams/go32.sh: Remove; obsolete.
934 * scripttempl/go32coff.sc: Remove; obsolete.
8f36e47c 935
41d390a7
ILT
9361999-07-21 H.J. Lu <hjl@gnu.org>
937
938 * configure.tgt (mips*el-*-vxworks*): New target.
939
9401999-07-21 Brad M. Garcia <bgarcia@fore.com>
941
942 * configure.tgt (i[3456]86-*-vxworks*): New target.
943
7c83b342
DE
944Tue Jul 20 15:18:46 1999 Bob Manson <manson@charmed.cygnus.com>
945
946 * ldlang.c (lang_gc_sections): Only handle the start symbol
947 specially if there is one.
948
0ca63823
MM
949Mon Jul 19 14:19:14 1999 Mark P. Mitchell <mark@codesourcery.com>
950
951 * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
952 .MIPS.events and .MIPS.content handling.
953 * emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
954
e50d8076
NC
9551999-07-17 Nick Clifton <nickc@cygnus.com>
956
957 * ldlang.c (get_target): New function: Return true iff the
958 given target is the target being sought.
959 (stricpy): New function: Like strcpy but convert to lower
960 case as well.
961 (strcut): New function: Like strstr but remove the located
962 substring as well.
963 (name_compare): New function: Compute a compatability rating
964 for two target names.
965 (winner): New variable: Best target found by
966 closest_target_match() so far.
967 (closest_target_match): New function: Find the target which is
968 the closest match to the original target.
969 (get_first_input_target): New function: Find the target format
970 of the first of the linker's input file.
971 (open_output): Be more clever about deciding the output target
972 format.
973
e76d716a
RH
9741999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
975
976 * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
977
88659ef5
MM
978Thu Jul 15 15:55:15 1999 Mark P. Mitchell <mark@codesourcery.com>
979
980 * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6.
981
2844ed43
ILT
9821999-07-15 Ian Lance Taylor <ian@zembu.com>
983
984 * configure.in: Bump version number to 2.9.5.
985 * configure: Rebuild.
986
0eaf9820
RH
9871999-07-14 Richard Henderson <rth@cygnus.com>
988
989 * ldlang.c (wild_doit): Copy SEC_SHORT to output section.
990
991 * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
992 same order seen for the main sections. Add
993 OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
994
5d341b0e
AS
9951999-07-12 Andreas Schwab <schwab@suse.de>
996
49bdcdba
AS
997 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
998 structure initializations.
999
5d341b0e
AS
1000 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
1001 comma in initializer.
1002
87f2a346
ILT
10031999-07-11 Ian Lance Taylor <ian@zembu.com>
1004
1005 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1006 as appropriate. Fill in structure initializations.
1007
b90d1146
ILT
10081999-07-10 Ian Lance Taylor <ian@zembu.com>
1009
1010 * ldfile.c: Revert patch of 1999-07-08.
1011 (ldfile_try_open_bfd): If we are searching for the file, skip
1012 files with an incompatible architecture.
1013
6da0974a
NC
10141999-07-09 Nick Clifton <nickc@cygnus.com>
1015
1016 * scripttempl/armcoff.sc (OUTPUT_FORMAT): Include big endian and
1017 little endian formats.
1018
7a274639
NC
10191999-07-08 Felix Lee <flee@cygnus.com>
1020
1021 * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
1022
99f8f232
RH
10231999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
1024
1025 * ldfile.c (ldfile_open_file_search): Skip libraries made for
1026 incompatible architectures in the search path. Let the user know
1027 about any such skips.
1028
5c61c5ab
JL
1029Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
1030
1031 * configure.tgt (hppa*-linux-gnu*): New target.
1032
22c675a7
MM
10331999-07-07 Mark Mitchell <mark@codesourcery.com>
1034
1035 * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
1036 (eelf64bmip): New target.
1037 * Makefile.in: Regenerated.
1038 * configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
1039 * emulparams/elf64bmip.sh: New file.
1040
f11523b0
NC
10411999-07-05 Nick Clifton <nickc@cygnus.com>
1042
1043 * emultempl/pe.em (after_open): Abort if input format is ARM and
1044 output format is not.
1045 * emultempl/armcoff.em (after_open): Abort if input format is ARM
1046 and output format is not.
1047 * emultempl/armelf.em (after_open): Abort if input format is ARM
1048 and output format is not.
1049
39e878bf
ILT
10501999-07-02 Ian Lance Taylor <ian@zembu.com>
1051
1052 * ldlang.c: Revert change of 1999-06-23.
1053
dc831978
MM
10541999-06-30 Mark Mitchell <mark@codesourcery.com>
1055
1056 * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
1057 (eelf32bmipn32.c): New target.
1058 * Makefile.in: Regenerated.
1059 * configure.tgt (mips-sgi-irix6*): Make n32 the default
1060 emulation.
1061 * emulparams/elf32bmipn32.sh: New file.
1062
a0290afa
NC
10631999-06-28 Jim Pick <jim@jimpick.com>
1064
1065 * emultempl/armelf.em: Added code so that .xs linker scripts are
1066 called so that ARM shared libraries are built correctly.
1067
3dbf70a2
MM
10681999-06-22 Mark Mitchell <mark@codesourcery.com>
1069
1070 * ldmain.c (main): Initialize link_info.init_function and
1071 link_info.fini_function.
1072 * lexsup.c (OPTION_INIT): New macro.
1073 (OPTION_FINI): Likewise.
1074 (ld_options): Add descriptions for them.
1075 (parse_args): Handle them.
1076
7b9eea34
ILT
10771999-06-23 Ian Lance Taylor <ian@zembu.com>
1078
1079 * ldlang.c (section_already_linked): Only discard link once
1080 sections if we are building constructors.
1081
5c6bbab8
NC
10821999-06-22 Nick Clifton <nickc@cygnus.com>
1083
1084 * ld.texinfo (Location Counter): Describe behaviour of
1085 location counter inside section statements.
1086
a8e53fb0
MM
10871999-06-20 Mark Mitchell <mark@codesourcery.com>
1088
1089 * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
1090 controlling whether or not .rodata is in the data segment or the
1091 text segment.
1092
6f798e5c
NC
10931999-06-18 Nick Clifton <nickc@cygnus.com>
1094
1095 * emultempl/pe.em: Add new command line switch --thumb-entry.
1096 * emultempl/armelf.em: Add new command line switch --thumb-entry.
1097 * emultempl/armcoff.em: Add new command line switch --thumb-entry.
1098 * ld.texinfo: Document new ARM command line switch: --thumb-entry.
ba2be581
RH
10991999-06-20 H.J. Lu <hjl@gnu.org>
1100
1101 * configure.in (all_libpath): Accumulate across all enabled targets.
1102
f97f7300
RH
1103Sun Jun 20 14:10:33 1999 Richard Henderson <rth@cygnus.com>
1104
1105 * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
1106 DEFAULT_EMULATION.
1107 * emultempl/elf32.em: Likewise.
1108 * emultempl/sunos.em: Likewise.
1109
3336653a
RH
1110Fri Jun 18 15:24:48 1999 Richard Henderson <rth@cygnus.com>
1111
1112 * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
1113 * configure.in (all_emuls): Add targ_extra_libpath.
1114 (all_libpath, EMULATION_LIBPATH): Define.
1115 * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
1116 * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
1117
308b1ffd
AS
1118Mon Jun 14 10:38:36 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1119
1120 * ld.texinfo: Fix use of @item vs. @itemx.
1121
aa8804e4
ILT
11221999-06-13 Ian Lance Taylor <ian@zembu.com>
1123
1124 From Thomas Zenker <thz@lennartz-electronic.de>:
1125 * ldgram.y (attributes_opt): Use attributes_list instead of NAME.
1126 (attributes_list, attributes_string): New nonterminals.
1127 * ldlang.c (lang_set_flags): Add invert parameter. Don't handle
1128 '!'.
1129 * ldlang.c (lang_set_flags): Update declaration.
1130
2a275620
ILT
11311999-06-12 Ian Lance Taylor <ian@zembu.com>
1132
1133 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
1134 entry_symbol as an undefined symbol when doing a relocateable
1135 link. From <jeffdb@goodnet.com>.
1136
2641b0c9
ILT
11371999-06-12 David O'Brien <obrien@freebsd.org>
1138
1139 * configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
1140
f75692fe
NC
11411999-06-09 Nick Clifton <nickc@cygnus.com>
1142
1143 * lexsup.c (help): Restore previous format of output.
1144
434d1125
NC
11451999-06-04 Nick Clifton <nickc@cygnus.com>
1146
1147 * emultempl/pe.em: If compiling for arm_epoc_pe rename
1148 interworking functions to avoid a name space clash.
1149
4305932a
RH
11501999-06-02 Jason Merrill <jason@yorick.cygnus.com>
1151
1152 * scripttempl/v850.sc: Add initp support.
1153
46d23b7c
NC
11541999-06-02 Nick Clifton <nickc@cygnus.com>
1155
1156 * emultempl/pe.em: Rename global arm interworking functions to
1157 avoid name collision when all targets BFD is built.
1158
cd785be6
RH
11591999-05-30 Cort Dougan <cort@attis.cs.nmt.edu>
1160
1161 * Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
1162 * configure.tgt (powerpc-*-linux-gnu): Use it.
1163 * emulparams/elf32ppclinux.sh: New file.
1164
511ab9e9
ILT
11651999-05-29 Ian Lance Taylor <ian@zembu.com>
1166
1167 * ld.texinfo (Options): Clarify that options which refer to files
1168 must be properly ordered.
1169
7ca69e9e
NC
11701999-05-29 Nick Clifton <nickc@cygnus.com>
1171
1172 * emultempl/armelf.em (..._parse_args): New function: Parse
1173 command line option. Accept arm-elf specific command line option
1174 '-p' or '--no-pipeline-knowledge'.
1175 (..._list_options): New function: Describe the new command line
1176 option.
1177 (..._before_allocation): Pass the value of the new variable
1178 no_pipeline_knowledge to bfd_elf32_arm_process_before_allocation.
1179
1180 * emultemp/armelf_oabi.em (..._before_allocation): Pass zero as
1181 the third parameter to bfd_elf32_arm_process_before_allocation.
1182
b3043ee4
NC
11831999-05-28 Nick Clifton <nickc@cygnus.com>
1184
1185 * lexsup.c (help): Minor formatting changes.
1186
0ccf812a
ILT
11871999-05-28 Martin Dorey <mdorey@madge.com>
1188
1189 * configure.tgt (i960-*-elf*): New target.
1190 * emulparams/elf32_i960.sh: New file.
1191 * Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
1192 (eelf32_i960.c): New target.
1193 * Makefile.in: Rebuild.
1194
a13cba0d
NC
11951999-05-26 Nick Clifton <nickc@cygnus.com>
1196
1197 * emulparams/armelf_oabi.sh (TEMPLATE_NAME): Set to armelf_oabi.
1198
31ce0628
NC
11991999-05-24 Philip Blundell <philb@gnu.org>
1200
1201 * emultempl/armelf.em (before_parse): Set config.dynamic_link and
1202 config.has_shared.
1203 * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
1204 * emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise.
1205
1220a729
NC
12061999-04-13 Philip Blundell <philb@gnu.org>
1207
1208 * emultempl/armelf.em: Add definitions related to shared objects
1209 (copied from elf32.em).
1210
3699964a
AS
1211Wed May 19 12:44:26 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1212
1213 * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
1214 earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
1215 * Makefile.in: Regenerated.
1216
06f2f02a
NC
12171999-05-16 Nick Clifton <nickc@cygnus.com>
1218
1219 * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Define.
1220 (TEMPLATE_NAME): Define.
1221
de24ad21
RH
1222Thu May 13 09:48:09 1999 Joel Sherrill (joel@OARcorp.com)
1223
1224 * configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
1225 (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
1226
c6c37250
DD
12271999-05-10 DJ Delorie <dj@cygnus.com>
1228
1229 * scripttempl/pe.sc: Specify the output arch, which Ian says is
1230 the Right Thing to do.
1231
1232 * emultempl/pe.em: various changes to parameterize the
1233 target-specific information.
1234 (gld_i386pe_after_open): Detect and fix MS import libraries
1235 by renaming the member objects (which are all named the same).
1236
1237 * pe-dll.c: various changes to parameterize the target-specific
1238 information.
1239 (generate_reloc): support relocs more generically to allow for
1240 expansion.
1241 (pe_exe_build_sections): new; used to add .relocs to .exes
1242 (pe_exe_fill_sections): ditto
1243
626e0105
CM
12441999-05-10 Catherine Moore <clm@cygnus.com>
1245
1246 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
1247 Check for TARGET_IS_arm_epoc_pe.
1248 (gld_${EMULATION_NAME}_before_allocation): Likewise.
1249
4dec4d4e
RH
12501999-05-12 Anthony Green <green@cygnus.com>
1251
1252 * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
1253 output_section_callback, gc_section_callback): New functions for
1254 generic section walks.
1255 (wild, lang_gc_wild): Use walk_wild.
1256 (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
1257 walk_wild_file.
1258 (wild_section, lang_gc_wild_section): Deleted. Common logic moved
1259 to walk_fild_section. Unique logic moved into callbacks
1260 output_section_callback and gc_section_callback.
1261
252b5132
RH
12621999-04-26 Tom Tromey <tromey@cygnus.com>
1263
1264 * aclocal.m4, configure: Updated for new version of libtool.
1265
252b5132
RH
12661999-04-12 Philip Blundell <pb@nexus.co.uk>
1267
1268 * emulparams/armelf_linux.sh: New file. Support for ARM
1269 GNU/Linux ELF ABI.
1270 * emulparams/armelf_linux26.sh: New file. APCS-26 version of above.
1271 * configure.tgt: For arm*-*-linux-gnu*, set default emulation to
1272 `armelf_linux', and also include `armelf_linux26' and `armelf'.
1273 * Makefile.am: Add rules to make earmlinux.c and earmlinux26.c.
1274 (ALL_EMULATIONS): Add earmlinux.o and earmlinux26.o.
1275 * Makefile.in: Regenerate.
1276
12771999-04-11 Richard Henderson <rth@cygnus.com>
1278
1279 * Makefile.am (ALL_EMULATIONS): Add elf_i386_be.o.
1280 * configure.tgt (i[3456]86-*-beos*): Use it.
1281 * emulparams/elf_i386_be.sh: New file.
1282 * Makefile.in: Rebuild.
1283
1284 * configure.in (environ): Detect declaration.
1285 * ldmain.c (main): Don't declare environ.
1286 * sysdep.h (environ): Declare if needed.
1287 * configure, config.in: Rebuild.
1288
12891999-04-11 Richard Henderson <rth@cygnus.com>
1290
1291 * ldgram.y (ldgram_vers_current_lang): New.
1292 (vers_defns): Accept `extern "lang" { }' syntax.
1293 * ldlex.l (vers_node_nesting): New.
1294 (V_IDENTIFIER): Accept . and $ in symbols.
1295 (VERS_NODE): Accept `extern "lang" { }' tokens. Nest VERS_NODE states.
1296 * ldlang.c (lang_new_vers_regex): New `lang' argument. Update callers.
1297 (lang_vers_match_lang_c): New function.
1298 (lang_vers_match_lang_cplusplus): New function.
1299 (lang_vers_match_lang_java): New function.
1300 (lang_do_version_exports_section): Fix iteration. Don't free
1301 section contents, as it is still in use by the patterns.
1302
13031999-04-10 Richard Henderson <rth@cygnus.com>
1304
1305 * ldmain.c (main): Init link_info.no_undefined.
1306 * lexsup.c: Add command-line option --no-undefined.
1307
252b5132
RH
13081999-04-06 Ian Lance Taylor <ian@zembu.com>
1309
1310 * ld.h (LC_MESSAGES): Never define.
1311 * ldmain.c (main): Don't pass LC_MESSAGES to setlocale if the
1312 system does not define it.
1313
13141999-04-06 H.J. Lu <hjl@gnu.org>
1315
1316 * ldmain.h (demangling): Declare.
1317 * ldmain.c (demangling): New global variable.
1318 (main): Initialize demangling.
1319 * ldmisc.c (vfinfo): Don't demangle symbol if ! demangling.
1320 * lexsup.c (ld_options, parse_args): Handle --demangle and
1321 --no-demangle.
1322 * ld.texinfo, ld.1: Document --demangle/--no-demangle.
1323
1324 * ldlex.l (V_IDENTIFIER): Allow '.' in symbol.
1325
13261999-04-05 Chris Torek <torek@BSDI.COM>
1327
1328 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Check that
1329 a shared library really exists, avoiding broken symlinks.
1330
1331 * ldfile.c (ldfile_open_file): Generate a better error message if
1332 we can't find a -l file.
1333
13341999-04-05 DJ Delorie <dj@cygnus.com>
1335
1336 * configure.tgt (i386-*-pe): add targ_extra_ofiles for other PE
1337 targets (i386-pe and i386-winnt)
1338
13391999-04-04 Ian Lance Taylor <ian@zembu.com>
1340
1341 * deffilep.y: Include "sysdep.h" and "ldmisc.h".
1342 (def_file_add_directive): Change return type to void. Remove
1343 unused locals sh_reserve, sh_commit, and j.
1344 (def_ungetc): Always return a value.
1345 (def_lex): Correct parenthesization of || within &&.
1346 * deffile.h (def_file_add_directive): Update declaration.
1347 * pe-dll.c: Include <time.h>, <ctype.h>, and "ldemul.h".
1348 (generate_edata): Remove unused local i.
1349 (quoteput): Add cast to avoid warning.
1350 (pe_dll_generate_def_file): Fix type in format string.
1351 (quick_symbol): Remove unused local blhe.
1352 (pe_dll_generate_implib): Add cast to avoid warning.
1353 (pe_process_import_defs): Remove unused locals ar_head, ar_tail,
1354 and n.
1355 (pe_as16): Comment out.
1356
13571999-04-04 Don Bowman <don@pixsci.com>
1358
1359 * configure.tgt: Add mips*-*-vxworks* target.
1360
13611999-03-31 Nick Clifton <nickc@cygnus.com>
1362
1363 * Makefile.in (ALL_EMULATIONS): Add earm_epoc_pe.o
1364 Add build rule and dependencies for earm_epoc_pe.c.
1365
1366 * emulparams/arm_epoc_pe.sh: New file.
1367
1368 * configure.tgt: Add 'targ_extra_ofiles' for ARM based PE
1369 targets.
1370
13711999-03-31 Philip Blundell <pb@nexus.co.uk>
1372
1373 * configure.tgt: Match `arm*-*-linux-gnu*' not
1374 `armv*-*-linux-gnu'.
1375
13761999-03-26 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1377
1378 * scripttempl/elf.sc: Put the .eh_frame and .gcc_except_table
1379 sections in the data segment.
1380
1381Fri Mar 26 12:05:51 1999 Catherine Moore <clm@cygnus.com>
1382
1383 * ld.h (wildcard_spec): Add exclude_name.
1384 * ldgram.y (EXCLUDE_FILE): New token.
1385 (wildcard_spec): Set exclude_name.
1386 (file_NAME_list): Recognize EXCLUDE_FILE.
1387 * ldlang.c (wild_section): Check for excluded files.
1388 (print_wild_statement): Print excluded files.
1389 (lang_add_wild): New argument exclude_filename.
1390 Set exclude_filename.
1391 * ldlang.h (lang_wild_statement_type): Add exclude_filename.
1392 * ldlex.l: New token EXCLUDE_FILE.
1393 * mri.c (mri_draw_tree): Add argument to lang_add_wild.
1394 * scripttempl/elf.sc (CTOR, DTOR): Exclude crtend.o from ctor wildcard.
1395 Reorder sorted and unsorted ctors.
1396 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
1397 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
1398 * scripttempl/elfppc.sc (CTOR, DTOR): Likewise.
1399
14001999-03-26 Nick Clifton <nickc@cygnus.com>
1401
1402 * ldlang.c (lang_gc_sections): If entry_symbol is not defined,
1403 default to "start".
1404
14051999-03-03 Nick Clifton <nickc@cygnus.com>
1406
1407 * scripttempl/elf.sc: Add explicit placements for the .eh_frame
1408 and .gcc_except_table sections.
1409
1410Wed Mar 3 09:13:34 1999 Catherine Moore <clm@cygnus.clm>
1411
1412 * scripttempl/elf.sc: Remove .end.ctors and .end.dtors
1413 sections. Reorder .ctors section entries.
1414 * scripttempl/elfd10v.sc: Likewise.
1415 * scripttempl/elfd30v.sc: Likewise.
1416 * scripttempl/elfppc.sc: Likewise.
1417
14181999-02-26 Jim Lemke <jlemke@cygnus.com>
1419
1420 * ldmain.c (main): Wrong error msg for -r and --mpc860c0.
1421
14221999-02-25 Nick Clifton <nickc@cygnus.com>
1423
1424 * ldlang.c (lang_check_section_addresses): Remove extraneous
1425 backslash.
1426
1427Thu Feb 25 15:07:24 1999 Catherine Moore <clm@cygnus.com>
1428
1429 * scripttempl/elf.sc: Don't gather .ctor and .dtor sections
1430 for relocateable links.
1431 * scripttempl/elfd10v.sc: Likewise.
1432 * scripttempl/elfd30v.sc: Likewise.
1433 * scripttempl/elfppc.sc: Likewise.
1434
14351999-02-22 Jim Lemke <jlemke@cygnus.com>
1436
1437 * ldint.texinfo: remove extraneous right brace.
1438 * ldmain.c (main): initialize and check option "mpc860c0".
1439 * lexsup.c (ld_options, parse_args): add option "mpc860c0".
1440
1441Wed Feb 17 12:10:06 1999 Stan Cox <scox@cygnus.com>
1442
1443 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Remove special
1444 .reginfo section handling.
1445 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Likewise.
1446 * emulparams/elf32elmip.sh (INITIAL_READONLY_SECTIONS): Removed
1447 * emulparams/elf32ebmip.sh (INITIAL_READONLY_SECTIONS): Removed
1448
14491999-02-17 Nick Clifton <nickc@cygnus.com>
1450
1451 Patch from: Scott Bambrough <scottb@corelcomputer.com>
1452
1453 * configure.tgt: Added armv*-*-linux-gnu to $targ_emul
1454 recognition.
1455
1456Wed Feb 17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1457
1458 * emultempl/armelf_oabi.em
1459 (bfd_elf32_arm_allocate_interworking_sections,
1460 bfd_elf32_arm_get_bfd_for_interworking,
1461 bfd_elf32_arm_process_before_allocation): Define them to use the
1462 old ABI versions of the functions.
1463
1464Tue Feb 16 16:48:19 1999 Ian Lance Taylor <ian@cygnus.com>
1465
1466 * configure.in: Change AC_PREREQ to 2.13. Change AM_PROG_INSTALL
1467 to AC_PROG_INSTALL. Change AM_EXEEXT to AC_EXEEXT.
1468 * Makefile.am (earmelf_oabi.c): Changes spaces to tab.
1469 * acconfig.h: Remove.
1470 * aclocal.m4: Rebuild.
1471 * configure: Rebuild.
1472 * Makefile.in: Rebuild.
1473
1474Mon Feb 15 18:21:48 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
1475
1476 * ldexp.h (struct etree_value_type): Change valid onto valid_p.
1477
1478 * ldexp.c (new_abs): Ditto.
1479 (new_rel, new_rel_from_section, fold_binary, invalid, fold_name,
1480 exp_fold_tree, exp_binop, exp_trinop, stat_alloc,
1481 exp_get_abs_int): Ditto
1482
1483 * ldlang.c (print_assignment, lang_size_sections,
1484 lang_do_assignments): Ditto.
1485
14861999-02-11 Nick Clifton <nickc@cygnus.com>
1487
1488 * ldlang.c (lang_check_section_addresses): New function: Check
1489 addresses assigned to section for overlaps.
1490 (lang_process): Call lang_check_section_addresses if suitable.
1491
1492 * ld.h: Add new boolean field to args_type structure:
1493 'check_section_addresses'.
1494
1495 * ldmain.c: Initialise check_section_addresses field to true.
1496
1497 * lexsup.c: Add new command line options '--no-check-sections' and
1498 '--check-sections'.
1499
1500 * ld.texinfo: Document new command line options '--check-sections'
1501 and '--no-check-sections'.
1502
15031999-02-08 Nick Clifton <nickc@cygnus.com>
1504
1505 * configure.tgt: Add support for StrongARM target.
1506
1507Wed Feb 3 19:41:01 1999 Ian Lance Taylor <ian@cygnus.com>
1508
1509 * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once. Check for
1510 an owner of a section before using it to look up a reloc type.
1511 Don't set SEC_KEEP for the absolute section.
1512
1513Mon Feb 1 11:39:46 1999 Catherine Moore <clm@cygnus.com>
1514
1515 * Makefile.am (earmelf_oabi.o): New.
1516 * Makefile.in: Regenerate.
1517 * configure.tgt (arm-*-oabi): New.
1518 (thumb-*-oabi): New.
1519 * emulparams/armelf_oabi.sh: New.
1520 * emultempl/armelf_oabi.em: New.
1521
15221999-01-31 17:57:31 1998 Michael Meissner <meissner@cygnus.com>
1523
1524 * scripttempl/elfppc.sc: Add support for -fleading-underscores
1525 switch in all linker generated symbols.
1526
1527 * configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
1528 powerpc{,le}-*-eabi.
1529
1530Wed Jan 20 17:01:48 1999 Ian Lance Taylor <ian@cygnus.com>
1531
1532 * configure.tgt (i[3456]86-*-solaris2*): New target. From Pavel
1533 Roskin <pavel_roskin@geocities.com>.
1534
15351999-01-19 Nick Clifton <nickc@cygnus.com>
1536
1537 * ldlang.c (lang_size_sections): Count loadable sections as
1538 contributing to the size of the current segment.
1539
15401999-01-15 Nick Clifton <nickc@cygnus.com>
1541
1542 * ldlang.c (lang_size_sections): Only update the current
1543 address of a region if the section just placed into it is an
1544 allocated section.
1545
15461999-01-12 Nick Clifton <nickc@cygnus.com>
1547
1548 * Makefile.am: Replace efr30.o with eelf32fr30.o.
1549 * Makefile.in: Regenerate.
1550
1551 * configure.tgt: Replace fr30 with elf32fr30.
1552
1553 * emulparams/elf32fr30.sh: New file: Replaces fr30.sh, and uses
1554 generic elf.sc script. Also replaces the .stack section with a
1555 user definable symbol __stack.
1556
15571999-01-11 Nick Clifton <nickc@cygnus.com>
1558
1559 * scripttempl/fr30.sc: Fill .init and .fini sections with NOP
1560 pattern.
1561
15621999-01-03 Ken Raeburn <raeburn@cygnus.com>
1563
1564 * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU,
1565 HOSTING_CRT0, HOSTING_LIBS; the test suite can extract them from
1566 configure.host and configure.tgt now.
1567 * Makefile.in: Rebuild.
1568
15691998-12-27 Ulrich Drepper <drepper@cygnus.com>
1570
1571 * lexsup.c (parse_args, case OPTION_RPATH): Avoid adding duplicate
1572 elements to rpath.
1573
1574Thu Dec 10 11:12:28 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1575
1576 * Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
1577 (ALL_EMUL_EXTRA_OFILES): New variable. Put them here instead.
1578 * configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
1579 if configuring with all targets.
1580 * configure, Makefile.in, aclocal.m4: Rebuild.
1581
1582 * emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
1583 (pe_dll_do_default_excludes): Removed, unused.
1584 (pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
1585 pe_dll_stdcall_aliases): Don't initialize them, this file may be
1586 compiled more than once.
1587 * pe-dll.c (pe_def_file, pe_dll_export_everything,
1588 pe_dll_do_default_excludes, pe_dll_kill_ats,
1589 pe_dll_stdcall_aliases): Define and initialize them here instead.
1590 (generate_reloc): Fix allocation of reloc_addresses array to use
1591 bfd_vma instead of unsigned long. Fix element size in qsort call.
1592 (reloc_sort): Compare pointers to bfd_vma instead of unsigned
1593 long.
1594
1595Mon Dec 7 21:10:09 1998 J.J. van der Heijden <j.j.vanderheijden@student.utwente.nl>
1596
1597 * configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
1598 files.
1599
1600Sun Dec 6 16:33:33 1998 Ian Lance Taylor <ian@cygnus.com>
1601
1602 * configure.tgt (m68*-*-gnu*): New target. From Aymeric Vincent
1603 <aymeric.vincent@emi.u-bordeaux.fr>.
1604
16051998-12-04 Nick Clifton <nickc@cygnus.com>
1606
1607 * emulparams/fr30.sh (TEXT_START_ADDR): Change TEXT_START_ADDR
1608 from 0x100000 to 0x10000 so that it fits in 20 bits.
1609
1610Sat Nov 28 22:32:20 1998 Ian Lance Taylor <ian@cygnus.com>
1611
1612 * ldemul.h (ldemul_recognized_file): Declare.
1613
1614Sat Nov 28 22:30:55 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1615
1616 * ldlang.c (lang_add_wild): Don't pretend that there is an input
1617 file if the filename is a wildcard pattern.
1618
16191998-11-25 DJ Delorie <dj@cygnus.com>
1620
1621 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
1622 * ldemul.c (ldemul_recognized_file): new function, new hook
1623 * ldint.texinfo: document new hook.
1624 * ldlang.c (load_symbols): call recognized_hook for all objects we
1625 do recognize, in case the emulation needs to handle them
1626 specially. PE DLLs use this.
1627 * pe-dll.c (pe_dll_generate_def_file): take out hack and debug
1628 printfs
1629 * emultempl/pe.em (gld_i386_recognized_file): new function
1630 (gld_i486_unrecognized_file): take out hack
1631
16321998-11-23 DJ Delorie <dj@cygnus.com>
1633
1634 * pe-dll.c (fill_edata): fill in timestamp
1635 (make_head): name object files sequentially to ensure
1636 they link in the right order.
1637 (make_tail): same here
1638 (pe_process_import_defs): use sequential names for bfds to ensure
1639 proper link order.
1640 (pe_implied_import_dll): new function; handles linking directly
1641 against DLLs by simulating IMPORTS directives. * emultempl/pe.em
1642 (gld_i386pe_before_parse): hack bfd to not recognize .dll files
1643 via bfd_pe_dll_not_recognized_hack
1644
16451998-11-23 DJ Delorie <dj@cygnus.com>
1646
1647 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
1648 pe_dll_add_excludes
1649
1650Mon Nov 23 14:36:18 1998 Nick Clifton <nickc@cygnus.com>
1651
1652 * emultempl/pe.em (after_parse): Only create an undefined entry
1653 symbol if one has been specified.
1654
16551998-11-23 DJ Delorie <dj@cygnus.com>
1656
1657 * emultempl/pe.em (gld_i386pe_after_open): call
1658 pe_process_import_defs
1659 * pe-dll.c (pe_dll_generate_def_file): calculate BASE from
1660 pe_data, only print if actually set. Print version only if
1661 set.
1662 (save_relocs): save relocs for both input and output.
1663 (make_one): support internal/external different names.
1664 (pe_dll_generate_implib): support new make_one
1665 (pe_process_import_defs): new function; handles IMPORT
1666 directives in .def files.
1667
1668Fri Nov 20 13:06:49 1998 Nick Clifton <nickc@cygnus.com>
1669
1670 * ldmisc.c (vfinfo): Cope with empty symbol names.
1671
1672Thu Nov 19 13:31:15 1998 Nick Clifton <nickc@cygnus.com>
1673
1674 * scripttempl/pe.sc: Add provision of '_end' symbol.
1675
1676Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
1677
1678 * configure.tgt: change refs from cygwin32* to cygwin*.
1679 * aclocal.m4: regenerate
1680 * configure.in: don't need to call AM_CYGWIN32.
1681 * configure: regenerate
1682
1683Mon Nov 16 22:14:07 1998 DJ Delorie <dj@cygnus.com>
1684
1685 * emultempl/pe.em (gld_i386_finish): generate import library
1686 * deffile.h: add hint member.
1687 * pe-dll.c (pe_dll_generate_implib): New function with helpers;
1688 generates the import library directly from the export table.
1689 (fill_edata): remember the actual hint for the import library.
1690
1691Sat Nov 14 14:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
1692
1693 * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>.
1694
1695Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
1696
1697 * po/ld.pot: Regenerated.
1698 * po/POTFILES.in: Regenerated.
1699 * configure: Regenerated.
1700 * aclocal.m4: Regenerated.
1701 * Makefile.in: Regenerated.
1702
1703Wed Nov 11 18:10:15 1998 DJ Delorie <dj@cygnus.com>
1704
1705 * pe-dll.c (generate_reloc): don't output PE relocs for sections
1706 that won't be loaded.
1707
1708Wed Nov 11 13:44:54 1998 DJ Delorie <dj@cygnus.com>
1709
1710 * pe-dll.c (fill_edata): don't strip underscores
1711
1712Tue Nov 10 21:28:19 1998 DJ Delorie <dj@cygnus.com>
1713
1714 * ld.texinfo: added i386pe option summary
1715
1716Tue Nov 10 17:53:17 1998 DJ Delorie <dj@cygnus.com>
1717
1718 * pe-dll.c (process_def_file): properly note undefined exported
1719 symbols, clean up old code.
1720 (pe_dll_generate_def_file): don't crash if pe_def_file is NULL
1721 * emultempl/pe.em (gld_i386_parse_args): add
1722 (en/dis)able-stdcall-fixups
1723 (pe_fixup_stdcalls): warn about stdcall fixups
1724 (gld_i386_unrecognized_file): make exported symbols undefs so that
1725 archive members get pulled in
1726
1727Tue Nov 10 14:50:51 1998 Catherine Moore <clm@cygnus.com>
1728
1729 * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
1730 .fini, .dtors and .ctors. Add .data and .text
1731 wildcards to support section garbage collection.
1732
1733Mon Nov 9 22:52:50 1998 DJ Delorie <dj@indy.delorie.com>
1734
1735 * deffilep.y: properly handle relocs with multiple def_files,
1736 cache import module names
1737
1738Mon Nov 9 22:44:58 1998 DJ Delorie <dj@cygnus.com>
1739
1740 * pe-dll.c (process_def_file): don't assume exports won't move
1741 during a realloc
1742
1743Mon Nov 9 16:41:30 1998 DJ Delorie <dj@cygnus.com>
1744
1745 * pe-dll.c: New file; direct support for PE DLLs
1746 * deffile.h: New file; direct support for PE DLLs
1747 * deffilep.y: New file; direct support for PE DLLs
1748 * emultempl/pe.em: add direct support for PE DLLs
1749 * configure.tgt: allow target-specific extra files
1750 * configure.in: allow target-specific extra files
1751 * ldlang.c (lang_add_assignment): return the assignment so that
1752 one can change the value later based on the object files (pe-dll
1753 DEF files do this)
1754 * ldint.texinfo: add section for emulation walkthrough
1755 * Makefile.am: add new files and target-specific extra files
1756 * emultempl/pe.em (gld_i386_list_options): list dll-specific
1757 options.
1758 * pe-dll.c (process_def_file): auto-export everything if
1759 nothing is otherwise exported.
1760
1761Wed Nov 4 16:39:18 1998 Nick Clifton <nickc@cygnus.com>
1762
1763 * Makefile.am: Add support for FR30 target.
1764 * configure.tgt: Add support for FR30 target.
1765 * Makefile.in: Regenerate.
1766 * emulparams/fr30.sh: New file.
1767 * scripttemp/fr30.sc: New file.
1768
1769Mon Nov 2 14:47:15 1998 Catherine Moore <clm@cygnus.com>
1770
1771 * ldmain.c (main): Don't report error for dynamic links and
1772 --gc-sections.
1773
17741998-10-26 16:05 Ulrich Drepper <drepper@cygnus.com>
1775
1776 * lexsup.c (ld_options): Change text of -O to Optimize output file".
1777 (parse_args): Set link_info.optimize based on -O argument.
1778 * ldmain.c (main): Initialize link_info.optimze to false.
1779 * ld.texinfo: Describe -O option.
1780 * ld.1: Likewise.
1781
1782Mon Oct 12 14:29:56 1998 Nick Clifton <nickc@cygnus.com>
1783
1784 * scripttempl/v850.sc: Move .sbss and .scommon sections into their
1785 own segment, so that they can be next to the .bss section and so
1786 initialised by the same piece of code.
1787
1788Fri Oct 9 15:59:52 1998 Catherine Moore <clm@cygnus.com>
1789
1790 * scripttempl/elf.sc: Merge .sdata.* etc sections.
1791 * ldctor.c (ldctor_build_sets): Set SEC_KEEP for
1792 ctor sections.
1793
1794Mon Oct 5 09:40:43 1998 Catherine Moore <clm@cygnus.com>
1795
1796 * ldmain.c (main): Error if --gc-sections and
1797 dyanmic linking.
1798 * scripttempl/v850.sc: Add KEEP attribute to .init,
1799 .fini, .dtors and .ctors. Add .data and .text
1800 wildcards to support section garbage collection.
1801
1802Wed Sep 30 11:19:15 1998 Nick Clifton <nickc@cygnus.com>
1803
1804 * scripttempl/v850.sc: Rename .call_table section to
1805 .call_table_data and create a new section called
1806 .call_table_text.
1807
1808Sun Sep 20 00:43:26 1998 Ian Lance Taylor <ian@cygnus.com>
1809
1810 * scripttempl/elf.sc: Add alignment at the end of the .bss
1811 section, so that it is included in the memsize of the segment.
1812
1813Fri Sep 18 13:42:42 1998 Catherine Moore <clm@cygnus.com>
1814
1815 * emultempl/elf32.em (gld_place_orphan): Don't process for
1816 sections with SEC_EXCLUDE flag.
1817
1818Fri Sep 4 09:24:02 1998 Nick Clifton <nickc@cygnus.com>
1819
1820 * emulparams/d30velf.sh (TEXT_SIZE): Increased to 2000K.
1821 (DATA_SIZE): Increased to 2000K.
1822
1823Thu Sep 3 17:30:58 1998 Richard Henderson <rth@cygnus.com>
1824
1825 * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
1826
1827Mon Aug 31 01:06:00 1998 Catherine Moore <clm@cygnus.com>
1828
1829 * Makefile.am: Change armelf.sc to elf.sc
1830 * Makefile.in: Regenerate.
1831
1832Mon Aug 31 11:12:04 1998 Catherine Moore <clm@cygnus.com>
1833
1834 * emulparams/armelf.sh: Change SCRIPT_NAME to
1835 elf. Change TEXT_START_ADDR to 0x8000. Define
1836 OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
1837 OTHER_BSS_END_SYMBOLS.
1838 * scripttempl/elf.sc: Modify to use
1839 OTHER_BSS_END_SYMBOLS.
1840 * scripttempl/elfarm.sc: Remove file.
1841
1842Tue Aug 18 12:05:34 1998 Catherine Moore <clm@cygnus.com>
1843
1844 * emultempl/armelf.em (gld_armelf_before_allocation):
1845 Add bfd_ prefix to elf32_arm_process_before_allocation
1846 and elf32_arm_allocate_interworking_sections.
1847 (gld_armelf_after_open): Add bfd_ prefix to
1848 elf32_arm_get_bfd_for_interworking.
1849
1850Fri Aug 14 15:34:29 1998 Ian Lance Taylor <ian@cygnus.com>
1851
1852 * Makefile.am: Rebuild dependencies.
1853 * Makefile.in: Rebuild.
1854
1855 * ldgram.y: Include "ldctor.h".
1856 (statement): Accept SORT around CONSTRUCTORS.
1857 * ldctor.c: Include <ctype.h>.
1858 (constructors_sorted): New global variable.
1859 (ctor_prio, ctor_cmp): New static functions.
1860 (ldctor_build_sets): Sort constructors if requested.
1861 * ldctor.h (constructors_sorted): Declare.
1862 * ldlang.c (print_statement): Print sorted CONSTRUCTORS
1863 correctly.
1864 * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
1865 * ld.texinfo (Output Section Keywords): Document SORT
1866 (CONSTRUCTORS).
1867
1868Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>
1869
1870 * emulparams/armelf.sh: Define TEMPLATE_NAME to armelf.
1871 * scripttempl/elfarm.sc: Include .glue_7t and .glue7
1872 sections.
1873 * emultempl/armelf.em: New file.
1874
1875Thu Aug 13 12:52:45 1998 H.J. Lu <hjl@gnu.org>
1876
1877 * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
1878 * Makefile.in: Rebuild.
1879
1880Tue Aug 11 16:17:01 1998 Catherine Moore <clm@cygnus.com>
1881
1882 * scripttempl/elfarm.sc: Change text start address
1883 back to zero.
1884
1885Tue Aug 11 10:01:12 1998 Jeffrey A Law (law@cygnus.com)
1886
1887 * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
1888 * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
1889
1890Sun Aug 9 20:31:27 1998 Catherine Moore <clm@cygnus.com>
1891
1892 * scripttempl/elfarm.sc: Set text start address to
1893 0x8000. Add __bss_end definition.
1894
1895Sat Aug 1 11:47:37 1998 Catherine Moore <clm@cygnus.com>
1896
1897 * scripttempl/elfarm.sc: New file.
1898 * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
1899
1900Fri Jul 31 15:56:16 1998 Catherine Moore <clm@cygnus.com>
1901
1902 * emulparams/armelf.sh: New file.
1903 * configure.tgt: Recognize thumb-elf and arm-elf.
1904 * Makefile.am (earmelf.o): New.
1905 * Makefile.in: Rebuild.
1906
1907Fri Jul 24 12:00:57 1998 Ian Lance Taylor <ian@cygnus.com>
1908
1909 * Makefile.am (install-exec-local): Don't remove the file before
1910 checking whether $(bindir) == $(tooldir)/bin. From Maciej
1911 W. Rozycki <macro@ds2.pg.gda.pl>.
1912 * Makefile.in: Rebuild.
1913
1914 * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
1915
1916Thu Jul 23 11:15:12 1998 Ian Lance Taylor <ian@cygnus.com>
1917
1918 * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
1919 alignment of end symbol.
1920 * scripttempl/elf.sc: Likewise.
1921 * emulparams/sun4.sh (ALIGNMENT): Define.
1922 * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
1923 * ldint.texinfo (emulation parameters): Document ALIGNMENT.
1924
1925 * lexsup.c (parse_args): Add missing break statement.
1926
1927 * ldlang.c (lang_gc_sections_1): Add default case to switch to
1928 avoid warnings.
1929
1930Tue Jul 14 15:42:17 1998 Richard Henderson <rth@cygnus.com>
1931
1932 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
1933 * Makefile.am (ei386beos.o): New.
1934 * emulparams/i386beos.sh: New file.
1935 * emultempl/beos.em, scripttempl/i386beos.sc: New file.
1936
1937Tue Jul 14 15:35:42 1998 Richard Henderson <rth@cygnus.com>
1938
1939 * lexsup.c: New option --version-exports-section.
1940 * ld.h (struct args_type): Add version_exports_section.
1941 * ldlang.c (lang_do_version_exports_section): New function.
1942 (lang_process): Call it.
1943
1944Mon Jul 13 13:20:23 1998 Steve Chamberlain <sac@transmeta.com>
1945
1946 * ldlex.l: Accept ASSERT.
1947 * ldgram.y (exp): Add ASSERT_K case.
1948 * ldexp.h (node_type): Add etree_assert to node_class enum.
1949 (etree_type): Add assert_s field.
1950 (exp_assert): Declare.
1951 * ldexp.c (exp_fold_tree): Handle etree_assert.
1952 (exp_assert): New function.
1953 (exp_print_tree): Handle etree_assert.
1954 * ld.texinfo (Miscellaneous Commands): Document ASSERT.
1955
1956Wed Jul 8 14:03:12 1998 Ian Lance Taylor <ian@cygnus.com>
1957
1958 * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
1959 conflicts with system header files. Change all uses.
1960
1961 * Makefile.am (MAINTAINERCLEANFILES): Define.
1962 * Makefile.in: Rebuild.
1963
1964Tue Jul 7 18:03:22 1998 Ian Lance Taylor <ian@cygnus.com>
1965
1966 * Makefile.am (ldver.texi): New target.
1967 (ld.info, ld.dvi): Depend upon ldver.texi.
1968 * ld.texinfo: Include ldver.texi. Mention version number on title
1969 page and in top node.
1970 * Makefile.in: Rebuild.
1971
1972Mon Jul 6 14:55:13 1998 Ian Lance Taylor <ian@cygnus.com>
1973
1974 * configure.tgt (i[3456]86-*-solaris*): New target.
1975
1976Fri Jul 3 14:19:06 1998 Ian Lance Taylor <ian@cygnus.com>
1977
1978 * ldlang.c (wild_section): Don't get an assertion failure if the
1979 section is discarded.
1980
1981 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
1982 * emultempl/pe.em (sort_by_file_name): Remove.
1983 (sort_by_section_name): Remove.
1984 (sort_sections_1, sort_sections): Remove.
1985 (gld_${EMULATION_NAME}_before_allocation): Don't call
1986 sort_sections.
1987 (hold_section, hold_section_name): New static variables.
1988 (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
1989 (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good
1990 place to put the section. Align the section. Sort the input
1991 sections by name.
1992 (gld_${EMULATION_NAME}_place_section): New static function.
1993
1994 * ldlang.c (wild_sort): When sorting by file name, sort by archive
1995 name first.
1996
1997 * emultempl/pe.em (set_pe_subsystem): Don't call
1998 ldlang_add_undef.
1999 (gld_${EMULATION_NAME}_after_parse): New static function.
2000 (ld_${EMULATION_NAME}_emulation): Use new after_parse function
2001 rather than after_parse_default.
2002
2003 * ldgram.y (extern_name_list): Do not require symbols to be
2004 separated by commas.
2005 (ifile_p1): Add EXTERN.
2006 * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
2007 mode.
2008 * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
2009 (Miscellaneous Commands): Document EXTERN.
2010
2011Wed Jul 1 19:40:34 1998 Richard Henderson <rth@cygnus.com>
2012
2013 * ld.h (args_type): Add gc_sections.
2014 * ldgram.y (ldgram_had_keep, KEEP): New.
2015 (input_section_spec_no_keep): Rename from old input_section_spec.
2016 (input_section_spec): New. Recognize KEEP.
2017 * ldlang.c (wild_section): Handle keep sections.
2018 (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
2019 (lang_gc_sections_1, lang_gc_sections): New.
2020 (lang_process): Invoke lang_gc_sections.
2021 (lang_add_wild): Add keep argument. Update all callers.
2022 * ldlang.h (lang_wild_statement_struct): Add keep_sections.
2023 * ldlex.l (KEEP): Match it.
2024 * ldmain.c (main): Error on -r and --gc-sections.
2025 * lexsup.c: Add --gc-sections.
2026
2027 * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
2028 Mark startup sections with KEEP.
2029 * scripttempl/elfppc.sc: Likewise.
2030
2031 * ld.texinfo: Update for --gc-sections and KEEP.
2032
2033Wed Jul 1 15:21:20 1998 Ian Lance Taylor <ian@cygnus.com>
2034
2035 From Peter Jordan <pjordan@chla.usc.edu>:
2036 * scripttempl/i386go32.sc: Correct constructor handling for -u.
2037
2038Tue Jun 23 15:17:27 1998 Ian Lance Taylor <ian@cygnus.com>
2039
2040 * Makefile.am (install-data-local): Make ldscripts subdirectory.
2041 * Makefile.in: Rebuild.
2042
2043Tue Jun 23 15:17:04 1998 Mike Stump <mrs@wrs.com>
2044
2045 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
2046 with the program transform name.
2047 * Makefile.in: Rebuild.
2048
2049Sun Jun 21 23:55:16 1998 Jeffrey A Law (law@cygnus.com)
2050
2051 * ld.texinfo: Note that -relax may make symbolic debugging
2052 impossible on some platforms.
2053
2054Tue Jun 16 12:51:13 1998 Geoff Keating <geoffk@ozemail.com.au>
2055
2056 * Makefile.am (Makefile): Remove target.
2057 (config.status): New target.
2058 * Makefile.in: Rebuild.
2059
2060 * configure.host (powerpc*-*-linux-gnu*): New host.
2061
2062Fri Jun 12 17:38:07 1998 Doug Evans <devans@seba.cygnus.com>
2063
2064 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
2065
2066 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
2067 stack to 8MB.
2068
2069Fri Jun 12 19:33:17 1998 Ian Lance Taylor <ian@cygnus.com>
2070
2071 * Makefile.am (HFILES): Remove config.h.
2072 (EMULATION_OFILES, POTFILES): Move patch of May 14 from
2073 Makefile.in to Makefile.am.
2074 (earmcoff.c): Depend upon armcoff.em, not generic.em.
2075 * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
2076 ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
2077 * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
2078
2079Fri Jun 12 13:43:17 1998 Tom Tromey <tromey@cygnus.com>
2080
2081 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
2082 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2083
2084Tue Jun 9 09:36:48 1998 Nick Clifton <nickc@cygnus.com>
2085
2086 * ldlang.c (lang_finish): Add CONST type modifier to declaration
2087 of 'send'.
2088
2089Fri Jun 5 18:19:59 1998 Ian Lance Taylor <ian@cygnus.com>
2090
2091 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
2092 config.has_shared to true.
2093 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
2094 Likewise.
2095 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
2096 Likewise.
2097
2098Tue Jun 2 12:55:03 1998 Ian Lance Taylor <ian@cygnus.com>
2099
2100 * ldlang.c (lang_finish): If the entry symbol is not found, try
2101 parsing it as a number.
2102 * ld.texinfo (Options): Document this.
2103
2104Mon Jun 1 14:01:20 1998 Ian Lance Taylor <ian@cygnus.com>
2105
2106 * ld.texinfo (Input Section Wildcards): Document SORT keyword.
2107
2108Mon May 18 12:42:53 1998 Doug Evans <devans@canuck.cygnus.com>
2109
2110 * ld.h (ld_config_type): New member has_shared.
2111 * ldmain.c (main): Initialize it.
2112 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
2113 * lexsup.c (parse_args): Treat -shared as error if not supported.
2114
2115Mon May 18 13:14:43 1998 Ian Lance Taylor <ian@cygnus.com>
2116
2117 From Jason Merrill <jason@cygnus.com>:
2118 * ldlang.c (wild_sort): Correct order of sort.
2119 * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
2120 .dtors.
2121 * scripttempl/elfd10v.sc: Likewise.
2122 * scripttempl/elfd30v.sc: Likewise.
2123 * scripttempl/elfppc.sc: Likewise.
2124
2125Fri May 15 00:22:35 1998 Ian Lance Taylor <ian@cygnus.com>
2126
2127 * ldlex.l: Recognize keyword SORT.
2128 * ldgram.y (current_file): Change to struct wildcard_spec.
2129 (%union): Add new fields cname and wildcard.
2130 (wildcard_name, wildcard_spec): New nonterminals.
2131 (file_NAME_list): Use wildcard_spec.
2132 (input_section_spec): Change current_file usage.
2133 * ld.h (struct wildcard_spec): Define.
2134 * ldlang.h (lang_wild_statement_struct): Add new fields
2135 sections_sorted and filenames_sorted.
2136 (lang_add_wild): Update declaration.
2137 * ldlang.c (wild_sort): New static function.
2138 (wild_section): Use wild_sort.
2139 (print_wild_statement): Print sorting information.
2140 (lang_add_wild): Add new parameters sections_sorted and
2141 filenames_sorted. Change all callers.
2142 * mri.c (mri_draw_tree): Update calls to lang_add_wild.
2143 * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
2144 * scripttempl/elfd10v.sc: Likewise.
2145 * scripttempl/elfd30v.sc: Likewise.
2146 * scripttempl/elfppc.sc: Likewise.
2147
2148Thu May 14 18:39:16 1998 Richard Henderson <rth@cygnus.com>
2149
2150 * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
2151
2152Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
2153
2154 * ldemul.h: Add new prototype: ldemul_list_emulation_options.
2155 (ld_emulation_xfer_struct): Add new field: list_options.
2156 * ldemul.c (ldemul_list_options): New function. Call the
2157 list_options field of the ld_emulation_xfer_struct for each
2158 supported emulation, if such a function is present.
2159 * lexsup.c (help): Call ldemul_list_emulation_options.
2160 * emultempl/pe.em (gld_<>_list_options): New function. Describe
2161 the pe emulation specific command line options.
2162 * emultempl/armcoff.em (gld<>_list_options): New function.
2163 Describe the armcoff emulation specific command line options.
2164
2165 * emultempl/pe.em: Add a new command line option:
2166 --support-old-code.
2167 * emultempl/armcoff.em: Ditto.
2168 * ld.texinfo: Document the --support-old-code option.
2169
2170 * Makefile.in: Add emulation files for POTFILES.in target.
2171 * emultempl/pe.em: Internationalise suitable strings.
2172 * emultempl/armcoff.em: Internationalise suitable strings.
2173 * po/POTFILES.in: Rebuilt.
2174
2175Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com)
2176
2177 * po/Make-in (install-info): New target.
2178
2179Tue Apr 28 19:18:30 1998 Tom Tromey <tromey@cygnus.com>
2180
2181 * ldmain.c (main): Conditionally call setlocale.
2182 * ld.h: Include <locale.h> if HAVE_LOCALE_H.
2183 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
2184
2185Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
2186
2187 * configure.in: Change version number to 2.9.4
2188 * configure: Rebuild.
2189
2190 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
2191
2192 Based on patch from H.J. Lu <hjl@gnu.org>:
2193 * emultempl/elf32.em (global_vercheck_needed): New file static
2194 variable.
2195 (global_vercheck_failed): New file static variable.
2196 (gld${EMULATION_NAME}_after_open): Check for shared libraries
2197 twice, once with force set to 0 and once with it set to 1.
2198 (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
2199 Change all callers.
2200 (gld${EMULATION_NAME}_search_needed): Likewise.
2201 (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check
2202 whether the libraries needs any incompatible versions.
2203 (gld${EMULATION_NAME}_vercheck): New static function.
2204
2205Wed Apr 22 16:01:35 1998 Tom Tromey <tromey@cygnus.com>
2206
2207 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
2208
2209Wed Apr 22 12:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
2210
2211 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
2212 invoking runtest.
2213 * Makefile.in: Rebuild.
2214
2215 * lexsup.c (parse_args): Change -l options into --library options
2216 to avoid confusion between -li and -library.
2217
2218 * ld.texinfo (MEMORY): Clarify use of >REGION.
2219
2220Tue Apr 21 23:12:40 1998 Tom Tromey <tromey@scribbles.cygnus.com>
2221
2222 * Many files: Added gettext invocations around user-visible
2223 strings.
2224 * ld.h: Added gettext-related includes and defines.
2225 * ldmain.c: Call setlocale, bindtextdomain, textdomain.
2226 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
2227 HAVE_LC_MESSAGES): Define.
2228 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
2229 po/Makefile. Use AM_PROG_LEX.
2230 (TDIRS): AC_SUBST early on, to avoid having value split when it
2231 happens to cross line 90 of the generated sed script.
2232 * Makefile.am (SUBDIRS): New macro.
2233 (POTFILES): Likewise.
2234 (po/POTFILES.in): New target.
2235 (ld_new_LDADD): Added INTLLIBS.
2236 (ld_new_DEPENDENCIES): Added INTLDEPS.
2237 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
2238
2239Tue Apr 21 23:07:07 1998 Ian Lance Taylor <ian@cygnus.com>
2240
2241 * ld.texinfo (Simple Example): Rewrite a few things as suggested
2242 by Nick Clifton <nickc@cygnus.com>.
2243 (PROVIDE): Likewise.
2244
2245Tue Apr 21 09:55:06 1998 Nick Clifton <nickc@cygnus.com>
2246
2247 * emultempl/pe.em: Rename external arm interworking functions
2248 to conform to BFD naming conventions. Add code to _after_open()
2249 function to obtain a bfd for use by the interworking code.
2250
2251 * emultempl/armcoff.em: Rename external arm interworking functions
2252 to conform to BFD naming conventions. Add new _after_open()
2253 function to obtain a bfd for use by the interworking code.
2254
2255Sun Apr 19 19:23:09 1998 Richard Henderson <rth@cygnus.com>
2256
2257 * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
2258 Update dot and the default memory section even when relaxing.
2259
2260Sat Apr 18 18:41:12 1998 Richard Henderson <rth@cygnus.com>
2261
2262 * ldlang.c (lang_one_common): Manipulate the section's cooked size
2263 rather than its raw size.
2264
2265Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
2266
2267 * configure.in (TESTBFDLIB): New. Defined and substituted.
2268 * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
2269 * configure, Makefile.in: Rebuild.
2270
2271Mon Apr 6 15:33:39 1998 Ian Lance Taylor <ian@cygnus.com>
2272
2273 * Makefile.am (ld.info): Invoke makeinfo with -I options directly
2274 rather than relying on default rule. Don't depend upon
2275 bfdsumm.texi.
2276 (ld.dvi): Likewise.
2277 (bfdsumm.texi): Remove target.
2278 (CLEANFILES): Take bfdsumm.texi out of value.
2279 * Makefile.in: Rebuild.
2280
2281Sun Apr 5 13:07:57 1998 Ian Lance Taylor <ian@cygnus.com>
2282
2283 * scripttempl/pe.sc: Use shell variables to avoid depending upon
2284 how $ is handled when expanding a shell substitution.
2285
2286Fri Apr 3 00:56:50 1998 Ian Lance Taylor <ian@cygnus.com>
2287
2288 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
2289 (DISTCLEANFILES): Add site.exp and site.bak.
2290 * Makefile.in: Rebuild.
2291
2292 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
2293 rather than in a shell variable and using AC_SUBST.
2294 * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs.
2295 (distclean-local): New target.
2296 * configure, Makefile.in: Rebuild.
2297
2298 * ld.texinfo: Completely rewrite linker script documentation.
2299
2300Mon Mar 30 12:47:33 1998 Ian Lance Taylor <ian@cygnus.com>
2301
2302 * configure.in: Set version to 2.9.1.
2303 * configure: Rebuild.
2304
2305 * Branched binutils 2.9.
2306
2307Sat Mar 28 16:48:19 1998 Ian Lance Taylor <ian@cygnus.com>
2308
2309 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
2310 (mostlyclean-local): New target to remove tmpdir.
2311 * Makefile.in: Rebuild.
2312
2313 Fix some gcc -Wall warnings:
2314 * ldcref.c (output_cref): Add casts to avoid warnings.
2315 * ldfile.c (ldfile_add_arch): Likewise.
2316 * ldlang.c (lang_leave_overlay_section): Likewise.
2317 * lexsup.c (OPTION_COUNT): Likewise.
2318 (parse_args): Likewise.
2319 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
2320 Likewise.
2321 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
2322 * ldlang.c (lang_check): Initialize variables to avoid warnings.
2323 * ldwrite.c (build_link_order): Likewise.
2324 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
2325 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
2326 Remove unused variables.
2327
2328 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
2329 MOSTCLEANFILES).
2330 * Makefile.in: Rebuild.
2331
2332Fri Mar 27 16:39:25 1998 Ian Lance Taylor <ian@cygnus.com>
2333
2334 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
2335 ARM code inside ifdef TARGET_IS_armpe.
2336
2337Wed Mar 25 11:34:13 1998 Ian Lance Taylor <ian@cygnus.com>
2338
2339 Based on patch from H.J. Lu <hjl@gnu.org>:
2340 * Makefile.am (LDDISTSTUFF): New variable.
2341 (diststuff): New target.
2342 * Makefile.in: Rebuild.
2343
2344 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
2345 relocating.
2346
2347Tue Mar 24 15:59:29 1998 Nick Clifton <nickc@cygnus.com>
2348
2349 * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
2350 hold Arm/Thumb stubs.
2351
2352 * emultempl/pe.em (gld_pe_before_allocation): Call
2353 arm_process_before_allocation (for ARM/Thumb targets) in order to
2354 gather interworking stb information.
2355
2356Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
2357
2358 * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
2359
2360Fri Mar 20 19:17:13 1998 Ian Lance Taylor <ian@cygnus.com>
2361
2362 * aclocal.m4, configure: Rebuild with libtool 1.2.
2363
2364Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
2365
2366 * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
2367 section to avoid copying certain data on fork. The linker used to
2368 include this between __data_start__ and __data_end__, but that
2369 breaks building the cygwin32 dll. The fix is to rename the
2370 section ".data_cygwin_nocopy" and explictly include it after
2371 __data_end__.
2372
2373Wed Mar 18 09:42:24 1998 Nick Clifton <nickc@cygnus.com>
2374
2375 * configure.tgt (targ_extra_emuls): Add thumb-pe target.
2376
2377Sun Mar 8 23:34:14 1998 Stan Cox <scox@equinox.cygnus.com>
2378
2379 * configure.tgt (sparclite*-*-elf): Added.
2380
2381Mon Mar 2 19:24:08 1998 Michael Meissner <meissner@cygnus.com>
2382
2383 * ldlang.c (lang_size_sections): If the default memory region is
2384 *default*, see if there is a memory region that could be used.
2385
2386Thu Feb 26 17:09:53 1998 Michael Meissner <meissner@cygnus.com>
2387
2388 * scripttempl/elfd30v.sc: Add support for .eit_v section and put
2389 it at 0xfffff020.
2390 * emulparams/d30v{elf,_o,_e}.sh: Ditto.
2391
2392Mon Feb 23 17:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
2393
2394 * emultempl/pe.em (sort_sections): Permit the wildcard to include
2395 a trailing '*' when sorting grouped sections.
2396 * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only
2397 include them when relocating.
2398
2399Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
2400
2401 * Makefile.am (install-exec-local): Install properly when ln
2402 fails or tooldir == prefix.
2403
2404Fri Feb 13 15:24:06 1998 Ian Lance Taylor <ian@cygnus.com>
2405
2406 * Makefile.am (AUTOMAKE_OPTIONS): Define.
2407 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
2408
2409Thu Feb 12 14:10:44 1998 Ian Lance Taylor <ian@cygnus.com>
2410
2411 * scripttempl/elf.sc: Align the _end symbol according to the ELF
2412 format size. From Gordon W. Ross <gwr@mc.com>.
2413
2414 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
2415 * configure.host (alpha*-*-netbsd*): New host.
2416 * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
2417 targets.
2418
2419 * lexsup.c (help): Update bug-gnu-utils address.
2420 * ld.texinfo (Bug Reporting): Likewise.
2421
2422Tue Feb 10 18:05:56 1998 Ian Lance Taylor <ian@cygnus.com>
2423
2424 * ldlang.c (lang_size_sections): Warn if some memory regions were
2425 defined, but a loadable section is going into the default memory
2426 region.
2427
2428Tue Feb 10 16:17:20 1998 H.J. Lu <hjl@gnu.org>
2429
2430 * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
2431
2432Tue Feb 10 15:09:45 1998 Ian Lance Taylor <ian@cygnus.com>
2433
2434 * Makefile.am (Makefile): Add target, for dependencies on
2435 configure.host and configure.tgt.
2436 * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
2437 * Makefile.in: Rebuild.
2438
2439Mon Feb 9 13:44:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
2440
2441 * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
2442
2443 * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
2444 moved to 0x00.....4.
2445
2446Sat Feb 7 15:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
2447
2448 * configure, aclocal.m4: Rebuild with new libtool.
2449
2450Thu Feb 5 12:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
2451
2452 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
2453 From Thomas de Lellis <tdel@wrs.com>.
2454
2455 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
2456
2457Wed Feb 4 13:02:32 1998 Ian Lance Taylor <ian@cygnus.com>
2458
2459 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
2460 * Makefile.in: Rebuild.
2461
2462Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
2463
2464 Add tms320c30 support:
2465 * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
2466 * emulparams/tic30aout.sh: New file.
2467 * emulparams/tic30coff.sh: New file.
2468 * scripttempl/tic30aout.sc: New file.
2469 * scripttempl/tic30coff.sc: New file.
2470 * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
2471 etic30coff.o.
2472 (etic30aout.c, etic30coff.c): New targets.
2473 * Makefile.in: Rebuild.
2474
2475Mon Feb 2 14:10:59 1998 Ian Lance Taylor <ian@cygnus.com>
2476
2477 * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
2478 accept either ld.so or ld-linux.so.
2479
2480Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
2481
2482 * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
2483 to transform.
2484 * Makefile.in: Regenerate.
2485
2486Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
2487
2488 * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
2489
2490Fri Jan 30 11:43:49 1998 H.J. Lu <hjl@gnu.ai.mit.edu>
2491
2492 * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
2493 * Makefile.in: Rebuild.
2494
2495Thu Jan 29 16:04:21 1998 Mumit Khan <khan@xraylith.wisc.edu>
2496
2497 * ldfile.c (slash): Set to backslash if _WIN32 but not
2498 __CYGWIN32__.
2499 (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
2500 leading backslash or a leading x: as an absolute path.
2501 (ldfile_find_command_file): Use slash rather than / when
2502 generating name to try.
2503 * lexsup.c (PATH_SEPARATOR): Define.
2504 (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
2505
2506Wed Jan 28 14:06:30 1998 Richard Henderson <rth@cygnus.com>
2507
2508 * emulparams/elf64_sparc.sh (ELFSIZE): 64
2509 (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
2510 (DATA_PLT): Needed by v9 abi.
2511
2512Wed Jan 28 16:37:27 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
2513
2514 * configure.tgt (i[3456]86-*-mingw32*): New entry.
2515
2516Wed Jan 28 15:51:58 1998 Ian Lance Taylor <ian@cygnus.com>
2517
2518 * scripttempl/elf.sc: Only include linkonce sections in final
2519 sections when relocating.
2520
2521Wed Jan 28 14:10:01 1998 Ian Lance Taylor <ian@cygnus.com>
2522
2523 * ld.texinfo (Options): Add a brief description of the types of
2524 information included in a link map.
2525
2526 * ld.texinfo (Options): Mention LDEMULATION in description of -m.
2527 (Environment): Mention LDEMULATION.
2528
2529 * ld.texinfo (Options): Clarify --export-dynamic a bit.
2530
2531Thu Jan 22 16:07:23 1998 Richard Henderson <rth@cygnus.com>
2532
2533 * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
2534 pattern could match.
2535
2536Wed Jan 21 22:26:46 1998 Ian Lance Taylor <ian@cygnus.com>
2537
2538 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
2539 a relocateable link, set the image base to 0, and don't define the
2540 various symbols.
2541 * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
2542 * scripttempl/pe.sc: Swap the .data and .bss sections so that
2543 .data comes first. If doing a relocateable link, use
2544 RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
2545 sections at 0, and don't define any symbols.
2546
2547 * ldlang.c (lang_memory_default): Correct parenthisization of
2548 expression.
2549
2550Wed Jan 21 21:20:32 1998 Manfred Hollstein <manfred@s-direktnet.de>
2551
2552 * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
2553 here; they are included already via sysdep.h.
2554
2555Tue Jan 6 13:40:02 1998 Richard Henderson <rth@cygnus.com>
2556
2557 * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
2558
2559Fri Jan 2 20:15:37 1998 Michael Meissner <meissner@cygnus.com>
2560
2561 * ldgram.y (attributes_opt): Pass region pointer to
2562 lang_set_flags, not &region->flags.
2563
2564 * ldlang.c (lang_memory_default): New function to figure out a
2565 default memory region for a section if it was not specified.
2566 (lang_memory_region_lookup): Zero flags, not_flags field.
2567 (lang_map{,_flags}): Print attribute flags in memory map.
2568 (lang_size_sections): Call lang_memory_default to get default
2569 memory region.
2570 (lang_set_flags): Implement attribute flags for real. Take new
2571 argument to give the flags we are to skip for this region.
2572
2573 * ldlang.h (memory_region_struct): Add not_flags field, make both
2574 flags fields flagword type.
2575 (lang_output_section_state): Make flags field flagword type.
2576 (lang_set_flags): Update prototype to match new calling sequence.
2577 (lang_memory_region_default): Add prototype.
2578
2579 * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
2580 Define whether or not the region gets default sections, and if so,
2581 what sections.
2582
2583 * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
2584 default sections.
2585
2586Thu Jan 1 22:58:04 1998 Michael Meissner <meissner@cygnus.com>
2587
2588 * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
2589
2590Thu Jan 1 18:04:51 1998 Jeffrey A Law (law@cygnus.com)
2591
2592 * scripttempl/h8300h.sc: Fix typo.
2593 * scripttempl/h8300s.sc: Likewise.
2594
2595Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
2596
2597 * ldexp.c (fold_name): Don't crash if the symbol is defined in a
2598 section with no output section, such as a shared library section.
2599
2600Wed Dec 17 12:14:11 1997 Ian Lance Taylor <ian@cygnus.com>
2601
2602 * lexsup.c (parse_args): Keep track of where we are in the option
2603 parsing before calling ldemul_parse_args, so that we don't call it
2604 multiple times on the same argument and confuse the getopt
2605 internals.
2606
2607Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
2608
2609 * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
2610 d30velf_o to d30v_o to work in DOS environments.
2611 * Makefile.{am,in}: Ditto.
2612
2613 * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
2614 * emulparams/d30velf_{o,e}: Deleted.
2615
2616Wed Dec 10 17:40:08 1997 Nick Clifton <nickc@cygnus.com>
2617
2618 * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
2619 branch).
2620
2621 * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
2622
2623 * emultempl/armcoff.em: New file, imported from Arm branch.
2624
2625Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
2626
2627 * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
2628 defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
2629 external memory sections for rodata. Delete .string, .rodata1,
2630 and .data1 sections.
2631
2632Tue Dec 9 15:28:17 1997 Michael Meissner <meissner@cygnus.com>
2633
2634 * Makefile.am: Add Oct 23 changes to Makefile.in here.
2635
2636 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
2637
2638 * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
2639
2640 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
2641 (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
2642 external memory.
2643 (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
2644 onchip memory.
2645
2646 * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
2647 stack.
2648 ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
2649 ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
2650 .bss should go in.
2651
2652 * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
2653 .text, .data, etc go in external memory or onchip memory.
2654
2655 * configure.tgt (d30v-*-*ext*): New configuration to default
2656 .text, .data, etc. in external memory.
2657 (d30v-*-*onchip*): New configuration to default .text, .data,
2658 etc. in onchip memory.
2659 (d30v-*-*): Add d30velf_{e,o} emulations.
2660
2661 * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
2662 either the onchip text/data areas or the external memory area.
2663 (MEMORY): Get sizes from d30velf.sh.
2664 (.e{data,text,bss}): Put sections in the external memory region.
2665 (.stext): Put section in the onchip text region.
2666 (.s{data,bss}): Put sections in the onchip data region.
2667 (__stack): Assign from ${STACK_START_ADDR}.
2668 (.text): Put in ${TEXT_MEMORY} memory region.
2669 (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
2670 region.
2671 (.bss): Put in ${BSS_MEMORY} memory region.
2672
2673Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
2674
2675 * configure.tgt (targ_extra_emuls): Add support for Thumb target.
2676
2677Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
2678
2679 * ldlex.l: Don't define hex_mode. Correct number regexp to not
2680 accept hex digits without a leading $ or 0x. Handle leading $
2681 correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
2682 * ldlex.h (hex_mode): Don't declare.
2683
2684Sun Nov 16 20:16:45 1997 Michael Meissner <meissner@cygnus.com>
2685
2686 * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
2687 of internal data area and external memory on chip.
2688
2689 * scripttempl/elfd30v.sc: Define a MEMORY region that describes
2690 the 3 regions of memory on the chip. Put .text/.init/.fini into
2691 the text memory region, put other segments into the data memory
2692 region. Add more of the standard elf sections. Default __stack
2693 to be 0x20008000, which is 1 byte beyond end of the internal data
2694 region.
2695
2696Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
2697
2698 * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
2699 variant.
2700
2701Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2702
2703 * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
2704 HOSTING_LIBS.
2705
2706Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
2707
2708 * ld.h (args_type): Add warn_mismatch field.
2709 * ldmain.c (main): Initialize warn_mismatch field.
2710 * lexsup.c (parse_args): Handle --no-warn-mismatch option.
2711 * ldlang.c (ignore_bfd_error): New static function.
2712 (lang_check): If warn_mismatch is false, don't warn about
2713 mismatched input files.
2714 * ld.texinfo, ld.1: Document new option.
2715
2716Thu Oct 23 14:38:18 1997 Nick Clifton <nickc@cygnus.com>
2717
2718 * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
2719 to avoid conflicts with C code which is defining a variable called
2720 'stack'.
2721
2722Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
2723
2724 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
2725 (ALL_64_EMULATIONS): ... here.
2726 (eelf64_sparc.c): Template should be elf32 not generic.
2727 * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
2728
2729Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
2730
2731 * configure.tgt: Add sparc64-*-linux*.
2732 * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
2733
2734Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
2735
2736 * scripttempl/pe.sc: Put .eh_frame in .rdata.
2737
2738Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
2739
2740 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
2741 since we need to be able to export different versions of the same
2742 symbol.
2743
2744Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
2745
2746 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
2747
2748Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
2749
2750 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
2751 config.guess now recognizes alphaev5 etc.
2752
2753Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
2754
2755 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
2756 -s and -u as -static and -unix.
2757
2758Thu Oct 2 18:40:28 1997 Ian Lance Taylor <ian@cygnus.com>
2759
2760 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
2761 are not adding the first input section, and SEC_READONLY is clear
2762 on the output section, then don't copy it from the input section.
2763 If SEC_READONLY is not set on the input section, then clear it on
2764 the output section.
2765
2766 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
2767 elf32bmip.
2768 (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
2769 to elf32bsmip.
2770 (mips*-*-linux*): Likewise.
2771 * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
2772 setting ENTRY to __start.
2773 * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
2774 setting ENTRY to __start.
2775 * scripttempl/elf.sc: Always set ENTRY to _start if it was not
2776 already set.
2777
2778Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
2779
2780 * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
2781 Variables.
2782
2783 * scripttempl/v850.sc: Move read only areas out of zero and small
2784 data sections and into their own sections.
2785
2786Wed Sep 24 16:59:15 1997 Joel Sherrill <joel@oarcorp.com>
2787
2788 * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
2789
2790Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
2791
2792 * ld.texinfo (Section Options): Improve documentation of NOLOAD
2793 directive.
2794
2795 * aclocal.m4: Rebuild with new libtool.
2796 * configure: Rebuild.
2797
2798Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
2799
2800 * ldlang.c (wild_doit): Revert patch of September 3.
2801
2802Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
2803
2804 * Makefile.am, Makefile.in: Add rule for ev850.c
2805 * configure.tgt (targ_extra_emuls): Add v850 target.
2806
2807Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
2808
2809 * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
2810 * scripttempl/v850.sc: Add call table data area
2811
2812Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
2813
2814 Merge change from Martin Hunt:
2815
2816 * scripttempl/elfd30v.sc: Put .rodata in the .text section.
2817
2818Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
2819
2820 * ldlang.c (lang_memory_region_lookup): Remove extraneous
2821 initialization of p.
2822
2823Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
2824
2825 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
2826 expression produced for -bpT and -bpD options, align to a 32 byte
2827 boundary rather than an 8 byte boundary.
2828 * scripttempl/aix.sc: Put .tocbss at start of .bss section.
2829
2830 * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
2831 function name conflict with AIX 4.2 unistd.h header file.
2832
2833Wed Sep 3 15:12:32 1997 Ian Lance Taylor <ian@cygnus.com>
2834
2835 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
2836 noload_section.
2837
2838Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
2839
2840 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
2841 * Makefile.in: Rebuild.
2842
2843Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
2844
2845 * configure.tgt (arc-*-elf*): Recognize.
2846 * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
2847 * Makefile.in: Regenerate.
2848 * emulparams/arcelf.sh: New file.
2849
2850Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
2851
2852 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
2853 pattern to be treated as a wildcard pattern.
2854
2855 * ldgram.y (atype): Accept parentheses with no type.
2856
2857 * ld.texinfo (Section Definition): Clarify use of whitespace.
2858 (Section Placement): Likewise.
2859
2860Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
2861
2862 * configure.tgt (targ_extra_emuls): Add support for v850e target.
2863
2864Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
2865
2866 * configure.tgt (targ_extra_emuls): Add support for v850e target.
2867
2868Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
2869
2870 * Makefile.am (ld.info): Change dependency from
2871 $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
2872 (ld.dvi): Likewise.
2873 (bfdsumm.texi): New target.
2874 (CLEANFILES): Add bfdsumm.texi.
2875 * Makefile.in: Rebuild.
2876
2877 * Makefile.am: New file, based on old Makefile.in.
2878 * acinclude.m4: New file, from old aclocal.m4.
2879 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
2880 shared library handling; now handled by libtool. Replace
2881 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
2882 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
2883 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
2884 * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
2885 * acconfig.h: Mention PACKAGE and VERSION.
2886 * stamp-h.in: New file.
2887 * ldver.c (ld_program_version): Set ld_program_version from
2888 VERSION.
2889 * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
2890 * Makefile.in: Now built with automake.
2891 * aclocal.m4: Now built with aclocal.
2892 * configure, config.in: Rebuild.
2893
2894Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
2895
2896 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
2897 win32 dependencies.
2898 * configure: Regenerated with autoconf 2.12.
2899 * Makefile.in: Add $(EXEEXT) to executable.
2900
2901Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
2902
2903 * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
2904 (SEGMENT_SIZE): Set to 0x200.
2905 * scripttempl/i386go32.sc: Rewrite.
2906 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
2907
2908Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
2909
2910 From Manfred Hollstein <manfred@s-direktnet.de>:
2911 * configure.host (i[3456]86-*-linux*libc1*): Renamed from
2912 i[3456]86-*-linux*.
2913 (i[3456]86-*-linux*): New host.
2914
2915Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
2916
2917 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
2918 sections in the output .rsrc section.
2919
2920Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2921
2922 * configure.host (m68*-*-linux*libc1*): Renamed from
2923 `m68*-*-linux*'.
2924 (m68*-*-linux*): New configuration for use with GNU libc 2.
2925
2926Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
2927
2928 * scripttempl/elfppc.sc: Correct .rela.sdata entries.
2929
2930 * scripttempl/elfppc.sc: Put the PLT between the small and large
2931 BSS segments.
2932 * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
2933 program base of 0x02000000 is recommended...' because otherwise
2934 shared libraries are less efficient. We use 0x01800000 because
2935 otherwise it's impossible to branch to location 0, for instance if
2936 you have an undefined weak symbol.
2937
2938Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2939
2940 * ldlang.c (lang_place_undefineds): Add \n in einfo call.
2941 (lang_size_sections): Likewise.
2942 * ldlex.l: Likewise.
2943 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
2944 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
2945 Likewise.
2946 (check_sections): Likewise.
2947 (gld${EMULATION_NAME}_after_allocation): Likewise.
2948 * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
2949 Likewise.
2950 * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
2951 * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
2952 (check_sections): Likewise.
2953 (gldmipsidt_after_allocation): Likewise.
2954
2955 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
2956
2957Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
2958
2959 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
2960 the import list.
2961
2962Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
2963
2964 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
2965 crash if an output section has no BFD section.
2966
2967Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
2968
2969 * lexsup.c (ld_options): Add entry for the new "task-link" option.
2970 (parse_args): Handle the "task-link" option.
2971 (OPTION_TASK_LINK): Add define.
2972
2973Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
2974
2975 * ldmain.c (main): Correct check of fclose return value when
2976 handling --force-exe-suffix.
2977
2978Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
2979
2980 * ldlang.c (lang_check): Add test of the return value from the
2981 call to bfd_merge_private_bfd_data().
2982
2983Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
2984
2985 * scripttempl/elfmips.sc: Remove.
2986 * scripttempl/elf.sc: Set ENTRY based on target. Permit
2987 TEXT_DYNAMIC to control .dynamic segment. Permit
2988 SHLIB_TEXT_START_ADDR to set start of shared object. Support
2989 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
2990 .gnu.linkonce.t* in .text when relocating. Support
2991 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
2992 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
2993 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
2994 (DATA_ADDR): Don't set.
2995 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
2996 (OTHER_TEXT_SECTIONS): Set.
2997 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
2998 (MACHINE): Set to empty string.
2999 * emulparams/elf32l4300.sh: Likewise.
3000 * emulparams/elf32ebmip.sh: Likewise.
3001 * emulparams/elf32elmip.sh: Likewise.
3002 * emulparams/elf32bmip.sh: Likewise. Also:
3003 (TEXT_DYNAMIC): Set.
3004 * emulparams/elf32lmips.sh: Likewise.
3005 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
3006 elfmips.sc.
3007 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
3008
3009Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3010
3011 * scripttempl/elf.sc: Don't align the data segment on the next 8
3012 byte boundary, instead let the linker use whatever the individual
3013 sections require.
3014
3015Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
3016
3017 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
3018
3019Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
3020
3021 From Sean McNeil <sean@mcneil.com>:
3022 * emultempl/pe.em (sort_by_file_name): Sort by archive name
3023 first.
3024 (sort_sections): Sort all sections, not just sections in the same
3025 archive.
3026
3027Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
3028
3029 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
3030 targets.
3031
3032Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
3033
3034 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
3035 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
3036 in the .text section. Move .const, .ctors, .dtors into separate
3037 sections.
3038
3039Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
3040
3041 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
3042 around assignment of current location pointer.
3043
3044Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
3045
3046 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
3047 appropriately.
3048
3049Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
3050
3051 * Makefile.in (INSTALL): Set to @INSTALL@.
3052 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
3053 (install): Depend upon ld.new and installdirs. Use
3054 $(program_transform_name) directly, rather than using
3055 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
3056 (installdirs): New target.
3057 (install-info): Run mkinstalldirs.
3058
3059Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
3060
3061 * Makefile.in (INSTALL): Change install.sh to install-sh.
3062
3063 From Thomas Graichen <graichen@rzpd.de>:
3064 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
3065 * configure: Rebuild.
3066
3067Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
3068
3069 * emultempl/pe.em: Include "libiberty.h".
3070 (sort_sections_1): Use xmalloc rather than alloca.
3071
3072 * ldlex.l: Recognize SQUAD.
3073 * ldgram.y (length): Add SQUAD.
3074 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
3075 reloc.
3076 * ldlang.c (print_data_statement): Handle SQUAD.
3077 (lang_size_sections, lang_do_assignments): Likewise.
3078 * ldexp.c (exp_print_token): Add SQUAD to table.
3079 * ldwrite.c (build_link_order): Handle SQUAD.
3080 * ld.texinfo (Section Data Expressions): Document SQUAD.
3081
3082Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
3083
3084 * ldver.c (ld_program_version): Set to 2.8.1.
3085
3086 * Branched binutils 2.8.
3087
3088Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
3089
3090 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
3091 * mpw-elfmips.c: Rename from mpw-emipself.c.
3092 * mpw-config.in: Update accordingly.
3093
3094 * ldlang.c (lang_process): Call lang_check immediately after
3095 opening the input files, rather than at the end of the link.
3096
3097Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
3098
3099 * emultempl/pe.em (init): Fully bracket initializer.
3100 (set_pe_stack_heap): Remove locals begin_commit and end.
3101 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
3102 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
3103
3104Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
3105
3106 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
3107
3108Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3109
3110 Contributed by David S. Miller <davem@caip.rutgers.edu>:
3111 * configure.tgt (sparc*-*-linuxaout*): New target.
3112 (sparc*-*-linux*): New target.
3113 * emulparams/sparclinux.sh: New file.
3114 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
3115 (esparclinux.c): New target.
3116
3117Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
3118
3119 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
3120 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
3121 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
3122 elf32elmip.
3123
3124Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
3125
3126 * lexsup.c (parse_args): Update copyright date in version
3127 message.
3128
3129Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3130
3131 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
3132
3133Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
3134
3135 * Makefile.in: Rebuild dependencies.
3136
3137 * emultempl/aix.em: Include "obstack.h".
3138
3139Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
3140
3141 * ldlang.c: Include "obstack.h".
3142
3143Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
3144
3145 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
3146
3147Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
3148
3149 * ldemul.h (ldemul_list_emulations): Use full prototype.
3150 * ldlang.c (print_one_symbol): Add declaration.
3151 * ldlang.h (dprint_statements): Declare.
3152 * ldmain.c (remove_output): Declare.
3153 * ldmisc.c (vfinfo): Declare.
3154 * ldwrite.c (clone_section): Declare.
3155 (split_sections): Make static. Declare.
3156 * mri.c: Include libiberty.h.
3157 (strdup): Don't declare.
3158 (mri_alias): Use xstrdup rather than strdup.
3159
3160Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
3161
3162 * scripttempl/elfmips.sc: Change handling of data area when
3163 generating a shared library to not skip a large block of memory.
3164 From Per Fogelstrom <pefo@cvs.openbsd.org>.
3165
3166Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
3167
3168 * ldmain.c (multiple_definition): Only skip the warning if the
3169 output section is absolute when the input section is not
3170 absolute.
3171
3172 * ldlex.l: Accept whitespace in VERS_START state. Warn about
3173 invalid characters in VERS_* states.
3174
3175Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
3176
3177 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
3178 trailing space lead us to think that there is a zero address.
3179
3180Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
3181
3182 * ldgram.y (vers_node): Correct typo of '(' for '{'.
3183
3184Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
3185
3186 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
3187 rather than _start.
3188 (__edata): Define this rather than "edata".
3189 (__end): Define this rather than "end".
3190
3191Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
3192
3193 * configure.tgt (tic80-*-*): Allow dropping of -coff.
3194
3195Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
3196
3197 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
3198 as TEXINPUTS. Needed for building in separate build dir.
3199 * ldint.texinfo (SCRIPT_NAME): Fix typo.
3200 * emulparams/tic80coff.sh: Rewrite to include internal documentation
3201 about each shell variable that is set (or not set).
3202 * scripttempl/tic80coff.sc: Complete rewrite.
3203
3204Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
3205
3206 * ldmain.c (main): Call bfd_set_default_target.
3207 * Makefile.in (ldmain.o): Define TARGET when compiling.
3208
3209Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
3210
3211 * ldmain.c (main): Don't initialize link_info.lprefix or
3212 link_info.lprefix_len.
3213 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
3214
3215 * emultempl/m88kbcs.em: Remove.
3216 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
3217 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
3218 m88kbcs.em.
3219
3220 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
3221 to lang_enter_output_section_statement. From Mark Rasin
3222 <mark.rasin@telrad.co.il>.
3223
3224Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
3225
3226 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
3227 section.
3228
3229Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
3230
3231 * configure.tgt (mips*-*-lnews*): New target.
3232 * Makefile.in (emipslnews.c): New target.
3233 * emulparams/mipslnews.sh: New file.
3234
3235Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
3236
3237 * emultempl/elf32.em (hold_interp): New static variable.
3238 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
3239 after hold_interp. Choose a unique output section name.
3240 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
3241 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
3242
3243Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
3244
3245 From Eric Youngdale <eric@andante.jic.com>:
3246 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
3247 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
3248 information.
3249 (ldlex_version_script, ldlex_version_file): New functions.
3250 * ldlex.h (enum input_enum): Add input_version_script.
3251 (ldlex_version_script): Declare.
3252 (ldlex_version_file): Declare.
3253 * ldgram.y (%union): Add deflist, versyms, and versnode.
3254 (VERS_TAG, VERS_IDENTIFIER): New terminals.
3255 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
3256 (file): Accept INPUT_VERSION_SCRIPT.
3257 (ifile_p1): Accept version.
3258 (version_script_file): New nonterminal.
3259 (version, vers_nodes, vers_node): Likewise.
3260 (verdep, vers_tag, ver_defns): Likewise.
3261 * ldlang.c (lang_elf_version_info): New global variable.
3262 (lang_new_vers_regex): New function.
3263 (lang_new_vers_node): New function.
3264 (version_index): New static variable.
3265 (lang_register_vers_node): New function.
3266 (lang_add_vers_depend): New function.
3267 * ldlang.h (lang_elf_version_info): Declare.
3268 (lang_new_vers_regex, lang_new_vers_node): Declare.
3269 (lang_add_vers_depend, lang_register_vers_node): Declare.
3270 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
3271 (ld_options): Add "version-script".
3272 (parse_args): Handle OPTION_VERSION_SCRIPT.
3273 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3274 Pass lang_elf_version_info to size_dynamic_sections.
3275 * scripttempl/elf.sc: Add .gnu.version sections.
3276 * ld.texinfo: Document symbol versioning.
3277
3278Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3279
3280 * Makefile.in (ed30velf.c): New target.
3281 * configure.tgt (d30v-*-*): New target.
3282 * emulparams/d30velf.sh: New file.
3283 * scripttempl/elfd30v.sc: New file.
3284
3285Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
3286
3287 * ld.texinfo (Option Commands): Document the INCLUDE command.
3288
3289Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3290
3291 * configure.in: Call BFD_NEED_DECLARATION on getenv.
3292 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
3293 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
3294 * ldemul.c (ld_emul_default_target): Do not cast getenv return
3295 value.
3296 * ldmain.c (get_emulation): Likewise.
3297 * configure, config.in: Rebuild.
3298
3299Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
3300
3301 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
3302 .mips16.call.* in .text.
3303
3304Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
3305
3306 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
3307 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
3308 * Makefile.in (etic80coff.c): Add target and rule to build it.
3309 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
3310
3311Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
3312
3313 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
3314 ".so" in the name, not ".so.".
3315 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
3316
3317 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
3318 <alan@spri.levels.unisa.edu.au>.
3319
3320Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
3321
3322 * emultempl/sunos.em: Include <ctype.h>.
3323 (gld${EMULATION_NAME}_find_so): Skip the directory name when
3324 searching for ".so.".
3325 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
3326 has a version number, and that only version numbers follow .so.
3327
3328Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
3329
3330 * scripttempl/pe.sc:
3331 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
3332 section so Win32 executables are valid.
3333
3334Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
3335
3336 * scripttempl/elf.sc: Put linkonce reloc section in other
3337 appropriate reloc sections.
3338 * scripttempl/elfmips.sc: Add linkonce support.
3339 * scripttempl/elfppc.sc: Likewise.
3340
3341Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
3342
3343 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
3344 stack up to 0x80000.
3345 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
3346
3347Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
3348
3349 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
3350 to define `_stack'.
3351
3352Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
3353
3354 * ld.h (args_type): Rename auxiliary_filter_shlib to
3355 auxiliary_filters, and make it char **.
3356 * lexsup.c (parse_args): Handle -f by setting up an array.
3357 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3358 new name of auxiliary_filters.
3359
3360 * ld.texinfo (Options): Improve documentation of --filter and
3361 --auxiliary.
3362
3363Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
3364
3365 * ld.texinfo (Options): Clarify that the normal usage is -T.
3366 (Commands): Likewise.
3367
3368Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
3369
3370 * scripttempl/armcoff.sc: Correct mask used for .data address.
3371
3372Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
3373
3374 * emultempl/pe.em: make default executable a.exe instead of
3375 a.out
3376
3377Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
3378
3379 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
3380 shifting .plt back. Rumour has it that the NetBSD ld.so depends
3381 on .dynamic being after .got, so we leave that.
3382
3383Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
3384
3385 * Makefile.in (clean): Don't remove configdoc.texi.
3386 (maintainer-clean): Do remove configdoc.texi.
3387
3388 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
3389 to avoid confusing texi2roff.
3390
3391Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
3392
3393 * scripttempl/v850.sc (.zdata): Add .zcommon section.
3394 (.tdata): Add .tcommon and .tcommon_byte sections.
3395
3396Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
3397
3398 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
3399 * scripttempl/elfmips.sc: Use __start as the entry address for
3400 mips*-*-linux*.
3401
3402Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
3403
3404 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
3405
3406 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
3407 fields.
3408 * lexsup.c (parse_args): Recognize --auxiliary/-f and
3409 --filter/-F.
3410 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3411 Pass filter_shlib and auxiliary_filter_shlib to
3412 size_dynamic_sections.
3413 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
3414
3415Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3416
3417 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
3418
3419Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
3420
3421 * mpw-make.sed: Use NewFolderRecursive for installation.
3422
3423Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3424
3425 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
3426 {s,t}data sections. Do not emit any linker generated symbols if
3427 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
3428 where the different sections go. Change some whitespace.
3429
3430 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
3431 appropriately. Remove crud not used anymore.
3432
3433Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
3434
3435 * Makefile.in (emn10200.c): Add dependencies.
3436 * configure.tgt: Handle mn10200.
3437 * emulparms/mn10200.sh: New file.
3438
3439Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
3440
3441 * emultempl/gld960c.em: Include <ctype.h>.
3442 (gld960_set_output_arch): Get the machine type from the -A option
3443 if there is one, rather than always using core.
3444
3445Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
3446
3447 * emulparms/mn10300.sh: Handle leading underscores.
3448
3449Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
3450
3451 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
3452 set hold_rel if SEC_ALLOC is set.
3453
3454Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
3455
3456 * ldlang.c (section_already_linked): Set the output_offset as well
3457 as the output_section when only reading symbols from a file.
3458
3459Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
3460
3461 * emulparams/*.sh: Make sure that each set of parameters which
3462 uses the elf.sc script sets MACHINE.
3463
3464Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
3465
3466 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
3467 * scripttempl/elfd10v.sc: Likewise.
3468 * scripttempl/v850.sc: Likewise.
3469
3470Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
3471
3472 * configure: Rebuild with autoconf 2.12.
3473
3474Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
3475
3476 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
3477 for bfd_vma to init loop.
3478
3479Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
3480
3481 * emulparms/mn10300.sh: Remove bogus '_' prefix for
3482 entry symbol and ctor/dtor stuff.
3483
3484Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
3485
3486 * Makefile.in (emn10300.c): Add dependencies.
3487 * configure.tgt: Handle mn10300.
3488 * emulparms/mn10300.sh: New file.
3489
3490Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3491
3492 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
3493 (EMBEDDED): Define.
3494
3495Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
3496
3497 * ld.texinfo: Add section on reporting bugs.
3498
3499 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
3500 symbols are correctly aligned.
3501
3502Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
3503
3504 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
3505 romzbss too.
3506
3507Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3508
3509 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
3510 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
3511 0x2000000.
3512
3513 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
3514 .stack to start at 0x2007ffe.
3515
3516Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
3517
3518 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
3519
3520Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
3521
3522 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
3523
3524 * scriptempl/v850.sc (zdata): Make sure this stays
3525 in lo-memory.
3526
3527Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
3528
3529 * scripttempl/v850.sc (__ep): Put it at the start
3530 of the tda section.
3531
3532 * scriptempl/v850.sc: Move all "normal" sections into
3533 the external memory region (0x100000 - 0x200000).
3534
3535Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
3536
3537 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
3538 0x10000, so that is more room for data.
3539
3540 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
3541 (READONLY_START_ADDR): Now 0x0.
3542 (SCRIPT_NAME): Now elfd10v.
3543
3544 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
3545
3546Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
3547
3548 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
3549
3550Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
3551
3552 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
3553 (ALL_64_EMULATIONS): New variable.
3554 * configure.in: Accept --enable-64-bit-bfd option. If it is set
3555 with --enable-targets=all, include ALL_64_EMULATIONS in
3556 EMULATION_OFILES.
3557 * configure: Rebuild.
3558
3559Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
3560
3561 * scripttempl/v850.sc (__gp, __ep): Define.
3562
3563Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
3564
3565 * ld.texinfo: Try to consistently use a single or a double dash
3566 for each option.
3567
3568Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
3569
3570 * emulparams/m32relf.sh (EMBEDDED): Define.
3571
3572Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
3573
3574 * scripttempl/v850.sc (.zdata): Add this before .text.
3575 (.sdata): Also include .rosdata as part of the .sdata.
3576 (.tdata): Include this just before .sdata.
3577
3578 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
3579 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
3580
3581Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
3582
3583 * scripttempl/v850.sc: New linker script for the V850.
3584 * Makefile.in: Use it.
3585
3586Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
3587
3588 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
3589 OTHER_READWRITE_SECTIONS.
3590 * emulparams/elf32l4300.sh: Likewise.
3591
3592Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
3593
3594 * ld.h (ld_config_type): Add warn_section_align field.
3595 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
3596 (ld_options): Add --warn-section-align.
3597 (parse_args): Handle --warn-section-align.
3598 * ldlang.c (lang_size_sections): If warn_section_align, warn if
3599 the start of a section changes due to alignment.
3600 * ld.texinfo, ld.1: Document --warn-section-align.
3601 * ld.texinfo: Change some single dashes to double dashes.
3602
3603 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
3604 subsystem type. Ifdef out os2 type. Recognize a version number.
3605
3606Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
3607
3608 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
3609 to windows, set the entry point.
3610
3611 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
3612
3613Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
3614
3615 * ld.texinfo (Options): Mention .so extensions for shared
3616 libraries.
3617
3618Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
3619
3620 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
3621
3622Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
3623
3624 * scripttempl/m68kcoff.sc: Only set the address of .text if
3625 RELOCATING.
3626
3627Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
3628
3629 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
3630 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
3631 (OUTPUT_FORMAT): Support bi-endian targets.
3632
3633Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
3634
3635 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
3636 * Makefile.in: Rebuild dependencies.
3637 (CFILES): Remove fnmatch.c.
3638 (HFILES): Remove fnmatch.h.
3639 (OFILES): Remove fnmatch.o.
3640
3641Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3642
3643 * Makefile.in (mostlyclean): Move config.log to distclean.
3644
3645Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
3646
3647 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
3648 (necessary in order to compile parse.c in gcc sources under NT)
3649
3650Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
3651
3652 * lexsup.c (ld_options): Fix typo in --rpath-link description.
3653 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
3654 --rpath if a needed library is not found.
3655
3656Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
3657
3658 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
3659
3660Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
3661
3662 * ld.texinfo (Options): Give more detail on -l option.
3663
3664 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
3665 elf.sc does, so that glibc works better.
3666
3667 * ldver.c (ld_program_version): New variable.
3668 (ldversion): Use it.
3669 * ldver.h (ld_program_version): Declare.
3670 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
3671 --version. Change --version handling to match current GNU
3672 standards.
3673 (help): Print bug report address.
3674
3675Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
3676
3677 * Makefile.in (em32relf.c): Add rule for.
3678 * configure.tgt (m32r-*-*): Recognize.
3679 * emulparams/m32relf.sh: New file.
3680
3681Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
3682
3683 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
3684 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
3685 wildcards in matching.
3686 * mpw-emipself.c: New file, pregenerated mips elf emulation.
3687
3688Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
3689
3690 * ldint.texinfo: Rewrote.
3691
3692 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
3693
3694Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
3695
3696 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
3697 syntax error on __end__ line.
3698
3699 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
3700 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
3701
3702Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
3703
3704 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
3705
3706Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
3707
3708 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
3709 stack at top of simulator memory.
3710
3711Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
3712
3713 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
3714
3715Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
3716
3717 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
3718
3719Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
3720
3721 * ldlang.c (section_already_linked): Accept a lang_input_statement
3722 as the PTR argument. If the file is symbols only, discard all
3723 input sections.
3724 (ldlang_add_file): Pass entry to bfd_map_over_sections.
3725
3726Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
3727
3728 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
3729 <fila@ibi.com>.
3730
3731Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
3732
3733 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
3734
3735Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
3736
3737 * emulparms/v850.sh: Set EMBEDDED.
3738
3739Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
3740
3741 * emulparms/v850.sh: Entry symbol is "_start", tweak
3742 ctor/dtor support.
3743
3744Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
3745
3746 * configure.tgt (sh-*-elf*): New target.
3747 * emulparams/shelf.sh: New file.
3748 * emulparams/shlelf.sh: New file.
3749 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
3750 (eshelf.c, eshlelf.c): New targets.
3751 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
3752 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
3753 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
3754 OTHER_RELOCATING_SECTIONS if RELOCATING.
3755
3756Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3757
3758 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
3759 pro.
3760
3761Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
3762
3763 * ldgram.y (section): Add opt_nocrossrefs; pass value to
3764 lang_enter_overlay.
3765 (opt_nocrossrefs): New nonterminal.
3766 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
3767 * ldlang.c (overlay_nocrossrefs): New static variable.
3768 (lang_enter_overlay): Add nocrossrefs parameter.
3769 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
3770 is set. Initialize overlay_nocrossrefs.
3771 * ldlang.h (lang_enter_overlay): Update declaration.
3772 * ld.texinfo (Overlays): Update documentation.
3773
3774 * ldver.c (ldversion): Print GNU ld in the version message.
3775
3776Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
3777
3778 * configure.host: Set HLDENV.
3779 * configure.in: Substitute HLDENV.
3780 * configure: Rebuild.
3781 * Makefile.in (HLDENV): New variable.
3782 ($(LD_PROG)): Use $(HLDENV).
3783
3784Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
3785
3786 * Makefile.in (ev850.c): New target.
3787 * configure.tgt (v850-*-*): New target.
3788 * emulparams/v850.sh: New file.
3789
3790Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
3791
3792 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
3793
3794Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
3795
3796 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
3797 containing sections.
3798
3799Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
3800
3801 * fnmatch.c: Include sysdep.h.
3802
3803Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3804
3805 * genscripts.sh: Undo 8/16 change.
3806
3807 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
3808
3809Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3810
3811 * genscripts.sh: Explicitly reset any shell variables set or used
3812 by the various .sc scripts to allow inadvertant use of these
3813 names as normal environment variables by the person running
3814 configure.
3815
3816 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
3817
3818Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
3819
3820 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
3821 __data_start__, __data_end__): Added to keep in sync. with the
3822 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
3823
3824Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
3825
3826 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
3827 defined in info->defsec, not just the section symbol.
3828
3829Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
3830
3831 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
3832 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
3833 (NEED_DECLARATION_SBRK): New macro.
3834 * configure, config.in: Rebuild.
3835 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
3836 * ldmain.c (sbrk): Declare if HAVE_SBRK and
3837 NEED_DECLARATION_SBRK.
3838
3839 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
3840
3841Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
3842
3843 * ldlex.l: Recognize OVERLAY.
3844 * ldgram.y: Add section_phdr field to %union.
3845 (section): Handle phdr_opt result. Add OVERLAY case.
3846 (opt_exp_without_type): New nonterminal.
3847 (phdr_opt): Return list of phdrs.
3848 (overlay_section): New nonterminal.
3849 * ldlang.c: Include <ctype.h>.
3850 (lang_leave_output_section_statement): Add phdrs parameter.
3851 Change all callers.
3852 (lang_section_in_phdr): Remove.
3853 (overlay_vma, overlay_lmn, overlay_max): New static variables.
3854 (struct overlay_list): Define.
3855 (overlay_list): New static variable.
3856 (lang_enter_overlay, lang_enter_overlay_section): New functions.
3857 (lang_leave_overlay_section, lang_leave_overlay): New functions.
3858 * ldlang.h (lang_leave_output_section_statement): Update
3859 declaration for new parameter.
3860 (lang_section_in_phdr): Don't declare.
3861 (lang_enter_overlay, lang_enter_overlay_section): Declare.
3862 (lang_leave_overlay_section, lang_leave_overlay): Declare.
3863 * ld.texinfo (Overlays): New node under SECTIONS, documenting
3864 overlays.
3865
3866 * ldlex.l: Recognize MAX and MIN.
3867 * ldgram.y (MAX, MIN): New terminals.
3868 (exp): Recognize MAX and MIN.
3869 * ldexp.c (fold_binary): Handle MAX and MIN.
3870 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
3871
3872 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
3873 index entries.
3874
3875 * ldgram.y (SIZEOF, ADDR): Do not specify type.
3876
3877 * ldcref.c (check_nocrossref): Skip symbols with no output
3878 sections.
3879
3880Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
3881
3882 * ldgram.y (LOADADDR): New terminal.
3883 (exp): Handle LOADADDR.
3884 * ldlex.l: Recognize LOADADDR.
3885 * ldexp.c (exp_print_token): Add LOADADDR.
3886 (fold_name): Implement LOADADDR.
3887 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
3888 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
3889
3890Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
3891
3892 * ld.h (check_nocrossrefs): Declare.
3893 * ldlang.h (struct lang_nocrossref): Define.
3894 (struct lang_nocrossrefs): Define.
3895 (nocrossref_list): Declare.
3896 (lang_add_nocrossref): Declare.
3897 * ldlex.l: Recognize NOCROSSREFS keyword.
3898 * ldgram.y (%union): Add nocrossref field.
3899 (NOCROSSREFS): New terminal.
3900 (ifile_p1): Recognize NOCROSSREFS.
3901 (nocrossref_list): New nonterminal.
3902 * ldlang.c (nocrossref_list): Define.
3903 (lang_add_nocrossref): New function.
3904 * ldmain.c (main): If nocrossref_list is not NULL, call
3905 check_nocrossrefs.
3906 (warning_callback): Free symbols if there is no place to store
3907 them.
3908 (notice): Call add_cref if nocrossref_list is not NULL.
3909 * ldcref.c: Include "ldexp.h" and "ldlang.h".
3910 (check_nocrossrefs): New function.
3911 (check_nocrossref): New static function.
3912 (struct check_refs_info): Define.
3913 (check_refs, check_reloc_refs): New static functions.
3914 * Makefile.in: Rebuild dependencies.
3915 * ld.texinfo (Option Commands): Document NOCROSSREFS.
3916
3917 * ld.texinfo (Section Placement): Improve the wording of the
3918 wildcard documentation. Mention that wildcards are only searched
3919 for on the command line, not in the file system.
3920
3921 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
3922 definition of lib_path inside condition where it is used.
3923
3924Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3925
3926 * emulparams/d10velf.sh: Now works with elf.sc.
3927
3928Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3929
3930 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
3931
3932Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
3933
3934 * ldlang.c (lang_size_sections): Add the section VMA to the result
3935 value when computing the address of a section.
3936
3937 * ld.h (args_type): Add cref field.
3938 * lexsup.c (parse_args): Set command_line.cref.
3939 * ldmain.c (main): Check command_line.cref rather than
3940 link_info.notice_all.
3941 (notice): Likewise.
3942
3943 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
3944 in a section without an owner.
3945
3946Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
3947
3948 * fnmatch.h, fnmatch.c: New files.
3949 * ldlex.l: Remove unused definition of FILENAME. Add definition
3950 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
3951 NAME.
3952 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
3953 (input_section_spec): Accept '?' specially.
3954 (statement): Change exp to mustbe_exp in length and FILL cases.
3955 (section): Call ldlex_script before section statements, and call
3956 ldlex_popstate after them.
3957 * ldlang.c: Include "fnmatch.h".
3958 (wildcardp): New static function.
3959 (wild_section): Permit the section name to be a wildcard.
3960 (wild_file): New static function, broken out of wild.
3961 (wild): Call wild_file. Permit the file name to be a wildcard.
3962 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
3963 * Makefile.in: Rebuild dependencies.
3964 (CFILES): Add fnmatch.c.
3965 (HFILES): Add fnmatch.h.
3966 (OFILES): Add fnmatch.o.
3967 * ld.texinfo: Document that file and section names can now be
3968 wildcard patterns.
3969
3970 * ldlang.c (lang_place_orphans): Correct condition: place a common
3971 section if not relocateable or if common definitions are forced.
3972
3973Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3974
3975 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
3976
3977Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
3978
3979 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
3980
3981Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3982
3983 * Makefile.in (ed10velf.c): New target.
3984 * configure.tgt (d10v-*-elf*): New target.
3985 * emulparams/d10velf.sh: New file.
3986
3987Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
3988
3989 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
3990 <ANDREWG@microlise.co.uk>.
3991
3992 * configure.host: Change irix5 to irix[56]*.
3993 * configure.tgt: Likewise.
3994
3995Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
3996
3997 * emultempl/pe.em (sort_sections): Pay attention to return code.
3998
3999 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
4000
4001Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4002
4003 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
4004 the value of __start_SECNAME to the alignment required by the
4005 section to be placed.
4006
4007Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
4008
4009 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
4010 (mips*-*-elf*): Use elf32ebmip.
4011 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
4012 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
4013 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
4014 EMBEDDED defined.
4015 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
4016 EMBEDDED defined.
4017 * emulparams/elf32b4300.sh (EMBEDDED): Define.
4018 * emulparams/elf32l4300.sh (EMBEDDED): Define.
4019 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
4020 (eelf32ebmip.c, eelf32elmip.c): New targets.
4021
4022Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
4023
4024 * ldver.c (ldversion): Set version to cygnus-2.7.1.
4025
4026 * Released binutils 2.7.
4027
4028 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
4029 System V file name limitations.
4030 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
4031 pc532macha rather than pc532machaout.
4032 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
4033 epc532macha.o.
4034 (epc532macha.c): Rename target from epc532machaout.c.
4035
4036Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
4037
4038 * ldlang.c (print_padding_statement): Use %u, not %x, to print
4039 fill value.
4040
4041Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
4042
4043 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
4044
4045Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
4046
4047 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
4048 file just before the .so file, rather than just after.
4049
4050 * configure.host: Use -print-file-name=FILE rather than piping
4051 -print-libgcc-file-name through sed.
4052 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
4053 crtend.o files, in case gcc doesn't use them.
4054 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
4055
4056Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
4057
4058 * configure.tgt (mips*-dec-osf*): New target.
4059
4060Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4061
4062 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
4063 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
4064 (docdir): Removed.
4065 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
4066 (AC_PROG_INSTALL): Added.
4067 * configure: Rebuilt.
4068
4069Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4070
4071 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
4072 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
4073 non-fixed location.
4074
4075Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
4076
4077 * ldlang.h (enum section_type): Define.
4078 (lang_output_section_statement_type): Remove loadable field. Add
4079 sectype field.
4080 (lang_enter_output_section_statement): Change flags parameter in
4081 prototype to sectype.
4082 * ldgram.y (typebits): Remove.
4083 (sectype): New static variable.
4084 (opt_at): Use sectype rather than typebits.
4085 (type): Set sectype rather than typebits.
4086 (atype): Likewise.
4087 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
4088 EXPRESSION mode.
4089 * ldlang.c (lang_output_section_statement_lookup): Set sectype
4090 field rather than loadable field.
4091 (wild_doit): Check sectype rather than loadable.
4092 (lang_record_phdrs): Likewise.
4093 (lang_enter_output_section_statement): Rename flags parameter to
4094 sectype. Set sectype field rather than loadable field. Set flags
4095 field based on sectype.
4096
4097Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
4098
4099 * scripttempl/elf.sc: Force .stab* and .comment sections to start
4100 at 0.
4101
4102 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
4103 using shared libraries.
4104 * configure: Rebuild with autoconf 2.10.
4105
4106Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
4107
4108 * configure.tgt: Add support for *-*-rtems* configurations.
4109
4110Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
4111
4112 * configure.tgt (alpha-*-linuxecoff*): New target.
4113 (alpha-*-linux*): Use elf64alpha.
4114 * emulparams/elf64alpha.sh: New file.
4115 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
4116 ${ELFSIZE} rather than 32 when calling BFD routines.
4117 (hold_rodata): New static variable.
4118 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
4119 readonly section that is not code.
4120 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
4121 a .rel section unless its bfd_section field is not NULL.
4122 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
4123 (eelf64alpha.c): New target.
4124
4125Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
4126
4127 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
4128
4129Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
4130
4131 Add enough support to understand the gcc svr3.ifile script:
4132 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
4133 BIND keyword.
4134 * ldgram.y: Add BIND token.
4135 (section): Recognize GROUP.
4136 (opt_ext_with_type): Recognize a couple of cases of BIND.
4137 * ldlang.c (init_os): Don't do anything if section is already
4138 initialized. Call exp_init_os on addr_tree field.
4139 (exp_init_os): New static function.
4140 (map_input_to_output_sections): Call exp_init_os on assignment
4141 expression.
4142 (lang_place_orphans): Check for common sections by name COMMON
4143 rather than by common_section field. Don't warn about absence of
4144 [COMMON] command.
4145
4146 * ldlang.h (lang_input_statement_type): Remove useless fields
4147 common_section, common_output_section, and complained, as well as
4148 all references to them.
4149
4150 * ldexp.c: Reindent a lot of code.
4151 (exp_fold_tree): Call FAIL rather than einfo in default case.
4152
4153Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
4154
4155 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
4156 <randall.hron@medaphis.com>.
4157
4158Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
4159
4160 * scripttempl/h8300s.sc: New file for H8/S.
4161 * emulpararms/h8300s.sh: New file for H8/S.
4162 * Makefile.in (ALL_EMULATIONS): Add H8/S.
4163 (e_h8300s.c): Add dependencies.
4164 * configure.tgt: Add H8/S to targ_extra_emuls.
4165
4166Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
4167
4168 * configure.tgt (i[345]86*-*-isc*): New target. From
4169 <uddeborg@carmen.se>.
4170
4171Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
4172
4173 * lexsup.c: Include "libiberty.h".
4174 (parse_args): Copy the -Y argument into memory.
4175 (set_default_dirlist): Don't put the ':' back into the directory
4176 list.
4177
4178Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
4179
4180 * emultempl/sunos.em: Include libiberty.h.
4181 (gld${EMULATION_NAME}_set_symbols): New static function to add
4182 LD_LIBRARY_PATH to the list of search directories.
4183 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
4184
4185Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
4186
4187 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
4188 rather than . when computing _gp value. From Per Fogelstrom.
4189 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
4190
4191 * ldmain.c (main): Don't close and unlink the file on error, since
4192 remove_output will do it anyhow.
4193 * ldlang.c (open_output): Set boolean variable to true, not 1.
4194
4195Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
4196
4197 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
4198 elfmips instead of elf.
4199
4200Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
4201
4202 * ldcref.c: New file.
4203 * ld.h (add_cref, output_cref): Declare.
4204 * ldmain.c (main): Initialize notice_all field. If it is set at
4205 end of link, call output_cref.
4206 (notice): Rename from notice_ysym. Check notice_all.
4207 * ldmisc.c (finfo): Make globally visible.
4208 * ldmisc.h (finfo): Declare.
4209 * lexsup.c (OPTION_CREF): Define.
4210 (ld_options): Add "cref".
4211 (parse_args): Handle OPTION_CREF.
4212 * Makefile.in: Rebuild dependencies.
4213 (CFILES): Add ldcref.c.
4214 (OFILES): Add ldcref.o.
4215 * ld.texinfo, ld.1: Document --cref.
4216
4217Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
4218
4219 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
4220
4221Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
4222
4223 * emultempl/pe.em (sort_sections): Don't assume that a
4224 wild_statement has a section name.
4225
4226Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
4227
4228 * scripttempl/elfmips.sc: Quote test -z argument.
4229
4230 * ld.texinfo: Clarify the CONSTRUCTORS command.
4231
4232Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
4233
4234 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
4235 file, not impfile.
4236
4237Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
4238
4239 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
4240 if final link.
4241 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
4242 (sort_by_section_name, sort_sections_1): New functions.
4243 (sort_sections): Only sort by file name sections in .idata.
4244 Add "Grouped Sections" support.
4245 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
4246 Sections.
4247 (gld${EMULATION_NAME}_place_section): Delete.
4248 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
4249 (.CRT,.rsrc): Rewrite to use Grouped Section support.
4250
4251Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
4252
4253 * mpw-eppcmac.c: Update to reflect changes to aix.em.
4254
4255Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
4256
4257 * ldlang.c (dprint_statement): Stop printing at end of list.
4258
4259Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
4260
4261 Support for --force-exe-suffix
4262 * ld.h (args_type): Add force_exe_suffix.
4263 * ld.texinfo: Add documentation.
4264 * ldmain.c (main): Add support for option.
4265 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
4266 (ld_options, parse_args): Add support for option.
4267
4268Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
4269
4270 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
4271
4272Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4273
4274 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
4275 referenced but not defined.
4276
4277Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4278
4279 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
4280 Set a new variable to signify if the final target is an embedded
4281 system.
4282 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
4283 .text for an embedded system.
4284
4285Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
4286
4287 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
4288 (gld${EMULATION_NAME}_place_section): New function.
4289 (hold_{section,use,text,rdata,data}): New static locals.
4290 (ld_${EMULATION_NAME}_emulation): Update orphan field.
4291 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
4292 (INIT,FINI): Delete, unused.
4293 (.text): Document orphan .text.foo sections.
4294 (.rdata): Document orphan .rdata.foo sections.
4295 (.data): Document orphan .data.foo sections.
4296
4297Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
4298
4299 * scripttempl/h8300.sc: Place ".tiny" sections right
4300 after ".data" sections.
4301 * scripttempl/h8300h.sc: Place ".tiny" sections into
4302 the "tiny" memory region, 0xff8000 through 0xffff00.
4303
4304 * scripttempl/h8300.sc: Set the entry point to the value of
4305 "_start" rather than the start of the text segment.
4306 * scripttempl/h8300h.sc: Likewise.
4307
4308 * scripttempl/h8300.sc: Place .rodata sections before .text
4309 sections in main ram.
4310 * scripttempl/h8300h.sc: Likewise.
4311
4312Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
4313
4314 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
4315 8-bit region and 8-bit sections.
4316
4317Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
4318
4319 * ldlang.c (section_already_linked): Fix typos.
4320
4321Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
4322
4323 * scripttempl/pe.sc (.endjunk): Define __end__.
4324
4325Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
4326
4327 * ldlang.c (longest_section_name): Remove.
4328 (SECTION_NAME_MAP_LENGTH): Define.
4329 (print_size, print_alignment, print_fill, print_section): Remove.
4330 (print_flags): Remove.
4331 (lang_map): Rewrite.
4332 (print_output_section_statement): Rewrite.
4333 (print_assignment): Rewrite.
4334 (print_one_symbol): Rewrite.
4335 (print_input_section): Rewrite.
4336 (print_fill_statement): Rewrite.
4337 (print_data_statement): Rewrite.
4338 (print_address_statement): New static function.
4339 (print_reloc_statement): Rewrite.
4340 (print_padding_statement): Rewrite.
4341 (print_wild_statement): Rewrite.
4342 (print_statement_list): Clean up.
4343 (print_statement): Clean up. Some minor output changes.
4344 (print_statements): Clean up.
4345 (load_symbols): Put another - before -whole-archive.
4346 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
4347 print 0x and to omit leading zeroes. For etree_rel, use %B to
4348 print the BFD. For etree_assign, remove the space after the
4349 destination name.
4350 * ldwrite.c: Include "libiberty.h".
4351 (clone_section): Call xstrdup, not strdup.
4352 (ldwrite): Don't print any map information.
4353 (print_symbol_table, print_file_stuff, print_symbol): Remove.
4354 * ldmain.c (main): Call lang_map when appropriate.
4355 * ldmisc.c (vfinfo): Add support for %W.
4356 (print_address): Remove.
4357 * ldmisc.h (print_address): Don't declare.
4358 * Makefile.in: Rebuild dependencies.
4359
4360Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4361
4362 * configure.host (m68*-*-linux*): Add -dynamic-linker to
4363 HOSTING_CRT0. Search -lgcc both before and after -lc in
4364 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
4365 at first.
4366 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
4367 directory at first.
4368
4369Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
4370
4371 * ldmisc.h (demangle): Declare.
4372 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
4373 not <>.
4374 (demangle): Make non-static. Remove remove_underscore paramter.
4375 Always return an allocated string.
4376 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
4377 functionname, rather than calling demangle. Print a colon between
4378 the BFD(section+offset) and the line number.
4379 * ldmain.c (add_archive_element): Improve format of archive
4380 information in map file.
4381 (constructor_callback): Don't print anything to the map file.
4382 * ldlang.c (lang_one_common): Improve format of common symbol
4383 information in map file.
4384 * ldctor.c (ldctor_build_sets): If producing a map file, print set
4385 information.
4386 * ldwrite.c (print_symbol_table): Print a newline before the
4387 header in the map file.
4388 * Makefile.in: Rebuild dependencies.
4389
4390 * ldmisc.c (vfinfo): Reindent.
4391
4392Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
4393
4394 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
4395 don't clobber it when not relaxing.
4396
4397 * ld.h (ld_config_type): Remove traditional_format field.
4398 * ldmain.c (main): Use link_info.traditional_format rather than
4399 config.traditional_format.
4400 * ldlang.c (ldlang_open_output): Likewise.
4401 * lexsup.c (parse_args): Likewise.
4402 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
4403 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
4404
4405 * ldlang.c (wild_doit): Discard debugging sections if we are
4406 stripping debugging information.
4407
4408 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
4409
4410Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
4411
4412 * ldexp.c (fold_binary): Correct handling of subtraction with
4413 absolute values.
4414 (fold_name): Permit symbols in lang_allocating_phase_enum.
4415
4416 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
4417 accidental changes in last patch.
4418
4419Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4420
4421 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
4422 (powerpcle*-*-{sysv,solaris}): Ditto.
4423
4424Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4425
4426 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
4427 in m68k/crt0.S without things blowing up.
4428
4429Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4430
4431 * scripttempl/m68kcoff.sc: Remove default address for .data so
4432 .text, .data, and .bss are all sequential.
4433
4434Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
4435
4436 * scripttempl/m68kcoff.sc: Remove regions and simplify.
4437
4438Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
4439
4440 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
4441 bytes of the address space. Put data from the ".eight" sections
4442 into the 8-bit area.
4443 * scripttempl/h8300h.sc: Likewise.
4444
4445Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
4446
4447 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
4448 Pass $ARCH to ldfile_set_output_arch instead of setting
4449 ldfile_output_architecture directly.
4450
4451Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4452
4453 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
4454 next to .text. Put _etext after .text, .init, .fini, and
4455 .rodata{,2} sections.
4456
4457Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
4458
4459 * ld.texinfo: Rearrange option documentation.
4460
4461 * lexsup.c (ld_options): New static array.
4462 (parse_args): Build shortopts and longopts from ld_options array.
4463 (help): New static function.
4464 * ldver.h (help): Don't declare.
4465 * ldver.c (ldversion): Reindent.
4466 (help): Remove.
4467
4468 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
4469
4470Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
4471
4472 * emultempl/elf32.em: When checking for a native emulation, check
4473 that the current emulation is the default emulation.
4474 * emultempl/sunos.em: Likewise.
4475
4476 * configure.in: Permit --enable-shared to specify a list of
4477 directories.
4478 * configure: Rebuild.
4479
4480 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
4481 for HP/UX compatibility.
4482
4483Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
4484
4485 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
4486 static function, if ${host} = ${target}.
4487 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
4488 needed shared library if ${host} = $[target}.
4489
4490 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
4491 HOSTING_CRT0. Search -lgcc both before and after -lc in
4492 HOSTING_LIBS.
4493
4494 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
4495 Polstra <jdp@polstra.com>.
4496
4497Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
4498
4499 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
4500 architecture number.
4501 * scripttempl/elf.sc: Use $MACHINE definition if present.
4502 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
4503 template as 4300.
4504
4505Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
4506
4507 * ldlang.c (lang_size_sections): Change region check to handle
4508 regions which end at the highest possible address correctly.
4509 From Roland Weber <roweber@ira.uka.de>.
4510
4511 * ldlang.c (section_already_linked): New static function.
4512 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
4513 relocateable link. Don't worry about section being NULL, since it
4514 never should be. Don't call init_os unless the section is going
4515 to be added.
4516 (ldlang_add_file): Call section_already_linked for each section.
4517 * ldmain.c (multiple_definition): Don't warn about multiple
4518 definitions in sections which are being discarded.
4519
4520Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
4521
4522 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
4523 * emultempl/pe.em (init): Remove special case PPC code.
4524
4525Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
4526
4527 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
4528 so as not to overwrite the magic syscall entry at 0xc4.
4529 * scripttempl/h8300h.sc: Likewise.
4530
4531Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
4532
4533 * configure.tgt (sparc64-*-solaris2*): Delete.
4534 Stick with sparc-*-solaris2*.
4535
4536Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
4537
4538 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
4539 * ldlang.c (init_os): Fail on an attempt to initialize any section
4540 named DISCARD_SECTION_NAME.
4541 (wild_doit): Discard input sections assigned to an output section
4542 named DISCARD_SECTION_NAME.
4543 * ld.texinfo: Document use of /DISCARD/.
4544
4545 * ldlang.c: Fix some indentation and comments.
4546
4547Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
4548
4549 * ldmain.c (main): Call bfd_set_error_program_name.
4550
4551Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
4552
4553 * ld.texinfo: Fix a couple of indexing entries. Mention that
4554 --verbose displays builtin linker scripts.
4555
4556 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
4557 and the local symbol name does not match the filename, print the
4558 filename as well.
4559
4560 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
4561 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
4562 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
4563 as TEXT_START_ADDR.
4564
4565Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4566
4567 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
4568
4569Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
4570
4571 * ldmain.c (add_wrap): New function.
4572 * ldmain.h (add_wrap): Declare.
4573 * lexsup.c (parse_args): Call add_wrap.
4574
4575Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
4576
4577 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
4578
4579Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
4580
4581 * scripttempl/h8300.sc: Change name of page zero memory
4582 from "null" to "vectors". Create an output section for
4583 vectors. Add comments on how to explicitly place items
4584 in the vector table.
4585 * scripttempl/h8300h.sc: Likewise.
4586
4587Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
4588
4589 * emultempl/lnk960.em (machine_table): Add jx and hx.
4590
4591 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
4592 support it.
4593
4594Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
4595
4596 * ld.h (ld_config_type): Add warn_multiple_gp field.
4597 * lexsup.c (parse_args): Handle --warn-multiple-gp.
4598 * ldmain.c (warning_callback): Suppress multiple gp values warning
4599 if --warn_multiple_gp was not used.
4600 * ld.texinfo, ld.1: Document --warn-multiple-gp.
4601
4602Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
4603
4604 * lexsup.c (parse_args): Handle --wrap.
4605 * ldmain.c (main): Initialize link_info.wrap_hash.
4606 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
4607 and NAME cases.
4608 * ld.texinfo, ld.1: Document --wrap.
4609
4610 * configure: Rebuild with autoconf 2.8.
4611
4612 Don't do SunOS style dynamic linking for sparc-aout:
4613 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
4614 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
4615 (sparc*-wrs-vxworks*): Likewise.
4616 * emulparams/sparcaout.sh: New file.
4617 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
4618 (esparcaout.c): New target.
4619
4620Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4621
4622 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
4623 in a different manner to work around differences in shell variable
4624 expansion.
4625
4626Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
4627
4628 * ldemul.h (ldemul_unrecognized_file): Declare.
4629 (ldemulation_xfer_type): Add unrecognized_file field.
4630 * ldemul.c (ldemul_unrecognized_file): New function.
4631 * ldlang.c (load_symbols): If a file can not be recognized, call
4632 ldemul_unrecognized_file before trying it as a linker script.
4633 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
4634 function.
4635 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
4636 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
4637
4638Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
4639
4640 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
4641 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
4642
4643Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4644
4645 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
4646 Search trinary.cond rather than searching trinary.lhs twice.
4647
4648Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
4649
4650 * mpw-make.sed: Edit out shared library support.
4651 (@TDIRS@): Edit out, can't use genscripts.
4652
4653Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4654
4655 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
4656 * emulparams/m68klinux.sh: New file.
4657 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
4658 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
4659 bfd_linux_size_dynamic_sections.
4660 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
4661 (em68klinux.c): New target.
4662 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
4663
4664Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
4665
4666 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
4667 Fill in missing entries.
4668
4669 * lexsup.c (parse_args): Recognize --no-whole-archive.
4670 * ldlang.h (lang_input_statement_type): Add whole_archive field.
4671 * ldlang.c (new_afile): Set whole_archive field.
4672 (load_symbols): Check input file specific whole_archive field
4673 rather than global variable.
4674 * ld.texinfo, ld.1: Document --no-whole-archive.
4675
4676Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
4677
4678 * configure.tgt: Correct gldi960 to gld960.
4679
4680Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
4681
4682 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
4683 the SONAME if it is available.
4684 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
4685 filename, when checking for conflicting library versions. Don't
4686 assume that the suffix is only numbers and dots.
4687
4688 * ld.texinfo: Mention that -R can be used for -rpath.
4689
4690Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
4691
4692 * configure.host: Check for 'do not mix' from native linker before
4693 trying to use -rpath.
4694
4695Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
4696
4697 * configure.in: Remove explicit substitution of CFLAGS; autoconf
4698 does it anyhow.
4699 * configure: Rebuild.
4700 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
4701
4702 * configure.in: Call AC_PROG_CC before configure.host.
4703 * configure: Rebuild.
4704 * configure.host: Remove go32 host, since it should no longer be
4705 necessary. Don't set CC for romp host.
4706
4707 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
4708 the text segment ends exactly on a page boundary.
4709
4710 * configure.in: Substitute RPATH_ENVVAR.
4711 * configure: Rebuild.
4712 * configure.host: Set RPATH_ENVVAR.
4713 * Makefile.in (RPATH_ENVVAR): New variable.
4714 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
4715
4716Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
4717
4718 * configure.in: Redo emulation handling so that each emulation
4719 searches the correct tool directory, based on the target alias.
4720 For example, "configure --enable-targets=m68k-coff i386-linux"
4721 will search /usr/local/i386-linux/lib for linux and
4722 /usr/local/m68k-coff/lib for m68k-coff.
4723 * configure: Rebuild.
4724 * configure.tgt: Add special tdir settings for Linux.
4725 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
4726 for each eEMUL.c target.
4727 * genscripts.sh: Accept specific alias as 9th argument, and use it
4728 in LIB_PATH.
4729
4730Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
4731
4732 * ldlang.c (lang_set_startof): Don't do anything for a
4733 relocateable link.
4734
4735 * ldgram.y (mri_script_file): Call mri_draw_tree.
4736 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
4737 create memory regions.
4738 (mri_load): Don't call mri_draw_tree.
4739 * mri.h (mri_draw_tree): Declare.
4740
4741 * configure.tgt (m68*-*-psos): New target.
4742 * emulparams/m68kpsos.sh: New file.
4743 * scripttempl/psos.sc: New file.
4744 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
4745 (em68kpsos.c): New target.
4746
4747Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
4748
4749 * configure.tgt (*-*-ieee*): New target; use vanilla.
4750
4751 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
4752 `:foo' from ${ARCH}.
4753
4754Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
4755
4756 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
4757 .rodata in .data.
4758
4759Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
4760
4761 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
4762
4763 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
4764 it looks like we might be linking in two different versions of the
4765 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
4766
4767Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
4768
4769 * ldlang.c (lang_size_sections): Increment the section size when a
4770 padding statement is encountered.
4771
4772Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
4773
4774 * configure.in: Look for --enable-shared. Change the value of
4775 BFDLIB when linking against a shared library on SunOS.
4776 * configure: Rebuild.
4777 * configure.host: If using a shared BFD library, try to pass a
4778 reasonable -rpath option when linking.
4779 * Makefile.in (BFDLIB): Set to @BFDLIB@.
4780
4781Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
4782
4783 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
4784 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
4785
4786Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
4787
4788 Support for building bfd and opcodes as shared libraries, based on
4789 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
4790 * configure.in (HLDFLAGS): New substitution.
4791 * configure: Rebuild.
4792 * configure.host: Set HLDFLAGS on SunOS.
4793 * Makefile.in (HLDFLAGS): New variable.
4794 (BFDDEP): New variable.
4795 (BFDLIB): Change to -L../bfd -lbfd.
4796 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
4797 $(HLDFLAGS) in link.
4798 (check): Set LD_LIBRARY_PATH in the environment.
4799
4800Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4801
4802 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
4803 in the read-only section, not read/write unless we are making a
4804 shared library.
4805 (.debug*): Add dwarf debug sections.
4806 (.rela.{sdata*,sbss*}): Add sections.
4807
4808Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
4809
4810 * configure: Regenerate.
4811
4812Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
4813
4814 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
4815 for SVR4 compatibility.
4816
4817 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
4818
4819Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
4820
4821 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
4822 * emultempl/pe.em (definfo init): Make the default stack reserve
4823 of a PPC larger.
4824
4825Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
4826
4827 * configure.tgt (m68*-apple-aux*): New target.
4828 * emulparams/m68kaux.sh: New file.
4829 * scripttempl/m68kaux.sc: New file.
4830 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
4831 (em68kaux.c): New target.
4832
4833Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
4834
4835 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
4836 -bnoentry, since the right thing tends to happen anyhow.
4837
4838Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
4839
4840 * ld.texinfo, ld.1: Document -export-dynamic.
4841
4842Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4843
4844 * emultempl/sunos.em: Check for native compile by comparing
4845 ${target} and ${host}.
4846
4847Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
4848
4849 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
4850 TEXT_START_ADDR to allow use on IDT and PMON systems.
4851
4852Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
4853
4854 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
4855 correct spelling.
4856
4857Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
4858
4859 * configure.tgt (sparc64-*-solaris2*): New configuration.
4860 (sparc64-*-aout*): Renamed from sparc64*.
4861
4862Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4863
4864 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
4865 * genscripts.sh: Set host, target and target_alias variables.
4866 Check for native compile by comparing ${target} and ${host}.
4867 * emultempl/elf32.em: Likewise.
4868 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
4869
4870Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4871
4872 * scripttempl/elfppc.sc: Refine eabi support to better support
4873 .sdata, .sdata2, .sbss, etc. sections.
4874
4875Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
4876
4877 * ldgram.y (%union): Add phdr field.
4878 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
4879 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
4880 (opt_hdrs, hdr): Remove.
4881 (phdr_val): New nonterminal.
4882 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
4883 and phdrs parameters. Add flags parameter.
4884 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
4885 to bfd_record_phdr.
4886 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
4887 phdrs fields. Add flags field.
4888 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
4889 (lang_new_phdr): Update declaration.
4890 * ld.texinfo: Document FLAGS.
4891
4892Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
4893
4894 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
4895 Don't make a shared library because of an undefined reference to
4896 __GLOBAL_OFFSET_TABLE_.
4897
4898 Add some Irix 5 support, mostly from Kazumoto Kojima
4899 <kkojima@info.kanagawa-u.ac.jp>:
4900 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
4901 (SHLIB_TEXT_START_ADDR): Define.
4902 (OTHER_GOT_SYMBOLS): Define.
4903 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
4904 (EXECUTABLE_SYMBOLS): Don't define.
4905 (DYNAMIC_LINK): Don't define.
4906 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
4907 * scripttempl/elfmips.sc: New file.
4908 * configure.host (mips*-dec-bsd*): Change mips to mips*.
4909 (mips*-sgi-irix4*): Likewise.
4910 (mips*-sgi-irix5*): New entry.
4911 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
4912 elf.sc.
4913 (eelf32lmip.c): Likewise.
4914
4915Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4916
4917 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
4918 .rela.got.neg section.
4919
4920Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
4921
4922 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
4923
4924 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
4925 ANSI_PROTOTYPES is defined. Remove special handling of
4926 WINDOWS_NT. Various indendation fixes.
4927 (vfinfo): Change fmt parameter to const char *.
4928 (info_msg): Write <stdarg.h> version.
4929 (einfo, minfo, finfo): Likewise.
4930 (info_assert): Change file parameter to const char *.
4931 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
4932 defined, use a real prototype.
4933 (info_assert): Change first parameter to be const char *.
4934
4935Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4936
4937 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
4938 in old support that 2.7.2 needs, but the current compiler does
4939 not.
4940
4941 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
4942 correct Linker script template.
4943
4944 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
4945 not 0x400000.
4946 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
4947
4948Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
4949
4950 * scripttempl/alpha.sc: Put .rconst right after .rdata.
4951
4952Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
4953
4954 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
4955 sort using right pointer.
4956
4957Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4958
4959 * scripttempl/elfppc.sc: Remove support for creating special
4960 labels for eabi section begin/end here. The compiler now uses
4961 crt{i,n}.o to create these symbols.
4962
4963Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
4964
4965 * configure.host: Change existing Linux HOSTING_CRT0 to be used
4966 for a.out only, and put in appropriate HOSTING_CRT0 and
4967 HOSTING_LIBS values for Linux ELF.
4968
4969Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
4970
4971 * scripttempl/h8300.sc: Use all 64K for ram.
4972 * scripttempl/h8300h.sc: Define 256K ram size.
4973
4974Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
4975
4976 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
4977 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
4978 was used, regardless of whether -bE was used.
4979
4980Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
4981
4982 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
4983 relocateable before calling ldctor_build_sets if the output file
4984 is in an XCOFF format.
4985
4986Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
4987
4988 * ldwrite.c (build_link_order): When handling a data statement, if
4989 the endianness of the output file is unknown, use the endianness
4990 of the input file.
4991
4992Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
4993
4994 * mpw-config.in: Recognize mips-*-* as equivalent to
4995 mips-idt-ecoff.
4996 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
4997 * mpw-ld.r: Add version resources.
4998 (cfrg): Use symbolic instead of literal name for executable.
4999
5000Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
5001
5002 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
5003
5004Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
5005
5006 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
5007 (print_statement_list): Renamed from print_statement. All callers
5008 updated.
5009 (print_statement): New function to print just one statement.
5010 (print_{data,reloc,padding}_statement): Don't crash if
5011 output_section == NULL.
5012 (dprint_statement): New function.
5013
5014 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
5015 call to sort_sections.
5016
5017Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
5018
5019 * emultempl/aix.em (unix_ld): New static variable.
5020 (gld${EMULATION_NAME}_parse_args): Handle -unix.
5021 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
5022 gc as false and export_defineds as true to size_dynamic_sections.
5023
5024 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
5025 phase if the current section is abs_output_section.
5026
5027
5028Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
5029
5030 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
5031 to sort_sections.
5032
5033Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
5034
5035 * ldgram.y (PHDRS): New token.
5036 (ifile_p1): Accept phdrs.
5037 (section): Accept phdr_opt at the end of the section definition.
5038 (phdr_op): New nonterminal.
5039 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
5040 * ldlex.l: Accept PHDRS.
5041 * ldlang.h (struct lang_output_section_phdr_list): Define.
5042 (lang_output_section_statement_type): Add phdrs field.
5043 (struct lang_phdr): Define.
5044 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
5045 (lang_new_phdr): Declare.
5046 * ldlang.c (lang_phdr_list): New static variable.
5047 (lang_output_section_statement_lookup): Initialize phdrs field.
5048 (lang_process): Call lang_record_phdrs.
5049 (lang_new_phdr): New function.
5050 (lang_section_in_phdr): New function.
5051 (lang_record_phdrs): New static function.
5052 * ld.texinfo: Document PHDRS.
5053
5054Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
5055
5056 * scripttempl/ppcpe.sc: Moved .edata into its own section to
5057 expose it.
5058
5059Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5060
5061 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
5062 HOSTING_LIBS for testing.
5063 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
5064 testing.
5065
5066Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
5067
5068 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
5069 and -n.
5070
5071Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
5072
5073 * configure: Rebuild with autoconf 2.7.
5074
5075Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
5076
5077 * scripttempl/pe.sc: Two .junk's is too much junk.
5078
5079Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
5080
5081 * configure.in: Use BFD_NEED_DECLARATION.
5082 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
5083 * configure, config.in: Rebuild with autoconf 2.6.
5084
5085 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
5086 being unsupported if this is not a relocateable link and the input
5087 BFD supports it, since ldctor_build_sets can cope with that case.
5088
5089Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
5090
5091 * configure.tgt (powerpc-*-macos*): New target.
5092 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
5093 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
5094 (eppcmacos.c): New target.
5095 * mpw-eppcmacos.c: Update.
5096 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
5097
5098Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
5099
5100 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
5101 $(host_canonical) and $(target_canonical).
5102 (CXX_FOR_TARGET): Likewise.
5103
5104Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
5105
5106 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
5107 so the malloc heap begins at a sane place.
5108
5109Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
5110
5111 Version 2.6 released.
5112 * ldver.c (ldversion): Update to 2.6.
5113
5114 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
5115 $(GENERATED_*FILES), since they need to be retained by distclean.
5116 (maintainer-clean, realclean): Delete them here.
5117
5118Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
5119
5120 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
5121 base file with FOPEN_WB, not "w".
5122
5123 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
5124 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
5125 were used.
5126 (gld${EMULATION_NAME}_before_allocation): Use the environment
5127 variable LD_RUN_PATH if -rpath was not used.
5128 * ld.texinfo, ld.1: Document LD_RUN_PATH.
5129
5130Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
5131
5132 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
5133 -bl and -bloadmap options.
5134
5135 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
5136 report a better error.
5137
5138 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
5139 new local variable special_sections, and pass it to
5140 size_dynamic_sections. Look through the results, and move the
5141 sections around in the mapping so that they are defined correctly.
5142
5143Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
5144
5145 * ldemul.c (ldemul_default_target): Cast getenv return value.
5146
5147Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
5148
5149 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
5150 Executable support.
5151 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
5152 support.
5153
5154 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
5155 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
5156
5157 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
5158 (gld_$_before_allocation): added hooks for toc construction based
5159 on the above macro.
5160
5161Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
5162
5163 * ld.texinfo: The linker does not use _main as an entry point.
5164
5165Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5166
5167 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
5168 0x2000 not 0x200.
5169
5170Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
5171
5172 * configure.in: Add test for whether free must be declared.
5173 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
5174 * acconfig.h: Explain NEED_DECLARATION_FREE.
5175 * configure, config.in: Rebuild.
5176
5177 * lexsup.c (parse_args): Take B:: out of shortopts.
5178
5179Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
5180
5181 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
5182 for now, as with m68k4kbsd, until shared library support gets
5183 done.
5184
5185 * configure.host: For i386 BSD variants, crt0.o lives in
5186 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
5187
5188Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5189
5190 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
5191 (edelta68.c): New target.
5192 * configure.tgt (m68*-motorola-sysv*): New target.
5193 * emulparams/delta68.sh: New file.
5194 * scripttempl/delta68.sc: New file.
5195
5196 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
5197 addresses.
5198
5199Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
5200
5201 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
5202 ALIGN and ALIGNMOD statements.
5203
5204 * emultempl/aix.em: Include ldgram.h.
5205 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
5206 AIX 4.1.
5207 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
5208
5209Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
5210
5211 * configure.host (alpha-*-linux*): New host.
5212 * configure.tgt (alpha-*-linux*): New target.
5213
5214Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
5215
5216 * emultempl/aix.em (export_files): Remove.
5217 (import_files): Make static.
5218 (struct export_symbol_list): Define.
5219 (export_symbols): New static variable.
5220 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
5221 correctly. Call read_file for an export file.
5222 (gld${EMULATION_NAME}_before_allocation): Call
5223 bfd_xcoff_export_symbol for each export symbol, rather than
5224 calling read_file for each export file.
5225 (gld${EMULATION_NAME}_read_file): For an export file, make the
5226 exported symbols undefined, and store them on the export_symbols
5227 list.
5228
5229Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
5230
5231 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
5232 Don't hang if last option is unrecognised.
5233 (gld_${EMULATION_NAME}_set_symbols): Insert created
5234 symbols into ABS output section.
5235
5236Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
5237
5238 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
5239 m68k4k arch.
5240 (em68k4knbsd.c): New rule.
5241
5242 * configure.tgt: Added support for the NetBSD m68k4k arch.
5243
5244 * genscripts.sh, ldint.texinfo,
5245 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
5246 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
5247 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
5248 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
5249 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
5250 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
5251 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
5252 PAGE_SIZE to TARGET_PAGE_SIZE.
5253
5254 * emulparams/m68knbsd.h: Ditto.
5255 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
5256 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
5257 being.
5258
5259 * emulparams/m68k4knbsd.sh: New file.
5260
5261 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
5262
5263Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
5264
5265 * emultempl/aix.em: Include ldctor.h.
5266 (gld${EMULATION_NAME}_after_open): New static function.
5267 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
5268 (gld${EMULATION_NAME}_find_relocs): New static function.
5269 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
5270 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
5271 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
5272 * ldctor.c (struct set_info): Move definition into ldctor.h.
5273 (struct set_element): Likewise.
5274 (sets): Make non-static.
5275 (ldctor_add_set_entry): Add name parameter. Save it in the new
5276 set element.
5277 (ldctor_build_sets): Avoid being called twice. Pass set element
5278 name to lang_add_reloc.
5279 * ldctor.h (struct set_info): Move definition here from ldctor.c.
5280 (struct set_element): Likewise. Add new field name.
5281 (sets): Declare.
5282 (ldctor_add_set_entry): Declare new name parameter.
5283 * ldwrite.c (build_link_order): Don't insist that either name or
5284 section be NULL in a lang_reloc_statement.
5285 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
5286 new name parameter.
5287 (constructor_callback): Pass name to ldctor_add_new_set_entry for
5288 new name parameter.
5289
5290 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
5291
5292Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
5293
5294 * mpw-config.in: Add PowerMac target support, generate config.h.
5295 * mac-ld.r: New file, Mac resources.
5296 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
5297 * mpw-make.in: Remove.
5298 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
5299
5300Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
5301
5302 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
5303 -static as a synonym for -bnso.
5304
5305 * scripttempl/aix.sc: Move special symbols inside sections.
5306 Always start .data at 0.
5307
5308Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
5309
5310 * Makefile.in (diststuff): Also make info.
5311 (maintainer-clean realclean): Also delete *.info*.
5312
5313Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
5314
5315 * emultempl/aix.em: Add support for various AIX linker options,
5316 for AIX import and export files, and for AIX shared objects.
5317 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
5318
5319 * ldmain.c (main): Initialize new field link_info.static_link.
5320
5321 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
5322 (constructor_callback): Likewise.
5323 * ldmisc.c (vfinfo): Likewise.
5324 * ldwrite.c (build_link_order): Likewise.
5325
5326 * ld.texinfo: The MRI ALIGN directive is supported.
5327
5328Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
5329
5330 * emulparams/elf32vr4300.sh: Deleted.
5331 * emulparams/elf32vr4300el.sh: Deleted.
5332 * emulparams/elf32b4300.sh: Added.
5333 * emulparams/elf32l4300.sh: Added.
5334 * configure.tgt, Makefile.in: Updated the build to use the
5335 new 8.3 unique names.
5336
5337Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
5338
5339 * ldlang.c (entry_symbol): Make non-static.
5340 * ldlang.h (entry_symbol): Declare.
5341
5342 * ldlex.l: Treat PROVIDE as a keyword in expression state.
5343
5344Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
5345
5346 * scripttempl/pe.sc (.bss): Move to be after .text
5347
5348Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
5349
5350 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
5351 Search trinary.cond rather than searching trinary.lhs twice. From
5352 linli@ihp.PHys.ethz.CH.
5353
5354 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
5355 directory searching code into gld${EMULATION_NAME}_search_dir.
5356 (gld${EMULATION_NAME}_search_dir): New static function, extracted
5357 from gld${EMULATION_NAME}_find_so.
5358 (global_needed, global_found): New static variables.
5359 (gld${EMULATION_NAME}_after_open): New static function.
5360 (gld${EMULATION_NAME}_search_needed): New static function.
5361 (gld${EMULATION_NAME}_try_needed): New static function.
5362 (gld${EMULATION_NAME}_check_needed): New static function.
5363 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
5364 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
5365
5366 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
5367 (eelf32lppc.c): Likewise.
5368 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
5369 (GENERATE_SHLIB_SCRIPT): Define as yes.
5370
5371Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
5372
5373 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
5374 bfd_link_needed-list; make appropriate changes.
5375
5376 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
5377 (rs6000-*-aix*): New target; use aixrs6.
5378 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
5379 * emultempl/aix.em: New file.
5380 * scripttempl/aix.sc: New file.
5381 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
5382 (eaixppc.c, eaixrs6.c): New targets.
5383
5384Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
5385
5386 * scripttemp/pe.sc (.reloc): Move to the end.
5387
5388Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
5389
5390 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
5391 section which was not linked into the final output.
5392
5393Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
5394
5395 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
5396 fatal typos.
5397
5398Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
5399
5400 * ld.h (args_type): Add rpath_link field.
5401 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
5402 required dependencies in rpath_link path. Only search
5403 LD_LIBRARY_PATH when configured native.
5404 * lexsup.c (parse_args): Recognize -rpath-link.
5405 * ld.1, ld.texinfo: Document -rpath-link.
5406
5407Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
5408
5409 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5410 bother searching for needed libraries unless doing a final link.
5411
5412Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
5413
5414 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5415
5416 * ld/ld.1: Fix formatting bugs.
5417
5418Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
5419
5420 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
5421 * ldexp.h (exp_get_abs_int): Update declaration.
5422 * ldlang.c (print_output_section_statement): Use fprintf_vma to
5423 print return value of exp_get_abs_int.
5424
5425Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
5426
5427 * emultempl/elf32.em (global_stat): New file static variable.
5428 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
5429 that the file has not already been included under another name.
5430 (gld${EMULATION_NAME}_stat_needed): New static function.
5431
5432Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
5433
5434 * scripttempl/armcoff.sc: Start .text at 0x8000.
5435 Start .data at 0x40000.
5436
5437Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
5438
5439 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
5440 command_line.rpath is set, use it, rather than the -L options, to
5441 build the rules section.
5442 * ld.texinfo: Document this use of -rpath.
5443
5444 * lexsup.c (parse_args): Don't set link_info.shared for -assert
5445 pure-text. Pass true, not 1, to lang_add_entry.
5446 * emultempl/sunos.em (find_assign): New static variable.
5447 (found_assign): New static variable.
5448 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
5449 If not a relocateable link, and no start symbol was specified on
5450 the command line, and there are any undefined symbols, set
5451 link_info.shared. If link_info.shared is set, set the address of
5452 the .text section to 0x20.
5453 (gld${EMULATION_NAME}_find_assignment): Rename from
5454 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
5455 set, then just set found_assign based on whether an assignment is
5456 found to find_assign.
5457 (gld${EMULATION_NAME}_get_script): Don't use a special script when
5458 producing a shared library.
5459 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
5460 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
5461 * ldlang.c (entry_from_cmdline): New global variable.
5462 (lang_add_entry): Change cmdline parameter from int to boolean.
5463 Use global entry_from_cmdline rather than function static
5464 from_cmdline.
5465 * ldlang.h (entry_from_cmdline): Declare.
5466 (lang_add_entry): Change declaration of second parameter from int
5467 to boolean.
5468 * ldgram.y: Pass false, not 0, to lang_add_entry.
5469
5470Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
5471
5472 * ld.h (parsing_defsym): Declare.
5473 * ldlex.h (lex_string): Declare.
5474 * ldlex.l (lex_string): Define.
5475 * lexsup.c (parsing_defsym): Define.
5476 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
5477 lex_redirect, and clear it after calling yyparse. Set
5478 parsing_defsym around call to yyparse.
5479 * ldmain.c (main): Set lex_string before calling lex_redirect, and
5480 clear it after calling yyparse.
5481 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
5482 in linker scripts correctly.
5483
5484 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
5485 COFF targets, allowing for the leading underscore used on SPARC
5486 COFF.
5487
5488 * lexsup.c (parse_args): Handle -assert.
5489 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
5490 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
5491 shared library script when appropriate.
5492 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
5493 section at SIZEOF_HEADERS.
5494
5495Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
5496
5497 * Makefile.in (earmcoff.c): Build.
5498 * configure.tgt (arm-*-coff): New target
5499 * emulparms/armcoff.sh: New file.
5500 * scripttempl/armcoff.sc: New file.
5501
5502Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
5503
5504 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
5505
5506Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
5507
5508 * ldfile.c (ldfile_set_output_arch): Make arch const.
5509
5510Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5511
5512 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
5513 beginning of the .bss area, not at the end of data. Add
5514 __sbss_{start,end} symbols.
5515
5516Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
5517
5518 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
5519 (CXX_FOR_TARGET, install): Likewise.
5520
5521Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
5522
5523 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
5524 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
5525 (CXX_FOR_TARGET): Likewise.
5526 (install): Likewise.
5527 (GENERATED_HFILES): Remove config.h.
5528 (.dep): Depend upon config.h.
5529
5530Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
5531
5532 * configure.tgt (mips*-dec-netbsd*): New target.
5533
5534Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
5535
5536 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
5537
5538Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
5539
5540 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
5541
5542Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
5543
5544 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
5545 Start .text section on the right boundary. Always align
5546 stabs.
5547
5548Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
5549
5550 * Makefile.in (maintainer-clean): New target.
5551
5552 * ldmain.c (struct warning_callback_info): Define.
5553 (warning_callback): Add new parameter symbol. Call
5554 warning_find_reloc to try to find the section and VMA.
5555 (warning_find_reloc): New static function.
5556 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5557 Pass NULL as symbol parameter to warning callback.
5558
5559 * ld.texinfo: Clarify -L option.
5560
5561 * ldlang.c (lang_one_common): Add cast to avoid warning.
5562 (topower): Likewise. Also, reindent.
5563 * ldwrite.c (clone_section): Change i to unsigned int.
5564 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
5565 cast to avoid warning.
5566
5567Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
5568
5569 * Makefile.in (config.status): Depend upon configure.tgt.
5570
5571 * ldemul.h (ldemul_set_symbols): Declare.
5572 (ldemul_parse_args): Declare.
5573 * ldemul.c (ldemul_parse_args): Fix indentation.
5574
5575 * configure.in: Call AC_HEADER_DIRENT.
5576 * configure, config.in: Rebuild.
5577 * emultempl/sunos.em: Use autoconf recommend mechanism to define
5578 DIR and struct dirent.
5579
5580 * configure.tgt (mips*-*-bsd*): New case.
5581
5582 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
5583 New case.
5584 * configure.tgt (i[345]86-*-ptx*): New case.
5585
5586Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
5587
5588 * config.in: Rename from config.h.in.
5589 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
5590 Check for config.h:config.in when creating stamp-h.
5591 * configure: Rebuild.
5592 * Makefile.in (stamp-h): Depend upon config.in rather than
5593 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
5594 calling config.status.
5595
5596 * Makefile.in (distclean): Remove config.h and stamp-h.
5597
5598 * configure.host (sparc-*-sunos64*): Remove.
5599 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
5600
5601 * ldexp.c (exp_fold_tree): Don't warn about moving the location
5602 counter backward in the absolute section.
5603
5604Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
5605
5606 * configure.in: Rewrite to use autoconf.
5607 * configure.host: New file.
5608 * configure.tgt: New file.
5609 * aclocal.m4: New file.
5610 * configure: New file, built by autoconf.
5611 * acconfig.h: New file.
5612 * config.h.in: New file, built by autoheader.
5613 * sysdep.h: New file.
5614 * ld.h: Incorporate old contents of config.h.
5615 * config.h: Remove.
5616 * Makefile.in: Various changes for new configure script. Also:
5617 (CC_FOR_BUILD): Remove.
5618 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
5619 (dep.sed): Use @SRCDIR@, not @srcdir@.
5620 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
5621 * genscripts.sh: Create ldscripts if it does not exist.
5622 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
5623 * mpw-esh.c, emultemp/*.em: Likewise.
5624 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
5625 HAVE_SBRK here.
5626 * config/*.mt, config/*.mh: Remove.
5627
5628Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
5629
5630 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
5631 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
5632
5633Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
5634
5635 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
5636
5637Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
5638
5639 * ldmain.c (warning_callback): Add abfd, section, and address
5640 parameters.
5641 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5642 Change call to warning accordingly.
5643
5644 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
5645 relocateable and not shared, put .gnu.warning.SYMBOL sections into
5646 the .text section.
5647
5648Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
5649
5650 * configure.in: Added mips*vr4300-idt-elf* and
5651 mips*vr4300el-idt-elf* targets.
5652 * Makefile.in: Added eelf32vr4300* targets.
5653 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
5654 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
5655
5656Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
5657
5658 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
5659 <brendan@cygnus.com>.
5660
5661Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
5662
5663 * ldemul.c (ldemul_parse_args): New.
5664 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
5665 * lexsup.c (all pe stuff): Moved into pe.em
5666 (parse_args): Call emulation arg parser.
5667 * emultempl/pe.em (parse_args): handle PE specfic args.
5668
5669Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
5670
5671 * ldlang.c (lang_memory_region_lookup): Don't use the first region
5672 as the default region. Create a new region instead.
5673
5674Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
5675
5676 * ldemul.c (ldemul_set_symbols): New function.
5677 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
5678 * ldmain.c (main): Add call to ldemul_set_symbols.
5679 * lexsup.c (set_pe_value): New args.
5680 (set_pe_name): New.
5681 (parse_args): Cope with new set_pe_value args.
5682 * emultempl/pe.em (set_symbols): New function.
5683 (ld_emulation_xfer_struct): Add set_symbols.
5684 * scripttempl/pe.sc: Use new symbols.
5685
5686Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
5687
5688 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
5689 For -Y, ignore a leading `P,', and only call set_default_dirlist
5690 after processing all the other arguments.
5691
5692Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
5693
5694 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
5695 * emulparams/armpe.sh: Run PE script.
5696
5697Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
5698
5699 * ldmain.c (main): Remove PE stuff.
5700 * lexsup.c (options): Load more PE options.
5701 (set_pe_value): New function.
5702
5703Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
5704
5705
5706 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
5707 * emultempl/pe.sc: New file performs generic PE support and sorts
5708 archive members.
5709 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
5710 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
5711 * scripttempl/pe.sc: New.
5712 * Makefile.in: Use new files.
5713
5714Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
5715
5716 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
5717 (.strings,.ctors,.dtors): Likewise.
5718
5719Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
5720
5721 * scripttempl/armpe.sc: Always start code at 0x401000, even
5722 if -r.
5723 * ldwrite.c (strdup): New extern declaration.
5724 * ldgram.y (atype): New rule to clarify type parsing.
5725 * ldlang.c (init_os): Remove commented out code.
5726 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
5727 unless told not to by the link script.
5728
5729Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
5730
5731 * ldlang.c (lang_set_startof): New static function.
5732 (lang_process): Call it.
5733
5734 * ldgram.y: Tweak casesymlist to avoid bison errors.
5735
5736 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
5737 Solaris compatibility.
5738
5739Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
5740
5741 * ldgram.y (YYDEBUG): If not defined, define as 1.
5742 (CASE, EXTERN, START): New tokens.
5743 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
5744 (casesymlist): New nonterminal.
5745 (extern_name_list): New nonterminal.
5746 * ldlex.l: Accept lower case trailing base specifiers. Don't
5747 ignore the first digit when the base is a suffix. Accept many
5748 EXPRESSION state tokens in MRI state. Support MRI continuation
5749 lines and MRI semicolon comments. Accept all MRI keywords in
5750 lower case. Add CASE, EXTERN, and START MRI keywords.
5751
5752Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
5753
5754 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
5755 instead of alloca.
5756
5757Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
5758
5759 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
5760 $r/../gcc/xgcc unless it is present.
5761
5762Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
5763
5764 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
5765 when CONSTRUCTING.
5766 * scripttempl/m68klynx.sc: Likewise.
5767 * scripttempl/nw.sc: Likewise.
5768 * scripttempl/sa29200.sc: Likewise.
5769 * scripttempl/sparclynx.sc: Likewise.
5770
5771Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
5772
5773 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
5774
5775Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
5776
5777 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
5778
5779Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
5780
5781 * scripttempl/i386pe.sc: Cope with constructors.
5782 * scripttempl/z8ksim.sc: Deleted.
5783 * scripttempl/z8000.sc: Resurrected as this, but
5784 can handle z8001 and z8002 formats.
5785 * emulparams/z8ksim.sh: Deleted.
5786 * emulparams/{z8001.sh, z8002.sh}: New files.
5787 * config/z8ksim.mt: Deleted
5788 * config/z8k-coff.mt: New, generates both emulations.
5789
5790Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
5791
5792 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
5793 %B, in case it is in an archive.
5794
5795Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
5796
5797 * ldlang.c (lang_process): Call reset_memory_regions for each
5798 relaxation pass.
5799
5800Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
5801
5802 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
5803 _SDA_BASE.
5804
5805Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
5806
5807 * ldmain.c (constructor_callback): Allocate set_name in stack
5808 frame, rather than always calling alloca with a fixed size.
5809
5810Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
5811
5812 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
5813 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
5814
5815Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
5816
5817 * ldwrite.c (clone_section): Set the alignment of the clone
5818 section to that of the section being cloned.
5819
5820 * ldwrite.c (split_sections): Don't split the first input section
5821 into a new output section.
5822
5823Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
5824
5825 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
5826 (GENERATE_SHLIB_SCRIPT): Define as yes.
5827
5828Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
5829
5830 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
5831
5832 * ldver.c (help): Update list of options to match currently
5833 supported list.
5834
5835Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
5836
5837 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
5838 after_open field.
5839
5840 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
5841 it takes a size_t anyhow.
5842 (exp_binop): Likewise.
5843 (exp_trinop): Likewise.
5844 (exp_unop): Likewise.
5845 (exp_nameop): Likewise.
5846 (exp_assop): Likewise.
5847 * ldlang.c (lang_memory_region_lookup): Likewise.
5848 (init_os): Likewise.
5849 (ldlang_add_undef): Likewise.
5850 (insert_pad): Likewise.
5851 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
5852 bfd_size_type.
5853
5854 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
5855
5856Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
5857
5858 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
5859 declaration.
5860 (ld_emulation_xfer_type): Add search parameter to
5861 open_dynamic_archive entry point.
5862 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
5863 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
5864 make non-static. Change all callers to use new name.
5865 (ldfile_open_file_search): Make static. If entry is dynamic, call
5866 ldemul_open_dynamic_archive.
5867 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
5868 * ldfile.h (ldfile_open_file_search): Don't declare.
5869 (ldfile_try_open_bfd): Declare.
5870 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
5871 Accept search parameter. Don't search for a library, just look in
5872 a single place.
5873 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
5874 Likewise.
5875
5876Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
5877
5878 * ldmain.c (set_scripts_dir): Don't base script directory on
5879 current directory.
5880
5881Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
5882
5883 * ldmisc.c (vfinfo): Don't print the line number if it isn't
5884 meaningful.
5885
5886Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
5887
5888 * ld.h (ld_config_type): Add field warn_constructors.
5889 * ldmain.c (add_to_set): Warn if config.warn_constructors.
5890 (constructor_callback): Likewise.
5891 * lexsup.c (parse_args): Handle -warn-constructors.
5892 * ld.texinfo, ld.1: Document -warn-constructors.
5893
5894 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
5895 get confused by directory names if we searched for the file.
5896
5897 Based on patches from H.J. Lu <hjl@nynexst.com>:
5898 * ldlang.h (lang_input_statement_type): Add new field dynamic.
5899 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
5900 * ldfile.c: Include bfdlink.h.
5901 (ldfile_open_file): Check dynamic field of entry, not global
5902 dynamic_link field. Don't do a dynamic search when doing a
5903 relocateable link.
5904 * ldmain.c (main): Don't warn about dynamic_link for a
5905 relocateable link.
5906 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
5907 dynamic is false.
5908 (gld${EMULATION_NAME}_create_output_section_statements): Always
5909 loop over input files.
5910 * Makefile.in: Rebuild dependencies.
5911
5912 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
5913 -shared.
5914
5915Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
5916
5917 * ldmain.c (main): Set link_info.symbolic to false.
5918 * lexsup.c (parse_args): Handle -Bsymbolic.
5919
5920Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
5921
5922 * ldmain.c (HAVE_SBRK): Define for everything except
5923 specific systems that are known to not support sbrk.
5924 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
5925
5926Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
5927
5928 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
5929 Handle etree_provide.
5930
5931 * emultempl/elf32.em (global_needed): New static variable.
5932 (global_found): Likewise.
5933 (gld${EMULATION_NAME}_after_open): New static function.
5934 (gld${EMULATION_NAME}_search_needed): Likewise.
5935 (gld${EMULATION_NAME}_try_needed): Likewise.
5936 (gld${EMULATION_NAME}_check_needed): Likewise.
5937 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
5938 gld${EMULATION_NAME}_after_open.
5939
5940Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
5941
5942 * configure.in (i386-*-win32): New target.
5943
5944Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
5945
5946 * lexsup.c (parse_args): Let -G either set the small data size or
5947 be equivalent to --shared, depending on the next argument. Accept
5948 and ignore -z for Solaris compatibility.
5949
5950Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
5951
5952 * lexsup.c (parse_args): Cast fopen result to PTR before storing
5953 it in link_info.base_file. Fix indentation.
5954
5955Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
5956
5957 * ldmain.c (main): Always initialize PE info in link_info.
5958 * lexsup.c (OPTION_BASE_FILE): New option.
5959 (parse_args): Handle new option.
5960 * emulparams/armpe.sh: Output pei.
5961 * emultempl/i386pe.em: Add newline to end.
5962 * scripttempl/armpe.sc: Change output and quote the $s.
5963 * scripttempl/i386pe.sc: Change output and quote the $s.
5964
5965Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5966
5967 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
5968
5969 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
5970 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
5971 (i386msdos.o): New target.
5972 * config/i386-msdos.mt: Created.
5973 * emulparams/i386msdos.sh: Created.
5974 * scripttempl/i386msdos.sc: Created.
5975
5976Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5977
5978 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
5979 that contains pointers to be relocated.
5980
5981Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
5982
5983 * mpw-esh.c: New file, modified for MPW from esh.c.
5984 * scripttempl/sh.sc: Reformatted to simplify MPWification,
5985 use *() to concat stab sections instead of [].
5986
5987Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
5988
5989 * scripttempl/armpe.sc: Add constructor support.
5990
5991Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
5992
5993 * ldlang.c (lang_size_sections): Any section with a DATA
5994 statement has contents.
5995
5996Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5997
5998 * emulparams/m68kelf.sh (NOP): Define.
5999 (DYNAMIC_LINK): Don't define.
6000 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
6001 will come from the linker script.
6002
6003Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
6004
6005 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
6006
6007Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6008
6009 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
6010
6011Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6012
6013 From Andrew Cagney <cagney@highland.com.au>
6014 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
6015 elf32lppc.
6016
6017Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
6018
6019 Add support for ARM-PE.
6020 * Makefile.in (ALL_EMULATIONS): Add armpe.o
6021 * configure.in: Recognize armpe.
6022 * config/arm-pe.mt: New file.
6023 * emulparams/armpe.sh: New file.
6024 * scripttempl/armpe.sc: New file.
6025
6026
6027Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
6028
6029 * configure.in (h8300h-*-hms): Deleted
6030 * config/cf-h8300h.mt: Deleted.
6031
6032Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6033
6034 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6035
6036 From David Taylor (dtaylor@armltd.co.uk)
6037 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
6038 * configure.in: Recognize arm{,e[lb]-*-aout.
6039 * config/arm[lb]-aout.mt: New files.
6040 * emulparams/armaout[lb].sh: New files.
6041 * scripttempl/armaout.sc: New file.
6042
6043Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6044
6045 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
6046 be unique in 8 characters for DOS.
6047
6048 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
6049 * emulparams/elf32ppcle.sh: Deleted.
6050
6051Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
6052 Tom Griest <griest@cs.yale.edu>
6053
6054 Initial support for PE executables (eg NT, win32)
6055
6056 * Makefile.in (configure.in, ei386pe): Add support.
6057 * ldmain.c (main): Initialize PE argument info.
6058 * ldwrite.c (print_file_stuff): Don't print out .drectve
6059 and .debug section info.
6060 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
6061 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
6062 Handle new arguments.
6063 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
6064 New files
6065
6066Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
6067
6068 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
6069 segment. This allows ld -r to preserve unwind sections.
6070
6071Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6072
6073 * configure.in: Add little endian PowerPC support.
6074
6075 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
6076 (eelf32ppcle.c): Support for little endian PowerPC.
6077
6078 * config/ppcle-elf32.mt: New file for little endian PowerPC.
6079 * emulparams/elf32ppcle.sh: Ditto.
6080
6081Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6082
6083 * ldlang.c (print_output_section_statement): Check
6084 subsection_alignment, instead of checking section_alignment twice.
6085 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
6086
6087Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
6088
6089 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
6090
6091Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
6092
6093 * ldwrite.c (ldwrite): Before doing anything, reset the error
6094 code. If bfd_final_link returns an error, but the error code is
6095 unset, don't issue an extra message. Assume a correct error
6096 message was already set.
6097
6098Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6099
6100 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
6101 (em68kelf.o): New target.
6102 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
6103 * configure.in: Use them for m68*-*-elf.
6104
6105Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
6106
6107 Merge in support for Mac MPW as a host.
6108 (Old change descriptions retained for informational value.)
6109
6110 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
6111 (i386-unknown-coff): Remove.
6112 (sh-hitachi-hms): New target.
6113 (emulation_ofiles): Set correctly for each target.
6114 (version, TDEFINES): Add to makefile fragment.
6115 * mpw-make.in (BISON): Use byacc instead of bison.
6116 (em_*.c): Replace with e*.c everywhere.
6117 (ldgram.h): Separate action from ldgram.c generation.
6118 (LD_PROG): Depend on Version.r.
6119 (Version.r): generate from version info.
6120 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
6121
6122 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
6123 i386-unknown-aout, i386-unknown-coff): New targets.
6124 (m68k-aout, m68k-coff): Remove targets.
6125 (mk.tmp): Add definition of EMUL.
6126
6127 * mpw-config.in (emulname): Set based on target.
6128 (ldemul-list.h): Construct.
6129 * mpw-make.in (install-only): New target.
6130 (install): Depend on install-only.
6131
6132 * mpw-make.in (bindir): Fix pathname.
6133 (install): Move here from mpw-build.in.
6134
6135 * mpw-config.in: New file, MPW configuration fragment.
6136 * mpw-make.in: New file, MPW makefile fragment.
6137 (This file is semi-automatically generated from Makefile.in.)
6138 * ldfile.c (slash): If MPW, set to `:'.
6139 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
6140 prevent redefinition errors.
6141
6142Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
6143
6144 * ldwrite.c (clone_section): Align clone sections on even
6145 boundaries.
6146
6147Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
6148
6149 * configure.in: Change linux to default to elf. Using
6150 i[345]86-*-linuxaout will build a linker which defaults to a.out.
6151 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
6152 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
6153 * config/i386-lelf.mt: Remove.
6154
6155Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
6156
6157 * ldmain.c (main): If opening the map file fails, call
6158 bfd_set_error before calling einfo.
6159
6160 * ld.texinfo, ld.1: Document the -no-keep-memory option.
6161
6162Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
6163
6164 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
6165 does mark shared libraries as executable.
6166
6167Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
6168
6169 * ldlang.c (lang_common): Change power to int. Pass larger values
6170 before smaller values.
6171 (lang_one_common): Treat info as int *. Don't bother to check for
6172 last value, since it is now zero.
6173
6174Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
6175
6176 * ldlang.c (load_symbols): An empty archive is OK.
6177
6178Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
6179
6180 * ldmain.c (progress.h): Include.
6181 (main): Call START_PROGRESS and END_PROGRESS.
6182
6183Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
6184
6185 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
6186 .dtors sections, so that these pointers get relocated also.
6187 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
6188 and end of the constructors/destructors.
6189
6190Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6191
6192 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
6193 describes an archive, call bfd_link_add_symbols on each member.
6194 * ldmain.c (whole_archive): New variable.
6195 (main): Initialize it to false.
6196 * ldmain.h: Declare whole_archive.
6197 * lexsup.c (parse_args): Grok --whole-archive switch.
6198 * ld.texinfo, ld.1: Document --whole-archive.
6199
6200Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
6201
6202 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
6203 using the default emulation.
6204
6205 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
6206 LDEMULATION.
6207 * config/hppaelf.mh (HOSTING_EMU): Likewise.
6208
6209Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
6210
6211 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
6212 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
6213
6214Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
6215
6216 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
6217
6218 * ldlex.l: Return -lFILENAME as the token LNAME.
6219 * ldgram.y: Add token LNAME.
6220 (input_list): Treat LNAME like NAME, but pass it to
6221 lang_add_input_file as lang_input_file_is_l_enum.
6222 * ld.texinfo: Document using -lFILENAME in INPUT.
6223
6224Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6225
6226 * ldlang.c (lang_check): If the architectures are compatible call
6227 bfd_merge_private_bfd_data to let the backend do additional
6228 checks.
6229
6230Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
6231
6232 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
6233 all supported emulations.
6234
6235Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
6236
6237 * ldemul.c (ldemul_list_emulations): New function.
6238 * ldemul.h (ldemul_list_emulations): Declare.
6239 * ldver.c (help): List supported targets and emulations.
6240
6241Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
6242
6243 * scripttempl/elf.sc (.debug): Relocate to address 0.
6244 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
6245 .debug_sfnames, .line): Likewise.
6246
6247Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
6248
6249 * emultempl/elf32.em (hold_rel): New static variable.
6250 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
6251 contents whose names begin with ".rel" after hold_rel. Remove the
6252 assertion which checked for unplaced .rel sections. Don't try to
6253 sort the section into place if place->bfd_section is NULL.
6254 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
6255 section beginning with ".rel".
6256
6257Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
6258
6259 Doc note from pierre@phi.la.tce.com (Pierre Willard):
6260 * ld.texinfo: -X and -x work even if -s or -S are not specified.
6261 * ld.1: Similar change.
6262
6263Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
6264
6265 * emulparams/gld960coff.sh (COFF_CTORS): Define.
6266 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
6267
6268Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
6269
6270 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
6271 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
6272 * config/i386-lelf.mt: New file.
6273 * config/i386-gelf.mt: New file.
6274
6275Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
6276
6277 * configure.in: Match on mips-ecoff, and default to the IDT
6278 configuration.
6279
6280Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
6281
6282 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
6283 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
6284 to double the size of the table.
6285
6286Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6287
6288 * Makefile.in (distclean): Do recursive deletion, since ldscripts
6289 is a directory.
6290
6291Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
6292
6293 * ldmain.c (main): If trace_file_tries is true, and we are using
6294 an internal linker script, print out the script.
6295 * ldfile.c (try_open): Reindent function. Make the messages about
6296 opening script files more informative.
6297
6298 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
6299 * ld.texinfo, ld.1: Update accordingly.
6300
6301Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
6302
6303 * ldlang.c (lang_one_common): Adjust references to common symbol
6304 information for new structure.
6305
6306Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
6307
6308 * ldmain.c (undefined_symbol): Handle section being NULL.
6309
6310 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
6311 * ldexp.c (fold_name): Likewise.
6312 * ldlang.c (print_one_symbol): Likewise.
6313 (lang_finish): Likewise.
6314 * ldmain.c (multiple_common): Likewise.
6315 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
6316 renamed to bfd_link_hash_undefweak.
6317
6318 * scripttempl/alpha.sc: Set address of .data section correctly
6319 when -n or -N is used. Patch from Chris G Demetriou
6320 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
6321 * scripttempl/mips.sc: Similar change.
6322
6323Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
6324
6325 * ldlang.c (lang_size_sections): Clarify error message when user
6326 specified start addr conflicts with region. Fix resetting of
6327 region pointer.
6328
6329Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
6330
6331 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
6332 in lang_allocating_phase_enum.
6333
6334Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
6335
6336 * Makefile.in (distclean): Depend upon clean. Don't bother to
6337 remove files which will be removed by clean. From patch by
6338 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
6339
6340Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
6341
6342 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
6343 a MIPS target, clobber the size of all but the first input
6344 .reginfo section to be 0, so that lang_size_sections sets the
6345 correct size for the output .reginfo section.
6346
6347Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
6348
6349 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6350 Remove unused variable is.
6351
6352Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6353
6354 * configure.in: Add support for powerpc-*-eabi.
6355
6356 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
6357 support.
6358
6359 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
6360 elf.sc, which defines some new symbols PowerPC elf needs.
6361
6362Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6363
6364 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
6365 constructor entry is in the absolute section.
6366
6367Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6368
6369 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
6370 * config/i386-gnu.mt: New file. Include ELF support.
6371
6372Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6373
6374 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
6375 there are any input sections named .gnu.warning, treat them as
6376 containing a warning message to be printed by the linker, and
6377 clobber the size so that the message is not copied into the output
6378 file.
6379 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
6380 section.
6381
6382Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
6383
6384 * configure.in (w65-*-*): New target.
6385 * Makefile.in: Update.
6386 * scripttempl/w65.sc: New.
6387 * config/coff-w65.mt: New.
6388
6389Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
6390
6391 * ldlang.c (lang_place_orphans): Don't ignore files with
6392 just_syms_flag set. Instead, put all their sections in
6393 bfd_abs_section_ptr, using the section VMA as the output_offset.
6394
6395Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6396
6397 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
6398 name `reloc_howto_type', since it's now defined to be const.
6399 * ldlang.c (lang_add_reloc): Ditto.
6400 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
6401
6402Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6403
6404 * ldexp.c (fold_binary): Adding or subtracting an absolute value
6405 to a relative value does not require forcing the relative value to
6406 be absolute. Also, reindent function.
6407
6408Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6409
6410 * ldwrite.c (clone_section): Create a symbol with the
6411 same name as the section.
6412
6413Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6414
6415 * ld.h (split_by_reloc, split_by_file): New flags.
6416 * ldwrite.c (clone_section, split_sections): New functions.
6417 * lexsup.c (parse_args): Understand new split options.
6418
6419Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6420
6421 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
6422 .data segment. They must be writable when creating a shared
6423 library. From H.J. Lu <hjl@nynexst.com>.
6424
6425Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
6426
6427 * emultempl/miposecoff.em: New file.
6428 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
6429 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
6430 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
6431 provide __runtime_reloc_start and __runtime_reloc_stop if they are
6432 used. Align _fdata to a 16 byte boundary.
6433 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
6434 generic.em.
6435 (emipsidtl.c): Likewise.
6436 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
6437
6438 * ld.h (args_type): Add new field embedded_relocs.
6439 * ldemul.h (ldemul_after_open, after_open_default): Declare.
6440 (ld_emulation_xfer_struct): Add new field after_open.
6441 * ldemul.c (ldemul_after_open): New function.
6442 (after_open_default): New function.
6443 * ldlang.c (lang_process): Call ldemul_after_open.
6444 * lexsup.c (parse_args): Handle --embedded-relocs.
6445 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
6446 new after_open field to after_open_default.
6447 * emultempl/generic.em, emultempl/gld960.em: Likewise.
6448 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
6449 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
6450 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
6451 * ld.texinfo, ld.1: Mention -embedded-relocs.
6452
6453Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6454
6455 * Makefile.in: Add eshl.o.
6456 * config/coff-sh.mt: Add shl emulation.
6457
6458Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6459
6460 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
6461 Youngdale <eric@aib.com>.
6462
6463Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6464
6465 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
6466 * config/i386linux.mh: New file; set HOSTING_CRT0.
6467 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
6468 /usr/lib, since that is already in LIB_PATH.
6469
6470Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
6471
6472 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
6473 address.
6474 (.data, .bss): If "-N", then place the data/bss just after the end
6475 of the .text section rather than at the default 0x40000000.
6476
6477 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
6478 text segment.
6479
6480Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6481
6482 Patches from Eric Youngdale <eric@aib.com>:
6483 * ldlang.c (lang_finish): Don't warn if entry symbol not found
6484 when generating a shared library.
6485 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
6486 attempting to place an orphaned relocation section when generating
6487 a dynamically linked object.
6488
6489 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
6490 _start.
6491
6492Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6493
6494 * ld.h (args_type): Add field export_dynamic.
6495 * lexsup.c (parse_args): Recognize --export-dynamic.
6496 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6497 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
6498
6499Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6500
6501 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
6502 we allocate common symbols.
6503
6504Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
6505
6506 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
6507 .rela.fini to the list of .rel* sections.
6508
6509Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6510
6511 * ldlang.c (load_symbols): Add new argument place. Only accept
6512 linker scripts if place is not NULL. Put commands found in an
6513 assumed linker script into place.
6514 (lookup_name): Pass NULL as place argument to load_symbols.
6515 (open_input_bfds): In lang_input_statement_enum case, pass a place
6516 argument to load_symbols, and store any new statements after the
6517 current one.
6518
6519Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6520
6521 * ldver.c (ldversion): Bump to 2.5.3.
6522
6523Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6524
6525 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
6526
6527Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6528
6529 * Makefile.in (check): Add missing "else true" clause.
6530
6531 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
6532
6533 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
6534 entry point to "start". Align at end of each section to 0x200.
6535 Start .text section 0x1000 later. Add _etext, _edata, _end
6536 symbols.
6537
6538Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6539
6540 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
6541 composed of different object file formats.
6542 (ldctor_build_sets): If the output format does not support the
6543 reloc, and we are not generating a relocateable link, try getting
6544 the reloc from the input format.
6545
6546Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
6547
6548 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
6549 (em68knbsd.c): New target.
6550
6551 * config/m68k-nbsd.mt: New file.
6552 * emulparams/m68knbsd.sh: New file.
6553 * configure.in (m68*-*-netbsd*): Use above configs.
6554
6555Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6556
6557 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
6558 appropriately named static library, stop the search at that
6559 directory.
6560
6561Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
6562
6563 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
6564 and esparcnbsd.o; sorted entries.
6565 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
6566
6567 * config/netbsd532.mt: Removed.
6568 * emulparams/netbsd532.sh: Removed.
6569
6570 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
6571 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
6572 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
6573 sparc*-*-netbsd*): Use above configs.
6574
6575Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6576
6577 * ldmain.c (multiple_common): One of the types may now be
6578 bfd_link_hash_indirect. The old BFD argument may be NULL.
6579
6580Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6581
6582 * configure.in: Add * at the end of m68k-hp-hpux.
6583
6584Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6585
6586 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
6587 YY_CHAR *.
6588
6589Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
6590
6591 * scripttempl/nw.sc: Gather constructors and destructors and
6592 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
6593
6594Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
6595
6596 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
6597 (ei386nw.c, eppcnw.c): New targets.
6598
6599 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
6600 scripttempl/nw.sc: New files, for i386 and powerpc netware.
6601
6602 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
6603 instead of {i386,ppc}-elf.
6604
6605 * configure.in (sparc*-*-netware): Removed. There is no such
6606 thing anymore.
6607
6608 * ldint.texinfo: Move misplaced `@end iftex'.
6609
6610Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
6611
6612 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
6613 .rela.dtors to the list of .rel* sections.
6614
6615Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6616
6617 * ldver.c (ldversion): Update to version 2.5.
6618 * Version 2.5 released.
6619
6620 * configure.in (all_targets): Handle i386-linux*.
6621
6622Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6623
6624 * scripttempl/aout.sc: Set _etext and __etext to ., not
6625 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
6626 will not break any other system. From Eric Valette
6627 <ev@chorus.fr>.
6628
6629Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6630
6631 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
6632 --verbose to get the old -V behaviour.
6633 * ld.1, ld.texinfo: Document this change.
6634
6635Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6636
6637 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
6638 assertion, since it could fail with a user defined linker script.
6639
6640 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
6641 name in the hash table during the first phase--the hash table does
6642 not even exist at that point, much less have the right value.
6643
6644 * Makefile.in (CC): Define.
6645 (CXX): Move definition, change from g++ to gcc.
6646 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
6647 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
6648 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
6649 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
6650 (.cc.o): Comment out.
6651 (testdir): Remove.
6652 (site.exp): Don't create testdir or set tmpdir.
6653 (check): Run checks even if not running native. Use CC_FOR_TARGET
6654 instead of RUNTEST_CC, and likewise for CXX.
6655 (cdtest targets): Comment out.
6656 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
6657 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
6658 * cdtest-main.cc, cdtest.exp: Remove.
6659
6660Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6661
6662 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
6663 file naming problems.
6664 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
6665 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
6666 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
6667 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
6668 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
6669 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
6670 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
6671
6672 * genscripts.sh: Always search /usr/local/TARGET/lib.
6673
6674 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
6675
6676Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6677
6678 * configure.in: Handle i386-bsdi* targets like i386-bsd.
6679
6680Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6681
6682 * lexsup.c (parse_args): Add support for -a for HP/UX
6683 compatibility.
6684
6685 * lexsup.c (parse_args): -c takes an argument.
6686
6687Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6688
6689 * ld.h (args_type): Add new field endian.
6690 * lexsup.c (parse_args): Handle -EB and -EL by setting
6691 command_line.endian.
6692 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
6693 * ldlang.c (lang_add_output_format): Add arguments big and little.
6694 If command_line.endian is set, use it to select big or little
6695 rather than the default. Changed all callers.
6696 * ldlang.h (lang_add_output_format): Update declaration.
6697 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
6698 LITTLE_OUTPUT_FORMAT.
6699 * emulparams/elf32mipl.sh: Likewise.
6700 * emulparams/mipsbig.sh: Likewise.
6701 * emulparams/mipsbsd.sh: Likewise.
6702 * emulparams/mipsidt.sh: Likewise.
6703 * emulparams/mipsidtl.sh: Likewise.
6704 * emulparams/mipslit.sh: Likewise.
6705 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
6706 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
6707 OUTPUT_FORMAT.
6708 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
6709 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
6710 * scripttempl/mipsbsd.sc: Likewise.
6711
6712 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
6713 depending upon ldgram.c, so that a parallel make does not try to
6714 build both at once.
6715
6716 * configure.in (mips*el-elf*): New target.
6717 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
6718 (eelf32mipl.c): New target.
6719
6720 * config/mipsl-elf32.mt: New file.
6721 * emulparams/elf32mipl.sh: New file.
6722
6723Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6724
6725 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
6726 ld -r -S -x.
6727
6728Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6729
6730 * ldmisc.c (vfinfo): Print BFD file name as well as file name
6731 returned by find_nearest_line, in case the file name is something
6732 unhelpful such as a .h file. Handle %u.
6733
6734Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6735
6736 * ldlang.c (lang_do_assignments): Make sure output statement
6737 has an attached bfd_section before trying to dereference it.
6738
6739Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6740
6741 * ld.h (ld_config_type): Add new field warn_once.
6742 * ldmain.c (undefined_symbol): Handle -warn-once.
6743 * lexsup.c (parse_args): Recognize -warn-once.
6744 * ld.texinfo (Options): Document -warn-once.
6745 * ld.1: Likewise.
6746
6747 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
6748 name. For %C, print the function name on a separate line, to keep
6749 the length of error messages under control.
6750 * ldmain.c (multiple_definition): Use %D for ``first defined
6751 here.''
6752 (undefined_symbol): Use %D for ``more undefined references
6753 follow''.
6754
6755 * ldmisc.c (multiple_warn): Remove; no longer used.
6756 * ldmisc.h (multiple_warn): Don't declare.
6757
6758Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6759
6760 * ldlang.c (print_output_section_statement): Print all lines
6761 to the map file.
6762
6763Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6764
6765 * ldlang.c (load_symbols): Check for archive before object. Use
6766 bfd_check_format_matches, and, if ambiguous, print a list of
6767 matching formats. If file format is not recognized, treat file as
6768 a linker script.
6769 * ldgram.y (yyerror): If assuming an object file is a script,
6770 mention that. Tweak the format of the error messages.
6771 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
6772 guess that this is not actually a script, and just report that the
6773 file format was not recognized.
6774 * ld.texinfo (Options): Admit that -( may be used more than once.
6775 Add note that unrecognized object files are now treated as linker
6776 scripts.
6777
6778 * ldfile.c (ldfile_input_filename): Make const.
6779 (ldfile_assumed_script): New variable.
6780 (try_open): Change arguments types to const.
6781 (ldfile_find_command_file): Likewise.
6782 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
6783 * ldfile.h: Update declarations for ldfile.c changes.
6784 * ldlex.l: Include <ctype.h>.
6785 (file_name_stack): Change to be const char *.
6786 (lineno_stack): New static variable.
6787 (<<EOF>>): Set lineno as well as ldfile_input_filename.
6788 (lex_push_file): Make name argument const. Initialize
6789 lineno_stack entry.
6790 (lex_redirect): Initialize lineno_stack entry.
6791 (lex_warn_invalid): Handle non printable characters nicely.
6792 * ldlex.h (lex_push_file): Declare second argument as const.
6793
6794 * ldgram.y (ifile_p1): Recognize GROUP.
6795 * ldlex.l: Recognize GROUP.
6796 * ld.texinfo (Option Commands): Document GROUP.
6797
6798Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6799
6800 * config/m68klynx.mh: New file.
6801
6802Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
6803
6804 * emultempl/hppaelf.em: Add newlines to the error messages.
6805
6806Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6807
6808 * config/i386lynx.mh: New file.
6809 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
6810 unless CONSTRUCTING.
6811
6812Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6813
6814 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
6815 (GENERATE_SHLIB_SCRIPT): Define as yes.
6816 (DYNAMIC_LINK): Define as false.
6817 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
6818 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
6819 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
6820 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
6821 generic.em.
6822
6823Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6824
6825 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
6826
6827Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6828
6829 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
6830 .got section is now explicitly handled in elf.sc.
6831
6832Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6833
6834 * scripttempl/alpha.sc: Redo script to set . outside of sections
6835 and not bother to explicitly specify section addresses.
6836 Explicitly place .sdata section.
6837
6838Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6839
6840 * scripttempl/m68kcoff.sc: Put .bss in data segment.
6841
6842 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
6843 0, and to only be marked as NOLOAD if relocating.
6844 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
6845 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
6846 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
6847 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
6848 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
6849 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
6850 * scripttempl/sparclynx.sc: Likewise.
6851
6852Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
6853
6854 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
6855 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
6856 New files.
6857
6858Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
6859
6860 * ld.h (args_type): Add field soname.
6861 * lexsup.c (parse_args): Handle -soname argument.
6862 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
6863 pass soname.
6864 * ld.texinfo: Document -soname.
6865
6866Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6867
6868 * ldlang.c (lang_check): Don't try to set the architecture if the
6869 input and output files are incompatible. Just warn.
6870
6871Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6872
6873 * configure.in: Change i[34]86 to i[345]86.
6874
6875Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6876
6877 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
6878
6879Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6880
6881 Make the ELF linker handle orphaned sections reasonably. Also,
6882 define __start_SECNAME and __stop_SECNAME around sections whose
6883 names can be represented in C, for the benefit of symbol sets in
6884 glibc.
6885 * ldemul.h (ldemul_place_orphan): Declare.
6886 (ld_emulation_xfer_type): Add place_orphan field.
6887 * ldemul.c (ldemul_place_orphan): New function.
6888 * ldlang.h (wild_doit): Declare.
6889 * ldlang.c (wild_doit): Make nonstatic.
6890 (lang_place_orphans): Call ldemul_place_orphan.
6891 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
6892 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
6893 static variables.
6894 (gld${EMULATION_NAME}_place_orphan): New static function.
6895 (gld${EMULATION_NAME}_place_section): New static function.
6896 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
6897
6898Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
6899
6900 * scripttempl/aout.sc: Add .linux-dynamic after .data.
6901
6902Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6903
6904 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
6905 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
6906
6907Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6908
6909 * ldexp.h (exp_get_abs_int): Declare.
6910
6911Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6912
6913 * ldlang.c (lang_do_assignments): Handle complex AT's better.
6914 * ldexp.c (exp_get_abs_int): New function.
6915
6916Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
6917
6918 * configure.in: add i960-nindy-coff support.
6919
6920Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6921
6922 * ldlex.l (yy_create_string_buffer): Handle change to internal
6923 interface in flex 2.4.7.
6924
6925Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
6926
6927 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
6928 New function; add 0x20 to any use of -Ttext.
6929 (gld${EMULATION_NAME}_create_output_section_statements): New
6930 function.
6931 (ld_${EMULATION_NAME}_emulation): Use the new function
6932 gld${EMULATION_NAME}_create_output_section_statements.
6933
6934Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6935
6936 * scripttempl/mips.sc: Redo script to set . outside of sections
6937 and not bother to explicitly specify section addresses.
6938
6939Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6940
6941 * scripttempl/elf.sc: Copy several more relocation sections into
6942 the output. Put .got.plt sections into .got.
6943
6944Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6945
6946 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
6947
6948 Add a new script operator, PROVIDE, to define a symbol only if it
6949 is needed.
6950 * ldgram.y (PROVIDE): New token.
6951 (assignment): Accept PROVIDE.
6952 * ldlex.l (PROVIDE): New token.
6953 * ldexp.h (node_type): Add etree_provide to node_class enum.
6954 (exp_provide): Declare.
6955 * ldexp.c (exp_fold_tree): Handle etree_provide.
6956 (exp_provide): New function.
6957 (exp_print_tree): Handle etree_provide.
6958 * ld.texinfo: Document PROVIDE.
6959
6960 * ldlang.c (lang_common): Pass desired alignment to
6961 lang_one_common as power of two.
6962 (lang_one_common): Get common symbol alignment from linker hash
6963 table entry. Treat desired alignment as a power of two.
6964
6965 * ldlang.c (wild_section): Attach all section with the given name,
6966 not just the first one. If there is no name, attach all sections
6967 even if the SEC_IS_COMMON flag is set.
6968
6969Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6970
6971 * ld.h (args_type): Add field rpath.
6972 * lexsup.c (S_ISDIR): Define if not already defined.
6973 (parse_args): Add support for -rpath. If -R is used to name a
6974 directory, treat it as -rpath for Solaris compatibility.
6975 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6976 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
6977 * ldmain.c (main): Initialize command_line.rpath to NULL.
6978 * ld.texinfo: Document -rpath option.
6979
6980Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
6981
6982 * emulparams/pc532machaout.sh: New file. Pc532 mach script
6983 parameters.
6984
6985 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
6986
6987 * config/pc532mach.mt: New file. Pc532 mach target support.
6988
6989 * config/pc532mach.mh: New file. Pc532 mach host support.
6990
6991 * config/netbsd532.mt: New file. Netbsd 532 target support.
6992
6993 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
6994
6995 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
6996 dependency.
6997
6998Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6999
7000 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
7001 bfd_abs_section_ptr, not &bfd_abs_section.
7002
7003 * lexsup.c (parse_args): Changed "retain-symbols-file" from
7004 no_argument to required_argument. From djm.
7005
7006Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7007
7008 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
7009 sections to force a VMA of 0; needed for ELF backends which have
7010 not been converted to the new linker style.
7011
7012Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
7013
7014 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
7015 it was for the HPUX dynamic loader's use and it creates problems
7016 with ELF GDB.
7017
7018Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
7019
7020 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
7021 * ldlang.h (lang_do_assignments): Put external decl here.
7022 * emultempl/hppaelf.em: Minor cleanups throughout file.
7023 (hppa_elf_create_output_section_statements): Rewrite.
7024 (hppaelf_finish): Rewrite.
7025
7026Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7027
7028 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
7029
7030 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
7031 accept plain -B.
7032 * ld.texinfo: -Bstatic is not ignored.
7033
7034Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
7035
7036 * ldlex.l: Recognize \r the same as \n.
7037
7038Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7039
7040 Preliminary support for generating shared libraries, from Eric
7041 Youngdale <ericy@cais.cais.com>.
7042 * genscripts.sh: If the emulation parameter file sets
7043 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
7044 CREATE_SHLIB defined.
7045 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
7046 link_info.shared is set, use the .xs script file.
7047 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
7048 .interp section, and don't include TEXT_START_ADDR in the starting
7049 address of the first section.
7050 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
7051 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
7052
7053Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7054
7055 * configure.in: Change --with-targets to --enable-targets.
7056
7057Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7058
7059 * lexsup.c (parse_args): Add support for new options -( -) with
7060 synonyms --start-group --end-group.
7061 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
7062 (lang_group_statement_type): Define new struct.
7063 (lang_statement_union_type): Add group_statement field.
7064 (lang_enter_group, lang_leave_group): Declare.
7065 * ldlang.c (lang_for_each_statement_worker): Handle
7066 lang_group_statement_enum.
7067 (map_input_to_output_sections, print_statement): Likewise.
7068 (lang_size_sections, lang_do_assignments): Likewise.
7069 (open_input_bfds): Completely rewrite. Now does its own looping,
7070 rather than using lang_for_each_statement. Handle groups.
7071 (lang_process): Update call to open_input_bfds.
7072 (print_group): New static function.
7073 (lang_enter_group, lang_leave_group): New static functions.
7074 * ldfile.c (ldfile_open_file): If the file has already been
7075 opened, just return rather than taking an assertion failure.
7076 * ldver.c (help): Mention new options.
7077 * ld.texinfo: Document new options.
7078
7079 * ldlang.c (end_of_data_section_statement_list): Don't define.
7080 (lang_leave_output_section_statement): Don't set obsolete variable
7081 end_of_data_section_statement_list.
7082
7083 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
7084 ALIGN.
7085
7086 * ldlang.c (lang_size_sections): Adjust current region address
7087 even for sections with an explicit address. From
7088 ralphc@pyramid.com (Ralph Campbell).
7089
7090 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
7091 From jrs@world.std.com (Rick Sladkey).
7092
7093 * scripttempl/mipsbsd.sc: Let sections align to their natural
7094 boundaries.
7095
7096Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7097
7098 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
7099 &bfd_abs_section.
7100 (lang_abs_symbol_at_beginning_of): Likewise.
7101 (lang_abs_symbol_at_end_of): Likewise.
7102 (lang_size_sections): Use bfd_is_abs_section to check for the
7103 absolute section. Don't try to set the VMA or output_offset or
7104 size of the absolute section.
7105 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
7106 undefined section.
7107
7108Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
7109
7110 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
7111 when generating relocatable objects.
7112
7113Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
7114
7115 * emultempl/linux.em: New file providing support for linking
7116 against Linux shared libraries.
7117 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
7118 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
7119
7120Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7121
7122 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
7123 * ldmain.c (main): Initialize link_info.shared to false. Give
7124 error if link_info.relocateable and link_info.shared are both set.
7125
7126 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
7127 it as naming an emulation to be added to EMULATION_OFILES.
7128 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
7129
7130 * Makefile.in: Rebuilt dependencies.
7131 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
7132 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
7133 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
7134 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
7135 (ei386linux.c): Remove; now in Makefile.in.
7136 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
7137 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
7138 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
7139 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
7140 (eelf64_sparc.c): Remove; now in Makefile.in.
7141 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
7142 (eelf32_sparc.c): Remove; now in Makefile.in.
7143
7144 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
7145 no owner--it might be bfd_abs_section. From Eric Youngdale
7146 <ericy@cais.cais.com>.
7147
7148 * scripttempl/aout.sc: Let sections align to their natural
7149 boundaries.
7150
7151Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7152
7153 * ldemul.h (ldemul_open_dynamic_archive): Declare.
7154 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
7155 * ldemul.c: Include ldexp.h and ldlang.h.
7156 (ldemul_open_dynamic_archive): New function.
7157 * ldfile.h (ldfile_open_file_search): Declare.
7158 * ldfile.c: Include ldemul.h.
7159 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
7160 argument, not bfd *. Change all callers.
7161 (ldfile_open_file_search): Rename from open_a. Return boolean
7162 argument, not bfd *. Clean up. Change all callers.
7163 (ldfile_open_file): If doing a dynamic link, call
7164 ldemul_open_dynamic_archive rather than assuming the extension of
7165 a dynamic object is ".so".
7166 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
7167 New function.
7168 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
7169 field.
7170 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
7171
7172 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
7173 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
7174 Accept -static as a synonym for -non_shared.
7175
7176 Let the user change the dynamic linker used by ELF code.
7177 * ld.h (args_type): Add new field interpreter.
7178 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
7179 handle it.
7180 * ldmain.c (main): Initialize command_line.interpreter to NULL.
7181 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
7182 the ELF backend to return the .interp section. If
7183 command_line.interpreter is not NULL, set the contents of .interp
7184 to it.
7185 * ld.texinfo: Mention -dynamic-linker.
7186
7187 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
7188 generic.em.
7189
7190 * lexsup.c (parse_args): Sort out the option macros and change the
7191 definitions to make it easier to add a new option.
7192
7193 * scripttempl/aout.sc: Define __etext and __edata to go along with
7194 _etext and _edata.
7195
7196 * ld.h (ld_config_type): Add new field traditional_format.
7197 * lexsup.c (parse_args): Add traditional-format to longopts, and
7198 handle it.
7199 * ldmain.c (main): Initialize config.traditional_format to false.
7200 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
7201 flags of output_bfd according to config.traditional_format.
7202 * ldver.c (help): Mention -traditional-format.
7203 * ld.texinfo: Document -traditional-format.
7204
7205Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7206
7207 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
7208 they are encountered.
7209
7210Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
7211
7212 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
7213 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
7214
7215Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7216
7217 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
7218 _FTEXT, _ETEXT and _FDATA. Dont define _END.
7219
7220 * ldfile.c (open_a): If this is not an archive, try to open it in
7221 the current directory before searching for it.
7222
7223 * lexsup.c (parse_args): Treat -i as a synonym for -r.
7224
7225 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
7226 BLOCK works in a section address as documented.
7227
7228 * ldgram.y (YYDEBUG): Don't define.
7229
7230Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7231
7232 * emultempl/gld960.em: Pass false for new argument to
7233 ldfile_add_library_path.
7234 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
7235
7236 * emultempl/sunos.em: Only look for .so files if doing a dynamic
7237 link.
7238
7239Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
7240
7241 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
7242
7243Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
7244
7245 * Makefile.in (check): Delete ld.new dependency so that a regression
7246 test doesn't trigger a rebuild of the linker.
7247
7248Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7249
7250 * ldlang.c (map_input_to_output_sections): For lang_address, call
7251 init_os if it hasn't already been called.
7252
7253Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7254
7255 Add support for SunOS shared libraries.
7256 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
7257 shared library support code.
7258 * emultempl/sunos.em: New file.
7259 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
7260 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
7261 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
7262 (esun3.c): Likewise.
7263
7264 * ldlang.c: Minor formatting cleanups.
7265 (lang_for_each_input_file): New function.
7266 * ldlang.h (lang_for_each_input_file): Declare.
7267
7268 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
7269 field.
7270 (search_head): Declare.
7271 (ldfile_add_library_path): Add new cmdline argument in prototype.
7272 * ldfile.c (search_head): Make non-static.
7273 (search_dirs_type): Move to ldfile.h.
7274 (ldfile_add_library_path): Accept cmdline argument, and save it.
7275 * lexsup.c (parse_args): Pass true for new cmdline argument of
7276 ldfile_add_library_path.
7277 (set_default_dirlist): Likewise.
7278 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
7279 argument of ldfile_add_library_path.
7280 * ldgram.y (ifile_p1): Likewise.
7281
7282Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7283
7284 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
7285 total_size, superfile and chain.
7286 * ldfile.c (open_a): Don't clear search_dirs_flag.
7287 (ldfile_open_file): Don't try to open superfile. Assert that file
7288 has not already been opened.
7289 * ldlang.c (new_afile): Don't initialize superfile.
7290 * ldmain.c (add_archive_element): Don't initialize subfiles or
7291 chain or superfile. Initialize search_dirs_flag to false.
7292
7293Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7294
7295 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
7296
7297 Changes from binutils-2.4 release:
7298
7299 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
7300 variables, use whitespace, so scripts don't break.
7301
7302 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
7303
7304 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
7305
7306 * cdtest-bar.cc: Renamed from cdtest-func.cc.
7307 * Makefile.in: Noted change.
7308
7309 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
7310 don't know where that's supposed to come from, or why it's
7311 necessary.
7312
7313 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
7314
7315 * configure.bat: update to latest makefile.in
7316 * emulpara/go32.sh: set to coff-go32 not aout
7317 * emultemp/generic.em: strength-reduce the structure of
7318 this shell script, since the only available shell for
7319 DOS can't handle complex syntax.
7320 * emultemp/stringify.sed: for "sed -f" instead of inline.
7321 * makefile.in: depend on stringify.sed as well as genscripts.sh
7322 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
7323 * genscripts.sh: empty variables aren't always considered "set",
7324 so set them to "y" instead.
7325
7326Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7327
7328 * ldlang.c (entry_symbol): Make static.
7329 (lang_add_entry): Add cmdline argument.
7330 * ldlang.h (lang_add_entry): Change prototype.
7331 * ldgram.y (statement_anywhere): Change lang_add_entry call.
7332 * lexsup.c (parse_args): Likewise.
7333
7334Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7335
7336 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
7337 .reginfo an address.
7338 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
7339 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
7340 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
7341
7342Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7343
7344 Add support for ELF shared libraries.
7345 * ld.h (ld_config_type): Add field dynamic_link.
7346 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
7347 on attempts to use -r with -relax, -call_shared or -s.
7348 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
7349 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
7350 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
7351 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
7352 OPTION_NON_SHARED by setting dynamic_link field accordingly.
7353 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
7354 -r and -Ur.
7355 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
7356 opening a file with a .so extension first.
7357 * emultempl/elf32.em: New file.
7358 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
7359 (NONPAGED_TEXT_START_ADDR): Likewise.
7360 (TEMPLATE_NAME): Define as elf32.
7361 (DATA_PLT): Define.
7362 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
7363 * scripttempl/elf.sc: Add placement for new dynamic sections.
7364 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
7365 outside of any section. Don't use ALIGN(8); just let one section
7366 VMA follow another. Put .dynbss in .bss. Don't mention debugging
7367 sections; they'll be handled correctly anyhow.
7368 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
7369
7370Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
7371
7372 * Makefile.in (install): Redirect output of ln to /dev/null.
7373
7374Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
7375
7376 * emultempl/hppaelf.em: Change all references of
7377 .hppa_linker_stubs to .PARISC.stubs.
7378 * scripttempl/hppaelf.sc: Likewise.
7379
7380Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7381
7382 * ldlang.c (print_output_section_statement): Change ``no attached
7383 output section'' message slightly.
7384 (lang_do_assignments): Don't recurse down if there is no real
7385 section.
7386
7387 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
7388 match corresponding change in emulation templates.
7389 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
7390 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
7391
7392Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7393
7394 * ldver.c (ldversion): Updated version number.
7395
7396 * cdtest-foo.cc: Use explicit "#pragma implementation".
7397 * cdtest-bar.cc: Renamed from cdtest-func.cc.
7398 * Makefile.in: References to cdtest-func.o changed to
7399 cdtest-bar.o.
7400
7401Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7402
7403 Don't create unnecessary output sections.
7404 * ldlang.c (out_bfd_get_section_by_name): Remove.
7405 (wild_section): Call bfd_get_section_by_name rather than
7406 our_bfd_get_section_by_name. Don't call wild_doit if there is no
7407 section.
7408 (lang_create_output_section_statements): Remove.
7409 (map_input_to_output_sections): For several cases, call init_os if
7410 it has not already been called.
7411 (lang_size_sections): If output section was not created, skip it.
7412 (lang_process): Don't call lan_create_output_section_statements.
7413 (lang_place_orphans): Skip files with just_syms_flags set to true.
7414 * ld.texinfo: Document change.
7415
7416Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7417
7418 * ldlang.c (wild_doit): Don't bother initializing the vma and
7419 section size. Don't special case SEC_SHARED_LIBRARY.
7420 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
7421 specially.
7422
7423Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
7424
7425 * config/go32.mh : New file for Xgo32X.
7426
7427Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7428
7429 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
7430 before calling einfo, since we are reporting an fopen failure.
7431 From jrs@world.std.com (Rick Sladkey).
7432
7433 * configure.in: Use "e" rather than "em_" as prefix for
7434 emulations.
7435
7436Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
7437
7438 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
7439 filename.
7440 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
7441 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
7442 Ditto.
7443 * Makefile.in: Changed all generated file names.
7444 (ldemul-list.h): Depend on Makefile, not config.status. Changed
7445 sed patterns to handle new filenames.
7446
7447 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
7448 * configure.in: Adjusted.
7449
7450Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7451
7452 * Makefile.in (install-info): Don't use "$<*", it doesn't always
7453 work. Instead, check build dir and $srcdir explicitly, and use
7454 `echo' to get all the filenames.
7455
7456 * configure.in (h8300h-*-hms): Changed ld_target name to
7457 cf-h8300h.
7458 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
7459 unique in 8.3.
7460
7461 * config/i960coff.mt: New file.
7462 * emulparams/gld960coff.sh: New file.
7463 * emultempl/gld960c.em: New file.
7464 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
7465 i960coff configuration.
7466 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
7467
7468 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
7469 code isn't included in FSF releases, and it can still be
7470 explicitly selected.
7471 (distclean): Remove site.bak and tmpdir.
7472 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
7473 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
7474
7475 Patches from Ralph Campbell:
7476 * config/mipsbsd.mh: New file.
7477 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
7478 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
7479 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
7480 instead of `aout'.
7481
7482 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
7483
7484Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7485
7486 * config/m68k.mt (EMUL): Set to m68kaout.
7487 * emulparams/m68kaout.sh: New file.
7488 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
7489 (em_m68kaout.c): New target.
7490
7491 * ldlang.c (lang_size_sections): If dot moves because of an
7492 assignment, don't try to insert a pad into the absolute output
7493 section, just change the address of the default memory region
7494 instead.
7495
7496 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
7497 cdtest-ur.out, and cdtest-ur.tmp.
7498
7499Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7500
7501 * scripttempl/sa29200.sc: Align all sections to four byte
7502 boundaries.
7503
7504Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
7505
7506 * Makefile.in, configure.in: Support for go32 coff.
7507 * config/i386-go32.mt: New file
7508 * emulparams/i386go32.sh: New file
7509 * scripttempl/i386go32.sc: New file
7510
7511Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
7512
7513 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
7514 Lynx-specific script templates.
7515 * configure.in (sparclite*-*-coff): Use coff-sparc.
7516 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
7517 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
7518 (ENTRY): Set to __main.
7519 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
7520 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
7521 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
7522
7523Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7524
7525 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
7526 byte boundary, in case the global constructors do not take up an
7527 even 16 bytes.
7528
7529 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
7530 exist, get crtbegin based on gcc -print-libgcc-file-name.
7531 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
7532
7533Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7534
7535 * ldlang.c (lang_size_sections): When no address is given for a
7536 section, align it according to its requirements.
7537
7538Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7539
7540 * Makefile.in (clean, distclean): Remove configdoc.texi.
7541
7542Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
7543
7544 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
7545
7546Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7547
7548 * ldlang.c (lang_size_sections): When relaxing, adjust the
7549 position of a padding statement, and adjust dot accordingly.
7550
7551Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
7552
7553 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
7554
7555Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7556
7557 * scripttempl/i386coff.sc: If relocating, don't put .init and
7558 .fini sections into .text; keep them separate.
7559 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
7560 exist, get crtbegin based on gcc -print-libgcc-file-name.
7561 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
7562
7563Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
7564
7565 * Makefile.in (check): Set TCL_LIBRARY for runtest.
7566
7567Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7568
7569 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
7570 manufacturer.
7571
7572 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
7573 if building a final executable.
7574
7575Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7576
7577 * ldmain.c (main): Check the return value of bfd_close.
7578
7579Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7580
7581 * scripttempl/alpha.sc: Clean up section alignment to ensure that
7582 sections never overlap when using -r.
7583
7584Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7585
7586 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
7587 changes: get_symtab_upper_bound renamed and returns long,
7588 bfd_canonicalize_symtab returns long, check for error indications.
7589
7590Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7591
7592 * ldlang.c (print_input_section): For section size, use
7593 _cooked_size if it is non-zero, size otherwise.
7594 (size_input_section): Likewise.
7595 (lang_do_assignments): Likewise (case lang_input_section_enum).
7596
7597Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7598
7599 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
7600 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
7601 (lang_add_input_file): Pass true to new_afile for add_to_list.
7602 (lookup_name): Remove force_load argument. Changed all callers.
7603 Pass false to new_afile for add_to_list. Split loading of symbols
7604 out into separate function.
7605 (load_symbols): New function split out of lookup_name. Don't load
7606 the symbols if they are already loaded.
7607 (open_input_bfds): For lang_input_statement_enum call load_symbols
7608 rather than lookup_name.
7609 (lang_process): Pass abs_output_section rather than NULL to
7610 lang_size_sections.
7611 (lang_startup): Set real field of first_file to true.
7612
7613Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7614
7615 * ldlang.c (had_relax): Removed.
7616 (relax_again): New static variable.
7617 (lang_size_sections): Change call to bfd_relax_section to
7618 correspond to BFD changes. Set relax_again appropriately.
7619 (lang_process): Remove #if 0 code. When relaxing, keep calling
7620 lang_do_assignments and lang_size_sections until relax_again
7621 becomes false.
7622
7623 * emultemp/gld960.em: Include libiberty.h
7624 (gld960_before_parse): Pass NULL as final argument to concat.
7625
7626Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7627
7628 * scripttempl/aout.sc: Force _end and __end to be aligned to a
7629 four byte boundary.
7630
7631 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
7632 building a bfd_data_link_order, rather than by setting the section
7633 contents immediately.
7634
7635Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7636
7637 Changes to make -Ur work again.
7638 * ldmain.c (add_to_set): Now takes reloc argument rather than
7639 bitsize. Check config.build_constructors here. If an new hash
7640 table entry is created, mark it as undefined.
7641 (constructor_callback): No longer takes bitsize argument. Pass
7642 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
7643 BFD backend supports it.
7644 (reloc_overflow): Handle a NULL abfd argument.
7645 (reloc_dangerous, unattached_reloc): Likewise.
7646 * ldctor.c: Include ldmain.h.
7647 (struct set_info): Change bitsize field to reloc.
7648 (ldctor_add_set_entry): Now takes reloc argument rather than
7649 bitsize. Don't bother to check config.build_constructors here.
7650 (ldctor_build_sets): Get the size from the reloc howto. If
7651 generating relocateable output, call lang_add_reloc rather than
7652 lang_add_data.
7653 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
7654 instead of bitsize.
7655 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
7656 (lang_reloc_statement_type): New structure.
7657 (lang_statement_union_type): Add reloc_statement field.
7658 (lang_add_reloc): Declare new function.
7659 * ldlang.c (lang_for_each_statement_worker): Handle
7660 lang_reloc_statement_enum.
7661 (map_input_to_output_sections, print_statement): Likewise.
7662 (lang_size_sections, lang_do_assignments): Likewise.
7663 (print_reloc_statement): New function.
7664 (lang_add_reloc): New function.
7665 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
7666
7667 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
7668 (cdtest-ur, cdtest-ur.out): New targets.
7669 (check-cdtest): Now also check that -Ur works correctly.
7670
7671 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
7672
7673Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7674
7675 * ldlang.c (lang_process): Move lang_common call before
7676 map_input_to_output_sections, to ensure that any alignment
7677 constraints set by common symbols are copied over to the output
7678 sections.
7679
7680Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7681
7682 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
7683 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
7684 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
7685 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
7686 needed for ELF.
7687
7688Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7689
7690 * config/i386bsd.mh: New file.
7691
7692Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7693
7694 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
7695 defined.
7696 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
7697 (DATA_START_SYMBOLS): Define _fdata.
7698
7699Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
7700
7701 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
7702
7703Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7704
7705 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
7706 works again. Attach some output symbols to the stub file bfd.
7707
7708 * emultempl/hppaelf.em: Include elf32-hppa.h.
7709 (file_chain): Add decl.
7710 (hppa_look_for_stubs_in_section): Delete decl.
7711 (hppaelf_finish): Reenable code. Do not pass symbols
7712 down to hppa_look_for_stubs_in_section.
7713
7714Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
7715
7716 * ldmain.c (write_map): Don't define. Removed all references.
7717 Just use map_file or map_filename instead.
7718 (add_archive_element): Use minfo to write map information, not
7719 info_msg.
7720 (constructor_callback): Use fprintf to write map information, not
7721 info_msg.
7722 * ldmain.h (write_map): Don't declare.
7723 * ldgram.y (mri_script_command): Removed reference to write_map.
7724 * ldlang.c (lang_one_common): Likewise.
7725 * lexsup.c (parse_args): Likewise.
7726
7727Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
7728
7729 * scripttempl/elf.sc: Force all sections to be aligned.
7730
7731 * ldgram.y (section): Reverse the order of memspec_opt and
7732 fill_opt to avoid an ambiguity when both are used.
7733 * ld.texinfo: Changed accordingly.
7734
7735 * ldgram.y: Move include of ldlex.h back with other includes.
7736 * ldlex.h (input_type): Don't initialize enum constants to
7737 particular values.
7738 * ldlex.l: Use a switch to return the right token based on
7739 input_type, rather than knowing that input_type has a value based
7740 on a token type.
7741
7742 * ldgram.y (dirlist_ptr): Removed; not used.
7743 * lexsup.c: Include ldver.h.
7744 * Makefile.in: Rebuilt dependencies.
7745
7746Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
7747
7748 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
7749 (ldlang_add_file): call it here instead.
7750
7751Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7752
7753 * ldgram.y: Include ldlex.h after %token decls, for byacc.
7754
7755Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7756
7757 * emultempl/hppaelf.em: First attempt to clean this file up.
7758 Add comments in several functions as to their purpose and
7759 how they function (or my current best guess). Clean up horrible
7760 spacing and indention that never should have been accepted in the
7761 first place. Add FIXMEs for issues which need to be resolved.
7762 Disable linker-stub generation until it gets fixed. This allows
7763 the linker to at least work on simple code for testing purposes.
7764
7765 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
7766 it via hppaelf_finish). Prototype moved into ldlang.h.
7767 (lang_process): Move problematic extra call to lang_size_sections
7768 into the PA ELF specific code.
7769 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
7770 lang_size_sections moved here.
7771
7772Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
7773
7774 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
7775 * config/ppc-elf32.mt: New file.
7776 * emulparams/elf32ppc.sh: New file.
7777 * emultempl/ppc.em: New file.
7778 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
7779 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
7780 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
7781
7782Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7783
7784 * lexsup.c (parse_args): Use symbolic numbers for long options.
7785 Fix misunderstanding in -Y and -call_shared et al.
7786
7787 Use getopt instead of lex and yacc to parse the command line.
7788
7789 * ld.texinfo (Options): Document changes to option syntax.
7790 * Makefile.in: Update dependencies.
7791 * ldver.c (help): Tweak dashes in usage message.
7792 * ldgram.y (%union): Remove unused members.
7793 Remove %tokens for command line options; add ones for input types.
7794 (command_line): Rules removed.
7795 (file): Instead of command line, recognize an
7796 input type indicator, then use the nonterminal for that type.
7797 (defsym_expr): New nonterminal from code formerly in command_line.
7798 * ldlex.h: Declare parser input type enum and variable.
7799 Don't declare parse_line.
7800 * ldlex.l: Remove unused variables. Make some used ones static
7801 and comment them.
7802 (COMMAND): Start state and its rules removed.
7803 At start of yylex, return input state token if at start of input.
7804 (lex_redirect): Don't need to set yyout.
7805 (ldlex_command): Function removed.
7806 * ldmain.c (main): Instead of calling parse_line, set up the
7807 redirections and call yyparse directly.
7808 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
7809 "command line".
7810 * lexsup.c: Remove #if 0'd code.
7811 (parse_line): Function removed.
7812 (parse_args): Rewrite to use getopt_long_only.
7813 (set_default_dirlist): New function from code formerly in
7814 ldgram.y:command_line.
7815 (set_section_start): New function.
7816 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
7817 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
7818 compiled-in link scripts in "{" and "}", as the grammar no longer
7819 wants them to be.
7820
7821Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
7822
7823 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
7824 require that it be in $(srcdir).
7825
7826Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
7827
7828 * ldlang.c (lang_size_sections): Only align section to alignment
7829 required by linker script, not to maximum alignment of input
7830 sections.
7831
7832 * ldlang.h (largest_section): Don't declare.
7833 * ldlang.c (largest_section): Don't define.
7834 (size_input_section): Don't set largest_section; not used.
7835
7836Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
7837
7838 * ldlang.c (new_afile): Pass NULL as last argument to concat.
7839
7840Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7841
7842 * ldlang.c, ldmain.c: Include libiberty.h.
7843
7844 * ldmisc.h (concat): Don't declare.
7845 * ldmisc.c (concat): Don't define; just use the one in libiberty.
7846
7847 * ld.h (as_output_section_statement): Removed; not used.
7848
7849Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7850
7851 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
7852 bfd_set_error and new error names.
7853
7854Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7855
7856 * ldwrite.c (build_link_order): If the cooked size of the section
7857 has been set, use it, for determining link_order size.
7858 (ldwrite): In the error message displayed if bfd_final_link fails,
7859 indicate that it was in fact the final link step that failed.
7860
7861 * ldlang.c (lang_size_sections): Clear bfd_error before calling
7862 bfd_relax_section, in case it returns false but doesn't flag an
7863 error. If an error is returned, indicate which one it is in the
7864 error message.
7865
7866 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
7867 it'll get picked up from $(srcdir) if appropriate.
7868
7869Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7870
7871 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
7872 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
7873
7874Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7875
7876 * ldlex.l (comment): Increment line number when newline is read.
7877
7878Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7879
7880 * ldlang.c (lookup_name): Take new argument, force_load. If true,
7881 reload the file even if it is already loaded.
7882 (wild): Call lookup_name with force_load argument of 0.
7883 (open_input_bfds): Call lookup_name with force_load argument of 1.
7884 (print_symbol): Remove declaration of non-existent function.
7885 (print_one_symbol): Return true rather than falling off end.
7886
7887Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7888
7889 * ldmain.c (main): Use %ld when printing long values.
7890
7891 * scripttempl/elf.sc: Move _edata after the .sdata section.
7892 Permit OTHER_BSS_SYMBOLS to be defined.
7893 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
7894
7895Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7896
7897 * Rename all "hppaosf" files to "hppaelf".
7898 * Change all "osf" references to "elf" in hppaelf files.
7899 * Makefile.in: Likewise.
7900 * configure.in: Likewise.
7901
7902Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7903
7904 * ldmain.c (main): Call xatexit, not atexit.
7905 Call xmalloc_set_program_name.
7906
7907 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
7908 bfd_errno.
7909
7910Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7911
7912 * emultempl/lnk960.em (append), emultempl/hppaosf.em
7913 (hppaosf_finish): Call xmalloc, not ldmalloc.
7914 * ldmain.c (preserve_output): Function removed.
7915 (main): Do it here instead.
7916
7917Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7918
7919 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
7920 GNU C specific macros.
7921
7922 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
7923 call to LANG_FOR_EACH_INPUT_SECTION.
7924
7925Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7926
7927 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
7928 deleted; will use libiberty versions instead.
7929 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
7930 mri.c Makefile.in: Change callers.
7931
7932 * ldmisc.c (vfinfo): Remove cleanup code.
7933 * ldmain.c (remove_output): Put it here (new function).
7934 (preserve_output): New function.
7935 (main): Register remove_output and preserve_output with atexit.
7936 * ldmain.c ldgram.y: Call xexit instead of exit.
7937 * ldmisc.h: Declare xexit.
7938
7939Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
7940
7941 * Makefile.in: Lots of new H8/500 memory models.
7942
7943Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7944
7945 * ldlex.l: Removed duplicate rules.
7946 (yywrap): Provide default definition, needed with some versions of
7947 flex.
7948
7949Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7950
7951 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
7952 the archive filename too.
7953
7954 * ldlex.l: Add rule to catch invalid input characters instead of
7955 printing them. Include "ldmain.h" for program_name decl.
7956 (lex_warn_invalid): New function.
7957 * Makefile.in: Add dependency.
7958
7959Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7960
7961 * Makefile.in (check): Don't bother running any tests of
7962 cross-linker until the test suite no longer assumes native mode.
7963
7964Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7965
7966 * ldlang.c (print_one_symbol, print_input_section): Print
7967 global symbols in symbol table again.
7968
7969Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7970
7971 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
7972 exit successfully instead of complaining if no input files are
7973 given.
7974
7975Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
7976
7977 * Makefile.in: Format variable definitions consistently.
7978 (LD_PROG): Remove unnecessary variables from link command,
7979 change variable LOADLIBES to EXTRALIBS.
7980
7981 * ldmain.c (main): Compute and display total execution time.
7982 * ld.texinfo (-stats): Document the option.
7983
7984Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7985
7986 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
7987 arguments.
7988
7989 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
7990 after opening BFD.
7991
7992 * ldlang.c (relaxing): Removed global variable.
7993 (lang_size_sections): If the canonical symbols have not already
7994 been read in, read them in before relaxing.
7995 * ldlang.h (relaxing): Removed declaration.
7996
7997Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7998
7999 * ldlang.c (new_afile): Initialize loaded field to false.
8000 (lookup_name): If file was already loaded, don't call the
8001 add_symbols entry point again.
8002
8003Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8004
8005 * ld.texinfo: Clarify what -T option does.
8006
8007Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8008
8009 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
8010 for a.out.
8011
8012Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8013
8014 * ldmain.c (add_archive_element): If trace_files or
8015 trace_file_tries, print file name.
8016 * ldlang.c (lookup_name): Likewise.
8017 (ldlang_add_file): Don't put files on input_bfds list in reverse
8018 order.
8019
8020 * scripttempl/elf.sc: Correct typo.
8021
8022Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8023
8024 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
8025 their arguments optional, for compatibility with the old GNU ld.
8026
8027Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8028
8029 * scripttempl/elf.c: Define __bss_start before the .sbss section.
8030
8031Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8032
8033 * ldmain.c (add_to_set): Add bitsize argument.
8034 (constructor_callback): New function.
8035 (link_callbacks): Add constructor_callback.
8036 * ldctor.c (struct set_info): Add bitsize field.
8037 (ldctor_add_set_entry): Add bitsize argument.
8038 (ldctor_build_sets): Base the size of the elements of the set on
8039 the bitsize, rather than always using LONG.
8040 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
8041
8042 * ld.h (QUAD_SIZE): Define.
8043 * ldgram.y (QUAD): New token.
8044 (length): Handle it.
8045 * ldlex.l: Return QUAD.
8046 * lexsup.c (keywords): Add QUAD.
8047 * ldwrite.c (build_link_order): Handle QUAD.
8048 * ldlang.c (print_data_statement): Handle QUAD.
8049 (lang_size_sections): Likewise.
8050 (lang_do_assignments): Likewise.
8051 * ldexp.c (exp_print_token): Add QUAD to table.
8052 * ld.texinfo: Describe QUAD.
8053
8054 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
8055 since the Alpha doesn't use them.
8056
8057Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8058
8059 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
8060
8061Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
8062
8063 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
8064 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
8065
8066Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8067
8068 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
8069 needed for i386mach. (Should be a no-op on other systems.)
8070
8071 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
8072 (PAGE_SIZE): Don't define; not used.
8073
8074Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8075
8076 * ldgram.y (yyerror): Make argument const char *, and actually
8077 print it out rather than assuming it is a syntax error.
8078 * ldmisc.h: Change declaration of yyerror.
8079 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
8080
8081Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8082
8083 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
8084 exec header offset, since the exec header isn't loaded.
8085 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
8086
8087Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8088
8089 A major rewrite to move the bulk of the linker into BFD so that
8090 more efficient backend code can be written for specific object
8091 files.
8092 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
8093 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
8094 * ldctor.c, ldctor.h: Complete rewrite.
8095 * ldwrite.c, ldwrite.h: Complete rewrite.
8096 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
8097 link_info.strip instead. Changed all uses.
8098 (discard_locals_type, discard_locals): Removed. Use
8099 link_info.discard instead. Changed all uses.
8100 (ld_config_type): Removed relocateable_output field; use
8101 link_info.relocateable instead; changed all uses. Added stats
8102 field.
8103 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
8104 set_loader_symbol): Removed.
8105 * ldexp.h (node_class): Added etree_rel.
8106 (etree_type): Added rel field.
8107 * ldexp.c (exp_print_token): Bracketed table initialization.
8108 (exp_relop): New function.
8109 (fold_name): Use linker hash table rather than ldsym functions.
8110 (exp_fold_tree): Likewise. Also, handle etree_rel case.
8111 (exp_print_tree): Handle etree_rel.
8112 * ldgram.y (strip_symbols, discard_locals): Removed.
8113 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
8114 (REL): New token. Does not appear in grammar, but needed for
8115 expression code.
8116 (file): Don't call lang_final; it's called by main anyhow.
8117 * ldlex.l: Accept -stats and -no-keep-memory options.
8118 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
8119 * ldlang.c: Consistently use fill_type for fill argument.
8120 (lang_init_script_file, script_file): Removed.
8121 (create_object_symbols): Removed. Use
8122 link_info.create_object_symbols_section instead. Changed all
8123 uses.
8124 (lang_add_keepsyms_file): Removed.
8125 (lookup_name): Call bfd_link_add_symbols instead of
8126 ldmain_open_file_read_symbol.
8127 (wild): Don't iterate over script_file.
8128 (open_output): Create link hash table.
8129 (lang_place_undefineds): Rewrote.
8130 (lang_size_sections): Handle relaxing (doesn't work yet).
8131 (lang_relocate_globals): Removed.
8132 (lang_finish): Use link hash table rather than ldsym functions.
8133 (lang_common): Rewrote.
8134 (lang_one_common): New function.
8135 (ldlang_add_file): Add file to link_info.input_bfds list. Set
8136 usrdata.
8137 (create_symbol): Removed.
8138 (lang_process): Don't call lang_init_script_file. Call
8139 ldctor_build_sets rather than find_constructors. Don't call
8140 lang_relocate_globals.
8141 (lang_abs_symbol_at_beginning_of): Rewrote.
8142 (lang_abs_symbol_at_end_of): Rewrote.
8143 * ldmain.c (had_y): Removed.
8144 (lprefix, lprefix_len): Removed; use link_info fields instead.
8145 Changed all uses.
8146 (multiple_def_count, commons_pending, undefined_global_sym_count,
8147 total_symbols_seen, total_files_seen): Removed.
8148 (link_callbacks, link_info): New variables.
8149 (main): Initialize link_info. Don't call init_bfd_error_vector or
8150 ldsym_init. Don't set now unused variables. Handle -stats.
8151 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
8152 (add_ysym): Rewrote.
8153 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
8154 search_library, gnu960_check_format, decode_library_subfile,
8155 linear_library, symdef_library, clear_syms, subfile_wanted_p):
8156 Removed.
8157 (add_keepsyms_file, add_archive_element, multiple_definition,
8158 multiple_common, add_to_set, warning_callback, undefined_symbol,
8159 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
8160 New functions.
8161 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
8162 require symbols for %C; look them up instead.
8163 * emultempl/hppaosf.em: Pass link_info to
8164 hppa_look_for_stubs_in_section.
8165 * Makefile.in: Rebuilt dependencies.
8166 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
8167 relax.c.
8168 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
8169 relax.h.
8170 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
8171 ldlang.h and ldctor.h.
8172
8173 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
8174 declarations of free and malloc from flex output. Change malloc
8175 to ldmalloc in flex output.
8176
8177Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
8178
8179 * ldmain.c (lprefix): Change default from a char to a string
8180 with only one character.
8181 (lprefix_len): Set default to one.
8182
8183 * ldmain.h (lprefix_len): Declare.
8184
8185 * ldsym.c (write_file_locals): Use strncmp rather than a character
8186 comparison for lprefix.
8187
8188 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
8189 correctly.
8190
8191 * emultmpl/hppaosf.em: Include ldexp.h.
8192 (before_parse): Set lprefix and lprefix_len correctly.
8193
8194Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8195
8196 * ldlex.h: Don't declare yywrap if it is a macro.
8197 * ldlex.l: Include sysdep.h.
8198 * ldlang.c (lang_for_each_statement_worker,
8199 lang_for_each_statement): Forgot to use PARAMS.
8200
8201Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8202
8203 * Makefile.in: Added .PHONY targets where appropriate. Added some
8204 comments. Also:
8205 (gcclibdir, version): Removed unused variables.
8206 (DEP): New variable, set to mkdep.
8207 (ALL_CFLAGS): New variable. Used in .c.o target.
8208 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
8209 variables.
8210 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
8211 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
8212 mostly obsolete variables. Adjusted remaining uses.
8213 (DEF_EMUL): Removed variable.
8214 (ldmain.o): Handle undefined EMUL error correctly.
8215 (ldemul-list.h): Depend on config.status rather than Makefile.
8216 Create via temporary file.
8217 (ver960.c, roll, make): Removed obsolete targets.
8218 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
8219 dependencies.
8220 * dep-in.sed: New file, used when rebuilding dependencies.
8221
8222Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
8223
8224 Made many changes to eliminate gcc warnings. Made various
8225 cosmetic changes, declared various things in header files, removed
8226 various extern declarations from .c files. No substantive
8227 changes.
8228
8229 * ldlang.c (lang_process): Ifdef out final call to
8230 lang_size_sections again (reverting change of Nove 2), since it
8231 breaks the Sun4 linker.
8232
8233Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8234
8235 * configure.in (alpha-*-netware*): New target; use alpha.
8236
8237Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
8238
8239 * configure.in: Group targets by CPU. Merge some m68k target
8240 entries with different CPU specs that use the same ld_target
8241 values.
8242
8243 * configure.in: Add sparc*-*-coff.
8244 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
8245 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
8246 (em_coff_sparc.c): Add dependencies and build rules.
8247
8248 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
8249
8250Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8251
8252 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
8253 New tokens.
8254 (command_line_option): Accept and ignore them (for now).
8255 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
8256 where n is a number.
8257
8258Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8259
8260 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
8261 not in bfd_com_section, create the section in the BFD so that it
8262 can be placed in the right output section.
8263
8264Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8265
8266 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
8267 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
8268 (OTHER_READONLY_SECTIONS): Define for .reginfo.
8269 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
8270 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
8271 Move OTHER_READONLY_SECTIONS after all the other readonly
8272 sections. Don't use DATA_ADDR twice.
8273
8274 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
8275 p is in a common section, make sure the BFD has a section of that
8276 name.
8277
8278 * ldlang.c (lang_common): Add newline to error message.
8279
8280Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
8281
8282 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
8283 Lynx-specific script instead of m68kcoff.
8284 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
8285 (ENTRY): Define as __main.
8286 (TEXT_START_ADDR): Define as 0.
8287 (PAGE_SIZE): Define as 0x1000.
8288 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
8289 * scripttempl/m68klynx.sc: New file.
8290
8291Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8292
8293 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
8294 arguments rather than treating them as emulation names.
8295
8296Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
8297
8298 * configure.in: Support x86 unixware and netware plus generic netware.
8299
8300Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8301
8302 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
8303 Correct values (?).
8304
8305Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
8306
8307 * Makefile.in (distclean): Don't delete dvi or info files.
8308 (ld.info): Update dependency list.
8309 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
8310
8311Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8312
8313 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
8314 Set output_filename instead of creating a new node.
8315 (open_output): Don't set output_filename.
8316 (lang_final): Create the new node here.
8317 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
8318
8319Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
8320
8321 From Pete Hoogenboom (hoogen@cs.utah.edu):
8322
8323 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
8324 edata, _edata, end): Add definitions of these symbols.
8325 (__end): Remove definition of this symbol.
8326 (__data_start): Move definition of this symbol.
8327
8328 * emultempl/hppaosf.em: Various fixes and support for linker stub
8329 generation.
8330 (hppaosf_finish, hppaosf_search_for_padding_statements,
8331 hppaosf_create_output_section_statements): New functions in
8332 support of linker stub generation.
8333 (ld_hppaosf_emulation): Redefine to include new
8334 emulation-specific routines.
8335
8336 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
8337 Pass abs_output_section rather than NULL to avoid invalidating
8338 absolute symbols.
8339
8340Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8341
8342 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
8343 (em_i386mach.c): New rule.
8344 * configure.in (i[34]86-*-mach*): New case.
8345 * config/i386-mach.mt: New file.
8346 * emulparams/i386mach.sh: New file.
8347
8348Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8349
8350 * ld.h (flag_is_*): Removed macros.
8351 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
8352 Consistently check the BFD symbol flags directly, rather than
8353 using file_is_* macros.
8354
8355Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
8356
8357 * configure.in (sparc*-*-lynxos*): New target.
8358 * Makefile.in: Add rule for em_sparclynx.c.
8359 (ALL_EMULATIONS): Add Lynx emulations.
8360 * config/sparc-lynx.mt: New file.
8361 * emulparams/sparclynx.sh: New file.
8362 * scripttempl/sparccoff.sc: New file.
8363
8364Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8365
8366 * Makefile.in: Add dependency for $(EMULATION_OFILES).
8367
8368Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8369
8370 * relax.c (write_relax): Check return value of bfd_seclet_link.
8371
8372Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
8373
8374 * ldlang.c (delete_output_file_on_failure): New variable.
8375 (open_output): Set it after bfd open succeeds.
8376 * ldmisc.c (vfinfo): Test it.
8377
8378 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
8379
8380 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
8381 symbols.
8382
8383 * ldemul.c: Support was added to allow emulation-specific
8384 processing to occur. This support was added primarily for linker
8385 stub generation in the elf32-hppa gld.
8386 (ldemul_finish, ldemul_create_output_section_statements): New
8387 functions.
8388 * ldemul.h: Support was added to allow emulation-specific
8389 processing to occur. (As described above.) Added finish and
8390 create_output_section_statements fields to
8391 ld_emulation_xfer_struct structure.
8392 * ldlang.c: Add calls to emulation-specific routines.
8393 (lang_process): Add call to
8394 ldemul_create_output_section_statements function.
8395 (lang_process): Add call to a emulation-specific routine (and
8396 some processing after the call).
8397
8398Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8399
8400 * configure.in: mips*- instead of mips-, mips*el changes
8401
8402Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8403
8404 * configure.in (alpha-*-osf*): New target; use alpha.mt.
8405 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
8406 (em_alpha.c): New target; use alpha.sh and alpha.sc.
8407 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
8408 * config/alpha.mt: New file.
8409 * emulparams/alpha.sh: New file.
8410 * scripttempl/alpha.sc: New file.
8411
8412Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
8413
8414 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
8415 types of different sizes (eg: 64 and 32 bits), so coerce.
8416 * ld.h (ALIGN_N): Add warning about usage.
8417
8418Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8419
8420 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
8421 which we already have a definition, rather than checking in
8422 several different places whether the symbol is weak.
8423
8424Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8425
8426 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
8427 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
8428 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
8429 expanded within them.
8430 * config/mipsb-elf32.mt: New file.
8431 * emulparams/elf32mipb.sh: New file.
8432 * Makefile.in (em_elf32mipb.c): New target.
8433
8434Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
8435
8436 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
8437 lang_input_file_is_search_file_enum so objects brought in using
8438 INPUT() do a path lookup.
8439
8440Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
8441
8442 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
8443 instead of {i386,m68k}-coff.
8444 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
8445 * config/i386-lynx.mt: New file.
8446 * config/m68k-lynx.mt: New file.
8447 * emulparams/i386lynx.sh: New file.
8448 * emulparams/m68klynx.sh: New file.
8449
8450 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
8451 but defaulting to _start.
8452
8453 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
8454 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
8455 LynxOS libc.
8456
8457Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
8458
8459 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
8460 HOSTING_LIBS for testing.
8461
8462Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8463
8464 Finish up support for i386-sysv4 (without shared libraries):
8465 * ld.h (flag_is_weak): Define.
8466 * ldlang.c (print_symbol): Mention whether symbol is weak.
8467 (print_input_section): Print weak symbols as globals.
8468 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
8469 (enter_global_ref): Do not warn if a weak symbol redefines a
8470 global symbol. Do not let a weak symbol redefine a common symbol.
8471 (enter_file_symbols): Treat weak symbols as global symbols.
8472 (subfile_wanted_p): Do not pull in an object file from a archive
8473 just to resolve an undefined weak symbol.
8474 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
8475 error; the error might be that malloc has run out of space.
8476 * ldsym.c (write_file_locals): Treat weak symbols as global.
8477 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
8478 use i386-elf.
8479 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
8480 * config/i386-elf.mt: New file; set EMUL to elf_i386.
8481 * emulparams/elf_i386.sh: New file.
8482 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
8483 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
8484 (ALL_EMULATIONS): Add em_elf_i386.o.
8485 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
8486 (em_elf_i386.c): New target, like other em_*.c targets.
8487 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
8488 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
8489 nonempty, and configured for native, add it to LIB_PATH.
8490
8491Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
8492
8493 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
8494 Added statements to pass stab and stabstr sections through and
8495 mark them as NOLOAD, which makes GDB happier.
8496
8497Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
8498
8499 * configure.in: Accept m68k-lynx-lynxos config.
8500
8501 * Makefile.in: Use $(SHELL) to run genscripts.sh.
8502
8503Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
8504
8505 * config/coff-h8300.mt: Add EMUL=h8300h.
8506
8507 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
8508
8509Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8510
8511 * Makefile.in: Changed CXX back to g++.
8512
8513Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8514
8515 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
8516
8517Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8518
8519 * Makefile.in (TAGS): Use shell wildcards.
8520
8521Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
8522
8523 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
8524
8525Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
8526
8527 * ld.texinfo: re-enable included config file; conditionalize doc
8528 for -oformat to interact properly with SingleFormat doc config
8529 var; rename @up/@down to @raisesections/@lowersections.
8530
8531Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8532
8533 * configure.in: recognize m88110.
8534
8535Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8536
8537 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
8538 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
8539 ELF emulation is "elf32-hppa" not "elf-big".
8540 (hppaosf_before_parse): Remove unneeded processing of environment
8541 variables.
8542 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
8543 .text segment of output file.
8544 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
8545
8546Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8547
8548 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
8549 longer in bfd.h.
8550
8551 * ldlang.c, ld.h: updated copyright.
8552
8553Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8554
8555 * ldlang.c (open_output, lang_check): Check return value of
8556 bfd_set_arch_mach.
8557
8558Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8559
8560 * scripttempl/h8500.sc: Start all sections in a different segment.
8561 * scripttempl/z8ksim.sc: Handle constructors
8562
8563Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
8564
8565 * Makefile.in: revert earlier changes back to execute runtest
8566 with make check. cdtest and bootstrap now function as they
8567 did within the Makefile.
8568
8569Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8570
8571 * Makefile.in: Update dependencies.
8572
8573 * configure.in: Set EMULATION_OFILES in Makefile based on
8574 --with-targets option.
8575
8576Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8577
8578 * Makefile.in: check targets reimplemented to old way.
8579
8580Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
8581
8582 * config/i386v.mh, config/irix4.mh: Use gcc
8583 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
8584 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
8585 bfd/configure.host change.
8586
8587Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8588
8589 * scripttempl/elf.sc: Handle .line and .debug* sections.
8590
8591 * ldlex.l: Use bfd_scan_vma, not strtoul.
8592
8593Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8594
8595 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
8596 Remove inital caps in some error messages, change "can't" to
8597 "cannot", add missing colons.
8598 * ldmisc.c (vfinfo): Print "%%" as a single %.
8599 For '%' followed by unrecognized character, print them both
8600 verbatim instead of expecting a char * arg.
8601 For '%C', don't put the function name in parens.
8602
8603 * ldexp.c (invalid): Pass "%%", not "% ".
8604
8605Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8606
8607 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
8608 (BSS_VAR): Removed; now always define _fbss.
8609 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
8610 Removed.
8611
8612Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8613
8614 * configure.in: z8k-coff is the same as z8k-sim
8615
8616Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
8617
8618 * testsuite/lib/ld.exp: new file
8619 * testsuite/config/unix-ld.exp: new file
8620 * testsuite/ld.bootstrap/bootstrap.exp: new file
8621 * Makefile.in: add dejagnu support for make check
8622
8623Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8624
8625 * ldlex.l (comment): Add missing newline in message.
8626 * ldindr.c (add_indirect): Ditto.
8627 * ldexp.c (exp_fold_tree): Ditto.
8628
8629Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8630
8631 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
8632 into externs.
8633
8634 * ldmisc.c (multiple_warn): New function.
8635 * ldmisc.h: Declare it.
8636 * ldmain.c (enter_global_ref): Call it.
8637 * ld.h (ld_config_type): Add warn_common.
8638 * ldlex.l, ldgram.y: Set it with -warn-common option.
8639 * ldver.c (help): Document it.
8640
8641Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8642
8643 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
8644 target-specific sections, and for changing data section vma.
8645
8646Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8647
8648 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
8649 terminals, for Solaris.
8650 (dirlist_ptr): New static variable.
8651 (command_line_option): Accept new options.
8652
8653 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
8654 "-YP,...".
8655
8656 * config/sun4sol2.mt: Pass emulation name without ".sh".
8657
8658 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
8659 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
8660
8661Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8662
8663 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
8664 .dtors, .data1, .rodata1 sections, instead of combining them into
8665 other sections. For `-r', set all section start addresses to
8666 zero.
8667
8668 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
8669 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
8670 (MAXPAGESIZE): Renamed from PAGE_SIZE.
8671
8672Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8673
8674 * genscripts.sh: If this is the default emulation, set
8675 COMPILE_IN.
8676 * emultempl/*.em: Use it to determine whether to compile in the
8677 scripts.
8678
8679 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
8680 genscripts.sh. Pass the current emulation name without ".sh" on
8681 the end.
8682 * genscripts.sh: Take an default emulation arg.
8683 Use the current emulation name as EMULATION_NAME.
8684 Make default lib path for cross-compiling ':', not null.
8685 * emulparams/*.sh: Don't set EMULATION_NAME.
8686 * ldemul.c (ldemul_get_script): Take isfile arg.
8687 Pass it to emulation's get_script function.
8688 * ldemul.h: Adjust get_script prototypes.
8689 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
8690 No longer static.
8691 * ldfile.h: Declare it.
8692 * ldgram.y: Accept a script on the command line again,
8693 for parsing compiled-in scripts.
8694 * ldmain.c (main): If ld script is a file, parse it as a -T
8695 option, otherwise parse it directly.
8696 * emultempl/*.em (*get_script): Return the scripts themselves if
8697 this is the default emulation; otherwise return their file names.
8698 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
8699 generic.em.
8700 * emulparams/m88kbcs.sh: Use it.
8701
8702 * ld.h (ld_config_type::unix_relocate): Remove unused element.
8703
8704Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8705
8706 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
8707 there's no change log entry yet, tsk tsk) from the list of
8708 emulations compiled in until Mark gets around to checking in
8709 emulparams/i386linux.sh.
8710 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
8711 changed, this file gets updated.
8712
8713Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
8714
8715 * ldgram.y (OPTION_Lfile): New token.
8716 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
8717 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
8718
8719Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
8720
8721 * configure.in: h8/300h support needs own .mt file.
8722 config/coff-h8300h.mt: New file.
8723
8724Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8725
8726 * ldmain.c: Don't include sys/stat.h; it already got included
8727 somewhere along the way.
8728
8729Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
8730
8731 * Makefile.in: Add h8300h support.
8732 emulparams/h8300h.sh: New file.
8733 scripttempl/h8300h.sc: New file.
8734
8735Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8736
8737 * ldfile.c (ldfile_open_file): In error message, use the name the
8738 user gave (e.g., "-lc"), rather than the base file name.
8739
8740 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
8741
8742 * ldmain.[ch]: Remove initial Q_ from function names.
8743 * ldexp.c, ldindr.c, ldlang.c: Change callers.
8744
8745 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
8746
8747 * ldlang.c (lang_process): Move loading of default script from
8748 here to main. Add a "/" to start of script name to prevent
8749 finding it in "." first.
8750
8751 * ldmain.c (set_scripts_dir): Don't look in "." first.
8752
8753 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
8754 option_longmap.
8755
8756Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
8757
8758 * Makefile.in (em_m88kbcs.c): Correct dependency.
8759 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
8760 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
8761 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
8762
8763Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8764
8765 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
8766 main.c (main): Print the errno string in the error message.
8767
8768Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
8769
8770 * configure.in: Accept h8300h for target cpu.
8771
8772 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
8773 present (demangle is smart enough to know whether to do it or not).
8774
8775Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8776
8777 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
8778 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
8779
8780 * ldlang.c (lang_process): Use sizeof instead of magic constant.
8781
8782 * ldmain.c (get_emulation, check_for_scripts_dir,
8783 set_scripts_dir): New functions.
8784 (main): Call them.
8785
8786Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8787
8788 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
8789 Create symbol "end" instead of "__end". Comment out some parts
8790 that may not be needed (yet) for elf.
8791
8792 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
8793
8794Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8795
8796 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
8797
8798 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
8799 when no prototype is being supplied.
8800 (ldmalloc, ldrealloc): Size argument is now size_t.
8801
8802 * ldmisc.c (finfo): New function, accepts FILE* argument.
8803 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
8804 without leading zeros.
8805 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
8806 bfd_vma value, instead of fprintf(%x) which won't hold a long long
8807 value.
8808 (concat, buystring): String lengths are size_t.
8809 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
8810
8811 * ldlang.c (new_statement): Size argument is now size_t. Added
8812 forward declaration with prototype.
8813
8814Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8815
8816 * ldgram.y (OPTION_v): Don't turn on verbose output.
8817
8818Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8819
8820 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
8821 bfd.h instead.
8822
8823Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
8824
8825 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
8826 collect2 doesn't look for gld any more anyhow.
8827
8828Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
8829
8830 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
8831 now have a non NULL srefs_chain.
8832
8833 * config/hp300hpux.mt: Use emulation hp3hpux rather than
8834 hp300hpux, since the latter does not exist.
8835
8836Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8837
8838 * genscripts.sh: Put the scripts in the ldscripts directory, not
8839 emulations.
8840 * configure.in (ldscripts): Make, instead of emulations.
8841 * Makefile.in (scriptdir): Take off the "ld" part.
8842 (install, clean, distclean): Use ldscripts, not emulations.
8843 In tests, don't pass -Lemulations.
8844 Don't pass tooldir/lib to genscripts.sh.
8845 * genscripts.sh: Don't take tooldir/lib arg.
8846 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
8847 default script file.
8848
8849Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
8850
8851 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
8852
8853Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
8854
8855 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
8856
8857Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8858
8859 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
8860 run in parallel without colliding on yacc's static file names.
8861 Without the stub rule, make will try to start two yacc's
8862 concurrently which fails because of yacc's static file names.
8863
8864Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
8865
8866 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
8867 symbols.
8868
8869Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8870
8871 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
8872 different from libdir.
8873
8874 * Makefile.in (scriptdir): Base on tooldir, not datadir.
8875
8876Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8877
8878 * ldver.c (help): New function.
8879 * ldver.h: Declare it.
8880 * ldlex.l, ldgram.y: Recognize new options --help and --version.
8881
8882Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8883
8884 * Makefile.in (INCLUDES): Don't need ../include any more.
8885
8886Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8887
8888 * ldlex.l, ldgram.y: Support new -oformat option.
8889 Remove attempt at supporting script fragments on the command line.
8890 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
8891 * mri.c (mri_format), ldgram.y: Change callers.
8892 * ldlang.h: Change prototype.
8893
8894Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
8895
8896 * Makefile.in: canonicalize install.sh; for use within
8897 this directory (and subdirs)
8898
8899Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8900
8901 * ldgram.y: Tweak grammar to make reporting of invalid options work.
8902
8903 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
8904 and .cc.o rule.
8905
8906Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8907
8908 * ldfile.c (ldfile_open_command): Don't try .ld extension.
8909 It wasn't documented (or likely used) and wastes time.
8910 (try_open): If EXTEN is empty, don't try it.
8911
8912 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
8913 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
8914 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
8915 with normal function declarations.
8916
8917 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
8918 Move *.sc-sh to scripttempl/*.sc.
8919 * {emultempl,emulparams,scripttempl}/README: New files.
8920 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
8921 removed, replaced with generic.em.
8922 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
8923 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
8924
8925 * *.em (*_get_script): Return script name instead of script contents.
8926 * ldlang.c (lang_process): Change caller.
8927
8928 * ldlex.l, ldgram.y: Recognize -m option.
8929 Check for input files after *all* options in grammar.
8930 * ldmain.c (main): Check for -m options. Add default directory
8931 for -m.
8932
8933 * mkscript.c: File removed.
8934 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
8935 to add to the default LIB_PATH.
8936 Look for input files in the new subdirectories.
8937 Create the scripts in emulations subdirectory and don't filter
8938 them through mkscript.
8939 * configure.in: Make the emulations subdirectory.
8940
8941 * Makefile.in: Account for all of the above changes.
8942 Remove unused .SUFFIXES. Get libgcc.a path with gcc
8943 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
8944 Put CFLAGS last in the compilation rules.
8945 Add -I../bfd to INCLUDES so sysdep.h is found.
8946
8947Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8948
8949 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
8950
8951 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
8952 dependent on RELOCATING, not RELOCATION.
8953 * hp3hpux.sh (SHLIB_PATH): Define it.
8954
8955Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8956
8957 * ldfile.c (try_open): If opening without the extension fails,
8958 try with the extension even if -v or -V was given.
8959 had_script is imported (from ldgram.y), not exported.
8960
8961Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
8962
8963 * Makefile.in: remove parentdir support, use INSTALL_XFORM
8964
8965Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
8966
8967 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
8968 * ldgram.y (statement_list_opt): New nonterminal, either empty or
8969 statement_list.
8970 (section): Use statement_list_opt, not statement_list.
8971 * m68kcoff.sc-sh: Gather constructors and destructors and define
8972 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
8973 * sa29200.sc-sh: Gather constructors and destructors and define
8974 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
8975
8976Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
8977
8978 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
8979 * configure.in: No longer need to configure to get sysdep.h.
8980
8981Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
8982
8983 * Makefile.in: remove install:all and install-info:info
8984 dependencies (these cause some spurious rebuilds at 'make install'
8985 time)
8986
8987Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
8988
8989 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
8990 (mips-idt-ecoff*): Added trailing '*'.
8991 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
8992 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
8993 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
8994
8995 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
8996 incorrect definitions.
8997
8998Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
8999
9000 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
9001 symbols, unless stripping.
9002
9003Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
9004
9005 * Makefile.in: configure looks for ####, so remove lines with many
9006 '#' characters.
9007 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
9008 and HOSTING_LIBS correctly so that ``make check'' will work.
9009
9010Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
9011
9012 * mips.sc-sh: Define _etext, _edata, and _end, in addition
9013 to etext, edata, and end. Needed for IRIX 4.0.5F.
9014 Patch from mwp@iconix.oz.au (Michael Paddon).
9015
9016 * Version 2.2.1 released.
9017
9018Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9019
9020 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
9021 * mipsbsd.sh (EMULATION_NAME): Use new file name.
9022
9023Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9024
9025 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
9026 properly right now.
9027
9028 * Version 2.2 released.
9029
9030Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9031
9032 * ldver.c (ldversion): Bump version number to 2.2.
9033
9034Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
9035
9036 * NEWS: New file.
9037
9038Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
9039
9040 * mips.sc-sh: Don't define BSS_VAR unless relocating.
9041
9042Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
9043
9044 * Makefile.in (mkscript.o, mkscript): Build mkscript via
9045 mkscript.o, rather than directly from mkscript.c.
9046
9047Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9048
9049 * configure.in: Look for ${target_makefile_frag} relative to
9050 ${srcdir}, not relative to build directory.
9051
9052 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
9053 * configure.in: Recognize hppa*-hp-osf.
9054 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
9055 (em_hppaosf.c): Build it.
9056 * config/hppaosf.mh, hppaosf.mt: New files.
9057
9058 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
9059 some system header files. All uses changed.
9060
9061 * configure.in: Recognize i386-aix configurations as i386-coff
9062 targets.
9063
9064 * configure.in: Recognize m68*-*-hpux.
9065 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
9066 the value of STACKZERO.
9067 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
9068 (em_hp3hpux.c): Build it.
9069 * hp3hpux.sh, config/hp300hpux.mt: New files.
9070
9071Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
9072
9073 * mips.sc-sh: Put constructors in the .data section.
9074 * Makefile.in (cdtest): Added dependency on ld.new.
9075
9076Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
9077
9078 * Makefile.in: Change definition of $(tooldir) to match FSF.
9079 * vax.sh, config/vax.mt, configure.in, Makefile.in:
9080 Support VAX Ultrix and BSD.
9081
9082Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9083
9084 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
9085
9086Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
9087
9088 * ldlang.h (struct memory_region): Change `length' and
9089 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
9090 * ldlang.c, mri.c: Corresponding changes, plus lint.
9091
9092Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
9093
9094 * configure.in: For all i386 targets, accept i486 as well.
9095
9096Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
9097
9098 * ldlang.c (wild_doit): Preserve all flags for a
9099 SEC_SHARED_LIBRARY section.
9100 (size_input_section): Consider any SEC_HAS_CONTENTS section when
9101 computing largest_section.
9102
9103Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
9104
9105 * ldlang.c (lang_output_section_statement_lookup): Initialize all
9106 fields of newly created structure.
9107
9108Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
9109
9110 * ldmain.c (g_switch_value): New variable.
9111 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
9112 (command_line_option): Accept -G and set g_switch_value.
9113 * ldlex.l (COMMAND): Accept -G.
9114 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
9115
9116Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9117
9118 Support for linking and loading at different places:
9119
9120 * ldlex.l: Add "AT" keyword.
9121 * ldgram.y: Cleanup, and parse AT.
9122 * ldlang.c (print_output_section_statement): Print output address
9123 of section in map. (lang_size_sections): Fill sections' lma with
9124 load address.
9125 * ldlang.h (lang_output_section_statement_type): Add load_base
9126 information.
9127
9128 * ldindr.c (add_indirect): Keep more information in the alias
9129 symbol chain.
9130 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
9131 attribute from an input section.
9132 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
9133 default. (Q_enter_file_symbos): Indirect symbols now are known by
9134 their section, not a special symbol flag.
9135 * ldsym.c (write_file_locals): Indirect symbols aren't local.
9136 (write_file_globals): Write the mapping for an indirect symbol.
9137 * relax.c (build_it): When forced to write a NEVER_LOAD section,
9138 fill it with zeros.
9139
9140Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
9141
9142 * ld.texinfo: changes for q1
9143
9144Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9145
9146 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
9147
9148Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9149
9150 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
9151
9152Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
9153
9154 * mips.sc-sh: Added variables which may be overridden by a
9155 specific emulation.
9156 * mipsidt.sh: New file; emulation for IDT MIPS board.
9157 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
9158 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
9159 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
9160 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
9161
9162Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9163
9164 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
9165 ralphc@pyramid.com.
9166 * i386bsd.sh, config/i386bsd.mt: New files.
9167 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
9168
9169Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
9170
9171 * mri.c: Add extern declaration of strdup.
9172 * ldsym.c (KEEP macro): Add spaces around '=' for the
9173 sake of old (e.g. PCC) compilers.
9174
9175Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
9176
9177 * ldver.c: Bump to version 2.1.
9178
9179Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9180
9181 * ldgram.y: allow section types without address expressions.
9182 * ldlang.c (lang_relocate_globals): avoid possible hang with
9183 undefined but unreferenced symbols.
9184 * relax.c (relax_section): don't complain if the script file isn't
9185 relaxable but -relax is set
9186
9187Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9188
9189 * configure.in: go32 is the 3rd part of the triple, not the 2nd
9190
9191Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
9192
9193 * mipsbig.sh: New file. Big endian MIPS emulation.
9194 * config/mips-big.mt: New file. Use mipsbig emulation.
9195 * configure.in (mips-sgi-irix*): Use target mips-big.
9196 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
9197 (em_mipsbig.c): New target. Uses mipsbig.sh.
9198
9199Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
9200
9201 * mips.sc-sh: Put .scommon sections into .sbss section.
9202
9203 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
9204 rather than always putting them in bfd_com_section.
9205 * ldlang.c (lang_common): If a common symbol is not in
9206 bfd_com_section, put in a section of the same name, rather than
9207 always putting it in section COMMON.
9208
9209Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
9210
9211 * ldmain.c (subfile_wanted_p): If we already have a common
9212 definition of a symbol, don't necessarily pull in an object file
9213 that provides a non-common definition.
9214
9215 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
9216 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
9217 linker.
9218 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
9219 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
9220
9221Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
9222
9223 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
9224 the link to it.
9225
9226Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
9227
9228 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
9229 checking for equality to bfd_com_section.
9230
9231Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
9232
9233 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
9234 targets, linker script.
9235 * mipslit.sh: New file. Little endian MIPS emulation.
9236 * config/mips-lit.mt: New file. Use mipslit emulation.
9237 * configure.in (mips-dec-ultrix*): Use target mips-lit.
9238 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
9239 (em_mipslit.c): New target. Uses mipslit.sh.
9240
9241Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
9242
9243 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
9244 $(tooldir)/bin/gld, so that gcc can find it with or without
9245 collect2.
9246
9247Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9248
9249 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
9250 write_norel. All linking is now done via write_relax. Call
9251 ldsym_write before calling write_relax.
9252 * relax.c: Added copyright.
9253 (write_relax): Renamed from write_relaxnorel. Added relocateable
9254 argument. seclet_dump renamed to bfd_seclet_link.
9255 * relax.h: Added copyright.
9256
9257Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9258
9259 * ldmain.c (decode_library_subfile): Patch from
9260 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
9261
9262Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9263
9264 * config/vxworks960.mt renamed to config/i960.mt
9265
9266 * configure.in: sparc-aout emulates a sun4, as does
9267 sparc*-vxworks, i960-nindy uses gld960 emulation
9268
9269Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9270
9271 Fix support for NOLOAD, add INCLUDE
9272 * ldfile.c (ldfile_open_command_file): pass file name to
9273 lex_push_file.
9274 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
9275 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
9276 attribute.
9277
9278Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9279
9280 * Makefile.in, config.h: no more default emulation. Make the lack
9281 of emulation a compile time error
9282
9283Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9284
9285 * configure.in: recognise all sparclite variants, not just 'sparclite'
9286
9287Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
9288
9289 * m68kcoff.sc-sh: define _end as well as end, for consistency with
9290 aout.sc-sh.
9291
9292 * configure.in: accept *-ericsson-ose for any m68k CPU.
9293
9294 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
9295 for each output section.
9296
9297Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
9298
9299 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
9300 macro bfd_asymbol_bfd as appropriate.
9301 * Makefile.in: Un-duplicate ldlex.c dependency.
9302 * condigure.in: Replace my_host case table by sourcing
9303 ../bfd/configure.host. Allow std-host as the default.
9304 * ldmisc.c: Change logic for C++ name demangling: There is
9305 no initial '_' to remove from stab-derived function names.
9306
9307Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9308
9309 * ldlang.c (lang_init_script_file): don't attach the output file
9310 sections to the script file.
9311
9312Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9313 * ldlang.c (wild): run expansion loop over command line bfd too.
9314 (lang_ini_script_file): initialize more parts of the command line
9315 bfd.
9316 * ldlex.l: fix DEFINED start states.
9317
9318Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9319 -y support
9320 * ld.texinfo: new doc.
9321 * ldgram.y, ldlex.l: understand -y<symbol>
9322 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
9323 print info. (add_ysym): new function.
9324 * ldsym.h: (ldsym_type): new define SYM_Y.
9325
9326Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
9327
9328 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
9329 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
9330 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
9331 macros with PARAMS. Recreational cleanup. Update copyrights.
9332
9333Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9334
9335 * Makefile.in: pass down the bfd source directory for includes
9336
9337Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
9338
9339 * ldlang.c (lang_size_sections): don't change size and address for
9340 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
9341 sections.
9342
9343Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9344
9345 * relax.c (build_it): re-enable the processing of data_statements
9346 in scripts, makes counted contructor lists work again.
9347
9348Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
9349
9350 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
9351
9352Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
9353
9354 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
9355 and end.
9356
9357Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
9358
9359 * Support for i386-sysv.
9360 configure.in: check for i386-*-sysv* and i386-*-sco*.
9361 i386coff.sc-sh: rewrote to support SVR3 by default.
9362 ldctor.c (find_constructors): preserve stat_ptr.
9363 ldlang.c (wild_doit): initialize vma and size of new output
9364 section to corresponding input section. This is required for
9365 shared library support.
9366 (lang_size_sections): don't modify vma and size of sections which
9367 are never loaded (for shared libraries).
9368 ldwrite.c (copy_and_relocate): copy the contents of any section
9369 which has contents, not just sections which are loaded (for shared
9370 libraries).
9371
9372Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9373
9374 * ldlang.c (size_input_section): count the sizes of all sections
9375 we allocate.
9376
9377Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9378
9379 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
9380 to demangle symbols better
9381
9382Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
9383
9384 * ldlang.c (lang_finish): don't warn if -e start symbol does not
9385 exist when linking with -r.
9386
9387Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
9388
9389 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
9390 .bss segment.
9391
9392Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9393
9394 * ldmain.c (linear_library): don't even think about processing
9395 an object file if it's already been done
9396
9397Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9398
9399 * configure.in: the hp9000/300 config file is now hp300
9400
9401Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9402
9403 * config/z8ksim.mt: new file
9404
9405Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
9406
9407 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
9408 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
9409
9410 * ld.h (strip_symbols_type): Add value STRIP_SOME.
9411 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
9412 * ldlang.c (lang_add_keepsyms_file): New function.
9413 * ldlex.l: Handle "-retain-symbols-file".
9414 * ldsym.c (keepsyms_file, kept_syms): New vars.
9415 (process_keepsyms): New functihon; reads file, marks symbols for
9416 saving.
9417 (write_file_locals): File symbols should always be kept.
9418 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
9419 and "-s". Process retain-symbols file before setting symtab.
9420 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
9421 (keepsyms_file, kept_syms): Declare them.
9422
9423 * ldmain.c (main): Non-fatal errors should still cause non-zero
9424 exit status even with -r.
9425
9426Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9427
9428 Added initial support for the z8k
9429 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
9430 * configure.in, Makefile.in: modified to reflect above
9431
9432 * ldlang.c (lang_check): when linking conflicting architectures,
9433 make the output file reflect at least one of the bad inputs.
9434
9435Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
9436
9437 * Makefile.in (install): if $(tooldir) exists, install ld in
9438 $(tooldir)/bin.
9439
9440Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9441
9442 * Makefile.in, configure.in: modified to support i386-coff
9443 * i386coff.sh: new file
9444
9445Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
9446
9447 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
9448 added m68k-coff emulation mode, stolen from a29k emulation.
9449 Almost certainly wrong, but perhaps better than sun3.
9450
9451Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
9452
9453 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
9454 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
9455 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
9456 This is one character shorter, and lets people build on
9457 SVR3 system. (ld__h8300xray.[co] was the killer there;
9458 h8300xray.sc-sh is also overlong, but seems harmless.)
9459 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
9460 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
9461 * configure.in: Add host isc.
9462
9463 * ldver.c: Call it version 2.0.
9464
9465Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
9466
9467 * ldver.c: Bump to version 0.98.
9468 * TODO: New file.
9469
9470 * Makefile.in: Added mostlyclean, distclean, realclean rules.
9471
9472Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
9473
9474 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
9475 * ldlex.l: Moved comment() to end, since some compilers
9476 otherwise have problems with input() used before it is defined.
9477
9478Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9479
9480 * configure.in: added Solaris 2 and Irix 4 host support.
9481
9482Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9483
9484 * Makefile.in: remove -S flag from the FLEX definition
9485
9486 * configure.in: rewrote, using new style case statement. use
9487 m68k.mt for m68k-aout systems
9488
9489Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
9490
9491 * Makefile.in: map "ld" through program_transform_name when
9492 installing.
9493
9494Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
9495
9496 * cplus-dem.c: Removed. Use the version in libiberty now.
9497 * ldmisc.c: Use new libiberty version of cplus_demangle().
9498
9499Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
9500
9501 * gld960.em (gld960_choose_target): default to little endian, not
9502 big endian.
9503
9504Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9505
9506 * ldlang.c (lang_process): don't pass null pointers when
9507 abs_output_section is what is required.
9508 * ldwrite.c (ldwrite): use malloc to allocate the largest space
9509 used, and pass that down.
9510 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
9511 than alloca.
9512
9513Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
9514
9515 * configure.in, config/ose68.mt: renamed OSE to ose.
9516
9517Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
9518
9519 * ldsym.c (write_file_locals): Reorder check for common or
9520 undefined symbols so that it works.
9521
9522Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
9523
9524 * configure.in: accept all m68K family members.
9525
9526 * Makefile.in: always create installation directories.
9527
9528Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9529
9530 * ldlex.l: now parses comment correctly, added ~ to acceptable
9531 chars in filenames
9532
9533 * ldexp.c (exp_unop): pass down abs_output_section - now can have
9534 unary -ve constants.
9535
9536 * ldlang.c (lang_finish): warn when an entry symbol supplied on
9537 the command line can't be found.
9538
9539Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9540
9541 * ldlang.h: add new field "loadable" to output_section_statement.
9542 * ldlang.c (lang_output_section_statement_lookup): initilize new
9543 field. (wild_doit): if new field is not set, then stop output
9544 section from being loadable.
9545 (lang_enter_output_section_statement): set the field from the
9546 NOLOAD keyword
9547 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
9548 * h8300hms.sc-sh, h8300hms.em: get -r right.
9549
9550Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
9551
9552 * ldint.texinfo: New internals manual (beginnings thereof).
9553 * PORTING: Removed, merged into ldint.texinfo.
9554
9555Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
9556
9557 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
9558 cdtest.exp: A test program (copied from libg++/test-install)
9559 that tests that constructor and destructors are handled
9560 corrrectly.
9561
9562Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9563
9564 * Makefile.in (install): install from ld.new, renaming during the
9565 copy, or else the next 'make install' needs to re-link ld.
9566
9567Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
9568
9569 * configure.in: generalise hp recognition (from sef).
9570
9571Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9572
9573 * configure.in: recognize bsd and hpux hppa configurations.
9574 error messages echo to stderr, not stdout
9575
9576Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9577
9578 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
9579 ldmisc.c: removed rcsid's.
9580
9581Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9582
9583 * ldlang.c (lang_map): print changes in sizes due to relaxing
9584 (size_input_section): maintain the delta information.
9585 * ldlang.h: add new field to struct to contain delta info.
9586 * relax.c (relax_section): complain if input not relaxable.
9587 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
9588 start of a filename
9589
9590Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9591
9592 * ldmain.c(main): prevent -r and -relax from being on at the same
9593 time.
9594
9595Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9596
9597 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
9598 aliasing problems
9599
9600
9601Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9602
9603 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
9604 * ldexp.c: lint
9605 * ldlang.c(open_output): set the target arch and machine as soon
9606 as we can. (lang_size_sections): use new macros for setting vma
9607 * ldwrite.c: lint
9608
9609Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
9610
9611 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
9612 Also deleted an unreachable path to wrs.
9613
9614Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
9615
9616 * Makefile.in (install): use -d test for $tooldir before
9617 installing ld there so that $tooldir can be inherited from
9618 top-level Makefile.
9619
9620Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
9621
9622 * ldlang.c: Two non-substantial changes for the sake of
9623 the old Portable C Compiler.
9624
9625Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9626
9627 * ldgram.y, ldlex.l: parse ABSOLUTE
9628 * ldexp.c: add support for ABSOLUTE
9629
9630Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
9631
9632 * Makefile.in: Added default definitions for HOSTING_CRT0,
9633 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
9634 * config/*.mh: Miscellaneous clean-up: Removed definitions
9635 of YACC (since it is not longer used in the Makefile).
9636 Remove HOSTING_* definitions that are subsumed by the
9637 ones added to Makefile.in. Removed most definitions of CC.
9638 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
9639 These are no longer needed.
9640
9641Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
9642
9643 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
9644 rules, since these are used when building a distribution.
9645 * Makefile.in (ldlex.c): Don't re-direct output, since that
9646 leaves a bogus output files if it fails.
9647
9648 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
9649 * ldlex.c: Fix some unnecessary flex-specific-isms.
9650
9651Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9652
9653 * ldgram.y: move spurious semicolon
9654 * ldexp.h: fix prototype
9655
9656Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9657
9658 * ld.texinfo: references to linker now say "ld" not "gld".
9659
9660Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9661
9662 changed calling convention for Q_enter_global_ref
9663 * ldexp.c, ldlang.c, ldmain.c: reflect this
9664 * ldver.c: bump version to 1.97.1
9665 * ldindr.c (add_indirect): when an edict declaring an indirect
9666 symbol is found, make sure that any ideas about the symbol being
9667 common are changed if it now known to be defined.
9668 * ldmain.c (linear_library): complain once if archive isn't
9669 ranlibbed.
9670 * ldlang.h, ldlang.c: make room for and initialize the complain
9671 once field.
9672
9673Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9674
9675 * Makefile.in: use flex & bison from ../ if they exist.
9676
9677Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9678
9679 * relax.c (build_it): don't allocate space in the output file for
9680 stuff if -R flag applys to it.
9681 * ldfile.c: merge in VMS filename support
9682 * ldmain.c (main): take out ./ from library path, and close file
9683 before unlinking. Make multiple defs of a symbol create an
9684 unexecable file.
9685 * ldmisc.c: fatal errosrs delete output file
9686
9687Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
9688
9689 * ldver.c: Increase version number to 1.97, for consistency
9690 with ../binutils.
9691
9692Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
9693
9694 * Makefile.in: FLEX -> LEX.
9695
9696 * ld.texinfo: {} -> @{@}.
9697
9698Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9699
9700 * ld.texinfo: describe alternate, MRI-compatible linker scripts
9701 (and associated change in -c option, now used for these scripts)
9702
9703Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9704
9705 * ldver.c: Bumped version to 1.96 - new release, resync with the
9706 bfd too #.
9707 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
9708 rather than with raw malloc, makes it easier to track where memory
9709 is going.
9710 * ldsym.h, ldsym.c: create obstack for all global symbols too.
9711 * ldwrite.c (ldwrite): moved malloc so only used when needed.
9712 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
9713
9714
9715Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
9716
9717 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
9718
9719 * Makefile.in: use bootstrap for check.
9720
9721Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9722
9723 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
9724 PUBLIC.
9725 * Makefile.in: now use flex, not lex
9726 * ldlex.l, ldlang.c, ldctor.c: lint
9727
9728Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9729
9730 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
9731 different sorts of filenames on the command line than in a script.
9732
9733Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9734
9735 * Makefile.in: rework CFLAGS so that they can be passed on the
9736 make command line. Remove MINUS_G. Default CFLAGS to -g.
9737
9738Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9739
9740 * relax.c: added handling for new "padding" seclet type, used to
9741 fill out gaps between section.
9742 * ldgram.y, ldlex.l: now -defsym on the command line is done
9743 properly.
9744
9745Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9746
9747 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
9748
9749Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9750
9751 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
9752 scripts.
9753
9754Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
9755
9756 * Makefile.in (install): Install second copy in $(tooldir)/bin
9757 without $(program_prefix), since that's what gcc expects.
9758
9759Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9760
9761 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
9762 * h8300*: fix bit rot and add support for h8300xray target
9763 * go32.sh: target emulation for go32.
9764
9765Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
9766
9767 * gld960.em, i960.sc-sh. Fix i960 bit rot
9768
9769Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
9770
9771 * Makefile.in: install man page.
9772
9773Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9774
9775 * config/mt-<foo> renamed to <foo>.mt
9776 * config/mh-<foo> renamed to <foo>.mt
9777 * configure.in changed to reflect this
9778 * genscripts.sh now make .xbn files rather than .xN files
9779
9780Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
9781
9782 * ldver.h: fix decl of ldversion.
9783
9784Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
9785
9786 * Makefile.in: added check target.
9787
9788Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9789
9790 * ldmain.c (Q_enter_file_symbols): now aliases work again
9791
9792Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
9793
9794 * Makefile.in: added clean-info target.
9795
9796Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9797
9798 * ldexp.c (exp_print_tree): don't try and follow null pointers
9799 around.
9800 * ldgram.y: remove 11 shift reduce errors
9801
9802Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9803
9804 * Makefile.in: added tooldir and program_prefix.
9805
9806Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
9807
9808 * ldlang.c (size_input_section): don't move absolute sections
9809 around!
9810
9811
9812Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
9813
9814 * cplus-dem.c: yet another copy of this - maybe it should go into
9815 libiberty ?
9816 * ldgram.y: now -V and -v have different actions
9817 * ldver.c: if -V, prints list of emulations compiled in
9818 * ldmisc.c: support for cplus demangling
9819
9820
9821Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
9822
9823 * Makefile.in, configure.in: removed traces of namesubdir,
9824 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
9825 copyrights to '92, changed some from Cygnus to FSF.
9826
9827Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
9828
9829 * Makefile.in: Change mkscript rule into one for ./mkscript
9830 (for the sake of makes that don't realize they're the same).
9831 * PORTING: Add more details.
9832 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
9833
9834Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
9835
9836 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
9837 config/mt-hp300bsd: New port to hp300 running BSD.
9838
9839Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
9840
9841 Major rewrite of how ld is configured. The major idea
9842 is to use shell scripts to generate everything.
9843 * generic.em replaces ldtemplate.
9844 * Other *.em files replace various *.c files.
9845 A *.em file is a shell script that generates the corresponding
9846 ld__*.c file that implements an emulation. This is usually
9847 a straight 'cat' of a here-document, possibly with substitutions.
9848 * Script files (*.sc) are places by *.sc-sh scripts.
9849 Again, these are simple shell scripts that 'cat'
9850 here-documents, usually with some substitutions.
9851 The output a *.sc-sh is a script file.
9852 * Each emulation is defined by a short shell script with
9853 extension *.sh that specifies the emulation-specific
9854 parameters (such as the name of the *.sh-sc and *.em
9855 files to use).
9856 * genscript.sh is the master shell script used to generate
9857 an emulation. It is passed various argument, including
9858 the name a the emulation-speciic *.sh file that it
9859 "sources" to set variables to emulation-specifc parameters.
9860 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
9861 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
9862 * config/mh-foo: Rename LDEMULATION names as appropriate
9863 (usually 'gldfoo' -> plain 'foo').
9864 * ldwrite.c: Fixed a typo in a comment.
9865 * Makefile.in: Major changes. Removed some the sed
9866 magic to converts scripts, since that is now handled
9867 by genscripts.sh and the *.sc-sh scipt generators.
9868 * config.h: Remove a bunch of macros defining emulations
9869 and targets. This becomes one less file to edit when
9870 adding emulations or targets.
9871 * ldemul.h (struct ld_emulation_xfer_struct): Add
9872 emulation_name and target_name fields.
9873 * ldemul.c, ldemul.h: Define some default functions used
9874 by most emulations (and remove from the *.em scripts).
9875 * ldemul.c (ldemul_choose_target): Search the new
9876 ld_emulations array using a loop (instead of a hardwired
9877 nested if statement).
9878 Define the ld_emulation from the automatically-geenrated
9879 ldemul-list.h. This means you no longer have to edit ldemul.c
9880 to add a new emulation.
9881 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
9882 their expansions, since the former no longer exist.
9883 * PORTING: A very rough first draft of a porting guide.
9884
9885 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
9886 to be terminated by a new-line (instead of requiring a semicolon).
9887
9888Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9889
9890 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
9891 tests for NULL pointers all over the place.
9892 * ldlang.c (lang_process): remember to relocate global symbols
9893 *after* relaxing has done it stuff.
9894
9895Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9896
9897 * config/mt-coff-h8300: use EMUL like everything else
9898 * ldlang.c: (print_padding_statement): print the right address.
9899 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
9900
9901
9902Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9903
9904 * ldlex.l: Put pack -noinhibit-exec and -sort-common
9905 * ldlang.c (print_data_statement): print the right address.
9906
9907Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
9908
9909 * Makefile.in: The rule for testing ld by re-linking itself
9910 via an intermediate -r link was moved to the ld1 rule
9911 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
9912 which allows the bootstrap rule to work.
9913 * ldctor.c (find_constructors): Don't create a constructor
9914 list if it is already defined (as would happen if ld is
9915 invoked by collect).
9916
9917Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9918
9919 * config/mh-sparc.h: now uses libgcc.a
9920 * ldmain.c: quit using exit
9921 * *sc: use *(COMMON) rather than [COMMON]
9922 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
9923 to allow preprocessing of .l file.
9924 * Makefile.in: New ldlex.l mangling
9925 * ldexp.c (fold_binary): perform expressions with % and / in
9926 integer.
9927 * ldfile.c (open_a): open archives on VMS in a special way
9928
9929
9930Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9931
9932 * ldgram.y: map -M behave in the same way as -Map (sets file name
9933 to be "-".
9934 * ldsym.c, ldlang.c: remember that size of a section is dependent on
9935 whether or not relaxing has been done.
9936 * ldmain.c: don't open a map file if it doesn't have a name
9937 * relax.c: all the brains have moved into bfd.
9938 * ldwrite.c: ammend comment
9939
9940Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9941
9942 * Makefile.in: added relax, also made three stage go through a
9943 partial link stage.
9944 * relax.c : added
9945 * config.h: if GNU960 defined, then default emulation mode is
9946 GLD960
9947 * ldexp.h, ldexp.c: map to file hooks
9948 * ldlang.c: map to file hooks
9949 * ldgram.y: added -Map -relax
9950 * ldlex.l: added -relax, -Map
9951 * ldmain.c: open map file
9952 * ldmisc.c: support for map file
9953 * ldwrite.c: new relax magic
9954
9955Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
9956
9957 * Makefile.in, config/tm-*.h: Clean up make output, only
9958 pass DEFAULT_EMULATION to ldmain.c.
9959
9960Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
9961
9962 * ldver.c: Bump to version 1.94.
9963
9964Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9965
9966 * Makefile.in: infodir belongs in datadir.
9967
9968Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
9969
9970 * Makefile.in: Pass -y to bison. (Again;
9971 accidentally deleted by Rich.)
9972 * news.sc, ldgld68k.sc: Define __end as well as _end.
9973
9974Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
9975
9976 * ldindr.h: added to contain prototypes of ldindr.c
9977 * ldfile.c: include ctype.h
9978 * ldmain.c: include the requried prototype headers
9979 * ldwrite.c: get_reloc_upper_bound has been renamed
9980 bfd_get_reloc_upper_bound
9981
9982Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9983
9984 * Makefile.in: punt "fundamental" mode because it breaks my emacs
9985 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
9986 spaces following hyphens, bsd make can't cope. added
9987 standards.text support and made it look like all the other
9988 makefiles.
9989
9990 * configure.in: configure now runs entirely in objdir so make file
9991 existence checks against ${srcdir}. Mark this directory as
9992 target dependent.
9993
9994Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9995
9996 * Makefile.in: idestdir and ddestdir go away. Added copyrights
9997 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
9998 and mandir now keyed off datadir by default.
9999
10000Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
10001
10002 * ldver.c: Bumped version to 1.93.
10003 * Makefile.in: Pass -y to bison.
10004
10005Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
10006
10007 * config.h: h8 is now coff, not ieee
10008 * h8300hds.sc: reflect the same
10009
10010Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
10011
10012 * ldver.c (ldversion()): Update to 1.92.
10013 * ldctor.c: There are two places constructor sets
10014 can be defined. One of them checked for an existing
10015 duplicate, the other didn't. Unfortunately, the latter
10016 was called after the former ...
10017 So, factor out code for inserting a new element into
10018 constructor_name_list (after checking for a duplicate)
10019 into a new function add_constructor_name, and call
10020 it from both aforementioned places (ldlang_add_constructor
10021 and ldlang_check_for_constructors).
10022
10023Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
10024
10025 * Makefile.in: Rename .c files generated from ldtemplate
10026 to have names starting with ld__. This helps 'make clean'.
10027
10028Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
10029
10030 * Makefile.in: Take out the version number for install
10031 * m88kbcs.sc: put in contructor blocks.
10032
10033Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
10034
10035 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
10036 parameter, a format, and an arg pointer, and rename it to
10037 vfinfo(). Write info() in terms of new vfinfo().
10038 New einfo() is the same as info(), except it writes to stderr.
10039 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
10040 ldmisc.c: Replace "error" calls to info() by new einfo().
10041
10042Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
10043
10044 * ldlex.l ldgram.y: made -V option do same as -v
10045 * Makefile.in: Added $(MINUS_G) flag so debugging can be
10046 turned off
10047
10048Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
10049 i386 aout changes from Bob Kukura
10050 * Makefile.in, config.h: added i386aout support
10051 * configure.in: fixed /h-{myhost} typo
10052 * ldgram.y: -MM now gives more boring map.
10053 * ldlang.c: now does D_PAGED flag the right way.
10054 * ldsym.c: -MM flags does the right thing.
10055
10056Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
10057
10058 * configure.in: Fixed typo. Also, a fix for hp300bsd.
10059 * ldlang.c (init_os): Compensate for BFD change,
10060 where bfd_make_section now returns NULL for a duplicate
10061 section request, instead of the old section.
10062
10063Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
10064
10065 * ldver.c: Bump to version 1.91 (consistent with binutils).
10066
10067Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
10068
10069 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
10070 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
10071 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
10072 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
10073 Add or update copyright notices.
10074
10075Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
10076
10077 * README: New file.
10078 * Makefile.in: Changed installation directory name scheme
10079 to be consistent with gcc. Also changed 'install'.
10080
10081Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
10082
10083 * Makefile.in: new targets ld.mm, ld.me
10084
10085Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
10086
10087 * Makefile.in, ldtemplate: Need to use separate scripts
10088 for -n and -N options. Yet more complication.
10089
10090Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
10091
10092 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
10093 work). Add some lines to avoid Sun Make VPATH bugs.
10094
10095Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
10096
10097 * news.sc: Add alignment for data segment.
10098 * ldtemplate: Add (yet another) script to get for -n or -N
10099 options. (These need different alignment than ZMAGIC files.)
10100 * Makefile.in: Add stuff for new foo.xn scripts.
10101 These are generated by replacing "ALIGN(0x...00)" by ".".
10102
10103Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
10104
10105 * Makefile.in: new targets ld.ms, ld-index.ms
10106 ld.texinfo: remove tabs, other cleanups for texi2roff
10107
10108Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
10109
10110 * ldmain.c (main): Make config.magic_demand_paged be true
10111 by default. Don't the WP_TEXT and D_PAGED flags of
10112 output_bfd here; it's too late, so set it when output_bfd
10113 is created (in ldlang.c). Also fix setting of EXEC_P flag
10114 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
10115 * ldlang.c: Remove some duplicate extern declarations.
10116 * ldgram.y: Fixes to -N and -n options.
10117 * Makefile.in: Recognize upper case letters in sed script
10118 to remove assignments from script files.
10119 * ldtemplate: Don't assukme that -N or -n options
10120 imply use of -r script.
10121 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
10122
10123Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
10124
10125 * ldtemplate: include bfd.h before sysdep.h.
10126
10127Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
10128
10129 Restructure configuration scheme for bfd, binutils, ld.
10130
10131 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
10132 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
10133 Change some config names to match other dirs.
10134 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
10135 get defined first.
10136 * config/: Rename some config files to match up h-*.h names.
10137 Remove all the HOST_SYS definitions from the config files.
10138
10139Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
10140
10141 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
10142 * ldtemplate: Remove ldfile_add_library_path calls;
10143 just use the SEARCH_DIR commands in the script files.
10144 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
10145 the SEARCH_DIR commands in the scripts (using ugly sed magic).
10146 This is primarily intended for cross-linking, where you would
10147 place libaries in a different place than native libraries.
10148 Also, emulations made from ldtemplate now use $(srcdir).
10149 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
10150 form; people can use the Makefile's LIB_PATH to override.
10151
10152Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
10153
10154 * Makefile.in: fix target ld.dvi, add target ld.info
10155 ld.texinfo: make info filename ld.info
10156
10157Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
10158
10159 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
10160 Make).
10161 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
10162 few BFD types & enums.
10163
10164\f
10165Local Variables:
10166mode: change-log
10167left-margin: 8
10168fill-column: 74
10169version-control: never
10170End:
This page took 0.449538 seconds and 4 git commands to generate.