]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
* config/tc-alpha.c (md_undefined_symbol): Properly understand that $at
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
e06cae36
L
12000-06-05 Michael Matz <matz@ifh.de>
2
3 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4 version scripts.
5
6 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
7
2f0b56c0
DC
82000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
9
10 * emulparams/avr1200.sh (STACK): Define as 0.
11 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
12 * emulparams/avr4433.sh (STACK): Likewise.
13 * emulparams/avr44x4.sh (STACK): Likewise.
14 * emulparams/avr85xx.sh (STACK): Likewise.
15 * emulparams/avrmega103.sh (STACK): Likewise.
16 * emulparams/avrmega161.sh (STACK): Likewise.
17 * emulparams/avrmega603.sh (STACK): Likewise.
18 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
19 (__stack): Define from ${STACK} for main().
20
2114f57b
AM
212000-05-26 Alan Modra <alan@linuxcare.com.au>
22
23 * Makefile.am: Update dependencies with "make dep-am"
24 * Makefile.in: Regenerate.
25
5af11cab
AM
262000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
27
28 * ldmain.c: Include filenames.h.
29 (set_scripts_dir): Support backslashes in program name.
30
1f0df59a
NC
312000-05-22 Igor Shevlyakov <igor@windriver.com>
32
33 * ldmain.c (main): When deciding if ".text" section should be
34 read-only, don't forget to reset SEC_READONLY because it
35 could be already set.
36
176355da
NC
372000-05-22 Thomas de Lellis <tdel@windriver.com>
38
39 * ld.1: Add documentation for new command line option:
40 --section-start <sectionname>=<sectionorg>
41 This is a generic version of -Ttext etc. which accepts
42 any section name as a parameter instead of just text/data/
43 bss.
44 * ld.texinfo: More docs.
45 * NEWS: More docs.
46 * lexsup.c: (parse_args): Recognize new command line option.
47 (ld_options): Add new option.
48
8c5ff972
L
492000-05-18 H.J. Lu <hjl@gnu.org>
50
51 * lexsup.c (parse_args): `i' == `r', not `q'.
52
0b76fe77
JL
53Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
54
55 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
56
a712da20
NC
572000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
58 Rick Gorton <gorton@scrugs.lkg.dec.com>
59
60 Add support for '-q' == '--emit-relocs' switch.
61 * ldmain.c (main): Default to false.
62 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
63 * NEWS: Describe the emitrelocations switch.
64 * ld.texinfo: Describe the emitrelocations switch.
65
690a460e
NC
662000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
67
68 * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
69 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
70 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
71 link options.
72
c2f1343c
AM
732000-05-15 David O'Brien <obrien@FreeBSD.org>
74
75 * lexsup.c (parse_args): Update the year in the copyright notice.
76
897083bd
AM
772000-05-13 Alan Modra <alan@linuxcare.com.au>
78
79 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
80 Replace defines with those from intl/libgettext.h to quieten gcc
81 warnings.
82
cd4c806a
L
832000-05-10 H.J. Lu <hjl@gnu.org>
84
85 * ldlang.c (open_input_bfds): Don't load the same file within
86 a group again if the whole archive has been loaded already.
87
93697284
AM
882000-05-03 Alan Modra <alan@linuxcare.com.au>
89
90 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
91 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
92 strtoul.
93
ebd6fc29
JW
94Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
95
99a4150f
JW
96 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
97
ebd6fc29
JW
98 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
99 host "ia64-*-linux-gnu*".
100
a1934524
AM
1012000-04-29 Andreas Jaeger <aj@suse.de>
102
103 * ld.h: Correctly check GCC version.
104
730a39a0
JL
105Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
106
107 * Makefile.am: Add PA64 support. Add missing dependencies for
108 PA32 elf support.
109 * Makefile.in: Rebuilt.
110 * configure.tgt: Add PA64 support (currently disabled).
111
aea4bd9d
AM
1122000-04-25 Alan Modra <alan@linuxcare.com.au>
113
114 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
115 (output_rel_find): New function.
116 (hold_section, hold_use): Delete.
117 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
118 hold_interp): Make local to place_orphan.
119 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
120 rather than place_section to find possible previous use of orphan.
121 Similarly find the place-holder output sections. Use returned
122 value from lang_enter_output_section_statement rather than calling
123 lang_output_section_statement_lookup.
124 * emultempl/armelf.em: Same here.
125 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
126
127 * ldlang.c (lang_enter_output_section_statement): Return output
128 section statement.
129 * ldlang.h (lang_enter_output_section_statement): Change
130 declaration too.
131
132 * ldlang.h (lang_output_section_statement): Export it.
133 * ldlang.c (lang_output_section_statement): Ditto.
134
2b5fc1f5
NC
1352000-04-24 Nick Clifton <nickc@cygnus.com>
136
137 * ld.texinfo (Output Section Data): Add note that section data
138 commands cannot appear outside of section directives.
139
d8475ff6
JL
1402000-04-2 Matthew Green <mrg@cygnus.com>
141
142 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
143
800eeca4
JW
144Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
145 David Mosberger <davidm@hpl.hp.com>
146
147 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
148 (eelf64_ia64.c): New rule.
149 * Makefile.in: Rebuild.
150 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
151 * emulparams/elf64_ia64.sh: New file.
152
c9637625
RH
1532000-04-21 Richard Henderson <rth@cygnus.com>
154
155 * scripttempl/elfd30v.sc: Place .gcc_except_table.
156
28ea9521
AM
1572000-04-19 Alan Modra <alan@linuxcare.com.au>
158
159 * dep-in.sed: Match space at start of file name, not at end.
160
20d04697
L
1612000-04-18 H.J. Lu <hjl@gnu.org>
162
163 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
164 lang_leave_output_section_statement () after calling
165 lang_enter_output_section_statement ().
166 * emultempl/armelf.em: Likewise.
167
5ba47421
AM
1682000-04-18 Alan Modra <alan@linuxcare.com.au>
169
170 * emultempl/elf32.em (struct orphan_save): Add section field.
171 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
172 better order, and place first orphan section as we did before the
173 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
174 Don't call make_bfd_section here, let wild_doit do the job for us.
175 Don't build a statement list when we'll only throw it away.
176 * emultempl/armelf.em: Ditto.
177 * emultempl/pe.em: Similarly.
178
bdbe5705
GK
1792000-04-14 Geoff Keating <geoffk@cygnus.com>
180
181 * scripttempl/elfppc.sc: Remove.
182 * emulparams/elf32ppc.sh: Use elf.sc.
183 * emulparams/elf32lppc.sh: Use elf.sc.
184 * emulparams/elf32ppclinux.sh: Use elf.sc.
185 * emulparams/elf32ppcsim.sh: New file.
186 * emulparams/elf32lppcsim.sh: New file.
187 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
188 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
189 * Makefile.in: Regenerate.
190 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
191
01cc8ff8
AM
1922000-04-14 Alan Modra <alan@linuxcare.com.au>
193
5ba47421 194 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 195 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
196 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
197 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
198 Also set all relocateable section start addresses.
199
6c86c541
GK
2002000-04-13 Geoff Keating <geoffk@cygnus.com>
201
202 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
203 Add new BSS_PLT variable for when .plt need not be contained in
204 the file. Move _etext so that it is also after .fini, and provide
205 both etext and _etext with a leading underscore. Mark the start
206 and end of .sbss.
207
6a345e87
AM
2082000-04-12 Alan Modra <alan@linuxcare.com.au>
209
210 * emultempl/elf32.em (struct orphan_save): New.
211 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
212 hold_interp): Make them struct orphan_save.
213 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
214 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
215 the end of the relevant section list. Also add associated section
216 statements to the end of any previous orphan statements.
217 * emultempl/armelf.em: Similarly.
218 * emultempl/pe.em: Similarly.
219
8be86746
AM
2202000-04-11 Alan Modra <alan@linuxcare.com.au>
221
222 * ld.texinfo (Simple Example): Remove extraneous paragraph.
223
a2d91340
AC
224Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
225
226 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
227 --enable-build-warnings option.
228 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
229 * Makefile.in, configure: Re-generate.
230
41b49281
AM
2312000-04-04 Alan Modra <alan@linuxcare.com.au>
232
8ad3436c
AM
233 * po/ld.pot: Regenerate.
234
235 * lexsup.c (help): Restore translated part of bug string.
236
41b49281
AM
237 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
238 (DEP): Quote when passing vars to sub-make. Add warning message
239 to end.
240 (DEP1): Rewrite for "gcc -MM".
241 (CLEANFILES): Add DEP2.
242 Update dependencies.
243 * Makefile.in: Regenerate.
244
c20f4f8c
AM
2452000-04-03 Alan Modra <alan@linuxcare.com.au>
246
247 * ld.h: #include "bin-bugs.h"
248 * lexsup.c (help): Use REPORT_BUGS_TO.
249
adde6300
AM
2502000-03-27 Denis Chertykov <denisc@overta.ru>
251
252 * configure.tgt (avr-*-*): New target support.
253 * Makefile.am: Likewise.
254 * scripttempl/elf32avr.sc: New script file.
255 * emulparams/avr1200.sh: New file.
256 * emulparams/avr23xx.sh: New file.
257 * emulparams/avr4433.sh New file.
258 * emulparams/avr44x4.sh New file.
259 * emulparams/avr85xx.sh New file.
260 * emulparams/avrmega103.sh New file.
261 * emulparams/avrmega161.sh New file.
262 * emulparams/avrmega603.sh New file.
263 * Makefile.in: Regenerate.
264
9282ff41
L
2652000-03-09 Andreas Jaeger <aj@suse.de>
266
267 * Makefile.am (check-DEJAGNU): Also unset LANG.
268 * Makefile.in: Rebuild.
269
a9998805
ILT
2702000-03-06 Ian Lance Taylor <ian@zembu.com>
271
272 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
273 archive.
274
f9bc20e7
NC
2752000-03-02 H.J. Lu <hjl@gnu.org>
276
277 * emulparams/elf32mcore.sh: Include "getopt.h".
278
4e277b38
ILT
2792000-03-01 Ian Lance Taylor <ian@zembu.com>
280
281 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
282
f0c87f88
NC
2832000-03-01 H.J. Lu <hjl@gnu.org>
284
285 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
286 * emulparams/shpe.sh: Likewise.
287
2882000-03-01 Nick Clifton <nickc@cygnus.com>
289
290 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
291 to unused parameters.
292
293 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
294 functions only used by DLL code.
295 (_place_orphan): Initialise 'dollar'.
296
b6f29aaa
L
2972000-03-01 H.J. Lu <hjl@gnu.org>
298
299 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
300 indicate if the undefined symbol is a fatal error or not.
301 Don't delete the output file if "fatal" is false.
302
af28fce3
L
3032000-02-29 H.J. Lu <hjl@gnu.org>
304
305 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
306 Set LC_COLLATE and LC_ALL to null and export them. It is for
307 sort which expects the C locale.
308 Add $(LIBS) to all $(HOSTING_LIBS).
309 * Makefile.in: Rebuild.
310
40d109bf
AM
3112000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
312
313 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
314 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
315 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
316 (ld_emulation_xfer_struct): Add missing NULL initialiser for
317 find_potential_libraries.
318
db5be682
JB
3192000-02-28 Jim Blandy <jimb@redhat.com>
320
321 * ldgram.y (exclude_name_list): Don't require a comma to separate
322 list entries; the lexer considers commas to be valid part of a
323 filename, so in something like `foo, bar' the comma is considered
324 part of the first filename, `foo,'.
325 * ld.texinfo: Update section on EXCLUDE_FILE lists.
326
3558ff4c
ILT
3272000-02-27 Loren J. Rittle <ljrittle@acm.org>
328
329 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
330 host "i[3456]86-*-freebsdelf*".
331
4eee2681
ILT
3322000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
333
334 * scripttempl/i386go32.sc: Move misplaced semicolons.
335
8d75d12d
ILT
3362000-02-25 Ian Lance Taylor <ian@zembu.com>
337
338 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
339 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
340 (eelf64hppa.c, ehppaelf.c): Remove targets.
341 * Makefile.in: Rebuild.
342
a1836d49
AO
3432000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
344
ad51fb57
AO
345 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
346 GNU/Linux/sparc, but keep the default as 32.
347
a1836d49
AO
348 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
349 it default if sparcv9 or sparc64.
350
344a211f
NC
3512000-02-24 Nick Clifton <nickc@cygnus.com>
352
353 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
354 * Makefile.in: Regenerate.
355 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
356
357 * ldemul.h (ld_emulation_xfer_struct): Add new field:
358 find_potential_libraries.
359 * ldemul.c (ldemul_find_potential_libraries): New function.
360
361 * ldfile.c (ldfile_open_file_search): Allow function to be
362 exported.
363 (ldfile_open_file): Call ldemul_find_potential_libraries.
364 * ldfile.h: Add prototype for ldfile_open_file_search.
365
366 * pe-dll.c: Add support for ARM, MIPS and SH targets.
367
368 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
369 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
370
371 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
372 (gld_X_find_potential_libraries): New function. Search for
373 libraries called "*.lib".
374
375 * scriptempl/pe.sc: Add .pdata section.
376
eaba1dd3
RH
3772000-02-23 Richard Henderson <rth@cygnus.com>
378
379 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
380 Add and use memory regions.
381
5b93d8bb
AM
3822000-02-23 Linas Vepstas (linas@linas.org)
383
384 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
385
386 * Makefile.am: Add support for Linux/IBM 370.
387 * configure.tgt: Likewise.
388
389 * Makefile.in: Regenerate.
390
f6af82bd
AM
3912000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
392
393 * ldlang.c (print_input_section, print_data_statement,
394 print_reloc_statement, print_padding_statement, insert_pad,
395 size_input_section, lang_check_section_addresses,
396 lang_size_sections, lang_do_assignments, lang_set_startof,
397 lang_one_common): Change `opb' to unsigned.
398 (lang_do_assignments): Also change `size' to unsigned.
399
9e673ad1
RH
4002000-02-16 Richard Henderson <rth@cygnus.com>
401
402 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
403
562d3460
TW
4042000-02-16 Timothy Wall <twall@cygnus.com>
405
406 * mri.c (mri_draw_tree): Add default LMA region argument to call
407 to lang_leave_output_section_statement.
408 * ldlang.h: Update prototypes with LMA region arguments.
409 * ldlang.c (lang_size_sections): Encapsulate region bounds
410 checking in os_check_region call.
411 (os_check_region): New function.
412 (lang_output_section_statement_lookup): Initialize lma_region.
413 (lang_leave_output_section_statement): Add LMA region argument.
414 (lang_leave_overlay): Ditto.
415 * ldgram.y: Handle LMA region syntax.
416 * ld.texinfo (Output Section Description): Describe LMA region usage.
417 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 418 lma region in call to lang_leave_output_section_statement.
562d3460 419 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 420 lma region in call to lang_leave_output_section_statement.
562d3460 421 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 422 lma region in call to lang_leave_output_section_statement.
562d3460
TW
423
424
9e4ed18c
TW
4252000-02-04 Timothy Wall <twall@redhat.com>
426
427 * ldlang.c (lang_check_section_addresses): Use bytes instead of
428 octets when calculating section end addresses.
429
32edc927
TW
4302000-02-04 Timothy Wall <twall@redhat.com>
431
432 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
433
4cbfc3ac
TW
4342000-02-03 Timothy Wall <twall@redhat.com>
435
436 * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
437 octet count.
438 * ld/ldlang.c (print_input_section, print_data_statement,
439 print_reloc_statement, print_padding_statement): Print target
440 address values and section sizes as bytes, not octets.
441 (insert_pad) Calculate padding size in octets, and adjust "dot"
442 by bytes.
443 (size_input_section) Always adjust "dot" by bytes, not octets.
444 (lang_check_section_addresses, lang_do_assignments) Adjust
445 "dot" by bytes, not octets. Use the larger of the directive size
446 or octets_per_byte for the number of octets actually allocated in
447 the output section.
448 (lang_set_startof) Make sure STARTOF returns a target address.
449 (lang_one_common) Record size changes in octets.
450 (lang_abs_symbol_at_end_of) Section end symbol's value is
451 recorded in target bytes.
452 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
453 to be clear about behavior when an octet is smaller than one byte.
454
305c7206
AM
4552000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
456
457 * ldcref.c (output_cref): Don't pass message strings to printf
458 as format arg.
459 Update copyright.
460
461 * ldmisc.c (vfinfo): Same here.
462 Update copyright.
463
e1c47aa4
AM
4642000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
465
466 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
467 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
468 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
469 Add missing NULL initialisers, and comments.
470
471 * testsuite/ld-srec/sr3.cc (__rethrow): New.
472
13392b77
NC
4732000-01-21 Nick Clifton <nickc@cygnus.com>
474
475 * ldlang.c (lang_size_sections): Fix typo in comment.
476
cce4c4c5
NC
4772000-01-18 H.J. Lu <hjl@gnu.org>
478
479 * ldlang.c (lang_size_sections): Also update the current
480 address of a region if the SEC_NEVER_LOAD bit is not set.
481
0decc840
NC
4822000-01-10 Philip Blundell <pb@futuretv.com>
483
484 * configure.tgt (arm*-*-conix*): New target.
485
4e53152f
NC
4862000-01-07 Nick Clifton <nickc@cygnus.com>
487
488 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
489 line switches with -Wl, (or whatever is appropriate) if it is
490 being invoked by a comnpiler driver program.
491 Fix description of the behaviour of the -n command line switch.
4e53152f 492
18625d54
CM
493Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
494
495 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
496 (name_list): New.
497 * ld.texinfo (EXCLUDE_FILE): Update documentation.
498 * ldgram.y (wildcard_spec): Support a list of excluded_files.
499 (exclude_name_list): New.
500 ldlang.c (walk_wild_section): Support list of excluded files.
501 (print_wild_statement): Likewise.
502 (lang_add_wild): Likewise.
503 * ldlang.h (lang_wild_statement_type): Likewise.
504 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
505
5aaace27
NC
5062000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
507
870df5dc
NC
508 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
509 (process_def_file): Use.
510 (pe_dll_compat_implib): New variable.
511 (make_one): Use.
512
513 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
514 pe_dll_compat_implib.
515
516 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
517 compat-implib options.
518 (gld_${EMULATION_NAME}_list_options): List new options.
519 (gld_${EMULATION_NAME}_parse_args): Handle.
520
5aaace27
NC
521 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
522 dll.
870df5dc 523
5aaace27
NC
524 * deffilep.y (opt_name): Allow "." in name.
525
e6869249
NC
5261999-12-02 Nick Clifton <nickc@cygnus.com>
527
528 * Makefile.am: Fix arm-epoc-pe dependencies.
529 * Makefile.in: Regenerate.
530
531 * emulparams/arm_epoc_pe.sh (SCRIPT_NAME): Set to epocpe.
532
533 * scripttempl/epocpe.sc: New file: copy of pe.sc, customised for
534 EPOC by placing .rdata into .text.
535
e4dabd0e
AS
5361999-11-26 Andreas Schwab <schwab@suse.de>
537
538 * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
539 STRINGIFY. Use yes/no instead of true/false as value for cache
540 variable.
541 * configure: Regenerate.
542
50e05050
NC
5431999-11-24 Nick Clifton <nickc@cygnus.com>
544
545 * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
546 attributes in order to be checked.
547
33275c22
NC
5481999-11-22 Nick Clifton <nickc@cygnus.com>
549
550 * ldlang.c (lang_check_section_addresses): Fix test to determine
551 if a section should be tested.
552 (IGNORE_SECTION): New macro.
553
93a6d436
JL
554Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
555
556 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
557 Clean up code to use EXTRA_SHLIB_EXTENSION.
558
829ce307
NC
5591999-11-03 Nick Clifton <nickc@cygnus.com>
560
561 * emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
562 * emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.
563
9503fd87
ILT
5641999-11-01 Steve Chamberlain <sac@pobox.com>
565
566 * ldlang.c (section_already_linked): Rework to use hash table.
567 (already_linked_newfunc): New function.
568 (already_linked_table_init): New function.
569 (already_linked_table_free): New function.
570 (lang_process): Initialize and free the already_linked hash table.
571
d7498c1e
ILT
5721999-10-27 Andreas Jaeger <aj@suse.de>
573
574 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
575 target "mips*-*-linux-gnu*".
576
29c4c6b5
NC
5771999-10-27 Scott Bambrough <scottb@netwinder.org>
578
579 * emultempl/armelf.em: Include ctype.h to prevent compile time
580 warnings.
581
1ac6a752
NC
5821999-10-26 Nick Clifton <nickc@cygnus.com>
583
584 * emultempl/armcoff.em (gld{}_finish): Remove extraneous
585 underscore from prototype.
586 * emultempl/armelf.em (gld{}_finish): Remove extraneous
587 underscore from prototype.
588
cfd0966c
GK
5891999-10-07 Geoffrey Keating <geoffk@cygnus.com>
590
591 * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
592 being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
593 (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
594 (.rel.sbss): Make like .rel.bss.
595 (.rela.sbss): Make like .rel.bss.
596 (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
597 ld -r.
598 (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
599 .dynsbss.
600
6eec49fc
DD
6011999-09-29 Andrew Haley <aph@cygnus.com>
602
603 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
604 merging sections when not relocating.
605
8a5b676c
DD
6061999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
607
608 * pe-dll.c (process_def_file): Move the offset lookup from here to
609 (fill_exported_offsets): here. New static function.
610 (fill_edata): Use.
611
7c9e78f8
DD
6121999-09-28 Mumit Khan <khan@xraylith.wisc.edu>
613
614 * deffilep.y (tokens): Add upper and lower case versions of DATA,
615 CONSTANT, NONAME and PRIVATE tokens.
616 (command): Use DATAU.
617 (expline): Allow for drectve syntax as well.
618 (exp_opt_list): Likewise.
619 (exp_opt): Likewise.
620 * pe-dll.c (make_one): Only generate the idata entries for data
621 symbols.
622
13d92f2c
GK
6231999-09-28 Geoffrey Keating <geoffk@cygnus.com>
624
625 * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
626 in .sdata too.
627
3c9cf3a3
NC
6281999-09-26 Nick Clifton <nickc@cygnus.com>
629
630 * scripttempl/elf.sc (.bss): Accept sections named .bss.*
631 (.sbss): Accept sections names .sbss.*
632
be2153ad
NC
6331999-09-22 Nick Clifton <nickc@cygnus.com>
634
690a460e 635 * Makefile.am: Add earm_epoc_pe.c build target.
be2153ad 636
26040066
JL
637Sat Sep 18 07:57:10 1999 Jeffrey A Law (law@cygnus.com)
638
639 * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
640 they've been renamed to ".stub", which is handled automatically
641 by elf.sc.
642
643Fri Sep 17 11:00:33 1999 Jeffrey A Law (law@cygnus.com)
644
645 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
646 (DATA_START_SYMBOLS): Kill __hp_load_map definition
647
42d106a8
JL
648Thu Sep 16 10:59:56 1999 Jeffrey A Law (law@cygnus.com)
649
d3cc5bd6
JL
650 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
651 Use the same filename extension for the bfd_elf_dt_needed_name call
652 as we did for finding the library.
653
88e99a39
JL
654 * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
655 (OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
656
42d106a8
JL
657 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define.
658
833be1c7
JL
659Wed Sep 15 02:47:43 1999 Jeffrey A Law (law@cygnus.com)
660
97444aea
JL
661 * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
662 (SHLIB_DATA_ADDR): Likewise.
663
664 * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
665
833be1c7
JL
666 * emulparms/elf64hppa.h (OTHER_READWRITE_SECTIONS): No longer combine
667 the .plt, .dlt, .opd into a single output section. Provide values
668 for __gp and __hp_load_map.
669
a8100d5b
MM
6701999-09-14 Michael Meissner <meissner@cygnus.com>
671
672 * configure.in (Canonicalization of target names): Remove adding
673 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
674 generates $ac_config_sub with a ${CONFIG_SHELL} already.
675 * configure: Regenerate.
676
e4e24acb
DD
6771999-09-14 Donn Terry <donn@interix.com>
678
679 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
680 terminating null.
681
93a6d436
JL
6821999-09-14 Ulrich Drepper <drepper@cygnus.com>
683
684 * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
685 * config.in: Add EXTRA_SHLIB_EXTENSION.
686
687 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
688 Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
689 is defined.
690
cf865442
NC
6911999-09-14 Nick Clifton <nickc@cygnus.com>
692
693 * Makefile.in: Add earm_epoc_pe.c build target.
694
2491f110
JL
695Tue Sep 14 05:26:34 1999 Jeffrey A Law (law@cygnus.com)
696
697 * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt.
698
361d94e7
ILT
6991999-09-13 Donn Terry <donn@interix.com>
700
701 * emultempl/pe.em: Remove the output file at the start, in case it
702 is not writable.
703
9169713a
JL
704Mon Sep 13 00:17:18 1999 Jeffrey A Law (law@cygnus.com)
705
070f1aed
JL
706 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
707 Search for file with .sl extension if no file with a .so extension
708 is found.
709
9169713a
JL
710 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
711 at the start of the .dlt output section.
712
1069dd8d
ILT
7131999-09-12 Ian Lance Taylor <ian@zembu.com>
714
45455cdd
ILT
715 * pe.em: Don't include "../bfd/libbfd.h".
716 (gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
717 bfd_alloc.
718
1069dd8d
ILT
719 * pe-dll.h: New file.
720 * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed
721 to avoid warnings.
722 (edata_sz, reloc_sz): Change from int to size_t.
723 (pe_details_type): Change type of imagebase_reloc from int to
724 unsigned int.
725 (pe_detail_list): Fully initialize last entry.
726 (pe_dll_id_target): Change parameter to const.
727 (pe_dll_generate_def_file): Likewise.
728 (pe_dll_generate_implib): Likewise.
729 (pe_implied_import_dll): Likewise. Change dll_name to const.
730 * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in
731 pe-dll.h.
732 (init): Fully initialize __dll__ entry.
733 (gld_${EMULATION_NAME}_after_open): Remove unused variables
734 sequence, elt, and i.
735 * deffile.h: Add preprocessor guard.
736 * deffilep.y (def_debug): Remove.
737 * Makefile.am: Rebuild dependencies.
738 (HFILES): Add pe-dll.h.
739
2be9b2c7
ILT
7401999-09-12 Donn Terry <donn@interix.com>
741
45455cdd
ILT
742 * ld.h (ld_abort): Declare.
743 (abort): Define.
744 * ldmisc.c (ld_abort): Define.
745
be4514d3
ILT
746 * scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
747 Move .bss section after .rdata. Move .reloc section after .rsrc.
748
d98dd8ba
ILT
749 * lexsup.c (parse_args): Use strtoul for --split-by-reloc
750 argument.
751
03983865
ILT
752 * lexsup.c (parse_args): If we get an unrecognized argument,
753 mention --help.
754
bb8fe706
ILT
755 * ldlang.c (section_already_linked): Use comdat information if it
756 is available.
757
2be9b2c7
ILT
758 * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
759 OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
760 (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
761 defined, rather than a.exe.
762 (init): Define __subsystem__ as ${SUBSYSTEM}.
763 (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
764 name.
765
1b69a0bf
ILT
7661999-09-12 Ian Lance Taylor <ian@zembu.com>
767
768 * ldlang.c (open_output): Change local variable desired_endian
769 from int to enum bfd_endian.
770
be4514d3 771 * emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
1b69a0bf
ILT
772 INITIAL_SYMBOL_CHAR.
773 * emulparams/armpe.sh: Likewise.
774 * emulparams/morepe.sh: Likewise.
775 * emulparams/ppcpe.sh: Likewise.
be4514d3
ILT
776 * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
777 (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1b69a0bf 778
904ecb2d
JL
779Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
780
e5b08bf0
JL
781 * emulparms/elf64hppa.sh (LIB_PATH): Define.
782
904ecb2d
JL
783 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
784 unwinders so that they are closer to the text section.
785 (OTHER_BSS_SECTIONS): Define.
786 (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
787 (INIT_START, INIT_END): Define.
788 (FINI_START, FINI_END): Define.
789 * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
790 FINI_START, FINI_END and OTHER_BSS_SECTIONS.
791
7e4d694e
JL
792Thu Sep 9 21:43:58 1999 Jeffrey A Law (law@cygnus.com)
793
794 * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
795 (DATA_ADDR): Define.
796
2f2bc1bb
RH
7971999-09-09 Stan Shebs <shebs@andros.cygnus.com>
798
799 * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
800
1d0a3c9c
AS
8011999-09-09 Andreas Schwab <schwab@suse.de>
802
803 * ld.texinfo: Fix arguments of @var to not contain punctuation.
804
040266ab
JL
805Thu Sep 9 05:52:34 1999 Jeffrey A Law (law@cygnus.com)
806
807 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.
808
8091999-09-08 Ulrich Drepper <drepper@cygnus.com>
810
811 * emulparams/elf64hppa.sh (ELFSIZE): New. Set to 64.
812
813Wed Sep 8 00:07:39 1999 Jeffrey A Law (law@cygnus.com)
814
815 * emulparms/elf64hppa.sh (ENTRY): Define to main.
816
1c56fb87
NC
8171999-09-03 Scott Bambrough <scottb@netwinder.org>
818
819 * ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
820 target "arm*-*-linux-gnu*"
821
c6c8c6dc
ILT
8221999-09-04 Steve Chamberlain <sac@pobox.com>
823
824 * configure.tgt (pjl-*-*, pj-*-*): New targets.
825 * emulparams/pjelf.sh: New file.
826 * emulparams/pjlelf.sh: New file.
827 * scripttempl/pj.sc: New file.
828 * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
829 (epjelf.o, epjlelf.o): New targets.
830 * Makefile.in: Rebuild.
831
4b69d4ad
JL
832Fri Sep 3 20:17:08 1999 Jeffrey A Law (law@cygnus.com)
833
834 * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
835 (OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
836
f6e143a1
JL
837Thu Sep 2 14:32:03 1999 Jeffrey A Law (law@cygnus.com)
838
839 * emulparams/elf64hppa.sh: New file.
840 * configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
841 * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
842 (eelf64hppa.c): Add dependencies.
843 * Makefile.in: Rebuilt.
844
0f1ee889
NC
8451999-08-25 Philip Blundell <pb@nexus.co.uk>
846
847 * emulparams/armelf.sh (OTHER_BSS_SYMBOLS): Add __end__.
848 * emulparams/armelf_linux.sh: Likewise.
849 * emulparams/armelf_linux26.sh: Likewise.
850
8959586a
NC
8511999-08-24 Nick Clifton <nickc@cygnus.com>
852
853 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
854
855 * configure.tgt (arm-*-netbsd*): New target.
856 * Makefile.am (ALL_EMULATIONS): Add earmnbsd.o.
857 (earmnbsd.c): New rule with deps.
858 * Makefile.on: Regenerate.
859 * emulparams/armnbsd.sh: New file.
860
3b108066
NC
8611999-08-23 Nick Clifton <nickc@cygnus.com>
862
093505ad
NC
863 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Define.
864 Implement --base-file command line switch.
865
3b108066
NC
866 * emultempl/elf32.em: Add ability for individual targets to have
867 their own command line switches by defining PARSE_AND_LIST_ARGS.
868
cd5d26f2
AS
8691999-08-19 Andreas Schwab <schwab@suse.de>
870
871 * configure.host: Use ${CC} instead of gcc for finding compiler
872 related files.
873
0811443a
NC
8741999-08-11 Nick Clifton <nickc@cygnus.com>
875
876 * scripttempl/mcorepe.sc (OUTPUT_FORMAT): Fix typo.
877
9c9ef45f
ILT
8781999-08-09 Mark Elbrecht <snowball3@bigfoot.com>
879
880 * scripttempl/i386go32.sc: Handle g++ exception sections.
881
fe9edd22
ILT
8821999-08-09 Ian Lance Taylor <ian@zembu.com>
883
884 From Wally Iimura <iimura@microunity.com>:
885 * ldlang.c (lang_size_sections): When checking whether an address
886 is within a region, don't get confused by wrapping around at the
887 end of the address space.
888
f4162f5c
ILT
8891999-08-08 Ian Lance Taylor <ian@zembu.com>
890
667f5177
ILT
891 * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
892 SEC_SMALL_DATA.
893
f4162f5c
ILT
894 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
895 MKDEP. Rebuild dependencies.
896 * Makefile.in: Rebuild.
897
ae97059c
ILT
8981999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
899
900 * configure.host (sparc-*-linux-gnu*): New host.
901 (sparc64-*-linux-gnu*): New host.
902
597e2591
ILT
9031999-08-06 Ian Lance Taylor <ian@zembu.com>
904
3d9f6277
ILT
905 * lexsup.c (is_num): Reindent.
906 (parse_args): Mention program name in error message.
907
597e2591
ILT
908 * emultempl/ostring.sed: Rename from stringify.sed.
909 * emultempl/astring.sed: New file.
910 * Makefile.am (stringify.sed): New target.
911 (GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
912 stringify.sed.
913 * configure.in: Define and substitute STRINGIFY.
914 * emultempl/*.em: Use stringify.sed from build directory rather
915 than source directory.
916 * emultempl/elf32.em: Use stringify.sed rather than inline sed
917 script.
918 * emultempl/gld960.em, emultempl/gld960c.em: Likewise.
919 * emultempl/hppaelf.em, emultempl/linux.em: Likewise.
920 * emultempl/lnk960.em, emultempl/sunos.em: Likewise.
921 * configure, Makefile.in: Rebuild.
922
a7e78dae
ILT
9231999-08-05 Donn Terry <donn@interix.com>
924
925 * emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
3d9f6277 926 INITIAL_SYMBOL_CHAR.
a7e78dae
ILT
927 * emulparams/i386pe_posix.sh: New file.
928 * Makefile.am (YACC): If bison is not in the source tree, use
929 @YACC@ rather than bison -y.
930 (LEX): If flex is not in the source tree, use @LEX@ rather than
931 flex.
932 (ALL_EMULATIONS): Add ei386pe_posix.o.
933 (ei386pe_posix.c): New target.
934 * configure.tgt (i[3456]86-*-interix*): New target.
935 * configure.host (i[3456]86-pc-interix*): New host.
936 * Makefile.in: Rebuild.
937
18069efc
ILT
9381999-08-03 Ian Lance Taylor <ian@zembu.com>
939
940 * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
941 * emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
942
f7cc0a4d
ILT
9431999-08-03 H.J. Lu <hjl@gnu.org>
944
945 * Makefile.am (ALL_EMULATIONS): Remove ego32.o.
946 (ego32.c): Remove.
947 * Makefile.in: Rebuild.
948
5fa803d3
NC
9491999-07-22 Philip Blundell <pb@nexus.co.uk>
950
951 * emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
952 (OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
953 * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.
954
955 * configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
956 thumb-*-linux-gnu*): New targets.
957
b4089fdd 9581999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
8f36e47c 959
5a1bd109
ILT
960 * scripttempl/i386go32.sc: Add handling of linkonce sections.
961
8f36e47c 962 * configure.bat: Remove; obsolete.
b4089fdd
ILT
963 * emulparams/go32.sh: Remove; obsolete.
964 * scripttempl/go32coff.sc: Remove; obsolete.
8f36e47c 965
41d390a7
ILT
9661999-07-21 H.J. Lu <hjl@gnu.org>
967
968 * configure.tgt (mips*el-*-vxworks*): New target.
969
9701999-07-21 Brad M. Garcia <bgarcia@fore.com>
971
972 * configure.tgt (i[3456]86-*-vxworks*): New target.
973
7c83b342
DE
974Tue Jul 20 15:18:46 1999 Bob Manson <manson@charmed.cygnus.com>
975
976 * ldlang.c (lang_gc_sections): Only handle the start symbol
977 specially if there is one.
978
0ca63823
MM
979Mon Jul 19 14:19:14 1999 Mark P. Mitchell <mark@codesourcery.com>
980
981 * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
982 .MIPS.events and .MIPS.content handling.
983 * emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
984
e50d8076
NC
9851999-07-17 Nick Clifton <nickc@cygnus.com>
986
987 * ldlang.c (get_target): New function: Return true iff the
988 given target is the target being sought.
989 (stricpy): New function: Like strcpy but convert to lower
990 case as well.
991 (strcut): New function: Like strstr but remove the located
992 substring as well.
993 (name_compare): New function: Compute a compatability rating
994 for two target names.
995 (winner): New variable: Best target found by
996 closest_target_match() so far.
997 (closest_target_match): New function: Find the target which is
998 the closest match to the original target.
999 (get_first_input_target): New function: Find the target format
1000 of the first of the linker's input file.
1001 (open_output): Be more clever about deciding the output target
1002 format.
1003
e76d716a
RH
10041999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1005
1006 * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
1007
88659ef5
MM
1008Thu Jul 15 15:55:15 1999 Mark P. Mitchell <mark@codesourcery.com>
1009
1010 * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6.
1011
2844ed43
ILT
10121999-07-15 Ian Lance Taylor <ian@zembu.com>
1013
1014 * configure.in: Bump version number to 2.9.5.
1015 * configure: Rebuild.
1016
0eaf9820
RH
10171999-07-14 Richard Henderson <rth@cygnus.com>
1018
1019 * ldlang.c (wild_doit): Copy SEC_SHORT to output section.
1020
1021 * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
1022 same order seen for the main sections. Add
1023 OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
1024
5d341b0e
AS
10251999-07-12 Andreas Schwab <schwab@suse.de>
1026
49bdcdba
AS
1027 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
1028 structure initializations.
1029
5d341b0e
AS
1030 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
1031 comma in initializer.
1032
87f2a346
ILT
10331999-07-11 Ian Lance Taylor <ian@zembu.com>
1034
1035 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1036 as appropriate. Fill in structure initializations.
1037
b90d1146
ILT
10381999-07-10 Ian Lance Taylor <ian@zembu.com>
1039
1040 * ldfile.c: Revert patch of 1999-07-08.
1041 (ldfile_try_open_bfd): If we are searching for the file, skip
1042 files with an incompatible architecture.
1043
6da0974a
NC
10441999-07-09 Nick Clifton <nickc@cygnus.com>
1045
1046 * scripttempl/armcoff.sc (OUTPUT_FORMAT): Include big endian and
1047 little endian formats.
1048
7a274639
NC
10491999-07-08 Felix Lee <flee@cygnus.com>
1050
1051 * scripttempl/mcorepe.sc: fix quoting problem, for bash 2.x
1052
99f8f232
RH
10531999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
1054
1055 * ldfile.c (ldfile_open_file_search): Skip libraries made for
1056 incompatible architectures in the search path. Let the user know
1057 about any such skips.
1058
5c61c5ab
JL
1059Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
1060
1061 * configure.tgt (hppa*-linux-gnu*): New target.
1062
22c675a7
MM
10631999-07-07 Mark Mitchell <mark@codesourcery.com>
1064
1065 * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
1066 (eelf64bmip): New target.
1067 * Makefile.in: Regenerated.
1068 * configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
1069 * emulparams/elf64bmip.sh: New file.
1070
f11523b0
NC
10711999-07-05 Nick Clifton <nickc@cygnus.com>
1072
1073 * emultempl/pe.em (after_open): Abort if input format is ARM and
1074 output format is not.
1075 * emultempl/armcoff.em (after_open): Abort if input format is ARM
1076 and output format is not.
1077 * emultempl/armelf.em (after_open): Abort if input format is ARM
1078 and output format is not.
1079
39e878bf
ILT
10801999-07-02 Ian Lance Taylor <ian@zembu.com>
1081
1082 * ldlang.c: Revert change of 1999-06-23.
1083
dc831978
MM
10841999-06-30 Mark Mitchell <mark@codesourcery.com>
1085
1086 * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
1087 (eelf32bmipn32.c): New target.
1088 * Makefile.in: Regenerated.
1089 * configure.tgt (mips-sgi-irix6*): Make n32 the default
1090 emulation.
1091 * emulparams/elf32bmipn32.sh: New file.
1092
a0290afa
NC
10931999-06-28 Jim Pick <jim@jimpick.com>
1094
1095 * emultempl/armelf.em: Added code so that .xs linker scripts are
1096 called so that ARM shared libraries are built correctly.
1097
3dbf70a2
MM
10981999-06-22 Mark Mitchell <mark@codesourcery.com>
1099
1100 * ldmain.c (main): Initialize link_info.init_function and
1101 link_info.fini_function.
1102 * lexsup.c (OPTION_INIT): New macro.
1103 (OPTION_FINI): Likewise.
1104 (ld_options): Add descriptions for them.
1105 (parse_args): Handle them.
1106
7b9eea34
ILT
11071999-06-23 Ian Lance Taylor <ian@zembu.com>
1108
1109 * ldlang.c (section_already_linked): Only discard link once
1110 sections if we are building constructors.
1111
5c6bbab8
NC
11121999-06-22 Nick Clifton <nickc@cygnus.com>
1113
1114 * ld.texinfo (Location Counter): Describe behaviour of
1115 location counter inside section statements.
1116
a8e53fb0
MM
11171999-06-20 Mark Mitchell <mark@codesourcery.com>
1118
1119 * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
1120 controlling whether or not .rodata is in the data segment or the
1121 text segment.
1122
6f798e5c
NC
11231999-06-18 Nick Clifton <nickc@cygnus.com>
1124
1125 * emultempl/pe.em: Add new command line switch --thumb-entry.
1126 * emultempl/armelf.em: Add new command line switch --thumb-entry.
1127 * emultempl/armcoff.em: Add new command line switch --thumb-entry.
1128 * ld.texinfo: Document new ARM command line switch: --thumb-entry.
ba2be581
RH
11291999-06-20 H.J. Lu <hjl@gnu.org>
1130
1131 * configure.in (all_libpath): Accumulate across all enabled targets.
1132
f97f7300
RH
1133Sun Jun 20 14:10:33 1999 Richard Henderson <rth@cygnus.com>
1134
1135 * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
1136 DEFAULT_EMULATION.
1137 * emultempl/elf32.em: Likewise.
1138 * emultempl/sunos.em: Likewise.
1139
3336653a
RH
1140Fri Jun 18 15:24:48 1999 Richard Henderson <rth@cygnus.com>
1141
1142 * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
1143 * configure.in (all_emuls): Add targ_extra_libpath.
1144 (all_libpath, EMULATION_LIBPATH): Define.
1145 * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
1146 * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
1147
308b1ffd
AS
1148Mon Jun 14 10:38:36 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1149
1150 * ld.texinfo: Fix use of @item vs. @itemx.
1151
aa8804e4
ILT
11521999-06-13 Ian Lance Taylor <ian@zembu.com>
1153
1154 From Thomas Zenker <thz@lennartz-electronic.de>:
1155 * ldgram.y (attributes_opt): Use attributes_list instead of NAME.
1156 (attributes_list, attributes_string): New nonterminals.
1157 * ldlang.c (lang_set_flags): Add invert parameter. Don't handle
1158 '!'.
1159 * ldlang.c (lang_set_flags): Update declaration.
1160
2a275620
ILT
11611999-06-12 Ian Lance Taylor <ian@zembu.com>
1162
1163 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
1164 entry_symbol as an undefined symbol when doing a relocateable
1165 link. From <jeffdb@goodnet.com>.
1166
2641b0c9
ILT
11671999-06-12 David O'Brien <obrien@freebsd.org>
1168
1169 * configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
1170
f75692fe
NC
11711999-06-09 Nick Clifton <nickc@cygnus.com>
1172
1173 * lexsup.c (help): Restore previous format of output.
1174
434d1125
NC
11751999-06-04 Nick Clifton <nickc@cygnus.com>
1176
1177 * emultempl/pe.em: If compiling for arm_epoc_pe rename
1178 interworking functions to avoid a name space clash.
1179
4305932a
RH
11801999-06-02 Jason Merrill <jason@yorick.cygnus.com>
1181
1182 * scripttempl/v850.sc: Add initp support.
1183
46d23b7c
NC
11841999-06-02 Nick Clifton <nickc@cygnus.com>
1185
1186 * emultempl/pe.em: Rename global arm interworking functions to
1187 avoid name collision when all targets BFD is built.
1188
cd785be6
RH
11891999-05-30 Cort Dougan <cort@attis.cs.nmt.edu>
1190
1191 * Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
1192 * configure.tgt (powerpc-*-linux-gnu): Use it.
1193 * emulparams/elf32ppclinux.sh: New file.
1194
511ab9e9
ILT
11951999-05-29 Ian Lance Taylor <ian@zembu.com>
1196
1197 * ld.texinfo (Options): Clarify that options which refer to files
1198 must be properly ordered.
1199
7ca69e9e
NC
12001999-05-29 Nick Clifton <nickc@cygnus.com>
1201
1202 * emultempl/armelf.em (..._parse_args): New function: Parse
1203 command line option. Accept arm-elf specific command line option
1204 '-p' or '--no-pipeline-knowledge'.
1205 (..._list_options): New function: Describe the new command line
1206 option.
1207 (..._before_allocation): Pass the value of the new variable
1208 no_pipeline_knowledge to bfd_elf32_arm_process_before_allocation.
1209
1210 * emultemp/armelf_oabi.em (..._before_allocation): Pass zero as
1211 the third parameter to bfd_elf32_arm_process_before_allocation.
1212
b3043ee4
NC
12131999-05-28 Nick Clifton <nickc@cygnus.com>
1214
1215 * lexsup.c (help): Minor formatting changes.
1216
0ccf812a
ILT
12171999-05-28 Martin Dorey <mdorey@madge.com>
1218
1219 * configure.tgt (i960-*-elf*): New target.
1220 * emulparams/elf32_i960.sh: New file.
1221 * Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
1222 (eelf32_i960.c): New target.
1223 * Makefile.in: Rebuild.
1224
a13cba0d
NC
12251999-05-26 Nick Clifton <nickc@cygnus.com>
1226
1227 * emulparams/armelf_oabi.sh (TEMPLATE_NAME): Set to armelf_oabi.
1228
31ce0628
NC
12291999-05-24 Philip Blundell <philb@gnu.org>
1230
1231 * emultempl/armelf.em (before_parse): Set config.dynamic_link and
1232 config.has_shared.
1233 * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
1234 * emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise.
1235
1220a729
NC
12361999-04-13 Philip Blundell <philb@gnu.org>
1237
1238 * emultempl/armelf.em: Add definitions related to shared objects
1239 (copied from elf32.em).
1240
3699964a
AS
1241Wed May 19 12:44:26 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1242
1243 * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
1244 earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
1245 * Makefile.in: Regenerated.
1246
06f2f02a
NC
12471999-05-16 Nick Clifton <nickc@cygnus.com>
1248
1249 * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Define.
1250 (TEMPLATE_NAME): Define.
1251
de24ad21
RH
1252Thu May 13 09:48:09 1999 Joel Sherrill (joel@OARcorp.com)
1253
1254 * configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
1255 (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
1256
c6c37250
DD
12571999-05-10 DJ Delorie <dj@cygnus.com>
1258
1259 * scripttempl/pe.sc: Specify the output arch, which Ian says is
1260 the Right Thing to do.
1261
1262 * emultempl/pe.em: various changes to parameterize the
1263 target-specific information.
1264 (gld_i386pe_after_open): Detect and fix MS import libraries
1265 by renaming the member objects (which are all named the same).
1266
1267 * pe-dll.c: various changes to parameterize the target-specific
1268 information.
1269 (generate_reloc): support relocs more generically to allow for
1270 expansion.
1271 (pe_exe_build_sections): new; used to add .relocs to .exes
1272 (pe_exe_fill_sections): ditto
1273
626e0105
CM
12741999-05-10 Catherine Moore <clm@cygnus.com>
1275
1276 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
1277 Check for TARGET_IS_arm_epoc_pe.
1278 (gld_${EMULATION_NAME}_before_allocation): Likewise.
1279
4dec4d4e
RH
12801999-05-12 Anthony Green <green@cygnus.com>
1281
1282 * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
1283 output_section_callback, gc_section_callback): New functions for
1284 generic section walks.
1285 (wild, lang_gc_wild): Use walk_wild.
1286 (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
1287 walk_wild_file.
1288 (wild_section, lang_gc_wild_section): Deleted. Common logic moved
1289 to walk_fild_section. Unique logic moved into callbacks
1290 output_section_callback and gc_section_callback.
1291
252b5132
RH
12921999-04-26 Tom Tromey <tromey@cygnus.com>
1293
1294 * aclocal.m4, configure: Updated for new version of libtool.
1295
252b5132
RH
12961999-04-12 Philip Blundell <pb@nexus.co.uk>
1297
1298 * emulparams/armelf_linux.sh: New file. Support for ARM
1299 GNU/Linux ELF ABI.
1300 * emulparams/armelf_linux26.sh: New file. APCS-26 version of above.
1301 * configure.tgt: For arm*-*-linux-gnu*, set default emulation to
1302 `armelf_linux', and also include `armelf_linux26' and `armelf'.
1303 * Makefile.am: Add rules to make earmlinux.c and earmlinux26.c.
1304 (ALL_EMULATIONS): Add earmlinux.o and earmlinux26.o.
1305 * Makefile.in: Regenerate.
1306
13071999-04-11 Richard Henderson <rth@cygnus.com>
1308
1309 * Makefile.am (ALL_EMULATIONS): Add elf_i386_be.o.
1310 * configure.tgt (i[3456]86-*-beos*): Use it.
1311 * emulparams/elf_i386_be.sh: New file.
1312 * Makefile.in: Rebuild.
1313
1314 * configure.in (environ): Detect declaration.
1315 * ldmain.c (main): Don't declare environ.
1316 * sysdep.h (environ): Declare if needed.
1317 * configure, config.in: Rebuild.
1318
13191999-04-11 Richard Henderson <rth@cygnus.com>
1320
1321 * ldgram.y (ldgram_vers_current_lang): New.
1322 (vers_defns): Accept `extern "lang" { }' syntax.
1323 * ldlex.l (vers_node_nesting): New.
1324 (V_IDENTIFIER): Accept . and $ in symbols.
1325 (VERS_NODE): Accept `extern "lang" { }' tokens. Nest VERS_NODE states.
1326 * ldlang.c (lang_new_vers_regex): New `lang' argument. Update callers.
1327 (lang_vers_match_lang_c): New function.
1328 (lang_vers_match_lang_cplusplus): New function.
1329 (lang_vers_match_lang_java): New function.
1330 (lang_do_version_exports_section): Fix iteration. Don't free
1331 section contents, as it is still in use by the patterns.
1332
13331999-04-10 Richard Henderson <rth@cygnus.com>
1334
1335 * ldmain.c (main): Init link_info.no_undefined.
1336 * lexsup.c: Add command-line option --no-undefined.
1337
252b5132
RH
13381999-04-06 Ian Lance Taylor <ian@zembu.com>
1339
1340 * ld.h (LC_MESSAGES): Never define.
1341 * ldmain.c (main): Don't pass LC_MESSAGES to setlocale if the
1342 system does not define it.
1343
13441999-04-06 H.J. Lu <hjl@gnu.org>
1345
1346 * ldmain.h (demangling): Declare.
1347 * ldmain.c (demangling): New global variable.
1348 (main): Initialize demangling.
1349 * ldmisc.c (vfinfo): Don't demangle symbol if ! demangling.
1350 * lexsup.c (ld_options, parse_args): Handle --demangle and
1351 --no-demangle.
1352 * ld.texinfo, ld.1: Document --demangle/--no-demangle.
1353
1354 * ldlex.l (V_IDENTIFIER): Allow '.' in symbol.
1355
13561999-04-05 Chris Torek <torek@BSDI.COM>
1357
1358 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Check that
1359 a shared library really exists, avoiding broken symlinks.
1360
1361 * ldfile.c (ldfile_open_file): Generate a better error message if
1362 we can't find a -l file.
1363
13641999-04-05 DJ Delorie <dj@cygnus.com>
1365
1366 * configure.tgt (i386-*-pe): add targ_extra_ofiles for other PE
1367 targets (i386-pe and i386-winnt)
1368
13691999-04-04 Ian Lance Taylor <ian@zembu.com>
1370
1371 * deffilep.y: Include "sysdep.h" and "ldmisc.h".
1372 (def_file_add_directive): Change return type to void. Remove
1373 unused locals sh_reserve, sh_commit, and j.
1374 (def_ungetc): Always return a value.
1375 (def_lex): Correct parenthesization of || within &&.
1376 * deffile.h (def_file_add_directive): Update declaration.
1377 * pe-dll.c: Include <time.h>, <ctype.h>, and "ldemul.h".
1378 (generate_edata): Remove unused local i.
1379 (quoteput): Add cast to avoid warning.
1380 (pe_dll_generate_def_file): Fix type in format string.
1381 (quick_symbol): Remove unused local blhe.
1382 (pe_dll_generate_implib): Add cast to avoid warning.
1383 (pe_process_import_defs): Remove unused locals ar_head, ar_tail,
1384 and n.
1385 (pe_as16): Comment out.
1386
13871999-04-04 Don Bowman <don@pixsci.com>
1388
1389 * configure.tgt: Add mips*-*-vxworks* target.
1390
13911999-03-31 Nick Clifton <nickc@cygnus.com>
1392
1393 * Makefile.in (ALL_EMULATIONS): Add earm_epoc_pe.o
1394 Add build rule and dependencies for earm_epoc_pe.c.
1395
1396 * emulparams/arm_epoc_pe.sh: New file.
1397
1398 * configure.tgt: Add 'targ_extra_ofiles' for ARM based PE
1399 targets.
1400
14011999-03-31 Philip Blundell <pb@nexus.co.uk>
1402
1403 * configure.tgt: Match `arm*-*-linux-gnu*' not
1404 `armv*-*-linux-gnu'.
1405
14061999-03-26 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1407
1408 * scripttempl/elf.sc: Put the .eh_frame and .gcc_except_table
1409 sections in the data segment.
1410
1411Fri Mar 26 12:05:51 1999 Catherine Moore <clm@cygnus.com>
1412
1413 * ld.h (wildcard_spec): Add exclude_name.
1414 * ldgram.y (EXCLUDE_FILE): New token.
1415 (wildcard_spec): Set exclude_name.
1416 (file_NAME_list): Recognize EXCLUDE_FILE.
1417 * ldlang.c (wild_section): Check for excluded files.
1418 (print_wild_statement): Print excluded files.
1419 (lang_add_wild): New argument exclude_filename.
1420 Set exclude_filename.
1421 * ldlang.h (lang_wild_statement_type): Add exclude_filename.
1422 * ldlex.l: New token EXCLUDE_FILE.
1423 * mri.c (mri_draw_tree): Add argument to lang_add_wild.
1424 * scripttempl/elf.sc (CTOR, DTOR): Exclude crtend.o from ctor wildcard.
1425 Reorder sorted and unsorted ctors.
1426 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
1427 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
1428 * scripttempl/elfppc.sc (CTOR, DTOR): Likewise.
1429
14301999-03-26 Nick Clifton <nickc@cygnus.com>
1431
1432 * ldlang.c (lang_gc_sections): If entry_symbol is not defined,
1433 default to "start".
1434
14351999-03-03 Nick Clifton <nickc@cygnus.com>
1436
1437 * scripttempl/elf.sc: Add explicit placements for the .eh_frame
1438 and .gcc_except_table sections.
1439
1440Wed Mar 3 09:13:34 1999 Catherine Moore <clm@cygnus.clm>
1441
1442 * scripttempl/elf.sc: Remove .end.ctors and .end.dtors
1443 sections. Reorder .ctors section entries.
1444 * scripttempl/elfd10v.sc: Likewise.
1445 * scripttempl/elfd30v.sc: Likewise.
1446 * scripttempl/elfppc.sc: Likewise.
1447
14481999-02-26 Jim Lemke <jlemke@cygnus.com>
1449
1450 * ldmain.c (main): Wrong error msg for -r and --mpc860c0.
1451
14521999-02-25 Nick Clifton <nickc@cygnus.com>
1453
1454 * ldlang.c (lang_check_section_addresses): Remove extraneous
1455 backslash.
1456
1457Thu Feb 25 15:07:24 1999 Catherine Moore <clm@cygnus.com>
1458
1459 * scripttempl/elf.sc: Don't gather .ctor and .dtor sections
1460 for relocateable links.
1461 * scripttempl/elfd10v.sc: Likewise.
1462 * scripttempl/elfd30v.sc: Likewise.
1463 * scripttempl/elfppc.sc: Likewise.
1464
14651999-02-22 Jim Lemke <jlemke@cygnus.com>
1466
1467 * ldint.texinfo: remove extraneous right brace.
1468 * ldmain.c (main): initialize and check option "mpc860c0".
1469 * lexsup.c (ld_options, parse_args): add option "mpc860c0".
1470
1471Wed Feb 17 12:10:06 1999 Stan Cox <scox@cygnus.com>
1472
1473 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Remove special
1474 .reginfo section handling.
1475 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Likewise.
1476 * emulparams/elf32elmip.sh (INITIAL_READONLY_SECTIONS): Removed
1477 * emulparams/elf32ebmip.sh (INITIAL_READONLY_SECTIONS): Removed
1478
14791999-02-17 Nick Clifton <nickc@cygnus.com>
1480
1481 Patch from: Scott Bambrough <scottb@corelcomputer.com>
1482
1483 * configure.tgt: Added armv*-*-linux-gnu to $targ_emul
1484 recognition.
1485
1486Wed Feb 17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1487
1488 * emultempl/armelf_oabi.em
1489 (bfd_elf32_arm_allocate_interworking_sections,
1490 bfd_elf32_arm_get_bfd_for_interworking,
1491 bfd_elf32_arm_process_before_allocation): Define them to use the
1492 old ABI versions of the functions.
1493
1494Tue Feb 16 16:48:19 1999 Ian Lance Taylor <ian@cygnus.com>
1495
1496 * configure.in: Change AC_PREREQ to 2.13. Change AM_PROG_INSTALL
1497 to AC_PROG_INSTALL. Change AM_EXEEXT to AC_EXEEXT.
1498 * Makefile.am (earmelf_oabi.c): Changes spaces to tab.
1499 * acconfig.h: Remove.
1500 * aclocal.m4: Rebuild.
1501 * configure: Rebuild.
1502 * Makefile.in: Rebuild.
1503
1504Mon Feb 15 18:21:48 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
1505
1506 * ldexp.h (struct etree_value_type): Change valid onto valid_p.
1507
1508 * ldexp.c (new_abs): Ditto.
1509 (new_rel, new_rel_from_section, fold_binary, invalid, fold_name,
1510 exp_fold_tree, exp_binop, exp_trinop, stat_alloc,
1511 exp_get_abs_int): Ditto
1512
1513 * ldlang.c (print_assignment, lang_size_sections,
1514 lang_do_assignments): Ditto.
1515
15161999-02-11 Nick Clifton <nickc@cygnus.com>
1517
1518 * ldlang.c (lang_check_section_addresses): New function: Check
1519 addresses assigned to section for overlaps.
1520 (lang_process): Call lang_check_section_addresses if suitable.
1521
1522 * ld.h: Add new boolean field to args_type structure:
1523 'check_section_addresses'.
1524
1525 * ldmain.c: Initialise check_section_addresses field to true.
1526
1527 * lexsup.c: Add new command line options '--no-check-sections' and
1528 '--check-sections'.
1529
1530 * ld.texinfo: Document new command line options '--check-sections'
1531 and '--no-check-sections'.
1532
15331999-02-08 Nick Clifton <nickc@cygnus.com>
1534
1535 * configure.tgt: Add support for StrongARM target.
1536
1537Wed Feb 3 19:41:01 1999 Ian Lance Taylor <ian@cygnus.com>
1538
1539 * ldctor.c (ldctor_build_sets): Just set SEC_KEEP once. Check for
1540 an owner of a section before using it to look up a reloc type.
1541 Don't set SEC_KEEP for the absolute section.
1542
1543Mon Feb 1 11:39:46 1999 Catherine Moore <clm@cygnus.com>
1544
1545 * Makefile.am (earmelf_oabi.o): New.
1546 * Makefile.in: Regenerate.
1547 * configure.tgt (arm-*-oabi): New.
1548 (thumb-*-oabi): New.
1549 * emulparams/armelf_oabi.sh: New.
1550 * emultempl/armelf_oabi.em: New.
1551
15521999-01-31 17:57:31 1998 Michael Meissner <meissner@cygnus.com>
1553
1554 * scripttempl/elfppc.sc: Add support for -fleading-underscores
1555 switch in all linker generated symbols.
1556
1557 * configure.tgt (powerpc{,le}*-*-vxworks): Add as aliases for
1558 powerpc{,le}-*-eabi.
1559
1560Wed Jan 20 17:01:48 1999 Ian Lance Taylor <ian@cygnus.com>
1561
1562 * configure.tgt (i[3456]86-*-solaris2*): New target. From Pavel
1563 Roskin <pavel_roskin@geocities.com>.
1564
15651999-01-19 Nick Clifton <nickc@cygnus.com>
1566
1567 * ldlang.c (lang_size_sections): Count loadable sections as
1568 contributing to the size of the current segment.
1569
15701999-01-15 Nick Clifton <nickc@cygnus.com>
1571
1572 * ldlang.c (lang_size_sections): Only update the current
1573 address of a region if the section just placed into it is an
1574 allocated section.
1575
15761999-01-12 Nick Clifton <nickc@cygnus.com>
1577
1578 * Makefile.am: Replace efr30.o with eelf32fr30.o.
1579 * Makefile.in: Regenerate.
1580
1581 * configure.tgt: Replace fr30 with elf32fr30.
1582
1583 * emulparams/elf32fr30.sh: New file: Replaces fr30.sh, and uses
1584 generic elf.sc script. Also replaces the .stack section with a
1585 user definable symbol __stack.
1586
15871999-01-11 Nick Clifton <nickc@cygnus.com>
1588
1589 * scripttempl/fr30.sc: Fill .init and .fini sections with NOP
1590 pattern.
1591
15921999-01-03 Ken Raeburn <raeburn@cygnus.com>
1593
1594 * Makefile.am (check-DEJAGNU): No longer provide HOSTING_EMU,
1595 HOSTING_CRT0, HOSTING_LIBS; the test suite can extract them from
1596 configure.host and configure.tgt now.
1597 * Makefile.in: Rebuild.
1598
15991998-12-27 Ulrich Drepper <drepper@cygnus.com>
1600
1601 * lexsup.c (parse_args, case OPTION_RPATH): Avoid adding duplicate
1602 elements to rpath.
1603
1604Thu Dec 10 11:12:28 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1605
1606 * Makefile.am (ALL_EMULATIONS): Remove pe-dll.o and deffilep.o.
1607 (ALL_EMUL_EXTRA_OFILES): New variable. Put them here instead.
1608 * configure.in: Set EMUL_EXTRA_OFILES to $(ALL_EMUL_EXTRA_OFILES)
1609 if configuring with all targets.
1610 * configure, Makefile.in, aclocal.m4: Rebuild.
1611
1612 * emultempl/pe.em (pe_enable_stdcall_fixup): Make static.
1613 (pe_dll_do_default_excludes): Removed, unused.
1614 (pe_def_file, pe_dll_export_everything, pe_dll_kill_ats,
1615 pe_dll_stdcall_aliases): Don't initialize them, this file may be
1616 compiled more than once.
1617 * pe-dll.c (pe_def_file, pe_dll_export_everything,
1618 pe_dll_do_default_excludes, pe_dll_kill_ats,
1619 pe_dll_stdcall_aliases): Define and initialize them here instead.
1620 (generate_reloc): Fix allocation of reloc_addresses array to use
1621 bfd_vma instead of unsigned long. Fix element size in qsort call.
1622 (reloc_sort): Compare pointers to bfd_vma instead of unsigned
1623 long.
1624
1625Mon Dec 7 21:10:09 1998 J.J. van der Heijden <j.j.vanderheijden@student.utwente.nl>
1626
1627 * configure.tgt (i[3456]86-*-mingw32*): Add cygwin target specific
1628 files.
1629
1630Sun Dec 6 16:33:33 1998 Ian Lance Taylor <ian@cygnus.com>
1631
1632 * configure.tgt (m68*-*-gnu*): New target. From Aymeric Vincent
1633 <aymeric.vincent@emi.u-bordeaux.fr>.
1634
16351998-12-04 Nick Clifton <nickc@cygnus.com>
1636
1637 * emulparams/fr30.sh (TEXT_START_ADDR): Change TEXT_START_ADDR
1638 from 0x100000 to 0x10000 so that it fits in 20 bits.
1639
1640Sat Nov 28 22:32:20 1998 Ian Lance Taylor <ian@cygnus.com>
1641
1642 * ldemul.h (ldemul_recognized_file): Declare.
1643
1644Sat Nov 28 22:30:55 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1645
1646 * ldlang.c (lang_add_wild): Don't pretend that there is an input
1647 file if the filename is a wildcard pattern.
1648
16491998-11-25 DJ Delorie <dj@cygnus.com>
1650
1651 * ldemul.h (ld_emulation_xfer_struct): new hook "recognized_file"
1652 * ldemul.c (ldemul_recognized_file): new function, new hook
1653 * ldint.texinfo: document new hook.
1654 * ldlang.c (load_symbols): call recognized_hook for all objects we
1655 do recognize, in case the emulation needs to handle them
1656 specially. PE DLLs use this.
1657 * pe-dll.c (pe_dll_generate_def_file): take out hack and debug
1658 printfs
1659 * emultempl/pe.em (gld_i386_recognized_file): new function
1660 (gld_i486_unrecognized_file): take out hack
1661
16621998-11-23 DJ Delorie <dj@cygnus.com>
1663
1664 * pe-dll.c (fill_edata): fill in timestamp
1665 (make_head): name object files sequentially to ensure
1666 they link in the right order.
1667 (make_tail): same here
1668 (pe_process_import_defs): use sequential names for bfds to ensure
1669 proper link order.
1670 (pe_implied_import_dll): new function; handles linking directly
1671 against DLLs by simulating IMPORTS directives. * emultempl/pe.em
1672 (gld_i386pe_before_parse): hack bfd to not recognize .dll files
1673 via bfd_pe_dll_not_recognized_hack
1674
16751998-11-23 DJ Delorie <dj@cygnus.com>
1676
1677 * emultempl/pe.em (gld_i386pe_parse_args): Conditionalize call to
1678 pe_dll_add_excludes
1679
1680Mon Nov 23 14:36:18 1998 Nick Clifton <nickc@cygnus.com>
1681
1682 * emultempl/pe.em (after_parse): Only create an undefined entry
1683 symbol if one has been specified.
1684
16851998-11-23 DJ Delorie <dj@cygnus.com>
1686
1687 * emultempl/pe.em (gld_i386pe_after_open): call
1688 pe_process_import_defs
1689 * pe-dll.c (pe_dll_generate_def_file): calculate BASE from
1690 pe_data, only print if actually set. Print version only if
1691 set.
1692 (save_relocs): save relocs for both input and output.
1693 (make_one): support internal/external different names.
1694 (pe_dll_generate_implib): support new make_one
1695 (pe_process_import_defs): new function; handles IMPORT
1696 directives in .def files.
1697
1698Fri Nov 20 13:06:49 1998 Nick Clifton <nickc@cygnus.com>
1699
1700 * ldmisc.c (vfinfo): Cope with empty symbol names.
1701
1702Thu Nov 19 13:31:15 1998 Nick Clifton <nickc@cygnus.com>
1703
1704 * scripttempl/pe.sc: Add provision of '_end' symbol.
1705
1706Wed Nov 18 18:18:43 1998 Geoffrey Noer <noer@cygnus.com>
1707
1708 * configure.tgt: change refs from cygwin32* to cygwin*.
1709 * aclocal.m4: regenerate
1710 * configure.in: don't need to call AM_CYGWIN32.
1711 * configure: regenerate
1712
1713Mon Nov 16 22:14:07 1998 DJ Delorie <dj@cygnus.com>
1714
1715 * emultempl/pe.em (gld_i386_finish): generate import library
1716 * deffile.h: add hint member.
1717 * pe-dll.c (pe_dll_generate_implib): New function with helpers;
1718 generates the import library directly from the export table.
1719 (fill_edata): remember the actual hint for the import library.
1720
1721Sat Nov 14 14:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
1722
1723 * ld.1: Some cleanups from NOKUBI Hirotaka <hnokubi@yyy.or.jp>.
1724
1725Thu Nov 12 19:21:57 1998 Dave Brolley <brolley@cygnus.com>
1726
1727 * po/ld.pot: Regenerated.
1728 * po/POTFILES.in: Regenerated.
1729 * configure: Regenerated.
1730 * aclocal.m4: Regenerated.
1731 * Makefile.in: Regenerated.
1732
1733Wed Nov 11 18:10:15 1998 DJ Delorie <dj@cygnus.com>
1734
1735 * pe-dll.c (generate_reloc): don't output PE relocs for sections
1736 that won't be loaded.
1737
1738Wed Nov 11 13:44:54 1998 DJ Delorie <dj@cygnus.com>
1739
1740 * pe-dll.c (fill_edata): don't strip underscores
1741
1742Tue Nov 10 21:28:19 1998 DJ Delorie <dj@cygnus.com>
1743
1744 * ld.texinfo: added i386pe option summary
1745
1746Tue Nov 10 17:53:17 1998 DJ Delorie <dj@cygnus.com>
1747
1748 * pe-dll.c (process_def_file): properly note undefined exported
1749 symbols, clean up old code.
1750 (pe_dll_generate_def_file): don't crash if pe_def_file is NULL
1751 * emultempl/pe.em (gld_i386_parse_args): add
1752 (en/dis)able-stdcall-fixups
1753 (pe_fixup_stdcalls): warn about stdcall fixups
1754 (gld_i386_unrecognized_file): make exported symbols undefs so that
1755 archive members get pulled in
1756
1757Tue Nov 10 14:50:51 1998 Catherine Moore <clm@cygnus.com>
1758
1759 * scripttempl/elfd10v.sc: Add KEEP attribute to .init,
1760 .fini, .dtors and .ctors. Add .data and .text
1761 wildcards to support section garbage collection.
1762
1763Mon Nov 9 22:52:50 1998 DJ Delorie <dj@indy.delorie.com>
1764
1765 * deffilep.y: properly handle relocs with multiple def_files,
1766 cache import module names
1767
1768Mon Nov 9 22:44:58 1998 DJ Delorie <dj@cygnus.com>
1769
1770 * pe-dll.c (process_def_file): don't assume exports won't move
1771 during a realloc
1772
1773Mon Nov 9 16:41:30 1998 DJ Delorie <dj@cygnus.com>
1774
1775 * pe-dll.c: New file; direct support for PE DLLs
1776 * deffile.h: New file; direct support for PE DLLs
1777 * deffilep.y: New file; direct support for PE DLLs
1778 * emultempl/pe.em: add direct support for PE DLLs
1779 * configure.tgt: allow target-specific extra files
1780 * configure.in: allow target-specific extra files
1781 * ldlang.c (lang_add_assignment): return the assignment so that
1782 one can change the value later based on the object files (pe-dll
1783 DEF files do this)
1784 * ldint.texinfo: add section for emulation walkthrough
1785 * Makefile.am: add new files and target-specific extra files
1786 * emultempl/pe.em (gld_i386_list_options): list dll-specific
1787 options.
1788 * pe-dll.c (process_def_file): auto-export everything if
1789 nothing is otherwise exported.
1790
1791Wed Nov 4 16:39:18 1998 Nick Clifton <nickc@cygnus.com>
1792
1793 * Makefile.am: Add support for FR30 target.
1794 * configure.tgt: Add support for FR30 target.
1795 * Makefile.in: Regenerate.
1796 * emulparams/fr30.sh: New file.
1797 * scripttemp/fr30.sc: New file.
1798
1799Mon Nov 2 14:47:15 1998 Catherine Moore <clm@cygnus.com>
1800
1801 * ldmain.c (main): Don't report error for dynamic links and
1802 --gc-sections.
1803
18041998-10-26 16:05 Ulrich Drepper <drepper@cygnus.com>
1805
1806 * lexsup.c (ld_options): Change text of -O to Optimize output file".
1807 (parse_args): Set link_info.optimize based on -O argument.
1808 * ldmain.c (main): Initialize link_info.optimze to false.
1809 * ld.texinfo: Describe -O option.
1810 * ld.1: Likewise.
1811
1812Mon Oct 12 14:29:56 1998 Nick Clifton <nickc@cygnus.com>
1813
1814 * scripttempl/v850.sc: Move .sbss and .scommon sections into their
1815 own segment, so that they can be next to the .bss section and so
1816 initialised by the same piece of code.
1817
1818Fri Oct 9 15:59:52 1998 Catherine Moore <clm@cygnus.com>
1819
1820 * scripttempl/elf.sc: Merge .sdata.* etc sections.
1821 * ldctor.c (ldctor_build_sets): Set SEC_KEEP for
1822 ctor sections.
1823
1824Mon Oct 5 09:40:43 1998 Catherine Moore <clm@cygnus.com>
1825
1826 * ldmain.c (main): Error if --gc-sections and
1827 dyanmic linking.
1828 * scripttempl/v850.sc: Add KEEP attribute to .init,
1829 .fini, .dtors and .ctors. Add .data and .text
1830 wildcards to support section garbage collection.
1831
1832Wed Sep 30 11:19:15 1998 Nick Clifton <nickc@cygnus.com>
1833
1834 * scripttempl/v850.sc: Rename .call_table section to
1835 .call_table_data and create a new section called
1836 .call_table_text.
1837
1838Sun Sep 20 00:43:26 1998 Ian Lance Taylor <ian@cygnus.com>
1839
1840 * scripttempl/elf.sc: Add alignment at the end of the .bss
1841 section, so that it is included in the memsize of the segment.
1842
1843Fri Sep 18 13:42:42 1998 Catherine Moore <clm@cygnus.com>
1844
1845 * emultempl/elf32.em (gld_place_orphan): Don't process for
1846 sections with SEC_EXCLUDE flag.
1847
1848Fri Sep 4 09:24:02 1998 Nick Clifton <nickc@cygnus.com>
1849
1850 * emulparams/d30velf.sh (TEXT_SIZE): Increased to 2000K.
1851 (DATA_SIZE): Increased to 2000K.
1852
1853Thu Sep 3 17:30:58 1998 Richard Henderson <rth@cygnus.com>
1854
1855 * emulparams/d10velf.sh (TEMPLATE_NAME): Use elf32.
1856
1857Mon Aug 31 01:06:00 1998 Catherine Moore <clm@cygnus.com>
1858
1859 * Makefile.am: Change armelf.sc to elf.sc
1860 * Makefile.in: Regenerate.
1861
1862Mon Aug 31 11:12:04 1998 Catherine Moore <clm@cygnus.com>
1863
1864 * emulparams/armelf.sh: Change SCRIPT_NAME to
1865 elf. Change TEXT_START_ADDR to 0x8000. Define
1866 OTHER_TEXT_SECTIONS, OTHER_BSS_SYMBOLS and
1867 OTHER_BSS_END_SYMBOLS.
1868 * scripttempl/elf.sc: Modify to use
1869 OTHER_BSS_END_SYMBOLS.
1870 * scripttempl/elfarm.sc: Remove file.
1871
1872Tue Aug 18 12:05:34 1998 Catherine Moore <clm@cygnus.com>
1873
1874 * emultempl/armelf.em (gld_armelf_before_allocation):
1875 Add bfd_ prefix to elf32_arm_process_before_allocation
1876 and elf32_arm_allocate_interworking_sections.
1877 (gld_armelf_after_open): Add bfd_ prefix to
1878 elf32_arm_get_bfd_for_interworking.
1879
1880Fri Aug 14 15:34:29 1998 Ian Lance Taylor <ian@cygnus.com>
1881
1882 * Makefile.am: Rebuild dependencies.
1883 * Makefile.in: Rebuild.
1884
1885 * ldgram.y: Include "ldctor.h".
1886 (statement): Accept SORT around CONSTRUCTORS.
1887 * ldctor.c: Include <ctype.h>.
1888 (constructors_sorted): New global variable.
1889 (ctor_prio, ctor_cmp): New static functions.
1890 (ldctor_build_sets): Sort constructors if requested.
1891 * ldctor.h (constructors_sorted): Declare.
1892 * ldlang.c (print_statement): Print sorted CONSTRUCTORS
1893 correctly.
1894 * scripttempl/elf.sc: Add sort around CONSTRUCTORS.
1895 * ld.texinfo (Output Section Keywords): Document SORT
1896 (CONSTRUCTORS).
1897
1898Thu Aug 13 12:20:39 1998 Catherine Moore <clm@cygnus.com>
1899
1900 * emulparams/armelf.sh: Define TEMPLATE_NAME to armelf.
1901 * scripttempl/elfarm.sc: Include .glue_7t and .glue7
1902 sections.
1903 * emultempl/armelf.em: New file.
1904
1905Thu Aug 13 12:52:45 1998 H.J. Lu <hjl@gnu.org>
1906
1907 * Makefile.am (ld.dvi): Use " instead of ' for MAKEINFO.
1908 * Makefile.in: Rebuild.
1909
1910Tue Aug 11 16:17:01 1998 Catherine Moore <clm@cygnus.com>
1911
1912 * scripttempl/elfarm.sc: Change text start address
1913 back to zero.
1914
1915Tue Aug 11 10:01:12 1998 Jeffrey A Law (law@cygnus.com)
1916
1917 * emulparms/mn10200.sh (MAX_PAGESIZE): Define to 1.
1918 * emulparms/mn10300.sh (MAX_PAGESIZE): Define to 1.
1919
1920Sun Aug 9 20:31:27 1998 Catherine Moore <clm@cygnus.com>
1921
1922 * scripttempl/elfarm.sc: Set text start address to
1923 0x8000. Add __bss_end definition.
1924
1925Sat Aug 1 11:47:37 1998 Catherine Moore <clm@cygnus.com>
1926
1927 * scripttempl/elfarm.sc: New file.
1928 * emulparams/armelf.sh: Set SCRIPT_NAME to elfarm.
1929
1930Fri Jul 31 15:56:16 1998 Catherine Moore <clm@cygnus.com>
1931
1932 * emulparams/armelf.sh: New file.
1933 * configure.tgt: Recognize thumb-elf and arm-elf.
1934 * Makefile.am (earmelf.o): New.
1935 * Makefile.in: Rebuild.
1936
1937Fri Jul 24 12:00:57 1998 Ian Lance Taylor <ian@cygnus.com>
1938
1939 * Makefile.am (install-exec-local): Don't remove the file before
1940 checking whether $(bindir) == $(tooldir)/bin. From Maciej
1941 W. Rozycki <macro@ds2.pg.gda.pl>.
1942 * Makefile.in: Rebuild.
1943
1944 * configure.tgt: Recognize h8[35]00*-coff* as well as -hms*.
1945
1946Thu Jul 23 11:15:12 1998 Ian Lance Taylor <ian@cygnus.com>
1947
1948 * scripttempl/aout.sc: If ALIGNMENT is defined, use it to set
1949 alignment of end symbol.
1950 * scripttempl/elf.sc: Likewise.
1951 * emulparams/sun4.sh (ALIGNMENT): Define.
1952 * emulparams/elf32_sparc.sh (ALIGNMENT): Define.
1953 * ldint.texinfo (emulation parameters): Document ALIGNMENT.
1954
1955 * lexsup.c (parse_args): Add missing break statement.
1956
1957 * ldlang.c (lang_gc_sections_1): Add default case to switch to
1958 avoid warnings.
1959
1960Tue Jul 14 15:42:17 1998 Richard Henderson <rth@cygnus.com>
1961
1962 * configure.tgt (i?86-*-beos{pe,elf,}*): Recognize.
1963 * Makefile.am (ei386beos.o): New.
1964 * emulparams/i386beos.sh: New file.
1965 * emultempl/beos.em, scripttempl/i386beos.sc: New file.
1966
1967Tue Jul 14 15:35:42 1998 Richard Henderson <rth@cygnus.com>
1968
1969 * lexsup.c: New option --version-exports-section.
1970 * ld.h (struct args_type): Add version_exports_section.
1971 * ldlang.c (lang_do_version_exports_section): New function.
1972 (lang_process): Call it.
1973
1974Mon Jul 13 13:20:23 1998 Steve Chamberlain <sac@transmeta.com>
1975
1976 * ldlex.l: Accept ASSERT.
1977 * ldgram.y (exp): Add ASSERT_K case.
1978 * ldexp.h (node_type): Add etree_assert to node_class enum.
1979 (etree_type): Add assert_s field.
1980 (exp_assert): Declare.
1981 * ldexp.c (exp_fold_tree): Handle etree_assert.
1982 (exp_assert): New function.
1983 (exp_print_tree): Handle etree_assert.
1984 * ld.texinfo (Miscellaneous Commands): Document ASSERT.
1985
1986Wed Jul 8 14:03:12 1998 Ian Lance Taylor <ian@cygnus.com>
1987
1988 * ldgram.y: Change MAX to MAX_K and MIN to MIN_K, to avoid
1989 conflicts with system header files. Change all uses.
1990
1991 * Makefile.am (MAINTAINERCLEANFILES): Define.
1992 * Makefile.in: Rebuild.
1993
1994Tue Jul 7 18:03:22 1998 Ian Lance Taylor <ian@cygnus.com>
1995
1996 * Makefile.am (ldver.texi): New target.
1997 (ld.info, ld.dvi): Depend upon ldver.texi.
1998 * ld.texinfo: Include ldver.texi. Mention version number on title
1999 page and in top node.
2000 * Makefile.in: Rebuild.
2001
2002Mon Jul 6 14:55:13 1998 Ian Lance Taylor <ian@cygnus.com>
2003
2004 * configure.tgt (i[3456]86-*-solaris*): New target.
2005
2006Fri Jul 3 14:19:06 1998 Ian Lance Taylor <ian@cygnus.com>
2007
2008 * ldlang.c (wild_section): Don't get an assertion failure if the
2009 section is discarded.
2010
2011 * scripttempl/pe.sc: Use SORT to sort sections appropriately.
2012 * emultempl/pe.em (sort_by_file_name): Remove.
2013 (sort_by_section_name): Remove.
2014 (sort_sections_1, sort_sections): Remove.
2015 (gld_${EMULATION_NAME}_before_allocation): Don't call
2016 sort_sections.
2017 (hold_section, hold_section_name): New static variables.
2018 (hold_use, hold_text, hold_rdata, hold_data, hold_bss): Likewise.
2019 (gld_${EMULATION_NAME}_place_orphan): Rewrite. Look for a good
2020 place to put the section. Align the section. Sort the input
2021 sections by name.
2022 (gld_${EMULATION_NAME}_place_section): New static function.
2023
2024 * ldlang.c (wild_sort): When sorting by file name, sort by archive
2025 name first.
2026
2027 * emultempl/pe.em (set_pe_subsystem): Don't call
2028 ldlang_add_undef.
2029 (gld_${EMULATION_NAME}_after_parse): New static function.
2030 (ld_${EMULATION_NAME}_emulation): Use new after_parse function
2031 rather than after_parse_default.
2032
2033 * ldgram.y (extern_name_list): Do not require symbols to be
2034 separated by commas.
2035 (ifile_p1): Add EXTERN.
2036 * ldlex.l: Accept EXTERN in BOTH and SCRIPT mode as well as MRI
2037 mode.
2038 * ld.texinfo (Options): Mention that EXTERN is equivalent to -u.
2039 (Miscellaneous Commands): Document EXTERN.
2040
2041Wed Jul 1 19:40:34 1998 Richard Henderson <rth@cygnus.com>
2042
2043 * ld.h (args_type): Add gc_sections.
2044 * ldgram.y (ldgram_had_keep, KEEP): New.
2045 (input_section_spec_no_keep): Rename from old input_section_spec.
2046 (input_section_spec): New. Recognize KEEP.
2047 * ldlang.c (wild_section): Handle keep sections.
2048 (lang_gc_wild_section, lang_gc_wild_file, lang_gc_wild): New.
2049 (lang_gc_sections_1, lang_gc_sections): New.
2050 (lang_process): Invoke lang_gc_sections.
2051 (lang_add_wild): Add keep argument. Update all callers.
2052 * ldlang.h (lang_wild_statement_struct): Add keep_sections.
2053 * ldlex.l (KEEP): Match it.
2054 * ldmain.c (main): Error on -r and --gc-sections.
2055 * lexsup.c: Add --gc-sections.
2056
2057 * scripttempl/elf.sc: Merge .text.* etc sections appropriately.
2058 Mark startup sections with KEEP.
2059 * scripttempl/elfppc.sc: Likewise.
2060
2061 * ld.texinfo: Update for --gc-sections and KEEP.
2062
2063Wed Jul 1 15:21:20 1998 Ian Lance Taylor <ian@cygnus.com>
2064
2065 From Peter Jordan <pjordan@chla.usc.edu>:
2066 * scripttempl/i386go32.sc: Correct constructor handling for -u.
2067
2068Tue Jun 23 15:17:27 1998 Ian Lance Taylor <ian@cygnus.com>
2069
2070 * Makefile.am (install-data-local): Make ldscripts subdirectory.
2071 * Makefile.in: Rebuild.
2072
2073Tue Jun 23 15:17:04 1998 Mike Stump <mrs@wrs.com>
2074
2075 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
2076 with the program transform name.
2077 * Makefile.in: Rebuild.
2078
2079Sun Jun 21 23:55:16 1998 Jeffrey A Law (law@cygnus.com)
2080
2081 * ld.texinfo: Note that -relax may make symbolic debugging
2082 impossible on some platforms.
2083
2084Tue Jun 16 12:51:13 1998 Geoff Keating <geoffk@ozemail.com.au>
2085
2086 * Makefile.am (Makefile): Remove target.
2087 (config.status): New target.
2088 * Makefile.in: Rebuild.
2089
2090 * configure.host (powerpc*-*-linux-gnu*): New host.
2091
2092Fri Jun 12 17:38:07 1998 Doug Evans <devans@seba.cygnus.com>
2093
2094 * scripttempl/elf.sc (INPUT_FILES): Optional INPUT spec.
2095
2096 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Change top of
2097 stack to 8MB.
2098
2099Fri Jun 12 19:33:17 1998 Ian Lance Taylor <ian@cygnus.com>
2100
2101 * Makefile.am (HFILES): Remove config.h.
2102 (EMULATION_OFILES, POTFILES): Move patch of May 14 from
2103 Makefile.in to Makefile.am.
2104 (earmcoff.c): Depend upon armcoff.em, not generic.em.
2105 * po/Make-in (all-yes): Correct misspelling in $(PACKAGE).
2106 ($(srcdir)/$(PACKAGE).pot): Pass -C to $(XGETTEXT).
2107 * Makefile.in, po/POTFILES.in, po/ld.pot: Rebuild.
2108
2109Fri Jun 12 13:43:17 1998 Tom Tromey <tromey@cygnus.com>
2110
2111 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
2112 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2113
2114Tue Jun 9 09:36:48 1998 Nick Clifton <nickc@cygnus.com>
2115
2116 * ldlang.c (lang_finish): Add CONST type modifier to declaration
2117 of 'send'.
2118
2119Fri Jun 5 18:19:59 1998 Ian Lance Taylor <ian@cygnus.com>
2120
2121 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
2122 config.has_shared to true.
2123 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
2124 Likewise.
2125 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
2126 Likewise.
2127
2128Tue Jun 2 12:55:03 1998 Ian Lance Taylor <ian@cygnus.com>
2129
2130 * ldlang.c (lang_finish): If the entry symbol is not found, try
2131 parsing it as a number.
2132 * ld.texinfo (Options): Document this.
2133
2134Mon Jun 1 14:01:20 1998 Ian Lance Taylor <ian@cygnus.com>
2135
2136 * ld.texinfo (Input Section Wildcards): Document SORT keyword.
2137
2138Mon May 18 12:42:53 1998 Doug Evans <devans@canuck.cygnus.com>
2139
2140 * ld.h (ld_config_type): New member has_shared.
2141 * ldmain.c (main): Initialize it.
2142 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it.
2143 * lexsup.c (parse_args): Treat -shared as error if not supported.
2144
2145Mon May 18 13:14:43 1998 Ian Lance Taylor <ian@cygnus.com>
2146
2147 From Jason Merrill <jason@cygnus.com>:
2148 * ldlang.c (wild_sort): Correct order of sort.
2149 * scripttempl/elf.sc: Put *crtbegin.o before other .ctors and
2150 .dtors.
2151 * scripttempl/elfd10v.sc: Likewise.
2152 * scripttempl/elfd30v.sc: Likewise.
2153 * scripttempl/elfppc.sc: Likewise.
2154
2155Fri May 15 00:22:35 1998 Ian Lance Taylor <ian@cygnus.com>
2156
2157 * ldlex.l: Recognize keyword SORT.
2158 * ldgram.y (current_file): Change to struct wildcard_spec.
2159 (%union): Add new fields cname and wildcard.
2160 (wildcard_name, wildcard_spec): New nonterminals.
2161 (file_NAME_list): Use wildcard_spec.
2162 (input_section_spec): Change current_file usage.
2163 * ld.h (struct wildcard_spec): Define.
2164 * ldlang.h (lang_wild_statement_struct): Add new fields
2165 sections_sorted and filenames_sorted.
2166 (lang_add_wild): Update declaration.
2167 * ldlang.c (wild_sort): New static function.
2168 (wild_section): Use wild_sort.
2169 (print_wild_statement): Print sorting information.
2170 (lang_add_wild): Add new parameters sections_sorted and
2171 filenames_sorted. Change all callers.
2172 * mri.c (mri_draw_tree): Update calls to lang_add_wild.
2173 * scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
2174 * scripttempl/elfd10v.sc: Likewise.
2175 * scripttempl/elfd30v.sc: Likewise.
2176 * scripttempl/elfppc.sc: Likewise.
2177
2178Thu May 14 18:39:16 1998 Richard Henderson <rth@cygnus.com>
2179
2180 * emulparams/m32relf.sh (TEMPLATE_NAME): Define.
2181
2182Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
2183
2184 * ldemul.h: Add new prototype: ldemul_list_emulation_options.
2185 (ld_emulation_xfer_struct): Add new field: list_options.
2186 * ldemul.c (ldemul_list_options): New function. Call the
2187 list_options field of the ld_emulation_xfer_struct for each
2188 supported emulation, if such a function is present.
2189 * lexsup.c (help): Call ldemul_list_emulation_options.
2190 * emultempl/pe.em (gld_<>_list_options): New function. Describe
2191 the pe emulation specific command line options.
2192 * emultempl/armcoff.em (gld<>_list_options): New function.
2193 Describe the armcoff emulation specific command line options.
2194
2195 * emultempl/pe.em: Add a new command line option:
2196 --support-old-code.
2197 * emultempl/armcoff.em: Ditto.
2198 * ld.texinfo: Document the --support-old-code option.
2199
2200 * Makefile.in: Add emulation files for POTFILES.in target.
2201 * emultempl/pe.em: Internationalise suitable strings.
2202 * emultempl/armcoff.em: Internationalise suitable strings.
2203 * po/POTFILES.in: Rebuilt.
2204
2205Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com)
2206
2207 * po/Make-in (install-info): New target.
2208
2209Tue Apr 28 19:18:30 1998 Tom Tromey <tromey@cygnus.com>
2210
2211 * ldmain.c (main): Conditionally call setlocale.
2212 * ld.h: Include <locale.h> if HAVE_LOCALE_H.
2213 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
2214
2215Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
2216
2217 * configure.in: Change version number to 2.9.4
2218 * configure: Rebuild.
2219
2220 * ld.texinfo (Options) [-rpath-link]: Mention ld.so.conf.
2221
2222 Based on patch from H.J. Lu <hjl@gnu.org>:
2223 * emultempl/elf32.em (global_vercheck_needed): New file static
2224 variable.
2225 (global_vercheck_failed): New file static variable.
2226 (gld${EMULATION_NAME}_after_open): Check for shared libraries
2227 twice, once with force set to 0 and once with it set to 1.
2228 (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter.
2229 Change all callers.
2230 (gld${EMULATION_NAME}_search_needed): Likewise.
2231 (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check
2232 whether the libraries needs any incompatible versions.
2233 (gld${EMULATION_NAME}_vercheck): New static function.
2234
2235Wed Apr 22 16:01:35 1998 Tom Tromey <tromey@cygnus.com>
2236
2237 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
2238
2239Wed Apr 22 12:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
2240
2241 * Makefile.am (check-DEJAGNU): Add $(INTLLIBS) to LIBIBERTY when
2242 invoking runtest.
2243 * Makefile.in: Rebuild.
2244
2245 * lexsup.c (parse_args): Change -l options into --library options
2246 to avoid confusion between -li and -library.
2247
2248 * ld.texinfo (MEMORY): Clarify use of >REGION.
2249
2250Tue Apr 21 23:12:40 1998 Tom Tromey <tromey@scribbles.cygnus.com>
2251
2252 * Many files: Added gettext invocations around user-visible
2253 strings.
2254 * ld.h: Added gettext-related includes and defines.
2255 * ldmain.c: Call setlocale, bindtextdomain, textdomain.
2256 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
2257 HAVE_LC_MESSAGES): Define.
2258 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
2259 po/Makefile. Use AM_PROG_LEX.
2260 (TDIRS): AC_SUBST early on, to avoid having value split when it
2261 happens to cross line 90 of the generated sed script.
2262 * Makefile.am (SUBDIRS): New macro.
2263 (POTFILES): Likewise.
2264 (po/POTFILES.in): New target.
2265 (ld_new_LDADD): Added INTLLIBS.
2266 (ld_new_DEPENDENCIES): Added INTLDEPS.
2267 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
2268
2269Tue Apr 21 23:07:07 1998 Ian Lance Taylor <ian@cygnus.com>
2270
2271 * ld.texinfo (Simple Example): Rewrite a few things as suggested
2272 by Nick Clifton <nickc@cygnus.com>.
2273 (PROVIDE): Likewise.
2274
2275Tue Apr 21 09:55:06 1998 Nick Clifton <nickc@cygnus.com>
2276
2277 * emultempl/pe.em: Rename external arm interworking functions
2278 to conform to BFD naming conventions. Add code to _after_open()
2279 function to obtain a bfd for use by the interworking code.
2280
2281 * emultempl/armcoff.em: Rename external arm interworking functions
2282 to conform to BFD naming conventions. Add new _after_open()
2283 function to obtain a bfd for use by the interworking code.
2284
2285Sun Apr 19 19:23:09 1998 Richard Henderson <rth@cygnus.com>
2286
2287 * ldlang.c (lang_size_sections) [case lang_assignment_statement_enum]:
2288 Update dot and the default memory section even when relaxing.
2289
2290Sat Apr 18 18:41:12 1998 Richard Henderson <rth@cygnus.com>
2291
2292 * ldlang.c (lang_one_common): Manipulate the section's cooked size
2293 rather than its raw size.
2294
2295Tue Apr 7 13:35:29 1998 H.J. Lu <hjl@gnu.org>
2296
2297 * configure.in (TESTBFDLIB): New. Defined and substituted.
2298 * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@.
2299 * configure, Makefile.in: Rebuild.
2300
2301Mon Apr 6 15:33:39 1998 Ian Lance Taylor <ian@cygnus.com>
2302
2303 * Makefile.am (ld.info): Invoke makeinfo with -I options directly
2304 rather than relying on default rule. Don't depend upon
2305 bfdsumm.texi.
2306 (ld.dvi): Likewise.
2307 (bfdsumm.texi): Remove target.
2308 (CLEANFILES): Take bfdsumm.texi out of value.
2309 * Makefile.in: Rebuild.
2310
2311Sun Apr 5 13:07:57 1998 Ian Lance Taylor <ian@cygnus.com>
2312
2313 * scripttempl/pe.sc: Use shell variables to avoid depending upon
2314 how $ is handled when expanding a shell substitution.
2315
2316Fri Apr 3 00:56:50 1998 Ian Lance Taylor <ian@cygnus.com>
2317
2318 * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum.
2319 (DISTCLEANFILES): Add site.exp and site.bak.
2320 * Makefile.in: Rebuild.
2321
2322 * configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
2323 rather than in a shell variable and using AC_SUBST.
2324 * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs.
2325 (distclean-local): New target.
2326 * configure, Makefile.in: Rebuild.
2327
2328 * ld.texinfo: Completely rewrite linker script documentation.
2329
2330Mon Mar 30 12:47:33 1998 Ian Lance Taylor <ian@cygnus.com>
2331
2332 * configure.in: Set version to 2.9.1.
2333 * configure: Rebuild.
2334
2335 * Branched binutils 2.9.
2336
2337Sat Mar 28 16:48:19 1998 Ian Lance Taylor <ian@cygnus.com>
2338
2339 * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir.
2340 (mostlyclean-local): New target to remove tmpdir.
2341 * Makefile.in: Rebuild.
2342
2343 Fix some gcc -Wall warnings:
2344 * ldcref.c (output_cref): Add casts to avoid warnings.
2345 * ldfile.c (ldfile_add_arch): Likewise.
2346 * ldlang.c (lang_leave_overlay_section): Likewise.
2347 * lexsup.c (OPTION_COUNT): Likewise.
2348 (parse_args): Likewise.
2349 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan):
2350 Likewise.
2351 * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise.
2352 * ldlang.c (lang_check): Initialize variables to avoid warnings.
2353 * ldwrite.c (build_link_order): Likewise.
2354 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise.
2355 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation):
2356 Remove unused variables.
2357
2358 * Makefile.am (MOSTLYCLEANFILES): Correct name (was
2359 MOSTCLEANFILES).
2360 * Makefile.in: Rebuild.
2361
2362Fri Mar 27 16:39:25 1998 Ian Lance Taylor <ian@cygnus.com>
2363
2364 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put
2365 ARM code inside ifdef TARGET_IS_armpe.
2366
2367Wed Mar 25 11:34:13 1998 Ian Lance Taylor <ian@cygnus.com>
2368
2369 Based on patch from H.J. Lu <hjl@gnu.org>:
2370 * Makefile.am (LDDISTSTUFF): New variable.
2371 (diststuff): New target.
2372 * Makefile.in: Rebuild.
2373
2374 * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when
2375 relocating.
2376
2377Tue Mar 24 15:59:29 1998 Nick Clifton <nickc@cygnus.com>
2378
2379 * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to
2380 hold Arm/Thumb stubs.
2381
2382 * emultempl/pe.em (gld_pe_before_allocation): Call
2383 arm_process_before_allocation (for ARM/Thumb targets) in order to
2384 gather interworking stb information.
2385
2386Mon Mar 23 18:54:15 1998 Joel Sherrill <joel@OARcorp.com>
2387
2388 * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF.
2389
2390Fri Mar 20 19:17:13 1998 Ian Lance Taylor <ian@cygnus.com>
2391
2392 * aclocal.m4, configure: Rebuild with libtool 1.2.
2393
2394Thu Mar 19 14:54:45 1998 Geoffrey Noer <noer@cygnus.com>
2395
2396 * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy
2397 section to avoid copying certain data on fork. The linker used to
2398 include this between __data_start__ and __data_end__, but that
2399 breaks building the cygwin32 dll. The fix is to rename the
2400 section ".data_cygwin_nocopy" and explictly include it after
2401 __data_end__.
2402
2403Wed Mar 18 09:42:24 1998 Nick Clifton <nickc@cygnus.com>
2404
2405 * configure.tgt (targ_extra_emuls): Add thumb-pe target.
2406
2407Sun Mar 8 23:34:14 1998 Stan Cox <scox@equinox.cygnus.com>
2408
2409 * configure.tgt (sparclite*-*-elf): Added.
2410
2411Mon Mar 2 19:24:08 1998 Michael Meissner <meissner@cygnus.com>
2412
2413 * ldlang.c (lang_size_sections): If the default memory region is
2414 *default*, see if there is a memory region that could be used.
2415
2416Thu Feb 26 17:09:53 1998 Michael Meissner <meissner@cygnus.com>
2417
2418 * scripttempl/elfd30v.sc: Add support for .eit_v section and put
2419 it at 0xfffff020.
2420 * emulparams/d30v{elf,_o,_e}.sh: Ditto.
2421
2422Mon Feb 23 17:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
2423
2424 * emultempl/pe.em (sort_sections): Permit the wildcard to include
2425 a trailing '*' when sorting grouped sections.
2426 * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only
2427 include them when relocating.
2428
2429Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
2430
2431 * Makefile.am (install-exec-local): Install properly when ln
2432 fails or tooldir == prefix.
2433
2434Fri Feb 13 15:24:06 1998 Ian Lance Taylor <ian@cygnus.com>
2435
2436 * Makefile.am (AUTOMAKE_OPTIONS): Define.
2437 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
2438
2439Thu Feb 12 14:10:44 1998 Ian Lance Taylor <ian@cygnus.com>
2440
2441 * scripttempl/elf.sc: Align the _end symbol according to the ELF
2442 format size. From Gordon W. Ross <gwr@mc.com>.
2443
2444 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
2445 * configure.host (alpha*-*-netbsd*): New host.
2446 * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New
2447 targets.
2448
2449 * lexsup.c (help): Update bug-gnu-utils address.
2450 * ld.texinfo (Bug Reporting): Likewise.
2451
2452Tue Feb 10 18:05:56 1998 Ian Lance Taylor <ian@cygnus.com>
2453
2454 * ldlang.c (lang_size_sections): Warn if some memory regions were
2455 defined, but a loadable section is going into the default memory
2456 region.
2457
2458Tue Feb 10 16:17:20 1998 H.J. Lu <hjl@gnu.org>
2459
2460 * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix.
2461
2462Tue Feb 10 15:09:45 1998 Ian Lance Taylor <ian@cygnus.com>
2463
2464 * Makefile.am (Makefile): Add target, for dependencies on
2465 configure.host and configure.tgt.
2466 * configure.host, configure.tgt: Change -linux* to -linux-gnu*.
2467 * Makefile.in: Rebuild.
2468
2469Mon Feb 9 13:44:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
2470
2471 * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
2472
2473 * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section
2474 moved to 0x00.....4.
2475
2476Sat Feb 7 15:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
2477
2478 * configure, aclocal.m4: Rebuild with new libtool.
2479
2480Thu Feb 5 12:16:11 1998 Ian Lance Taylor <ian@cygnus.com>
2481
2482 * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections.
2483 From Thomas de Lellis <tdel@wrs.com>.
2484
2485 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
2486
2487Wed Feb 4 13:02:32 1998 Ian Lance Taylor <ian@cygnus.com>
2488
2489 * Makefile.am (ld_new_LDADD): Remove @LEXLIB@.
2490 * Makefile.in: Rebuild.
2491
2492Mon Feb 2 19:34:54 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
2493
2494 Add tms320c30 support:
2495 * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets.
2496 * emulparams/tic30aout.sh: New file.
2497 * emulparams/tic30coff.sh: New file.
2498 * scripttempl/tic30aout.sc: New file.
2499 * scripttempl/tic30coff.sc: New file.
2500 * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and
2501 etic30coff.o.
2502 (etic30aout.c, etic30coff.c): New targets.
2503 * Makefile.in: Rebuild.
2504
2505Mon Feb 2 14:10:59 1998 Ian Lance Taylor <ian@cygnus.com>
2506
2507 * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to
2508 accept either ld.so or ld-linux.so.
2509
2510Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
2511
2512 * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name
2513 to transform.
2514 * Makefile.in: Regenerate.
2515
2516Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
2517
2518 * scripttempl/elfppc.sc: Put .dynsbss in .sbss.
2519
2520Fri Jan 30 11:43:49 1998 H.J. Lu <hjl@gnu.ai.mit.edu>
2521
2522 * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets.
2523 * Makefile.in: Rebuild.
2524
2525Thu Jan 29 16:04:21 1998 Mumit Khan <khan@xraylith.wisc.edu>
2526
2527 * ldfile.c (slash): Set to backslash if _WIN32 but not
2528 __CYGWIN32__.
2529 (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a
2530 leading backslash or a leading x: as an absolute path.
2531 (ldfile_find_command_file): Use slash rather than / when
2532 generating name to try.
2533 * lexsup.c (PATH_SEPARATOR): Define.
2534 (set_default_dirlist): Use PATH_SEPARATOR rather than ':'.
2535
2536Wed Jan 28 14:06:30 1998 Richard Henderson <rth@cygnus.com>
2537
2538 * emulparams/elf64_sparc.sh (ELFSIZE): 64
2539 (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later.
2540 (DATA_PLT): Needed by v9 abi.
2541
2542Wed Jan 28 16:37:27 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
2543
2544 * configure.tgt (i[3456]86-*-mingw32*): New entry.
2545
2546Wed Jan 28 15:51:58 1998 Ian Lance Taylor <ian@cygnus.com>
2547
2548 * scripttempl/elf.sc: Only include linkonce sections in final
2549 sections when relocating.
2550
2551Wed Jan 28 14:10:01 1998 Ian Lance Taylor <ian@cygnus.com>
2552
2553 * ld.texinfo (Options): Add a brief description of the types of
2554 information included in a link map.
2555
2556 * ld.texinfo (Options): Mention LDEMULATION in description of -m.
2557 (Environment): Mention LDEMULATION.
2558
2559 * ld.texinfo (Options): Clarify --export-dynamic a bit.
2560
2561Thu Jan 22 16:07:23 1998 Richard Henderson <rth@cygnus.com>
2562
2563 * ldlex.l (<SCRIPT>{WILDCHAR}*): Take care for the comments this
2564 pattern could match.
2565
2566Wed Jan 21 22:26:46 1998 Ian Lance Taylor <ian@cygnus.com>
2567
2568 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): When doing
2569 a relocateable link, set the image base to 0, and don't define the
2570 various symbols.
2571 * emulparams/i386pe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
2572 * scripttempl/pe.sc: Swap the .data and .bss sections so that
2573 .data comes first. If doing a relocateable link, use
2574 RELOCATEABLE_OUTPUT_FORMAT if it is defined, and start the
2575 sections at 0, and don't define any symbols.
2576
2577 * ldlang.c (lang_memory_default): Correct parenthisization of
2578 expression.
2579
2580Wed Jan 21 21:20:32 1998 Manfred Hollstein <manfred@s-direktnet.de>
2581
2582 * emultempl/sunos.em: Don't include sys/types.h and sys/stat.h
2583 here; they are included already via sysdep.h.
2584
2585Tue Jan 6 13:40:02 1998 Richard Henderson <rth@cygnus.com>
2586
2587 * scripttempl/i960.sc: Don't explicitly set .data and .bss start.
2588
2589Fri Jan 2 20:15:37 1998 Michael Meissner <meissner@cygnus.com>
2590
2591 * ldgram.y (attributes_opt): Pass region pointer to
2592 lang_set_flags, not &region->flags.
2593
2594 * ldlang.c (lang_memory_default): New function to figure out a
2595 default memory region for a section if it was not specified.
2596 (lang_memory_region_lookup): Zero flags, not_flags field.
2597 (lang_map{,_flags}): Print attribute flags in memory map.
2598 (lang_size_sections): Call lang_memory_default to get default
2599 memory region.
2600 (lang_set_flags): Implement attribute flags for real. Take new
2601 argument to give the flags we are to skip for this region.
2602
2603 * ldlang.h (memory_region_struct): Add not_flags field, make both
2604 flags fields flagword type.
2605 (lang_output_section_state): Make flags field flagword type.
2606 (lang_set_flags): Update prototype to match new calling sequence.
2607 (lang_memory_region_default): Add prototype.
2608
2609 * emulparams/d30v{_e,_o,elf}.sh ({TEXT,DATA,EMEM}_DEF_SECTION):
2610 Define whether or not the region gets default sections, and if so,
2611 what sections.
2612
2613 * scripttempl/elfd30v.sc (MEMORY): Set up which of the regions get
2614 default sections.
2615
2616Thu Jan 1 22:58:04 1998 Michael Meissner <meissner@cygnus.com>
2617
2618 * scripttempl/elfd30v.sc (.eh_frame): Link into the data section.
2619
2620Thu Jan 1 18:04:51 1998 Jeffrey A Law (law@cygnus.com)
2621
2622 * scripttempl/h8300h.sc: Fix typo.
2623 * scripttempl/h8300s.sc: Likewise.
2624
2625Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
2626
2627 * ldexp.c (fold_name): Don't crash if the symbol is defined in a
2628 section with no output section, such as a shared library section.
2629
2630Wed Dec 17 12:14:11 1997 Ian Lance Taylor <ian@cygnus.com>
2631
2632 * lexsup.c (parse_args): Keep track of where we are in the option
2633 parsing before calling ldemul_parse_args, so that we don't call it
2634 multiple times on the same argument and confuse the getopt
2635 internals.
2636
2637Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
2638
2639 * configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
2640 d30velf_o to d30v_o to work in DOS environments.
2641 * Makefile.{am,in}: Ditto.
2642
2643 * emulparams/d30v_{o,e}: Rename from d30velf_{o,e}.
2644 * emulparams/d30velf_{o,e}: Deleted.
2645
2646Wed Dec 10 17:40:08 1997 Nick Clifton <nickc@cygnus.com>
2647
2648 * scripttempl/armcoff.sc: Add glue sections (code taken from Arm
2649 branch).
2650
2651 * emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
2652
2653 * emultempl/armcoff.em: New file, imported from Arm branch.
2654
2655Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
2656
2657 * scripttempl/elfd30v.sc: Add .rel and .rela sections for all
2658 defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
2659 external memory sections for rodata. Delete .string, .rodata1,
2660 and .data1 sections.
2661
2662Tue Dec 9 15:28:17 1997 Michael Meissner <meissner@cygnus.com>
2663
2664 * Makefile.am: Add Oct 23 changes to Makefile.in here.
2665
2666 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
2667
2668 * Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
2669
2670 * Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
2671 (ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
2672 external memory.
2673 (ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
2674 onchip memory.
2675
2676 * emulparams/d30velf.sh (STACK_START_ADDR): Top of default
2677 stack.
2678 ({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
2679 ({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
2680 .bss should go in.
2681
2682 * emulparams/d30velf_{e,o}.sh: New files to be explicit whether
2683 .text, .data, etc go in external memory or onchip memory.
2684
2685 * configure.tgt (d30v-*-*ext*): New configuration to default
2686 .text, .data, etc. in external memory.
2687 (d30v-*-*onchip*): New configuration to default .text, .data,
2688 etc. in onchip memory.
2689 (d30v-*-*): Add d30velf_{e,o} emulations.
2690
2691 * scripttempl/elfd30v.sc: Allow .text, .data, .bss to be put in
2692 either the onchip text/data areas or the external memory area.
2693 (MEMORY): Get sizes from d30velf.sh.
2694 (.e{data,text,bss}): Put sections in the external memory region.
2695 (.stext): Put section in the onchip text region.
2696 (.s{data,bss}): Put sections in the onchip data region.
2697 (__stack): Assign from ${STACK_START_ADDR}.
2698 (.text): Put in ${TEXT_MEMORY} memory region.
2699 (.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
2700 region.
2701 (.bss): Put in ${BSS_MEMORY} memory region.
2702
2703Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
2704
2705 * configure.tgt (targ_extra_emuls): Add support for Thumb target.
2706
2707Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
2708
2709 * ldlex.l: Don't define hex_mode. Correct number regexp to not
2710 accept hex digits without a leading $ or 0x. Handle leading $
2711 correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
2712 * ldlex.h (hex_mode): Don't declare.
2713
2714Sun Nov 16 20:16:45 1997 Michael Meissner <meissner@cygnus.com>
2715
2716 * emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
2717 of internal data area and external memory on chip.
2718
2719 * scripttempl/elfd30v.sc: Define a MEMORY region that describes
2720 the 3 regions of memory on the chip. Put .text/.init/.fini into
2721 the text memory region, put other segments into the data memory
2722 region. Add more of the standard elf sections. Default __stack
2723 to be 0x20008000, which is 1 byte beyond end of the internal data
2724 region.
2725
2726Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
2727
2728 * configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
2729 variant.
2730
2731Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2732
2733 * configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
2734 HOSTING_LIBS.
2735
2736Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
2737
2738 * ld.h (args_type): Add warn_mismatch field.
2739 * ldmain.c (main): Initialize warn_mismatch field.
2740 * lexsup.c (parse_args): Handle --no-warn-mismatch option.
2741 * ldlang.c (ignore_bfd_error): New static function.
2742 (lang_check): If warn_mismatch is false, don't warn about
2743 mismatched input files.
2744 * ld.texinfo, ld.1: Document new option.
2745
2746Thu Oct 23 14:38:18 1997 Nick Clifton <nickc@cygnus.com>
2747
2748 * scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
2749 to avoid conflicts with C code which is defining a variable called
2750 'stack'.
2751
2752Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
2753
2754 * Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
2755 (ALL_64_EMULATIONS): ... here.
2756 (eelf64_sparc.c): Template should be elf32 not generic.
2757 * emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
2758
2759Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
2760
2761 * configure.tgt: Add sparc64-*-linux*.
2762 * emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
2763
2764Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
2765
2766 * scripttempl/pe.sc: Put .eh_frame in .rdata.
2767
2768Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
2769
2770 * ldlang.c (lang_register_vers_node): Only check globals<=>locals,
2771 since we need to be able to export different versions of the same
2772 symbol.
2773
2774Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
2775
2776 * scripttempl/pe.sc: Put .stab and .stabstr sections at end.
2777
2778Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
2779
2780 * configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
2781 config.guess now recognizes alphaev5 etc.
2782
2783Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
2784
2785 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
2786 -s and -u as -static and -unix.
2787
2788Thu Oct 2 18:40:28 1997 Ian Lance Taylor <ian@cygnus.com>
2789
2790 * ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
2791 are not adding the first input section, and SEC_READONLY is clear
2792 on the output section, then don't copy it from the input section.
2793 If SEC_READONLY is not set on the input section, then clear it on
2794 the output section.
2795
2796 * configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
2797 elf32bmip.
2798 (mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
2799 to elf32bsmip.
2800 (mips*-*-linux*): Likewise.
2801 * emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
2802 setting ENTRY to __start.
2803 * emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
2804 setting ENTRY to __start.
2805 * scripttempl/elf.sc: Always set ENTRY to _start if it was not
2806 already set.
2807
2808Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
2809
2810 * emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
2811 Variables.
2812
2813 * scripttempl/v850.sc: Move read only areas out of zero and small
2814 data sections and into their own sections.
2815
2816Wed Sep 24 16:59:15 1997 Joel Sherrill <joel@oarcorp.com>
2817
2818 * configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
2819
2820Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
2821
2822 * ld.texinfo (Section Options): Improve documentation of NOLOAD
2823 directive.
2824
2825 * aclocal.m4: Rebuild with new libtool.
2826 * configure: Rebuild.
2827
2828Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
2829
2830 * ldlang.c (wild_doit): Revert patch of September 3.
2831
2832Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
2833
2834 * Makefile.am, Makefile.in: Add rule for ev850.c
2835 * configure.tgt (targ_extra_emuls): Add v850 target.
2836
2837Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
2838
2839 * emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
2840 * scripttempl/v850.sc: Add call table data area
2841
2842Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
2843
2844 Merge change from Martin Hunt:
2845
2846 * scripttempl/elfd30v.sc: Put .rodata in the .text section.
2847
2848Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
2849
2850 * ldlang.c (lang_memory_region_lookup): Remove extraneous
2851 initialization of p.
2852
2853Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
2854
2855 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
2856 expression produced for -bpT and -bpD options, align to a 32 byte
2857 boundary rather than an 8 byte boundary.
2858 * scripttempl/aix.sc: Put .tocbss at start of .bss section.
2859
2860 * ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
2861 function name conflict with AIX 4.2 unistd.h header file.
2862
2863Wed Sep 3 15:12:32 1997 Ian Lance Taylor <ian@cygnus.com>
2864
2865 * ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
2866 noload_section.
2867
2868Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
2869
2870 * Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
2871 * Makefile.in: Rebuild.
2872
2873Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
2874
2875 * configure.tgt (arc-*-elf*): Recognize.
2876 * Makefile.am (ALL_EMULATIONS): Add earcelf.o.
2877 * Makefile.in: Regenerate.
2878 * emulparams/arcelf.sh: New file.
2879
2880Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
2881
2882 * ldlang.c (wildcardp): Don't let a backslash by itself cause a
2883 pattern to be treated as a wildcard pattern.
2884
2885 * ldgram.y (atype): Accept parentheses with no type.
2886
2887 * ld.texinfo (Section Definition): Clarify use of whitespace.
2888 (Section Placement): Likewise.
2889
2890Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
2891
2892 * configure.tgt (targ_extra_emuls): Add support for v850e target.
2893
2894Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
2895
2896 * configure.tgt (targ_extra_emuls): Add support for v850e target.
2897
2898Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
2899
2900 * Makefile.am (ld.info): Change dependency from
2901 $(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
2902 (ld.dvi): Likewise.
2903 (bfdsumm.texi): New target.
2904 (CLEANFILES): Add bfdsumm.texi.
2905 * Makefile.in: Rebuild.
2906
2907 * Makefile.am: New file, based on old Makefile.in.
2908 * acinclude.m4: New file, from old aclocal.m4.
2909 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
2910 shared library handling; now handled by libtool. Replace
2911 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
2912 AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
2913 AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
2914 * configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
2915 * acconfig.h: Mention PACKAGE and VERSION.
2916 * stamp-h.in: New file.
2917 * ldver.c (ld_program_version): Set ld_program_version from
2918 VERSION.
2919 * ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
2920 * Makefile.in: Now built with automake.
2921 * aclocal.m4: Now built with aclocal.
2922 * configure, config.in: Rebuild.
2923
2924Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
2925
2926 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
2927 win32 dependencies.
2928 * configure: Regenerated with autoconf 2.12.
2929 * Makefile.in: Add $(EXEEXT) to executable.
2930
2931Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
2932
2933 * emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
2934 (SEGMENT_SIZE): Set to 0x200.
2935 * scripttempl/i386go32.sc: Rewrite.
2936 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
2937
2938Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
2939
2940 From Manfred Hollstein <manfred@s-direktnet.de>:
2941 * configure.host (i[3456]86-*-linux*libc1*): Renamed from
2942 i[3456]86-*-linux*.
2943 (i[3456]86-*-linux*): New host.
2944
2945Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
2946
2947 * scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
2948 sections in the output .rsrc section.
2949
2950Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2951
2952 * configure.host (m68*-*-linux*libc1*): Renamed from
2953 `m68*-*-linux*'.
2954 (m68*-*-linux*): New configuration for use with GNU libc 2.
2955
2956Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
2957
2958 * scripttempl/elfppc.sc: Correct .rela.sdata entries.
2959
2960 * scripttempl/elfppc.sc: Put the PLT between the small and large
2961 BSS segments.
2962 * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
2963 program base of 0x02000000 is recommended...' because otherwise
2964 shared libraries are less efficient. We use 0x01800000 because
2965 otherwise it's impossible to branch to location 0, for instance if
2966 you have an undefined weak symbol.
2967
2968Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2969
2970 * ldlang.c (lang_place_undefineds): Add \n in einfo call.
2971 (lang_size_sections): Likewise.
2972 * ldlex.l: Likewise.
2973 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
2974 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
2975 Likewise.
2976 (check_sections): Likewise.
2977 (gld${EMULATION_NAME}_after_allocation): Likewise.
2978 * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
2979 Likewise.
2980 * mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
2981 * mpw-idtmips.c (gldmipsidt_after_open): Likewise.
2982 (check_sections): Likewise.
2983 (gldmipsidt_after_allocation): Likewise.
2984
2985 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
2986
2987Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
2988
2989 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
2990 the import list.
2991
2992Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
2993
2994 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
2995 crash if an output section has no BFD section.
2996
2997Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
2998
2999 * lexsup.c (ld_options): Add entry for the new "task-link" option.
3000 (parse_args): Handle the "task-link" option.
3001 (OPTION_TASK_LINK): Add define.
3002
3003Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
3004
3005 * ldmain.c (main): Correct check of fclose return value when
3006 handling --force-exe-suffix.
3007
3008Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
3009
3010 * ldlang.c (lang_check): Add test of the return value from the
3011 call to bfd_merge_private_bfd_data().
3012
3013Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
3014
3015 * scripttempl/elfmips.sc: Remove.
3016 * scripttempl/elf.sc: Set ENTRY based on target. Permit
3017 TEXT_DYNAMIC to control .dynamic segment. Permit
3018 SHLIB_TEXT_START_ADDR to set start of shared object. Support
3019 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
3020 .gnu.linkonce.t* in .text when relocating. Support
3021 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
3022 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
3023 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
3024 (DATA_ADDR): Don't set.
3025 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
3026 (OTHER_TEXT_SECTIONS): Set.
3027 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
3028 (MACHINE): Set to empty string.
3029 * emulparams/elf32l4300.sh: Likewise.
3030 * emulparams/elf32ebmip.sh: Likewise.
3031 * emulparams/elf32elmip.sh: Likewise.
3032 * emulparams/elf32bmip.sh: Likewise. Also:
3033 (TEXT_DYNAMIC): Set.
3034 * emulparams/elf32lmips.sh: Likewise.
3035 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
3036 elfmips.sc.
3037 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
3038
3039Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3040
3041 * scripttempl/elf.sc: Don't align the data segment on the next 8
3042 byte boundary, instead let the linker use whatever the individual
3043 sections require.
3044
3045Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
3046
3047 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
3048
3049Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
3050
3051 From Sean McNeil <sean@mcneil.com>:
3052 * emultempl/pe.em (sort_by_file_name): Sort by archive name
3053 first.
3054 (sort_sections): Sort all sections, not just sections in the same
3055 archive.
3056
3057Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
3058
3059 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
3060 targets.
3061
3062Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
3063
3064 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
3065 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
3066 in the .text section. Move .const, .ctors, .dtors into separate
3067 sections.
3068
3069Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
3070
3071 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
3072 around assignment of current location pointer.
3073
3074Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
3075
3076 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
3077 appropriately.
3078
3079Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
3080
3081 * Makefile.in (INSTALL): Set to @INSTALL@.
3082 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
3083 (install): Depend upon ld.new and installdirs. Use
3084 $(program_transform_name) directly, rather than using
3085 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
3086 (installdirs): New target.
3087 (install-info): Run mkinstalldirs.
3088
3089Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
3090
3091 * Makefile.in (INSTALL): Change install.sh to install-sh.
3092
3093 From Thomas Graichen <graichen@rzpd.de>:
3094 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
3095 * configure: Rebuild.
3096
3097Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
3098
3099 * emultempl/pe.em: Include "libiberty.h".
3100 (sort_sections_1): Use xmalloc rather than alloca.
3101
3102 * ldlex.l: Recognize SQUAD.
3103 * ldgram.y (length): Add SQUAD.
3104 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
3105 reloc.
3106 * ldlang.c (print_data_statement): Handle SQUAD.
3107 (lang_size_sections, lang_do_assignments): Likewise.
3108 * ldexp.c (exp_print_token): Add SQUAD to table.
3109 * ldwrite.c (build_link_order): Handle SQUAD.
3110 * ld.texinfo (Section Data Expressions): Document SQUAD.
3111
3112Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
3113
3114 * ldver.c (ld_program_version): Set to 2.8.1.
3115
3116 * Branched binutils 2.8.
3117
3118Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
3119
3120 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
3121 * mpw-elfmips.c: Rename from mpw-emipself.c.
3122 * mpw-config.in: Update accordingly.
3123
3124 * ldlang.c (lang_process): Call lang_check immediately after
3125 opening the input files, rather than at the end of the link.
3126
3127Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
3128
3129 * emultempl/pe.em (init): Fully bracket initializer.
3130 (set_pe_stack_heap): Remove locals begin_commit and end.
3131 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
3132 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
3133
3134Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
3135
3136 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
3137
3138Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3139
3140 Contributed by David S. Miller <davem@caip.rutgers.edu>:
3141 * configure.tgt (sparc*-*-linuxaout*): New target.
3142 (sparc*-*-linux*): New target.
3143 * emulparams/sparclinux.sh: New file.
3144 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
3145 (esparclinux.c): New target.
3146
3147Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
3148
3149 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
3150 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
3151 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
3152 elf32elmip.
3153
3154Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
3155
3156 * lexsup.c (parse_args): Update copyright date in version
3157 message.
3158
3159Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3160
3161 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
3162
3163Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
3164
3165 * Makefile.in: Rebuild dependencies.
3166
3167 * emultempl/aix.em: Include "obstack.h".
3168
3169Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
3170
3171 * ldlang.c: Include "obstack.h".
3172
3173Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
3174
3175 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
3176
3177Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
3178
3179 * ldemul.h (ldemul_list_emulations): Use full prototype.
3180 * ldlang.c (print_one_symbol): Add declaration.
3181 * ldlang.h (dprint_statements): Declare.
3182 * ldmain.c (remove_output): Declare.
3183 * ldmisc.c (vfinfo): Declare.
3184 * ldwrite.c (clone_section): Declare.
3185 (split_sections): Make static. Declare.
3186 * mri.c: Include libiberty.h.
3187 (strdup): Don't declare.
3188 (mri_alias): Use xstrdup rather than strdup.
3189
3190Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
3191
3192 * scripttempl/elfmips.sc: Change handling of data area when
3193 generating a shared library to not skip a large block of memory.
3194 From Per Fogelstrom <pefo@cvs.openbsd.org>.
3195
3196Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
3197
3198 * ldmain.c (multiple_definition): Only skip the warning if the
3199 output section is absolute when the input section is not
3200 absolute.
3201
3202 * ldlex.l: Accept whitespace in VERS_START state. Warn about
3203 invalid characters in VERS_* states.
3204
3205Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
3206
3207 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
3208 trailing space lead us to think that there is a zero address.
3209
3210Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
3211
3212 * ldgram.y (vers_node): Correct typo of '(' for '{'.
3213
3214Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
3215
3216 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
3217 rather than _start.
3218 (__edata): Define this rather than "edata".
3219 (__end): Define this rather than "end".
3220
3221Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
3222
3223 * configure.tgt (tic80-*-*): Allow dropping of -coff.
3224
3225Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
3226
3227 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
3228 as TEXINPUTS. Needed for building in separate build dir.
3229 * ldint.texinfo (SCRIPT_NAME): Fix typo.
3230 * emulparams/tic80coff.sh: Rewrite to include internal documentation
3231 about each shell variable that is set (or not set).
3232 * scripttempl/tic80coff.sc: Complete rewrite.
3233
3234Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
3235
3236 * ldmain.c (main): Call bfd_set_default_target.
3237 * Makefile.in (ldmain.o): Define TARGET when compiling.
3238
3239Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
3240
3241 * ldmain.c (main): Don't initialize link_info.lprefix or
3242 link_info.lprefix_len.
3243 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
3244
3245 * emultempl/m88kbcs.em: Remove.
3246 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
3247 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
3248 m88kbcs.em.
3249
3250 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
3251 to lang_enter_output_section_statement. From Mark Rasin
3252 <mark.rasin@telrad.co.il>.
3253
3254Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
3255
3256 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
3257 section.
3258
3259Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
3260
3261 * configure.tgt (mips*-*-lnews*): New target.
3262 * Makefile.in (emipslnews.c): New target.
3263 * emulparams/mipslnews.sh: New file.
3264
3265Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
3266
3267 * emultempl/elf32.em (hold_interp): New static variable.
3268 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
3269 after hold_interp. Choose a unique output section name.
3270 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
3271 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
3272
3273Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
3274
3275 From Eric Youngdale <eric@andante.jic.com>:
3276 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
3277 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
3278 information.
3279 (ldlex_version_script, ldlex_version_file): New functions.
3280 * ldlex.h (enum input_enum): Add input_version_script.
3281 (ldlex_version_script): Declare.
3282 (ldlex_version_file): Declare.
3283 * ldgram.y (%union): Add deflist, versyms, and versnode.
3284 (VERS_TAG, VERS_IDENTIFIER): New terminals.
3285 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
3286 (file): Accept INPUT_VERSION_SCRIPT.
3287 (ifile_p1): Accept version.
3288 (version_script_file): New nonterminal.
3289 (version, vers_nodes, vers_node): Likewise.
3290 (verdep, vers_tag, ver_defns): Likewise.
3291 * ldlang.c (lang_elf_version_info): New global variable.
3292 (lang_new_vers_regex): New function.
3293 (lang_new_vers_node): New function.
3294 (version_index): New static variable.
3295 (lang_register_vers_node): New function.
3296 (lang_add_vers_depend): New function.
3297 * ldlang.h (lang_elf_version_info): Declare.
3298 (lang_new_vers_regex, lang_new_vers_node): Declare.
3299 (lang_add_vers_depend, lang_register_vers_node): Declare.
3300 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
3301 (ld_options): Add "version-script".
3302 (parse_args): Handle OPTION_VERSION_SCRIPT.
3303 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3304 Pass lang_elf_version_info to size_dynamic_sections.
3305 * scripttempl/elf.sc: Add .gnu.version sections.
3306 * ld.texinfo: Document symbol versioning.
3307
3308Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3309
3310 * Makefile.in (ed30velf.c): New target.
3311 * configure.tgt (d30v-*-*): New target.
3312 * emulparams/d30velf.sh: New file.
3313 * scripttempl/elfd30v.sc: New file.
3314
3315Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
3316
3317 * ld.texinfo (Option Commands): Document the INCLUDE command.
3318
3319Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3320
3321 * configure.in: Call BFD_NEED_DECLARATION on getenv.
3322 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
3323 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
3324 * ldemul.c (ld_emul_default_target): Do not cast getenv return
3325 value.
3326 * ldmain.c (get_emulation): Likewise.
3327 * configure, config.in: Rebuild.
3328
3329Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
3330
3331 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
3332 .mips16.call.* in .text.
3333
3334Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
3335
3336 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
3337 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
3338 * Makefile.in (etic80coff.c): Add target and rule to build it.
3339 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
3340
3341Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
3342
3343 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
3344 ".so" in the name, not ".so.".
3345 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
3346
3347 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
3348 <alan@spri.levels.unisa.edu.au>.
3349
3350Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
3351
3352 * emultempl/sunos.em: Include <ctype.h>.
3353 (gld${EMULATION_NAME}_find_so): Skip the directory name when
3354 searching for ".so.".
3355 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
3356 has a version number, and that only version numbers follow .so.
3357
3358Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
3359
3360 * scripttempl/pe.sc:
3361 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
3362 section so Win32 executables are valid.
3363
3364Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
3365
3366 * scripttempl/elf.sc: Put linkonce reloc section in other
3367 appropriate reloc sections.
3368 * scripttempl/elfmips.sc: Add linkonce support.
3369 * scripttempl/elfppc.sc: Likewise.
3370
3371Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
3372
3373 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
3374 stack up to 0x80000.
3375 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
3376
3377Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
3378
3379 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
3380 to define `_stack'.
3381
3382Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
3383
3384 * ld.h (args_type): Rename auxiliary_filter_shlib to
3385 auxiliary_filters, and make it char **.
3386 * lexsup.c (parse_args): Handle -f by setting up an array.
3387 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3388 new name of auxiliary_filters.
3389
3390 * ld.texinfo (Options): Improve documentation of --filter and
3391 --auxiliary.
3392
3393Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
3394
3395 * ld.texinfo (Options): Clarify that the normal usage is -T.
3396 (Commands): Likewise.
3397
3398Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
3399
3400 * scripttempl/armcoff.sc: Correct mask used for .data address.
3401
3402Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
3403
3404 * emultempl/pe.em: make default executable a.exe instead of
3405 a.out
3406
3407Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
3408
3409 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
3410 shifting .plt back. Rumour has it that the NetBSD ld.so depends
3411 on .dynamic being after .got, so we leave that.
3412
3413Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
3414
3415 * Makefile.in (clean): Don't remove configdoc.texi.
3416 (maintainer-clean): Do remove configdoc.texi.
3417
3418 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
3419 to avoid confusing texi2roff.
3420
3421Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
3422
3423 * scripttempl/v850.sc (.zdata): Add .zcommon section.
3424 (.tdata): Add .tcommon and .tcommon_byte sections.
3425
3426Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
3427
3428 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
3429 * scripttempl/elfmips.sc: Use __start as the entry address for
3430 mips*-*-linux*.
3431
3432Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
3433
3434 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
3435
3436 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
3437 fields.
3438 * lexsup.c (parse_args): Recognize --auxiliary/-f and
3439 --filter/-F.
3440 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3441 Pass filter_shlib and auxiliary_filter_shlib to
3442 size_dynamic_sections.
3443 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
3444
3445Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3446
3447 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
3448
3449Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
3450
3451 * mpw-make.sed: Use NewFolderRecursive for installation.
3452
3453Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3454
3455 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
3456 {s,t}data sections. Do not emit any linker generated symbols if
3457 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
3458 where the different sections go. Change some whitespace.
3459
3460 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
3461 appropriately. Remove crud not used anymore.
3462
3463Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
3464
3465 * Makefile.in (emn10200.c): Add dependencies.
3466 * configure.tgt: Handle mn10200.
3467 * emulparms/mn10200.sh: New file.
3468
3469Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
3470
3471 * emultempl/gld960c.em: Include <ctype.h>.
3472 (gld960_set_output_arch): Get the machine type from the -A option
3473 if there is one, rather than always using core.
3474
3475Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
3476
3477 * emulparms/mn10300.sh: Handle leading underscores.
3478
3479Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
3480
3481 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
3482 set hold_rel if SEC_ALLOC is set.
3483
3484Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
3485
3486 * ldlang.c (section_already_linked): Set the output_offset as well
3487 as the output_section when only reading symbols from a file.
3488
3489Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
3490
3491 * emulparams/*.sh: Make sure that each set of parameters which
3492 uses the elf.sc script sets MACHINE.
3493
3494Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
3495
3496 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
3497 * scripttempl/elfd10v.sc: Likewise.
3498 * scripttempl/v850.sc: Likewise.
3499
3500Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
3501
3502 * configure: Rebuild with autoconf 2.12.
3503
3504Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
3505
3506 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
3507 for bfd_vma to init loop.
3508
3509Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
3510
3511 * emulparms/mn10300.sh: Remove bogus '_' prefix for
3512 entry symbol and ctor/dtor stuff.
3513
3514Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
3515
3516 * Makefile.in (emn10300.c): Add dependencies.
3517 * configure.tgt: Handle mn10300.
3518 * emulparms/mn10300.sh: New file.
3519
3520Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3521
3522 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
3523 (EMBEDDED): Define.
3524
3525Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
3526
3527 * ld.texinfo: Add section on reporting bugs.
3528
3529 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
3530 symbols are correctly aligned.
3531
3532Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
3533
3534 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
3535 romzbss too.
3536
3537Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3538
3539 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
3540 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
3541 0x2000000.
3542
3543 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
3544 .stack to start at 0x2007ffe.
3545
3546Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
3547
3548 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
3549
3550Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
3551
3552 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
3553
3554 * scriptempl/v850.sc (zdata): Make sure this stays
3555 in lo-memory.
3556
3557Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
3558
3559 * scripttempl/v850.sc (__ep): Put it at the start
3560 of the tda section.
3561
3562 * scriptempl/v850.sc: Move all "normal" sections into
3563 the external memory region (0x100000 - 0x200000).
3564
3565Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
3566
3567 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
3568 0x10000, so that is more room for data.
3569
3570 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
3571 (READONLY_START_ADDR): Now 0x0.
3572 (SCRIPT_NAME): Now elfd10v.
3573
3574 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
3575
3576Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
3577
3578 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
3579
3580Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
3581
3582 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
3583 (ALL_64_EMULATIONS): New variable.
3584 * configure.in: Accept --enable-64-bit-bfd option. If it is set
3585 with --enable-targets=all, include ALL_64_EMULATIONS in
3586 EMULATION_OFILES.
3587 * configure: Rebuild.
3588
3589Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
3590
3591 * scripttempl/v850.sc (__gp, __ep): Define.
3592
3593Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
3594
3595 * ld.texinfo: Try to consistently use a single or a double dash
3596 for each option.
3597
3598Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
3599
3600 * emulparams/m32relf.sh (EMBEDDED): Define.
3601
3602Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
3603
3604 * scripttempl/v850.sc (.zdata): Add this before .text.
3605 (.sdata): Also include .rosdata as part of the .sdata.
3606 (.tdata): Include this just before .sdata.
3607
3608 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
3609 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
3610
3611Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
3612
3613 * scripttempl/v850.sc: New linker script for the V850.
3614 * Makefile.in: Use it.
3615
3616Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
3617
3618 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
3619 OTHER_READWRITE_SECTIONS.
3620 * emulparams/elf32l4300.sh: Likewise.
3621
3622Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
3623
3624 * ld.h (ld_config_type): Add warn_section_align field.
3625 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
3626 (ld_options): Add --warn-section-align.
3627 (parse_args): Handle --warn-section-align.
3628 * ldlang.c (lang_size_sections): If warn_section_align, warn if
3629 the start of a section changes due to alignment.
3630 * ld.texinfo, ld.1: Document --warn-section-align.
3631 * ld.texinfo: Change some single dashes to double dashes.
3632
3633 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
3634 subsystem type. Ifdef out os2 type. Recognize a version number.
3635
3636Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
3637
3638 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
3639 to windows, set the entry point.
3640
3641 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
3642
3643Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
3644
3645 * ld.texinfo (Options): Mention .so extensions for shared
3646 libraries.
3647
3648Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
3649
3650 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
3651
3652Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
3653
3654 * scripttempl/m68kcoff.sc: Only set the address of .text if
3655 RELOCATING.
3656
3657Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
3658
3659 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
3660 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
3661 (OUTPUT_FORMAT): Support bi-endian targets.
3662
3663Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
3664
3665 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
3666 * Makefile.in: Rebuild dependencies.
3667 (CFILES): Remove fnmatch.c.
3668 (HFILES): Remove fnmatch.h.
3669 (OFILES): Remove fnmatch.o.
3670
3671Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3672
3673 * Makefile.in (mostlyclean): Move config.log to distclean.
3674
3675Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
3676
3677 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
3678 (necessary in order to compile parse.c in gcc sources under NT)
3679
3680Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
3681
3682 * lexsup.c (ld_options): Fix typo in --rpath-link description.
3683 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
3684 --rpath if a needed library is not found.
3685
3686Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
3687
3688 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
3689
3690Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
3691
3692 * ld.texinfo (Options): Give more detail on -l option.
3693
3694 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
3695 elf.sc does, so that glibc works better.
3696
3697 * ldver.c (ld_program_version): New variable.
3698 (ldversion): Use it.
3699 * ldver.h (ld_program_version): Declare.
3700 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
3701 --version. Change --version handling to match current GNU
3702 standards.
3703 (help): Print bug report address.
3704
3705Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
3706
3707 * Makefile.in (em32relf.c): Add rule for.
3708 * configure.tgt (m32r-*-*): Recognize.
3709 * emulparams/m32relf.sh: New file.
3710
3711Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
3712
3713 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
3714 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
3715 wildcards in matching.
3716 * mpw-emipself.c: New file, pregenerated mips elf emulation.
3717
3718Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
3719
3720 * ldint.texinfo: Rewrote.
3721
3722 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
3723
3724Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
3725
3726 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
3727 syntax error on __end__ line.
3728
3729 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
3730 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
3731
3732Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
3733
3734 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
3735
3736Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
3737
3738 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
3739 stack at top of simulator memory.
3740
3741Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
3742
3743 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
3744
3745Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
3746
3747 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
3748
3749Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
3750
3751 * ldlang.c (section_already_linked): Accept a lang_input_statement
3752 as the PTR argument. If the file is symbols only, discard all
3753 input sections.
3754 (ldlang_add_file): Pass entry to bfd_map_over_sections.
3755
3756Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
3757
3758 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
3759 <fila@ibi.com>.
3760
3761Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
3762
3763 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
3764
3765Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
3766
3767 * emulparms/v850.sh: Set EMBEDDED.
3768
3769Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
3770
3771 * emulparms/v850.sh: Entry symbol is "_start", tweak
3772 ctor/dtor support.
3773
3774Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
3775
3776 * configure.tgt (sh-*-elf*): New target.
3777 * emulparams/shelf.sh: New file.
3778 * emulparams/shlelf.sh: New file.
3779 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
3780 (eshelf.c, eshlelf.c): New targets.
3781 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
3782 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
3783 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
3784 OTHER_RELOCATING_SECTIONS if RELOCATING.
3785
3786Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3787
3788 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
3789 pro.
3790
3791Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
3792
3793 * ldgram.y (section): Add opt_nocrossrefs; pass value to
3794 lang_enter_overlay.
3795 (opt_nocrossrefs): New nonterminal.
3796 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
3797 * ldlang.c (overlay_nocrossrefs): New static variable.
3798 (lang_enter_overlay): Add nocrossrefs parameter.
3799 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
3800 is set. Initialize overlay_nocrossrefs.
3801 * ldlang.h (lang_enter_overlay): Update declaration.
3802 * ld.texinfo (Overlays): Update documentation.
3803
3804 * ldver.c (ldversion): Print GNU ld in the version message.
3805
3806Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
3807
3808 * configure.host: Set HLDENV.
3809 * configure.in: Substitute HLDENV.
3810 * configure: Rebuild.
3811 * Makefile.in (HLDENV): New variable.
3812 ($(LD_PROG)): Use $(HLDENV).
3813
3814Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
3815
3816 * Makefile.in (ev850.c): New target.
3817 * configure.tgt (v850-*-*): New target.
3818 * emulparams/v850.sh: New file.
3819
3820Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
3821
3822 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
3823
3824Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
3825
3826 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
3827 containing sections.
3828
3829Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
3830
3831 * fnmatch.c: Include sysdep.h.
3832
3833Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3834
3835 * genscripts.sh: Undo 8/16 change.
3836
3837 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
3838
3839Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3840
3841 * genscripts.sh: Explicitly reset any shell variables set or used
3842 by the various .sc scripts to allow inadvertant use of these
3843 names as normal environment variables by the person running
3844 configure.
3845
3846 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
3847
3848Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
3849
3850 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
3851 __data_start__, __data_end__): Added to keep in sync. with the
3852 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
3853
3854Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
3855
3856 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
3857 defined in info->defsec, not just the section symbol.
3858
3859Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
3860
3861 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
3862 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
3863 (NEED_DECLARATION_SBRK): New macro.
3864 * configure, config.in: Rebuild.
3865 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
3866 * ldmain.c (sbrk): Declare if HAVE_SBRK and
3867 NEED_DECLARATION_SBRK.
3868
3869 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
3870
3871Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
3872
3873 * ldlex.l: Recognize OVERLAY.
3874 * ldgram.y: Add section_phdr field to %union.
3875 (section): Handle phdr_opt result. Add OVERLAY case.
3876 (opt_exp_without_type): New nonterminal.
3877 (phdr_opt): Return list of phdrs.
3878 (overlay_section): New nonterminal.
3879 * ldlang.c: Include <ctype.h>.
3880 (lang_leave_output_section_statement): Add phdrs parameter.
3881 Change all callers.
3882 (lang_section_in_phdr): Remove.
3883 (overlay_vma, overlay_lmn, overlay_max): New static variables.
3884 (struct overlay_list): Define.
3885 (overlay_list): New static variable.
3886 (lang_enter_overlay, lang_enter_overlay_section): New functions.
3887 (lang_leave_overlay_section, lang_leave_overlay): New functions.
3888 * ldlang.h (lang_leave_output_section_statement): Update
3889 declaration for new parameter.
3890 (lang_section_in_phdr): Don't declare.
3891 (lang_enter_overlay, lang_enter_overlay_section): Declare.
3892 (lang_leave_overlay_section, lang_leave_overlay): Declare.
3893 * ld.texinfo (Overlays): New node under SECTIONS, documenting
3894 overlays.
3895
3896 * ldlex.l: Recognize MAX and MIN.
3897 * ldgram.y (MAX, MIN): New terminals.
3898 (exp): Recognize MAX and MIN.
3899 * ldexp.c (fold_binary): Handle MAX and MIN.
3900 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
3901
3902 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
3903 index entries.
3904
3905 * ldgram.y (SIZEOF, ADDR): Do not specify type.
3906
3907 * ldcref.c (check_nocrossref): Skip symbols with no output
3908 sections.
3909
3910Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
3911
3912 * ldgram.y (LOADADDR): New terminal.
3913 (exp): Handle LOADADDR.
3914 * ldlex.l: Recognize LOADADDR.
3915 * ldexp.c (exp_print_token): Add LOADADDR.
3916 (fold_name): Implement LOADADDR.
3917 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
3918 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
3919
3920Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
3921
3922 * ld.h (check_nocrossrefs): Declare.
3923 * ldlang.h (struct lang_nocrossref): Define.
3924 (struct lang_nocrossrefs): Define.
3925 (nocrossref_list): Declare.
3926 (lang_add_nocrossref): Declare.
3927 * ldlex.l: Recognize NOCROSSREFS keyword.
3928 * ldgram.y (%union): Add nocrossref field.
3929 (NOCROSSREFS): New terminal.
3930 (ifile_p1): Recognize NOCROSSREFS.
3931 (nocrossref_list): New nonterminal.
3932 * ldlang.c (nocrossref_list): Define.
3933 (lang_add_nocrossref): New function.
3934 * ldmain.c (main): If nocrossref_list is not NULL, call
3935 check_nocrossrefs.
3936 (warning_callback): Free symbols if there is no place to store
3937 them.
3938 (notice): Call add_cref if nocrossref_list is not NULL.
3939 * ldcref.c: Include "ldexp.h" and "ldlang.h".
3940 (check_nocrossrefs): New function.
3941 (check_nocrossref): New static function.
3942 (struct check_refs_info): Define.
3943 (check_refs, check_reloc_refs): New static functions.
3944 * Makefile.in: Rebuild dependencies.
3945 * ld.texinfo (Option Commands): Document NOCROSSREFS.
3946
3947 * ld.texinfo (Section Placement): Improve the wording of the
3948 wildcard documentation. Mention that wildcards are only searched
3949 for on the command line, not in the file system.
3950
3951 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
3952 definition of lib_path inside condition where it is used.
3953
3954Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3955
3956 * emulparams/d10velf.sh: Now works with elf.sc.
3957
3958Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3959
3960 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
3961
3962Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
3963
3964 * ldlang.c (lang_size_sections): Add the section VMA to the result
3965 value when computing the address of a section.
3966
3967 * ld.h (args_type): Add cref field.
3968 * lexsup.c (parse_args): Set command_line.cref.
3969 * ldmain.c (main): Check command_line.cref rather than
3970 link_info.notice_all.
3971 (notice): Likewise.
3972
3973 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
3974 in a section without an owner.
3975
3976Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
3977
3978 * fnmatch.h, fnmatch.c: New files.
3979 * ldlex.l: Remove unused definition of FILENAME. Add definition
3980 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
3981 NAME.
3982 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
3983 (input_section_spec): Accept '?' specially.
3984 (statement): Change exp to mustbe_exp in length and FILL cases.
3985 (section): Call ldlex_script before section statements, and call
3986 ldlex_popstate after them.
3987 * ldlang.c: Include "fnmatch.h".
3988 (wildcardp): New static function.
3989 (wild_section): Permit the section name to be a wildcard.
3990 (wild_file): New static function, broken out of wild.
3991 (wild): Call wild_file. Permit the file name to be a wildcard.
3992 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
3993 * Makefile.in: Rebuild dependencies.
3994 (CFILES): Add fnmatch.c.
3995 (HFILES): Add fnmatch.h.
3996 (OFILES): Add fnmatch.o.
3997 * ld.texinfo: Document that file and section names can now be
3998 wildcard patterns.
3999
4000 * ldlang.c (lang_place_orphans): Correct condition: place a common
4001 section if not relocateable or if common definitions are forced.
4002
4003Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4004
4005 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
4006
4007Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4008
4009 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
4010
4011Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4012
4013 * Makefile.in (ed10velf.c): New target.
4014 * configure.tgt (d10v-*-elf*): New target.
4015 * emulparams/d10velf.sh: New file.
4016
4017Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
4018
4019 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
4020 <ANDREWG@microlise.co.uk>.
4021
4022 * configure.host: Change irix5 to irix[56]*.
4023 * configure.tgt: Likewise.
4024
4025Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
4026
4027 * emultempl/pe.em (sort_sections): Pay attention to return code.
4028
4029 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
4030
4031Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4032
4033 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
4034 the value of __start_SECNAME to the alignment required by the
4035 section to be placed.
4036
4037Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
4038
4039 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
4040 (mips*-*-elf*): Use elf32ebmip.
4041 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
4042 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
4043 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
4044 EMBEDDED defined.
4045 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
4046 EMBEDDED defined.
4047 * emulparams/elf32b4300.sh (EMBEDDED): Define.
4048 * emulparams/elf32l4300.sh (EMBEDDED): Define.
4049 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
4050 (eelf32ebmip.c, eelf32elmip.c): New targets.
4051
4052Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
4053
4054 * ldver.c (ldversion): Set version to cygnus-2.7.1.
4055
4056 * Released binutils 2.7.
4057
4058 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
4059 System V file name limitations.
4060 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
4061 pc532macha rather than pc532machaout.
4062 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
4063 epc532macha.o.
4064 (epc532macha.c): Rename target from epc532machaout.c.
4065
4066Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
4067
4068 * ldlang.c (print_padding_statement): Use %u, not %x, to print
4069 fill value.
4070
4071Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
4072
4073 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
4074
4075Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
4076
4077 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
4078 file just before the .so file, rather than just after.
4079
4080 * configure.host: Use -print-file-name=FILE rather than piping
4081 -print-libgcc-file-name through sed.
4082 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
4083 crtend.o files, in case gcc doesn't use them.
4084 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
4085
4086Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
4087
4088 * configure.tgt (mips*-dec-osf*): New target.
4089
4090Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4091
4092 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
4093 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
4094 (docdir): Removed.
4095 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
4096 (AC_PROG_INSTALL): Added.
4097 * configure: Rebuilt.
4098
4099Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4100
4101 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
4102 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
4103 non-fixed location.
4104
4105Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
4106
4107 * ldlang.h (enum section_type): Define.
4108 (lang_output_section_statement_type): Remove loadable field. Add
4109 sectype field.
4110 (lang_enter_output_section_statement): Change flags parameter in
4111 prototype to sectype.
4112 * ldgram.y (typebits): Remove.
4113 (sectype): New static variable.
4114 (opt_at): Use sectype rather than typebits.
4115 (type): Set sectype rather than typebits.
4116 (atype): Likewise.
4117 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
4118 EXPRESSION mode.
4119 * ldlang.c (lang_output_section_statement_lookup): Set sectype
4120 field rather than loadable field.
4121 (wild_doit): Check sectype rather than loadable.
4122 (lang_record_phdrs): Likewise.
4123 (lang_enter_output_section_statement): Rename flags parameter to
4124 sectype. Set sectype field rather than loadable field. Set flags
4125 field based on sectype.
4126
4127Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
4128
4129 * scripttempl/elf.sc: Force .stab* and .comment sections to start
4130 at 0.
4131
4132 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
4133 using shared libraries.
4134 * configure: Rebuild with autoconf 2.10.
4135
4136Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
4137
4138 * configure.tgt: Add support for *-*-rtems* configurations.
4139
4140Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
4141
4142 * configure.tgt (alpha-*-linuxecoff*): New target.
4143 (alpha-*-linux*): Use elf64alpha.
4144 * emulparams/elf64alpha.sh: New file.
4145 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
4146 ${ELFSIZE} rather than 32 when calling BFD routines.
4147 (hold_rodata): New static variable.
4148 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
4149 readonly section that is not code.
4150 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
4151 a .rel section unless its bfd_section field is not NULL.
4152 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
4153 (eelf64alpha.c): New target.
4154
4155Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
4156
4157 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
4158
4159Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
4160
4161 Add enough support to understand the gcc svr3.ifile script:
4162 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
4163 BIND keyword.
4164 * ldgram.y: Add BIND token.
4165 (section): Recognize GROUP.
4166 (opt_ext_with_type): Recognize a couple of cases of BIND.
4167 * ldlang.c (init_os): Don't do anything if section is already
4168 initialized. Call exp_init_os on addr_tree field.
4169 (exp_init_os): New static function.
4170 (map_input_to_output_sections): Call exp_init_os on assignment
4171 expression.
4172 (lang_place_orphans): Check for common sections by name COMMON
4173 rather than by common_section field. Don't warn about absence of
4174 [COMMON] command.
4175
4176 * ldlang.h (lang_input_statement_type): Remove useless fields
4177 common_section, common_output_section, and complained, as well as
4178 all references to them.
4179
4180 * ldexp.c: Reindent a lot of code.
4181 (exp_fold_tree): Call FAIL rather than einfo in default case.
4182
4183Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
4184
4185 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
4186 <randall.hron@medaphis.com>.
4187
4188Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
4189
4190 * scripttempl/h8300s.sc: New file for H8/S.
4191 * emulpararms/h8300s.sh: New file for H8/S.
4192 * Makefile.in (ALL_EMULATIONS): Add H8/S.
4193 (e_h8300s.c): Add dependencies.
4194 * configure.tgt: Add H8/S to targ_extra_emuls.
4195
4196Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
4197
4198 * configure.tgt (i[345]86*-*-isc*): New target. From
4199 <uddeborg@carmen.se>.
4200
4201Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
4202
4203 * lexsup.c: Include "libiberty.h".
4204 (parse_args): Copy the -Y argument into memory.
4205 (set_default_dirlist): Don't put the ':' back into the directory
4206 list.
4207
4208Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
4209
4210 * emultempl/sunos.em: Include libiberty.h.
4211 (gld${EMULATION_NAME}_set_symbols): New static function to add
4212 LD_LIBRARY_PATH to the list of search directories.
4213 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
4214
4215Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
4216
4217 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
4218 rather than . when computing _gp value. From Per Fogelstrom.
4219 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
4220
4221 * ldmain.c (main): Don't close and unlink the file on error, since
4222 remove_output will do it anyhow.
4223 * ldlang.c (open_output): Set boolean variable to true, not 1.
4224
4225Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
4226
4227 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
4228 elfmips instead of elf.
4229
4230Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
4231
4232 * ldcref.c: New file.
4233 * ld.h (add_cref, output_cref): Declare.
4234 * ldmain.c (main): Initialize notice_all field. If it is set at
4235 end of link, call output_cref.
4236 (notice): Rename from notice_ysym. Check notice_all.
4237 * ldmisc.c (finfo): Make globally visible.
4238 * ldmisc.h (finfo): Declare.
4239 * lexsup.c (OPTION_CREF): Define.
4240 (ld_options): Add "cref".
4241 (parse_args): Handle OPTION_CREF.
4242 * Makefile.in: Rebuild dependencies.
4243 (CFILES): Add ldcref.c.
4244 (OFILES): Add ldcref.o.
4245 * ld.texinfo, ld.1: Document --cref.
4246
4247Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
4248
4249 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
4250
4251Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
4252
4253 * emultempl/pe.em (sort_sections): Don't assume that a
4254 wild_statement has a section name.
4255
4256Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
4257
4258 * scripttempl/elfmips.sc: Quote test -z argument.
4259
4260 * ld.texinfo: Clarify the CONSTRUCTORS command.
4261
4262Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
4263
4264 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
4265 file, not impfile.
4266
4267Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
4268
4269 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
4270 if final link.
4271 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
4272 (sort_by_section_name, sort_sections_1): New functions.
4273 (sort_sections): Only sort by file name sections in .idata.
4274 Add "Grouped Sections" support.
4275 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
4276 Sections.
4277 (gld${EMULATION_NAME}_place_section): Delete.
4278 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
4279 (.CRT,.rsrc): Rewrite to use Grouped Section support.
4280
4281Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
4282
4283 * mpw-eppcmac.c: Update to reflect changes to aix.em.
4284
4285Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
4286
4287 * ldlang.c (dprint_statement): Stop printing at end of list.
4288
4289Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
4290
4291 Support for --force-exe-suffix
4292 * ld.h (args_type): Add force_exe_suffix.
4293 * ld.texinfo: Add documentation.
4294 * ldmain.c (main): Add support for option.
4295 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
4296 (ld_options, parse_args): Add support for option.
4297
4298Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
4299
4300 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
4301
4302Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4303
4304 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
4305 referenced but not defined.
4306
4307Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4308
4309 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
4310 Set a new variable to signify if the final target is an embedded
4311 system.
4312 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
4313 .text for an embedded system.
4314
4315Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
4316
4317 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
4318 (gld${EMULATION_NAME}_place_section): New function.
4319 (hold_{section,use,text,rdata,data}): New static locals.
4320 (ld_${EMULATION_NAME}_emulation): Update orphan field.
4321 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
4322 (INIT,FINI): Delete, unused.
4323 (.text): Document orphan .text.foo sections.
4324 (.rdata): Document orphan .rdata.foo sections.
4325 (.data): Document orphan .data.foo sections.
4326
4327Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
4328
4329 * scripttempl/h8300.sc: Place ".tiny" sections right
4330 after ".data" sections.
4331 * scripttempl/h8300h.sc: Place ".tiny" sections into
4332 the "tiny" memory region, 0xff8000 through 0xffff00.
4333
4334 * scripttempl/h8300.sc: Set the entry point to the value of
4335 "_start" rather than the start of the text segment.
4336 * scripttempl/h8300h.sc: Likewise.
4337
4338 * scripttempl/h8300.sc: Place .rodata sections before .text
4339 sections in main ram.
4340 * scripttempl/h8300h.sc: Likewise.
4341
4342Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
4343
4344 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
4345 8-bit region and 8-bit sections.
4346
4347Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
4348
4349 * ldlang.c (section_already_linked): Fix typos.
4350
4351Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
4352
4353 * scripttempl/pe.sc (.endjunk): Define __end__.
4354
4355Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
4356
4357 * ldlang.c (longest_section_name): Remove.
4358 (SECTION_NAME_MAP_LENGTH): Define.
4359 (print_size, print_alignment, print_fill, print_section): Remove.
4360 (print_flags): Remove.
4361 (lang_map): Rewrite.
4362 (print_output_section_statement): Rewrite.
4363 (print_assignment): Rewrite.
4364 (print_one_symbol): Rewrite.
4365 (print_input_section): Rewrite.
4366 (print_fill_statement): Rewrite.
4367 (print_data_statement): Rewrite.
4368 (print_address_statement): New static function.
4369 (print_reloc_statement): Rewrite.
4370 (print_padding_statement): Rewrite.
4371 (print_wild_statement): Rewrite.
4372 (print_statement_list): Clean up.
4373 (print_statement): Clean up. Some minor output changes.
4374 (print_statements): Clean up.
4375 (load_symbols): Put another - before -whole-archive.
4376 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
4377 print 0x and to omit leading zeroes. For etree_rel, use %B to
4378 print the BFD. For etree_assign, remove the space after the
4379 destination name.
4380 * ldwrite.c: Include "libiberty.h".
4381 (clone_section): Call xstrdup, not strdup.
4382 (ldwrite): Don't print any map information.
4383 (print_symbol_table, print_file_stuff, print_symbol): Remove.
4384 * ldmain.c (main): Call lang_map when appropriate.
4385 * ldmisc.c (vfinfo): Add support for %W.
4386 (print_address): Remove.
4387 * ldmisc.h (print_address): Don't declare.
4388 * Makefile.in: Rebuild dependencies.
4389
4390Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4391
4392 * configure.host (m68*-*-linux*): Add -dynamic-linker to
4393 HOSTING_CRT0. Search -lgcc both before and after -lc in
4394 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
4395 at first.
4396 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
4397 directory at first.
4398
4399Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
4400
4401 * ldmisc.h (demangle): Declare.
4402 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
4403 not <>.
4404 (demangle): Make non-static. Remove remove_underscore paramter.
4405 Always return an allocated string.
4406 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
4407 functionname, rather than calling demangle. Print a colon between
4408 the BFD(section+offset) and the line number.
4409 * ldmain.c (add_archive_element): Improve format of archive
4410 information in map file.
4411 (constructor_callback): Don't print anything to the map file.
4412 * ldlang.c (lang_one_common): Improve format of common symbol
4413 information in map file.
4414 * ldctor.c (ldctor_build_sets): If producing a map file, print set
4415 information.
4416 * ldwrite.c (print_symbol_table): Print a newline before the
4417 header in the map file.
4418 * Makefile.in: Rebuild dependencies.
4419
4420 * ldmisc.c (vfinfo): Reindent.
4421
4422Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
4423
4424 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
4425 don't clobber it when not relaxing.
4426
4427 * ld.h (ld_config_type): Remove traditional_format field.
4428 * ldmain.c (main): Use link_info.traditional_format rather than
4429 config.traditional_format.
4430 * ldlang.c (ldlang_open_output): Likewise.
4431 * lexsup.c (parse_args): Likewise.
4432 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
4433 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
4434
4435 * ldlang.c (wild_doit): Discard debugging sections if we are
4436 stripping debugging information.
4437
4438 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
4439
4440Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
4441
4442 * ldexp.c (fold_binary): Correct handling of subtraction with
4443 absolute values.
4444 (fold_name): Permit symbols in lang_allocating_phase_enum.
4445
4446 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
4447 accidental changes in last patch.
4448
4449Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4450
4451 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
4452 (powerpcle*-*-{sysv,solaris}): Ditto.
4453
4454Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4455
4456 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
4457 in m68k/crt0.S without things blowing up.
4458
4459Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
4460
4461 * scripttempl/m68kcoff.sc: Remove default address for .data so
4462 .text, .data, and .bss are all sequential.
4463
4464Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
4465
4466 * scripttempl/m68kcoff.sc: Remove regions and simplify.
4467
4468Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
4469
4470 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
4471 bytes of the address space. Put data from the ".eight" sections
4472 into the 8-bit area.
4473 * scripttempl/h8300h.sc: Likewise.
4474
4475Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
4476
4477 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
4478 Pass $ARCH to ldfile_set_output_arch instead of setting
4479 ldfile_output_architecture directly.
4480
4481Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4482
4483 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
4484 next to .text. Put _etext after .text, .init, .fini, and
4485 .rodata{,2} sections.
4486
4487Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
4488
4489 * ld.texinfo: Rearrange option documentation.
4490
4491 * lexsup.c (ld_options): New static array.
4492 (parse_args): Build shortopts and longopts from ld_options array.
4493 (help): New static function.
4494 * ldver.h (help): Don't declare.
4495 * ldver.c (ldversion): Reindent.
4496 (help): Remove.
4497
4498 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
4499
4500Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
4501
4502 * emultempl/elf32.em: When checking for a native emulation, check
4503 that the current emulation is the default emulation.
4504 * emultempl/sunos.em: Likewise.
4505
4506 * configure.in: Permit --enable-shared to specify a list of
4507 directories.
4508 * configure: Rebuild.
4509
4510 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
4511 for HP/UX compatibility.
4512
4513Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
4514
4515 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
4516 static function, if ${host} = ${target}.
4517 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
4518 needed shared library if ${host} = $[target}.
4519
4520 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
4521 HOSTING_CRT0. Search -lgcc both before and after -lc in
4522 HOSTING_LIBS.
4523
4524 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
4525 Polstra <jdp@polstra.com>.
4526
4527Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
4528
4529 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
4530 architecture number.
4531 * scripttempl/elf.sc: Use $MACHINE definition if present.
4532 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
4533 template as 4300.
4534
4535Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
4536
4537 * ldlang.c (lang_size_sections): Change region check to handle
4538 regions which end at the highest possible address correctly.
4539 From Roland Weber <roweber@ira.uka.de>.
4540
4541 * ldlang.c (section_already_linked): New static function.
4542 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
4543 relocateable link. Don't worry about section being NULL, since it
4544 never should be. Don't call init_os unless the section is going
4545 to be added.
4546 (ldlang_add_file): Call section_already_linked for each section.
4547 * ldmain.c (multiple_definition): Don't warn about multiple
4548 definitions in sections which are being discarded.
4549
4550Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
4551
4552 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
4553 * emultempl/pe.em (init): Remove special case PPC code.
4554
4555Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
4556
4557 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
4558 so as not to overwrite the magic syscall entry at 0xc4.
4559 * scripttempl/h8300h.sc: Likewise.
4560
4561Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
4562
4563 * configure.tgt (sparc64-*-solaris2*): Delete.
4564 Stick with sparc-*-solaris2*.
4565
4566Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
4567
4568 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
4569 * ldlang.c (init_os): Fail on an attempt to initialize any section
4570 named DISCARD_SECTION_NAME.
4571 (wild_doit): Discard input sections assigned to an output section
4572 named DISCARD_SECTION_NAME.
4573 * ld.texinfo: Document use of /DISCARD/.
4574
4575 * ldlang.c: Fix some indentation and comments.
4576
4577Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
4578
4579 * ldmain.c (main): Call bfd_set_error_program_name.
4580
4581Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
4582
4583 * ld.texinfo: Fix a couple of indexing entries. Mention that
4584 --verbose displays builtin linker scripts.
4585
4586 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
4587 and the local symbol name does not match the filename, print the
4588 filename as well.
4589
4590 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
4591 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
4592 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
4593 as TEXT_START_ADDR.
4594
4595Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4596
4597 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
4598
4599Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
4600
4601 * ldmain.c (add_wrap): New function.
4602 * ldmain.h (add_wrap): Declare.
4603 * lexsup.c (parse_args): Call add_wrap.
4604
4605Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
4606
4607 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
4608
4609Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
4610
4611 * scripttempl/h8300.sc: Change name of page zero memory
4612 from "null" to "vectors". Create an output section for
4613 vectors. Add comments on how to explicitly place items
4614 in the vector table.
4615 * scripttempl/h8300h.sc: Likewise.
4616
4617Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
4618
4619 * emultempl/lnk960.em (machine_table): Add jx and hx.
4620
4621 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
4622 support it.
4623
4624Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
4625
4626 * ld.h (ld_config_type): Add warn_multiple_gp field.
4627 * lexsup.c (parse_args): Handle --warn-multiple-gp.
4628 * ldmain.c (warning_callback): Suppress multiple gp values warning
4629 if --warn_multiple_gp was not used.
4630 * ld.texinfo, ld.1: Document --warn-multiple-gp.
4631
4632Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
4633
4634 * lexsup.c (parse_args): Handle --wrap.
4635 * ldmain.c (main): Initialize link_info.wrap_hash.
4636 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
4637 and NAME cases.
4638 * ld.texinfo, ld.1: Document --wrap.
4639
4640 * configure: Rebuild with autoconf 2.8.
4641
4642 Don't do SunOS style dynamic linking for sparc-aout:
4643 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
4644 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
4645 (sparc*-wrs-vxworks*): Likewise.
4646 * emulparams/sparcaout.sh: New file.
4647 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
4648 (esparcaout.c): New target.
4649
4650Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4651
4652 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
4653 in a different manner to work around differences in shell variable
4654 expansion.
4655
4656Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
4657
4658 * ldemul.h (ldemul_unrecognized_file): Declare.
4659 (ldemulation_xfer_type): Add unrecognized_file field.
4660 * ldemul.c (ldemul_unrecognized_file): New function.
4661 * ldlang.c (load_symbols): If a file can not be recognized, call
4662 ldemul_unrecognized_file before trying it as a linker script.
4663 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
4664 function.
4665 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
4666 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
4667
4668Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
4669
4670 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
4671 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
4672
4673Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4674
4675 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
4676 Search trinary.cond rather than searching trinary.lhs twice.
4677
4678Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
4679
4680 * mpw-make.sed: Edit out shared library support.
4681 (@TDIRS@): Edit out, can't use genscripts.
4682
4683Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4684
4685 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
4686 * emulparams/m68klinux.sh: New file.
4687 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
4688 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
4689 bfd_linux_size_dynamic_sections.
4690 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
4691 (em68klinux.c): New target.
4692 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
4693
4694Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
4695
4696 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
4697 Fill in missing entries.
4698
4699 * lexsup.c (parse_args): Recognize --no-whole-archive.
4700 * ldlang.h (lang_input_statement_type): Add whole_archive field.
4701 * ldlang.c (new_afile): Set whole_archive field.
4702 (load_symbols): Check input file specific whole_archive field
4703 rather than global variable.
4704 * ld.texinfo, ld.1: Document --no-whole-archive.
4705
4706Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
4707
4708 * configure.tgt: Correct gldi960 to gld960.
4709
4710Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
4711
4712 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
4713 the SONAME if it is available.
4714 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
4715 filename, when checking for conflicting library versions. Don't
4716 assume that the suffix is only numbers and dots.
4717
4718 * ld.texinfo: Mention that -R can be used for -rpath.
4719
4720Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
4721
4722 * configure.host: Check for 'do not mix' from native linker before
4723 trying to use -rpath.
4724
4725Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
4726
4727 * configure.in: Remove explicit substitution of CFLAGS; autoconf
4728 does it anyhow.
4729 * configure: Rebuild.
4730 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
4731
4732 * configure.in: Call AC_PROG_CC before configure.host.
4733 * configure: Rebuild.
4734 * configure.host: Remove go32 host, since it should no longer be
4735 necessary. Don't set CC for romp host.
4736
4737 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
4738 the text segment ends exactly on a page boundary.
4739
4740 * configure.in: Substitute RPATH_ENVVAR.
4741 * configure: Rebuild.
4742 * configure.host: Set RPATH_ENVVAR.
4743 * Makefile.in (RPATH_ENVVAR): New variable.
4744 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
4745
4746Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
4747
4748 * configure.in: Redo emulation handling so that each emulation
4749 searches the correct tool directory, based on the target alias.
4750 For example, "configure --enable-targets=m68k-coff i386-linux"
4751 will search /usr/local/i386-linux/lib for linux and
4752 /usr/local/m68k-coff/lib for m68k-coff.
4753 * configure: Rebuild.
4754 * configure.tgt: Add special tdir settings for Linux.
4755 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
4756 for each eEMUL.c target.
4757 * genscripts.sh: Accept specific alias as 9th argument, and use it
4758 in LIB_PATH.
4759
4760Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
4761
4762 * ldlang.c (lang_set_startof): Don't do anything for a
4763 relocateable link.
4764
4765 * ldgram.y (mri_script_file): Call mri_draw_tree.
4766 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
4767 create memory regions.
4768 (mri_load): Don't call mri_draw_tree.
4769 * mri.h (mri_draw_tree): Declare.
4770
4771 * configure.tgt (m68*-*-psos): New target.
4772 * emulparams/m68kpsos.sh: New file.
4773 * scripttempl/psos.sc: New file.
4774 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
4775 (em68kpsos.c): New target.
4776
4777Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
4778
4779 * configure.tgt (*-*-ieee*): New target; use vanilla.
4780
4781 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
4782 `:foo' from ${ARCH}.
4783
4784Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
4785
4786 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
4787 .rodata in .data.
4788
4789Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
4790
4791 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
4792
4793 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
4794 it looks like we might be linking in two different versions of the
4795 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
4796
4797Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
4798
4799 * ldlang.c (lang_size_sections): Increment the section size when a
4800 padding statement is encountered.
4801
4802Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
4803
4804 * configure.in: Look for --enable-shared. Change the value of
4805 BFDLIB when linking against a shared library on SunOS.
4806 * configure: Rebuild.
4807 * configure.host: If using a shared BFD library, try to pass a
4808 reasonable -rpath option when linking.
4809 * Makefile.in (BFDLIB): Set to @BFDLIB@.
4810
4811Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
4812
4813 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
4814 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
4815
4816Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
4817
4818 Support for building bfd and opcodes as shared libraries, based on
4819 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
4820 * configure.in (HLDFLAGS): New substitution.
4821 * configure: Rebuild.
4822 * configure.host: Set HLDFLAGS on SunOS.
4823 * Makefile.in (HLDFLAGS): New variable.
4824 (BFDDEP): New variable.
4825 (BFDLIB): Change to -L../bfd -lbfd.
4826 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
4827 $(HLDFLAGS) in link.
4828 (check): Set LD_LIBRARY_PATH in the environment.
4829
4830Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4831
4832 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
4833 in the read-only section, not read/write unless we are making a
4834 shared library.
4835 (.debug*): Add dwarf debug sections.
4836 (.rela.{sdata*,sbss*}): Add sections.
4837
4838Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
4839
4840 * configure: Regenerate.
4841
4842Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
4843
4844 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
4845 for SVR4 compatibility.
4846
4847 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
4848
4849Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
4850
4851 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
4852 * emultempl/pe.em (definfo init): Make the default stack reserve
4853 of a PPC larger.
4854
4855Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
4856
4857 * configure.tgt (m68*-apple-aux*): New target.
4858 * emulparams/m68kaux.sh: New file.
4859 * scripttempl/m68kaux.sc: New file.
4860 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
4861 (em68kaux.c): New target.
4862
4863Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
4864
4865 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
4866 -bnoentry, since the right thing tends to happen anyhow.
4867
4868Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
4869
4870 * ld.texinfo, ld.1: Document -export-dynamic.
4871
4872Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4873
4874 * emultempl/sunos.em: Check for native compile by comparing
4875 ${target} and ${host}.
4876
4877Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
4878
4879 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
4880 TEXT_START_ADDR to allow use on IDT and PMON systems.
4881
4882Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
4883
4884 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
4885 correct spelling.
4886
4887Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
4888
4889 * configure.tgt (sparc64-*-solaris2*): New configuration.
4890 (sparc64-*-aout*): Renamed from sparc64*.
4891
4892Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4893
4894 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
4895 * genscripts.sh: Set host, target and target_alias variables.
4896 Check for native compile by comparing ${target} and ${host}.
4897 * emultempl/elf32.em: Likewise.
4898 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
4899
4900Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4901
4902 * scripttempl/elfppc.sc: Refine eabi support to better support
4903 .sdata, .sdata2, .sbss, etc. sections.
4904
4905Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
4906
4907 * ldgram.y (%union): Add phdr field.
4908 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
4909 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
4910 (opt_hdrs, hdr): Remove.
4911 (phdr_val): New nonterminal.
4912 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
4913 and phdrs parameters. Add flags parameter.
4914 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
4915 to bfd_record_phdr.
4916 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
4917 phdrs fields. Add flags field.
4918 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
4919 (lang_new_phdr): Update declaration.
4920 * ld.texinfo: Document FLAGS.
4921
4922Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
4923
4924 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
4925 Don't make a shared library because of an undefined reference to
4926 __GLOBAL_OFFSET_TABLE_.
4927
4928 Add some Irix 5 support, mostly from Kazumoto Kojima
4929 <kkojima@info.kanagawa-u.ac.jp>:
4930 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
4931 (SHLIB_TEXT_START_ADDR): Define.
4932 (OTHER_GOT_SYMBOLS): Define.
4933 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
4934 (EXECUTABLE_SYMBOLS): Don't define.
4935 (DYNAMIC_LINK): Don't define.
4936 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
4937 * scripttempl/elfmips.sc: New file.
4938 * configure.host (mips*-dec-bsd*): Change mips to mips*.
4939 (mips*-sgi-irix4*): Likewise.
4940 (mips*-sgi-irix5*): New entry.
4941 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
4942 elf.sc.
4943 (eelf32lmip.c): Likewise.
4944
4945Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4946
4947 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
4948 .rela.got.neg section.
4949
4950Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
4951
4952 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
4953
4954 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
4955 ANSI_PROTOTYPES is defined. Remove special handling of
4956 WINDOWS_NT. Various indendation fixes.
4957 (vfinfo): Change fmt parameter to const char *.
4958 (info_msg): Write <stdarg.h> version.
4959 (einfo, minfo, finfo): Likewise.
4960 (info_assert): Change file parameter to const char *.
4961 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
4962 defined, use a real prototype.
4963 (info_assert): Change first parameter to be const char *.
4964
4965Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4966
4967 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
4968 in old support that 2.7.2 needs, but the current compiler does
4969 not.
4970
4971 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
4972 correct Linker script template.
4973
4974 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
4975 not 0x400000.
4976 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
4977
4978Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
4979
4980 * scripttempl/alpha.sc: Put .rconst right after .rdata.
4981
4982Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
4983
4984 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
4985 sort using right pointer.
4986
4987Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4988
4989 * scripttempl/elfppc.sc: Remove support for creating special
4990 labels for eabi section begin/end here. The compiler now uses
4991 crt{i,n}.o to create these symbols.
4992
4993Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
4994
4995 * configure.host: Change existing Linux HOSTING_CRT0 to be used
4996 for a.out only, and put in appropriate HOSTING_CRT0 and
4997 HOSTING_LIBS values for Linux ELF.
4998
4999Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
5000
5001 * scripttempl/h8300.sc: Use all 64K for ram.
5002 * scripttempl/h8300h.sc: Define 256K ram size.
5003
5004Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
5005
5006 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
5007 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
5008 was used, regardless of whether -bE was used.
5009
5010Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
5011
5012 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
5013 relocateable before calling ldctor_build_sets if the output file
5014 is in an XCOFF format.
5015
5016Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
5017
5018 * ldwrite.c (build_link_order): When handling a data statement, if
5019 the endianness of the output file is unknown, use the endianness
5020 of the input file.
5021
5022Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
5023
5024 * mpw-config.in: Recognize mips-*-* as equivalent to
5025 mips-idt-ecoff.
5026 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
5027 * mpw-ld.r: Add version resources.
5028 (cfrg): Use symbolic instead of literal name for executable.
5029
5030Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
5031
5032 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
5033
5034Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
5035
5036 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
5037 (print_statement_list): Renamed from print_statement. All callers
5038 updated.
5039 (print_statement): New function to print just one statement.
5040 (print_{data,reloc,padding}_statement): Don't crash if
5041 output_section == NULL.
5042 (dprint_statement): New function.
5043
5044 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
5045 call to sort_sections.
5046
5047Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
5048
5049 * emultempl/aix.em (unix_ld): New static variable.
5050 (gld${EMULATION_NAME}_parse_args): Handle -unix.
5051 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
5052 gc as false and export_defineds as true to size_dynamic_sections.
5053
5054 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
5055 phase if the current section is abs_output_section.
5056
5057
5058Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
5059
5060 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
5061 to sort_sections.
5062
5063Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
5064
5065 * ldgram.y (PHDRS): New token.
5066 (ifile_p1): Accept phdrs.
5067 (section): Accept phdr_opt at the end of the section definition.
5068 (phdr_op): New nonterminal.
5069 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
5070 * ldlex.l: Accept PHDRS.
5071 * ldlang.h (struct lang_output_section_phdr_list): Define.
5072 (lang_output_section_statement_type): Add phdrs field.
5073 (struct lang_phdr): Define.
5074 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
5075 (lang_new_phdr): Declare.
5076 * ldlang.c (lang_phdr_list): New static variable.
5077 (lang_output_section_statement_lookup): Initialize phdrs field.
5078 (lang_process): Call lang_record_phdrs.
5079 (lang_new_phdr): New function.
5080 (lang_section_in_phdr): New function.
5081 (lang_record_phdrs): New static function.
5082 * ld.texinfo: Document PHDRS.
5083
5084Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
5085
5086 * scripttempl/ppcpe.sc: Moved .edata into its own section to
5087 expose it.
5088
5089Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5090
5091 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
5092 HOSTING_LIBS for testing.
5093 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
5094 testing.
5095
5096Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
5097
5098 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
5099 and -n.
5100
5101Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
5102
5103 * configure: Rebuild with autoconf 2.7.
5104
5105Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
5106
5107 * scripttempl/pe.sc: Two .junk's is too much junk.
5108
5109Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
5110
5111 * configure.in: Use BFD_NEED_DECLARATION.
5112 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
5113 * configure, config.in: Rebuild with autoconf 2.6.
5114
5115 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
5116 being unsupported if this is not a relocateable link and the input
5117 BFD supports it, since ldctor_build_sets can cope with that case.
5118
5119Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
5120
5121 * configure.tgt (powerpc-*-macos*): New target.
5122 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
5123 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
5124 (eppcmacos.c): New target.
5125 * mpw-eppcmacos.c: Update.
5126 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
5127
5128Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
5129
5130 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
5131 $(host_canonical) and $(target_canonical).
5132 (CXX_FOR_TARGET): Likewise.
5133
5134Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
5135
5136 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
5137 so the malloc heap begins at a sane place.
5138
5139Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
5140
5141 Version 2.6 released.
5142 * ldver.c (ldversion): Update to 2.6.
5143
5144 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
5145 $(GENERATED_*FILES), since they need to be retained by distclean.
5146 (maintainer-clean, realclean): Delete them here.
5147
5148Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
5149
5150 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
5151 base file with FOPEN_WB, not "w".
5152
5153 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
5154 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
5155 were used.
5156 (gld${EMULATION_NAME}_before_allocation): Use the environment
5157 variable LD_RUN_PATH if -rpath was not used.
5158 * ld.texinfo, ld.1: Document LD_RUN_PATH.
5159
5160Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
5161
5162 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
5163 -bl and -bloadmap options.
5164
5165 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
5166 report a better error.
5167
5168 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
5169 new local variable special_sections, and pass it to
5170 size_dynamic_sections. Look through the results, and move the
5171 sections around in the mapping so that they are defined correctly.
5172
5173Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
5174
5175 * ldemul.c (ldemul_default_target): Cast getenv return value.
5176
5177Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
5178
5179 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
5180 Executable support.
5181 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
5182 support.
5183
5184 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
5185 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
5186
5187 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
5188 (gld_$_before_allocation): added hooks for toc construction based
5189 on the above macro.
5190
5191Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
5192
5193 * ld.texinfo: The linker does not use _main as an entry point.
5194
5195Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5196
5197 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
5198 0x2000 not 0x200.
5199
5200Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
5201
5202 * configure.in: Add test for whether free must be declared.
5203 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
5204 * acconfig.h: Explain NEED_DECLARATION_FREE.
5205 * configure, config.in: Rebuild.
5206
5207 * lexsup.c (parse_args): Take B:: out of shortopts.
5208
5209Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
5210
5211 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
5212 for now, as with m68k4kbsd, until shared library support gets
5213 done.
5214
5215 * configure.host: For i386 BSD variants, crt0.o lives in
5216 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
5217
5218Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5219
5220 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
5221 (edelta68.c): New target.
5222 * configure.tgt (m68*-motorola-sysv*): New target.
5223 * emulparams/delta68.sh: New file.
5224 * scripttempl/delta68.sc: New file.
5225
5226 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
5227 addresses.
5228
5229Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
5230
5231 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
5232 ALIGN and ALIGNMOD statements.
5233
5234 * emultempl/aix.em: Include ldgram.h.
5235 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
5236 AIX 4.1.
5237 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
5238
5239Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
5240
5241 * configure.host (alpha-*-linux*): New host.
5242 * configure.tgt (alpha-*-linux*): New target.
5243
5244Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
5245
5246 * emultempl/aix.em (export_files): Remove.
5247 (import_files): Make static.
5248 (struct export_symbol_list): Define.
5249 (export_symbols): New static variable.
5250 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
5251 correctly. Call read_file for an export file.
5252 (gld${EMULATION_NAME}_before_allocation): Call
5253 bfd_xcoff_export_symbol for each export symbol, rather than
5254 calling read_file for each export file.
5255 (gld${EMULATION_NAME}_read_file): For an export file, make the
5256 exported symbols undefined, and store them on the export_symbols
5257 list.
5258
5259Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
5260
5261 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
5262 Don't hang if last option is unrecognised.
5263 (gld_${EMULATION_NAME}_set_symbols): Insert created
5264 symbols into ABS output section.
5265
5266Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
5267
5268 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
5269 m68k4k arch.
5270 (em68k4knbsd.c): New rule.
5271
5272 * configure.tgt: Added support for the NetBSD m68k4k arch.
5273
5274 * genscripts.sh, ldint.texinfo,
5275 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
5276 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
5277 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
5278 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
5279 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
5280 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
5281 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
5282 PAGE_SIZE to TARGET_PAGE_SIZE.
5283
5284 * emulparams/m68knbsd.h: Ditto.
5285 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
5286 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
5287 being.
5288
5289 * emulparams/m68k4knbsd.sh: New file.
5290
5291 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
5292
5293Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
5294
5295 * emultempl/aix.em: Include ldctor.h.
5296 (gld${EMULATION_NAME}_after_open): New static function.
5297 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
5298 (gld${EMULATION_NAME}_find_relocs): New static function.
5299 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
5300 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
5301 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
5302 * ldctor.c (struct set_info): Move definition into ldctor.h.
5303 (struct set_element): Likewise.
5304 (sets): Make non-static.
5305 (ldctor_add_set_entry): Add name parameter. Save it in the new
5306 set element.
5307 (ldctor_build_sets): Avoid being called twice. Pass set element
5308 name to lang_add_reloc.
5309 * ldctor.h (struct set_info): Move definition here from ldctor.c.
5310 (struct set_element): Likewise. Add new field name.
5311 (sets): Declare.
5312 (ldctor_add_set_entry): Declare new name parameter.
5313 * ldwrite.c (build_link_order): Don't insist that either name or
5314 section be NULL in a lang_reloc_statement.
5315 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
5316 new name parameter.
5317 (constructor_callback): Pass name to ldctor_add_new_set_entry for
5318 new name parameter.
5319
5320 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
5321
5322Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
5323
5324 * mpw-config.in: Add PowerMac target support, generate config.h.
5325 * mac-ld.r: New file, Mac resources.
5326 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
5327 * mpw-make.in: Remove.
5328 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
5329
5330Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
5331
5332 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
5333 -static as a synonym for -bnso.
5334
5335 * scripttempl/aix.sc: Move special symbols inside sections.
5336 Always start .data at 0.
5337
5338Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
5339
5340 * Makefile.in (diststuff): Also make info.
5341 (maintainer-clean realclean): Also delete *.info*.
5342
5343Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
5344
5345 * emultempl/aix.em: Add support for various AIX linker options,
5346 for AIX import and export files, and for AIX shared objects.
5347 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
5348
5349 * ldmain.c (main): Initialize new field link_info.static_link.
5350
5351 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
5352 (constructor_callback): Likewise.
5353 * ldmisc.c (vfinfo): Likewise.
5354 * ldwrite.c (build_link_order): Likewise.
5355
5356 * ld.texinfo: The MRI ALIGN directive is supported.
5357
5358Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
5359
5360 * emulparams/elf32vr4300.sh: Deleted.
5361 * emulparams/elf32vr4300el.sh: Deleted.
5362 * emulparams/elf32b4300.sh: Added.
5363 * emulparams/elf32l4300.sh: Added.
5364 * configure.tgt, Makefile.in: Updated the build to use the
5365 new 8.3 unique names.
5366
5367Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
5368
5369 * ldlang.c (entry_symbol): Make non-static.
5370 * ldlang.h (entry_symbol): Declare.
5371
5372 * ldlex.l: Treat PROVIDE as a keyword in expression state.
5373
5374Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
5375
5376 * scripttempl/pe.sc (.bss): Move to be after .text
5377
5378Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
5379
5380 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
5381 Search trinary.cond rather than searching trinary.lhs twice. From
5382 linli@ihp.PHys.ethz.CH.
5383
5384 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
5385 directory searching code into gld${EMULATION_NAME}_search_dir.
5386 (gld${EMULATION_NAME}_search_dir): New static function, extracted
5387 from gld${EMULATION_NAME}_find_so.
5388 (global_needed, global_found): New static variables.
5389 (gld${EMULATION_NAME}_after_open): New static function.
5390 (gld${EMULATION_NAME}_search_needed): New static function.
5391 (gld${EMULATION_NAME}_try_needed): New static function.
5392 (gld${EMULATION_NAME}_check_needed): New static function.
5393 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
5394 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
5395
5396 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
5397 (eelf32lppc.c): Likewise.
5398 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
5399 (GENERATE_SHLIB_SCRIPT): Define as yes.
5400
5401Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
5402
5403 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
5404 bfd_link_needed-list; make appropriate changes.
5405
5406 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
5407 (rs6000-*-aix*): New target; use aixrs6.
5408 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
5409 * emultempl/aix.em: New file.
5410 * scripttempl/aix.sc: New file.
5411 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
5412 (eaixppc.c, eaixrs6.c): New targets.
5413
5414Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
5415
5416 * scripttemp/pe.sc (.reloc): Move to the end.
5417
5418Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
5419
5420 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
5421 section which was not linked into the final output.
5422
5423Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
5424
5425 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
5426 fatal typos.
5427
5428Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
5429
5430 * ld.h (args_type): Add rpath_link field.
5431 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
5432 required dependencies in rpath_link path. Only search
5433 LD_LIBRARY_PATH when configured native.
5434 * lexsup.c (parse_args): Recognize -rpath-link.
5435 * ld.1, ld.texinfo: Document -rpath-link.
5436
5437Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
5438
5439 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5440 bother searching for needed libraries unless doing a final link.
5441
5442Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
5443
5444 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5445
5446 * ld/ld.1: Fix formatting bugs.
5447
5448Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
5449
5450 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
5451 * ldexp.h (exp_get_abs_int): Update declaration.
5452 * ldlang.c (print_output_section_statement): Use fprintf_vma to
5453 print return value of exp_get_abs_int.
5454
5455Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
5456
5457 * emultempl/elf32.em (global_stat): New file static variable.
5458 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
5459 that the file has not already been included under another name.
5460 (gld${EMULATION_NAME}_stat_needed): New static function.
5461
5462Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
5463
5464 * scripttempl/armcoff.sc: Start .text at 0x8000.
5465 Start .data at 0x40000.
5466
5467Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
5468
5469 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
5470 command_line.rpath is set, use it, rather than the -L options, to
5471 build the rules section.
5472 * ld.texinfo: Document this use of -rpath.
5473
5474 * lexsup.c (parse_args): Don't set link_info.shared for -assert
5475 pure-text. Pass true, not 1, to lang_add_entry.
5476 * emultempl/sunos.em (find_assign): New static variable.
5477 (found_assign): New static variable.
5478 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
5479 If not a relocateable link, and no start symbol was specified on
5480 the command line, and there are any undefined symbols, set
5481 link_info.shared. If link_info.shared is set, set the address of
5482 the .text section to 0x20.
5483 (gld${EMULATION_NAME}_find_assignment): Rename from
5484 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
5485 set, then just set found_assign based on whether an assignment is
5486 found to find_assign.
5487 (gld${EMULATION_NAME}_get_script): Don't use a special script when
5488 producing a shared library.
5489 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
5490 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
5491 * ldlang.c (entry_from_cmdline): New global variable.
5492 (lang_add_entry): Change cmdline parameter from int to boolean.
5493 Use global entry_from_cmdline rather than function static
5494 from_cmdline.
5495 * ldlang.h (entry_from_cmdline): Declare.
5496 (lang_add_entry): Change declaration of second parameter from int
5497 to boolean.
5498 * ldgram.y: Pass false, not 0, to lang_add_entry.
5499
5500Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
5501
5502 * ld.h (parsing_defsym): Declare.
5503 * ldlex.h (lex_string): Declare.
5504 * ldlex.l (lex_string): Define.
5505 * lexsup.c (parsing_defsym): Define.
5506 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
5507 lex_redirect, and clear it after calling yyparse. Set
5508 parsing_defsym around call to yyparse.
5509 * ldmain.c (main): Set lex_string before calling lex_redirect, and
5510 clear it after calling yyparse.
5511 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
5512 in linker scripts correctly.
5513
5514 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
5515 COFF targets, allowing for the leading underscore used on SPARC
5516 COFF.
5517
5518 * lexsup.c (parse_args): Handle -assert.
5519 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
5520 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
5521 shared library script when appropriate.
5522 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
5523 section at SIZEOF_HEADERS.
5524
5525Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
5526
5527 * Makefile.in (earmcoff.c): Build.
5528 * configure.tgt (arm-*-coff): New target
5529 * emulparms/armcoff.sh: New file.
5530 * scripttempl/armcoff.sc: New file.
5531
5532Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
5533
5534 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
5535
5536Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
5537
5538 * ldfile.c (ldfile_set_output_arch): Make arch const.
5539
5540Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5541
5542 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
5543 beginning of the .bss area, not at the end of data. Add
5544 __sbss_{start,end} symbols.
5545
5546Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
5547
5548 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
5549 (CXX_FOR_TARGET, install): Likewise.
5550
5551Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
5552
5553 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
5554 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
5555 (CXX_FOR_TARGET): Likewise.
5556 (install): Likewise.
5557 (GENERATED_HFILES): Remove config.h.
5558 (.dep): Depend upon config.h.
5559
5560Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
5561
5562 * configure.tgt (mips*-dec-netbsd*): New target.
5563
5564Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
5565
5566 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
5567
5568Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
5569
5570 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
5571
5572Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
5573
5574 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
5575 Start .text section on the right boundary. Always align
5576 stabs.
5577
5578Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
5579
5580 * Makefile.in (maintainer-clean): New target.
5581
5582 * ldmain.c (struct warning_callback_info): Define.
5583 (warning_callback): Add new parameter symbol. Call
5584 warning_find_reloc to try to find the section and VMA.
5585 (warning_find_reloc): New static function.
5586 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5587 Pass NULL as symbol parameter to warning callback.
5588
5589 * ld.texinfo: Clarify -L option.
5590
5591 * ldlang.c (lang_one_common): Add cast to avoid warning.
5592 (topower): Likewise. Also, reindent.
5593 * ldwrite.c (clone_section): Change i to unsigned int.
5594 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
5595 cast to avoid warning.
5596
5597Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
5598
5599 * Makefile.in (config.status): Depend upon configure.tgt.
5600
5601 * ldemul.h (ldemul_set_symbols): Declare.
5602 (ldemul_parse_args): Declare.
5603 * ldemul.c (ldemul_parse_args): Fix indentation.
5604
5605 * configure.in: Call AC_HEADER_DIRENT.
5606 * configure, config.in: Rebuild.
5607 * emultempl/sunos.em: Use autoconf recommend mechanism to define
5608 DIR and struct dirent.
5609
5610 * configure.tgt (mips*-*-bsd*): New case.
5611
5612 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
5613 New case.
5614 * configure.tgt (i[345]86-*-ptx*): New case.
5615
5616Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
5617
5618 * config.in: Rename from config.h.in.
5619 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
5620 Check for config.h:config.in when creating stamp-h.
5621 * configure: Rebuild.
5622 * Makefile.in (stamp-h): Depend upon config.in rather than
5623 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
5624 calling config.status.
5625
5626 * Makefile.in (distclean): Remove config.h and stamp-h.
5627
5628 * configure.host (sparc-*-sunos64*): Remove.
5629 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
5630
5631 * ldexp.c (exp_fold_tree): Don't warn about moving the location
5632 counter backward in the absolute section.
5633
5634Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
5635
5636 * configure.in: Rewrite to use autoconf.
5637 * configure.host: New file.
5638 * configure.tgt: New file.
5639 * aclocal.m4: New file.
5640 * configure: New file, built by autoconf.
5641 * acconfig.h: New file.
5642 * config.h.in: New file, built by autoheader.
5643 * sysdep.h: New file.
5644 * ld.h: Incorporate old contents of config.h.
5645 * config.h: Remove.
5646 * Makefile.in: Various changes for new configure script. Also:
5647 (CC_FOR_BUILD): Remove.
5648 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
5649 (dep.sed): Use @SRCDIR@, not @srcdir@.
5650 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
5651 * genscripts.sh: Create ldscripts if it does not exist.
5652 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
5653 * mpw-esh.c, emultemp/*.em: Likewise.
5654 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
5655 HAVE_SBRK here.
5656 * config/*.mt, config/*.mh: Remove.
5657
5658Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
5659
5660 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
5661 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
5662
5663Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
5664
5665 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
5666
5667Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
5668
5669 * ldmain.c (warning_callback): Add abfd, section, and address
5670 parameters.
5671 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5672 Change call to warning accordingly.
5673
5674 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
5675 relocateable and not shared, put .gnu.warning.SYMBOL sections into
5676 the .text section.
5677
5678Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
5679
5680 * configure.in: Added mips*vr4300-idt-elf* and
5681 mips*vr4300el-idt-elf* targets.
5682 * Makefile.in: Added eelf32vr4300* targets.
5683 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
5684 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
5685
5686Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
5687
5688 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
5689 <brendan@cygnus.com>.
5690
5691Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
5692
5693 * ldemul.c (ldemul_parse_args): New.
5694 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
5695 * lexsup.c (all pe stuff): Moved into pe.em
5696 (parse_args): Call emulation arg parser.
5697 * emultempl/pe.em (parse_args): handle PE specfic args.
5698
5699Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
5700
5701 * ldlang.c (lang_memory_region_lookup): Don't use the first region
5702 as the default region. Create a new region instead.
5703
5704Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
5705
5706 * ldemul.c (ldemul_set_symbols): New function.
5707 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
5708 * ldmain.c (main): Add call to ldemul_set_symbols.
5709 * lexsup.c (set_pe_value): New args.
5710 (set_pe_name): New.
5711 (parse_args): Cope with new set_pe_value args.
5712 * emultempl/pe.em (set_symbols): New function.
5713 (ld_emulation_xfer_struct): Add set_symbols.
5714 * scripttempl/pe.sc: Use new symbols.
5715
5716Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
5717
5718 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
5719 For -Y, ignore a leading `P,', and only call set_default_dirlist
5720 after processing all the other arguments.
5721
5722Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
5723
5724 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
5725 * emulparams/armpe.sh: Run PE script.
5726
5727Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
5728
5729 * ldmain.c (main): Remove PE stuff.
5730 * lexsup.c (options): Load more PE options.
5731 (set_pe_value): New function.
5732
5733Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
5734
5735
5736 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
5737 * emultempl/pe.sc: New file performs generic PE support and sorts
5738 archive members.
5739 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
5740 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
5741 * scripttempl/pe.sc: New.
5742 * Makefile.in: Use new files.
5743
5744Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
5745
5746 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
5747 (.strings,.ctors,.dtors): Likewise.
5748
5749Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
5750
5751 * scripttempl/armpe.sc: Always start code at 0x401000, even
5752 if -r.
5753 * ldwrite.c (strdup): New extern declaration.
5754 * ldgram.y (atype): New rule to clarify type parsing.
5755 * ldlang.c (init_os): Remove commented out code.
5756 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
5757 unless told not to by the link script.
5758
5759Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
5760
5761 * ldlang.c (lang_set_startof): New static function.
5762 (lang_process): Call it.
5763
5764 * ldgram.y: Tweak casesymlist to avoid bison errors.
5765
5766 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
5767 Solaris compatibility.
5768
5769Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
5770
5771 * ldgram.y (YYDEBUG): If not defined, define as 1.
5772 (CASE, EXTERN, START): New tokens.
5773 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
5774 (casesymlist): New nonterminal.
5775 (extern_name_list): New nonterminal.
5776 * ldlex.l: Accept lower case trailing base specifiers. Don't
5777 ignore the first digit when the base is a suffix. Accept many
5778 EXPRESSION state tokens in MRI state. Support MRI continuation
5779 lines and MRI semicolon comments. Accept all MRI keywords in
5780 lower case. Add CASE, EXTERN, and START MRI keywords.
5781
5782Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
5783
5784 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
5785 instead of alloca.
5786
5787Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
5788
5789 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
5790 $r/../gcc/xgcc unless it is present.
5791
5792Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
5793
5794 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
5795 when CONSTRUCTING.
5796 * scripttempl/m68klynx.sc: Likewise.
5797 * scripttempl/nw.sc: Likewise.
5798 * scripttempl/sa29200.sc: Likewise.
5799 * scripttempl/sparclynx.sc: Likewise.
5800
5801Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
5802
5803 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
5804
5805Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
5806
5807 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
5808
5809Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
5810
5811 * scripttempl/i386pe.sc: Cope with constructors.
5812 * scripttempl/z8ksim.sc: Deleted.
5813 * scripttempl/z8000.sc: Resurrected as this, but
5814 can handle z8001 and z8002 formats.
5815 * emulparams/z8ksim.sh: Deleted.
5816 * emulparams/{z8001.sh, z8002.sh}: New files.
5817 * config/z8ksim.mt: Deleted
5818 * config/z8k-coff.mt: New, generates both emulations.
5819
5820Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
5821
5822 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
5823 %B, in case it is in an archive.
5824
5825Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
5826
5827 * ldlang.c (lang_process): Call reset_memory_regions for each
5828 relaxation pass.
5829
5830Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
5831
5832 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
5833 _SDA_BASE.
5834
5835Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
5836
5837 * ldmain.c (constructor_callback): Allocate set_name in stack
5838 frame, rather than always calling alloca with a fixed size.
5839
5840Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
5841
5842 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
5843 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
5844
5845Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
5846
5847 * ldwrite.c (clone_section): Set the alignment of the clone
5848 section to that of the section being cloned.
5849
5850 * ldwrite.c (split_sections): Don't split the first input section
5851 into a new output section.
5852
5853Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
5854
5855 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
5856 (GENERATE_SHLIB_SCRIPT): Define as yes.
5857
5858Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
5859
5860 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
5861
5862 * ldver.c (help): Update list of options to match currently
5863 supported list.
5864
5865Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
5866
5867 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
5868 after_open field.
5869
5870 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
5871 it takes a size_t anyhow.
5872 (exp_binop): Likewise.
5873 (exp_trinop): Likewise.
5874 (exp_unop): Likewise.
5875 (exp_nameop): Likewise.
5876 (exp_assop): Likewise.
5877 * ldlang.c (lang_memory_region_lookup): Likewise.
5878 (init_os): Likewise.
5879 (ldlang_add_undef): Likewise.
5880 (insert_pad): Likewise.
5881 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
5882 bfd_size_type.
5883
5884 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
5885
5886Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
5887
5888 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
5889 declaration.
5890 (ld_emulation_xfer_type): Add search parameter to
5891 open_dynamic_archive entry point.
5892 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
5893 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
5894 make non-static. Change all callers to use new name.
5895 (ldfile_open_file_search): Make static. If entry is dynamic, call
5896 ldemul_open_dynamic_archive.
5897 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
5898 * ldfile.h (ldfile_open_file_search): Don't declare.
5899 (ldfile_try_open_bfd): Declare.
5900 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
5901 Accept search parameter. Don't search for a library, just look in
5902 a single place.
5903 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
5904 Likewise.
5905
5906Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
5907
5908 * ldmain.c (set_scripts_dir): Don't base script directory on
5909 current directory.
5910
5911Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
5912
5913 * ldmisc.c (vfinfo): Don't print the line number if it isn't
5914 meaningful.
5915
5916Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
5917
5918 * ld.h (ld_config_type): Add field warn_constructors.
5919 * ldmain.c (add_to_set): Warn if config.warn_constructors.
5920 (constructor_callback): Likewise.
5921 * lexsup.c (parse_args): Handle -warn-constructors.
5922 * ld.texinfo, ld.1: Document -warn-constructors.
5923
5924 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
5925 get confused by directory names if we searched for the file.
5926
5927 Based on patches from H.J. Lu <hjl@nynexst.com>:
5928 * ldlang.h (lang_input_statement_type): Add new field dynamic.
5929 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
5930 * ldfile.c: Include bfdlink.h.
5931 (ldfile_open_file): Check dynamic field of entry, not global
5932 dynamic_link field. Don't do a dynamic search when doing a
5933 relocateable link.
5934 * ldmain.c (main): Don't warn about dynamic_link for a
5935 relocateable link.
5936 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
5937 dynamic is false.
5938 (gld${EMULATION_NAME}_create_output_section_statements): Always
5939 loop over input files.
5940 * Makefile.in: Rebuild dependencies.
5941
5942 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
5943 -shared.
5944
5945Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
5946
5947 * ldmain.c (main): Set link_info.symbolic to false.
5948 * lexsup.c (parse_args): Handle -Bsymbolic.
5949
5950Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
5951
5952 * ldmain.c (HAVE_SBRK): Define for everything except
5953 specific systems that are known to not support sbrk.
5954 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
5955
5956Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
5957
5958 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
5959 Handle etree_provide.
5960
5961 * emultempl/elf32.em (global_needed): New static variable.
5962 (global_found): Likewise.
5963 (gld${EMULATION_NAME}_after_open): New static function.
5964 (gld${EMULATION_NAME}_search_needed): Likewise.
5965 (gld${EMULATION_NAME}_try_needed): Likewise.
5966 (gld${EMULATION_NAME}_check_needed): Likewise.
5967 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
5968 gld${EMULATION_NAME}_after_open.
5969
5970Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
5971
5972 * configure.in (i386-*-win32): New target.
5973
5974Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
5975
5976 * lexsup.c (parse_args): Let -G either set the small data size or
5977 be equivalent to --shared, depending on the next argument. Accept
5978 and ignore -z for Solaris compatibility.
5979
5980Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
5981
5982 * lexsup.c (parse_args): Cast fopen result to PTR before storing
5983 it in link_info.base_file. Fix indentation.
5984
5985Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
5986
5987 * ldmain.c (main): Always initialize PE info in link_info.
5988 * lexsup.c (OPTION_BASE_FILE): New option.
5989 (parse_args): Handle new option.
5990 * emulparams/armpe.sh: Output pei.
5991 * emultempl/i386pe.em: Add newline to end.
5992 * scripttempl/armpe.sc: Change output and quote the $s.
5993 * scripttempl/i386pe.sc: Change output and quote the $s.
5994
5995Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
5996
5997 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
5998
5999 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
6000 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
6001 (i386msdos.o): New target.
6002 * config/i386-msdos.mt: Created.
6003 * emulparams/i386msdos.sh: Created.
6004 * scripttempl/i386msdos.sc: Created.
6005
6006Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6007
6008 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
6009 that contains pointers to be relocated.
6010
6011Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
6012
6013 * mpw-esh.c: New file, modified for MPW from esh.c.
6014 * scripttempl/sh.sc: Reformatted to simplify MPWification,
6015 use *() to concat stab sections instead of [].
6016
6017Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
6018
6019 * scripttempl/armpe.sc: Add constructor support.
6020
6021Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
6022
6023 * ldlang.c (lang_size_sections): Any section with a DATA
6024 statement has contents.
6025
6026Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6027
6028 * emulparams/m68kelf.sh (NOP): Define.
6029 (DYNAMIC_LINK): Don't define.
6030 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
6031 will come from the linker script.
6032
6033Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
6034
6035 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
6036
6037Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6038
6039 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
6040
6041Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6042
6043 From Andrew Cagney <cagney@highland.com.au>
6044 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
6045 elf32lppc.
6046
6047Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
6048
6049 Add support for ARM-PE.
6050 * Makefile.in (ALL_EMULATIONS): Add armpe.o
6051 * configure.in: Recognize armpe.
6052 * config/arm-pe.mt: New file.
6053 * emulparams/armpe.sh: New file.
6054 * scripttempl/armpe.sc: New file.
6055
6056
6057Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
6058
6059 * configure.in (h8300h-*-hms): Deleted
6060 * config/cf-h8300h.mt: Deleted.
6061
6062Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6063
6064 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6065
6066 From David Taylor (dtaylor@armltd.co.uk)
6067 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
6068 * configure.in: Recognize arm{,e[lb]-*-aout.
6069 * config/arm[lb]-aout.mt: New files.
6070 * emulparams/armaout[lb].sh: New files.
6071 * scripttempl/armaout.sc: New file.
6072
6073Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6074
6075 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
6076 be unique in 8 characters for DOS.
6077
6078 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
6079 * emulparams/elf32ppcle.sh: Deleted.
6080
6081Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
6082 Tom Griest <griest@cs.yale.edu>
6083
6084 Initial support for PE executables (eg NT, win32)
6085
6086 * Makefile.in (configure.in, ei386pe): Add support.
6087 * ldmain.c (main): Initialize PE argument info.
6088 * ldwrite.c (print_file_stuff): Don't print out .drectve
6089 and .debug section info.
6090 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
6091 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
6092 Handle new arguments.
6093 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
6094 New files
6095
6096Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
6097
6098 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
6099 segment. This allows ld -r to preserve unwind sections.
6100
6101Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6102
6103 * configure.in: Add little endian PowerPC support.
6104
6105 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
6106 (eelf32ppcle.c): Support for little endian PowerPC.
6107
6108 * config/ppcle-elf32.mt: New file for little endian PowerPC.
6109 * emulparams/elf32ppcle.sh: Ditto.
6110
6111Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6112
6113 * ldlang.c (print_output_section_statement): Check
6114 subsection_alignment, instead of checking section_alignment twice.
6115 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
6116
6117Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
6118
6119 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
6120
6121Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
6122
6123 * ldwrite.c (ldwrite): Before doing anything, reset the error
6124 code. If bfd_final_link returns an error, but the error code is
6125 unset, don't issue an extra message. Assume a correct error
6126 message was already set.
6127
6128Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6129
6130 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
6131 (em68kelf.o): New target.
6132 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
6133 * configure.in: Use them for m68*-*-elf.
6134
6135Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
6136
6137 Merge in support for Mac MPW as a host.
6138 (Old change descriptions retained for informational value.)
6139
6140 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
6141 (i386-unknown-coff): Remove.
6142 (sh-hitachi-hms): New target.
6143 (emulation_ofiles): Set correctly for each target.
6144 (version, TDEFINES): Add to makefile fragment.
6145 * mpw-make.in (BISON): Use byacc instead of bison.
6146 (em_*.c): Replace with e*.c everywhere.
6147 (ldgram.h): Separate action from ldgram.c generation.
6148 (LD_PROG): Depend on Version.r.
6149 (Version.r): generate from version info.
6150 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
6151
6152 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
6153 i386-unknown-aout, i386-unknown-coff): New targets.
6154 (m68k-aout, m68k-coff): Remove targets.
6155 (mk.tmp): Add definition of EMUL.
6156
6157 * mpw-config.in (emulname): Set based on target.
6158 (ldemul-list.h): Construct.
6159 * mpw-make.in (install-only): New target.
6160 (install): Depend on install-only.
6161
6162 * mpw-make.in (bindir): Fix pathname.
6163 (install): Move here from mpw-build.in.
6164
6165 * mpw-config.in: New file, MPW configuration fragment.
6166 * mpw-make.in: New file, MPW makefile fragment.
6167 (This file is semi-automatically generated from Makefile.in.)
6168 * ldfile.c (slash): If MPW, set to `:'.
6169 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
6170 prevent redefinition errors.
6171
6172Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
6173
6174 * ldwrite.c (clone_section): Align clone sections on even
6175 boundaries.
6176
6177Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
6178
6179 * configure.in: Change linux to default to elf. Using
6180 i[345]86-*-linuxaout will build a linker which defaults to a.out.
6181 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
6182 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
6183 * config/i386-lelf.mt: Remove.
6184
6185Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
6186
6187 * ldmain.c (main): If opening the map file fails, call
6188 bfd_set_error before calling einfo.
6189
6190 * ld.texinfo, ld.1: Document the -no-keep-memory option.
6191
6192Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
6193
6194 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
6195 does mark shared libraries as executable.
6196
6197Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
6198
6199 * ldlang.c (lang_common): Change power to int. Pass larger values
6200 before smaller values.
6201 (lang_one_common): Treat info as int *. Don't bother to check for
6202 last value, since it is now zero.
6203
6204Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
6205
6206 * ldlang.c (load_symbols): An empty archive is OK.
6207
6208Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
6209
6210 * ldmain.c (progress.h): Include.
6211 (main): Call START_PROGRESS and END_PROGRESS.
6212
6213Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
6214
6215 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
6216 .dtors sections, so that these pointers get relocated also.
6217 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
6218 and end of the constructors/destructors.
6219
6220Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6221
6222 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
6223 describes an archive, call bfd_link_add_symbols on each member.
6224 * ldmain.c (whole_archive): New variable.
6225 (main): Initialize it to false.
6226 * ldmain.h: Declare whole_archive.
6227 * lexsup.c (parse_args): Grok --whole-archive switch.
6228 * ld.texinfo, ld.1: Document --whole-archive.
6229
6230Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
6231
6232 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
6233 using the default emulation.
6234
6235 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
6236 LDEMULATION.
6237 * config/hppaelf.mh (HOSTING_EMU): Likewise.
6238
6239Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
6240
6241 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
6242 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
6243
6244Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
6245
6246 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
6247
6248 * ldlex.l: Return -lFILENAME as the token LNAME.
6249 * ldgram.y: Add token LNAME.
6250 (input_list): Treat LNAME like NAME, but pass it to
6251 lang_add_input_file as lang_input_file_is_l_enum.
6252 * ld.texinfo: Document using -lFILENAME in INPUT.
6253
6254Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6255
6256 * ldlang.c (lang_check): If the architectures are compatible call
6257 bfd_merge_private_bfd_data to let the backend do additional
6258 checks.
6259
6260Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
6261
6262 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
6263 all supported emulations.
6264
6265Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
6266
6267 * ldemul.c (ldemul_list_emulations): New function.
6268 * ldemul.h (ldemul_list_emulations): Declare.
6269 * ldver.c (help): List supported targets and emulations.
6270
6271Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
6272
6273 * scripttempl/elf.sc (.debug): Relocate to address 0.
6274 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
6275 .debug_sfnames, .line): Likewise.
6276
6277Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
6278
6279 * emultempl/elf32.em (hold_rel): New static variable.
6280 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
6281 contents whose names begin with ".rel" after hold_rel. Remove the
6282 assertion which checked for unplaced .rel sections. Don't try to
6283 sort the section into place if place->bfd_section is NULL.
6284 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
6285 section beginning with ".rel".
6286
6287Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
6288
6289 Doc note from pierre@phi.la.tce.com (Pierre Willard):
6290 * ld.texinfo: -X and -x work even if -s or -S are not specified.
6291 * ld.1: Similar change.
6292
6293Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
6294
6295 * emulparams/gld960coff.sh (COFF_CTORS): Define.
6296 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
6297
6298Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
6299
6300 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
6301 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
6302 * config/i386-lelf.mt: New file.
6303 * config/i386-gelf.mt: New file.
6304
6305Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
6306
6307 * configure.in: Match on mips-ecoff, and default to the IDT
6308 configuration.
6309
6310Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
6311
6312 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
6313 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
6314 to double the size of the table.
6315
6316Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6317
6318 * Makefile.in (distclean): Do recursive deletion, since ldscripts
6319 is a directory.
6320
6321Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
6322
6323 * ldmain.c (main): If trace_file_tries is true, and we are using
6324 an internal linker script, print out the script.
6325 * ldfile.c (try_open): Reindent function. Make the messages about
6326 opening script files more informative.
6327
6328 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
6329 * ld.texinfo, ld.1: Update accordingly.
6330
6331Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
6332
6333 * ldlang.c (lang_one_common): Adjust references to common symbol
6334 information for new structure.
6335
6336Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
6337
6338 * ldmain.c (undefined_symbol): Handle section being NULL.
6339
6340 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
6341 * ldexp.c (fold_name): Likewise.
6342 * ldlang.c (print_one_symbol): Likewise.
6343 (lang_finish): Likewise.
6344 * ldmain.c (multiple_common): Likewise.
6345 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
6346 renamed to bfd_link_hash_undefweak.
6347
6348 * scripttempl/alpha.sc: Set address of .data section correctly
6349 when -n or -N is used. Patch from Chris G Demetriou
6350 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
6351 * scripttempl/mips.sc: Similar change.
6352
6353Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
6354
6355 * ldlang.c (lang_size_sections): Clarify error message when user
6356 specified start addr conflicts with region. Fix resetting of
6357 region pointer.
6358
6359Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
6360
6361 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
6362 in lang_allocating_phase_enum.
6363
6364Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
6365
6366 * Makefile.in (distclean): Depend upon clean. Don't bother to
6367 remove files which will be removed by clean. From patch by
6368 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
6369
6370Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
6371
6372 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
6373 a MIPS target, clobber the size of all but the first input
6374 .reginfo section to be 0, so that lang_size_sections sets the
6375 correct size for the output .reginfo section.
6376
6377Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
6378
6379 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6380 Remove unused variable is.
6381
6382Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6383
6384 * configure.in: Add support for powerpc-*-eabi.
6385
6386 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
6387 support.
6388
6389 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
6390 elf.sc, which defines some new symbols PowerPC elf needs.
6391
6392Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6393
6394 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
6395 constructor entry is in the absolute section.
6396
6397Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6398
6399 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
6400 * config/i386-gnu.mt: New file. Include ELF support.
6401
6402Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6403
6404 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
6405 there are any input sections named .gnu.warning, treat them as
6406 containing a warning message to be printed by the linker, and
6407 clobber the size so that the message is not copied into the output
6408 file.
6409 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
6410 section.
6411
6412Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
6413
6414 * configure.in (w65-*-*): New target.
6415 * Makefile.in: Update.
6416 * scripttempl/w65.sc: New.
6417 * config/coff-w65.mt: New.
6418
6419Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
6420
6421 * ldlang.c (lang_place_orphans): Don't ignore files with
6422 just_syms_flag set. Instead, put all their sections in
6423 bfd_abs_section_ptr, using the section VMA as the output_offset.
6424
6425Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6426
6427 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
6428 name `reloc_howto_type', since it's now defined to be const.
6429 * ldlang.c (lang_add_reloc): Ditto.
6430 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
6431
6432Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
6433
6434 * ldexp.c (fold_binary): Adding or subtracting an absolute value
6435 to a relative value does not require forcing the relative value to
6436 be absolute. Also, reindent function.
6437
6438Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6439
6440 * ldwrite.c (clone_section): Create a symbol with the
6441 same name as the section.
6442
6443Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6444
6445 * ld.h (split_by_reloc, split_by_file): New flags.
6446 * ldwrite.c (clone_section, split_sections): New functions.
6447 * lexsup.c (parse_args): Understand new split options.
6448
6449Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6450
6451 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
6452 .data segment. They must be writable when creating a shared
6453 library. From H.J. Lu <hjl@nynexst.com>.
6454
6455Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
6456
6457 * emultempl/miposecoff.em: New file.
6458 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
6459 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
6460 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
6461 provide __runtime_reloc_start and __runtime_reloc_stop if they are
6462 used. Align _fdata to a 16 byte boundary.
6463 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
6464 generic.em.
6465 (emipsidtl.c): Likewise.
6466 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
6467
6468 * ld.h (args_type): Add new field embedded_relocs.
6469 * ldemul.h (ldemul_after_open, after_open_default): Declare.
6470 (ld_emulation_xfer_struct): Add new field after_open.
6471 * ldemul.c (ldemul_after_open): New function.
6472 (after_open_default): New function.
6473 * ldlang.c (lang_process): Call ldemul_after_open.
6474 * lexsup.c (parse_args): Handle --embedded-relocs.
6475 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
6476 new after_open field to after_open_default.
6477 * emultempl/generic.em, emultempl/gld960.em: Likewise.
6478 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
6479 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
6480 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
6481 * ld.texinfo, ld.1: Mention -embedded-relocs.
6482
6483Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6484
6485 * Makefile.in: Add eshl.o.
6486 * config/coff-sh.mt: Add shl emulation.
6487
6488Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6489
6490 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
6491 Youngdale <eric@aib.com>.
6492
6493Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6494
6495 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
6496 * config/i386linux.mh: New file; set HOSTING_CRT0.
6497 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
6498 /usr/lib, since that is already in LIB_PATH.
6499
6500Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
6501
6502 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
6503 address.
6504 (.data, .bss): If "-N", then place the data/bss just after the end
6505 of the .text section rather than at the default 0x40000000.
6506
6507 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
6508 text segment.
6509
6510Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6511
6512 Patches from Eric Youngdale <eric@aib.com>:
6513 * ldlang.c (lang_finish): Don't warn if entry symbol not found
6514 when generating a shared library.
6515 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
6516 attempting to place an orphaned relocation section when generating
6517 a dynamically linked object.
6518
6519 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
6520 _start.
6521
6522Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6523
6524 * ld.h (args_type): Add field export_dynamic.
6525 * lexsup.c (parse_args): Recognize --export-dynamic.
6526 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
6527 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
6528
6529Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6530
6531 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
6532 we allocate common symbols.
6533
6534Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
6535
6536 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
6537 .rela.fini to the list of .rel* sections.
6538
6539Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6540
6541 * ldlang.c (load_symbols): Add new argument place. Only accept
6542 linker scripts if place is not NULL. Put commands found in an
6543 assumed linker script into place.
6544 (lookup_name): Pass NULL as place argument to load_symbols.
6545 (open_input_bfds): In lang_input_statement_enum case, pass a place
6546 argument to load_symbols, and store any new statements after the
6547 current one.
6548
6549Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6550
6551 * ldver.c (ldversion): Bump to 2.5.3.
6552
6553Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6554
6555 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
6556
6557Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6558
6559 * Makefile.in (check): Add missing "else true" clause.
6560
6561 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
6562
6563 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
6564 entry point to "start". Align at end of each section to 0x200.
6565 Start .text section 0x1000 later. Add _etext, _edata, _end
6566 symbols.
6567
6568Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6569
6570 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
6571 composed of different object file formats.
6572 (ldctor_build_sets): If the output format does not support the
6573 reloc, and we are not generating a relocateable link, try getting
6574 the reloc from the input format.
6575
6576Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
6577
6578 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
6579 (em68knbsd.c): New target.
6580
6581 * config/m68k-nbsd.mt: New file.
6582 * emulparams/m68knbsd.sh: New file.
6583 * configure.in (m68*-*-netbsd*): Use above configs.
6584
6585Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6586
6587 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
6588 appropriately named static library, stop the search at that
6589 directory.
6590
6591Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
6592
6593 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
6594 and esparcnbsd.o; sorted entries.
6595 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
6596
6597 * config/netbsd532.mt: Removed.
6598 * emulparams/netbsd532.sh: Removed.
6599
6600 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
6601 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
6602 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
6603 sparc*-*-netbsd*): Use above configs.
6604
6605Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6606
6607 * ldmain.c (multiple_common): One of the types may now be
6608 bfd_link_hash_indirect. The old BFD argument may be NULL.
6609
6610Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6611
6612 * configure.in: Add * at the end of m68k-hp-hpux.
6613
6614Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6615
6616 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
6617 YY_CHAR *.
6618
6619Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
6620
6621 * scripttempl/nw.sc: Gather constructors and destructors and
6622 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
6623
6624Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
6625
6626 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
6627 (ei386nw.c, eppcnw.c): New targets.
6628
6629 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
6630 scripttempl/nw.sc: New files, for i386 and powerpc netware.
6631
6632 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
6633 instead of {i386,ppc}-elf.
6634
6635 * configure.in (sparc*-*-netware): Removed. There is no such
6636 thing anymore.
6637
6638 * ldint.texinfo: Move misplaced `@end iftex'.
6639
6640Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
6641
6642 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
6643 .rela.dtors to the list of .rel* sections.
6644
6645Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6646
6647 * ldver.c (ldversion): Update to version 2.5.
6648 * Version 2.5 released.
6649
6650 * configure.in (all_targets): Handle i386-linux*.
6651
6652Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6653
6654 * scripttempl/aout.sc: Set _etext and __etext to ., not
6655 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
6656 will not break any other system. From Eric Valette
6657 <ev@chorus.fr>.
6658
6659Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
6660
6661 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
6662 --verbose to get the old -V behaviour.
6663 * ld.1, ld.texinfo: Document this change.
6664
6665Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6666
6667 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
6668 assertion, since it could fail with a user defined linker script.
6669
6670 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
6671 name in the hash table during the first phase--the hash table does
6672 not even exist at that point, much less have the right value.
6673
6674 * Makefile.in (CC): Define.
6675 (CXX): Move definition, change from g++ to gcc.
6676 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
6677 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
6678 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
6679 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
6680 (.cc.o): Comment out.
6681 (testdir): Remove.
6682 (site.exp): Don't create testdir or set tmpdir.
6683 (check): Run checks even if not running native. Use CC_FOR_TARGET
6684 instead of RUNTEST_CC, and likewise for CXX.
6685 (cdtest targets): Comment out.
6686 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
6687 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
6688 * cdtest-main.cc, cdtest.exp: Remove.
6689
6690Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6691
6692 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
6693 file naming problems.
6694 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
6695 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
6696 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
6697 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
6698 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
6699 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
6700 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
6701
6702 * genscripts.sh: Always search /usr/local/TARGET/lib.
6703
6704 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
6705
6706Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6707
6708 * configure.in: Handle i386-bsdi* targets like i386-bsd.
6709
6710Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6711
6712 * lexsup.c (parse_args): Add support for -a for HP/UX
6713 compatibility.
6714
6715 * lexsup.c (parse_args): -c takes an argument.
6716
6717Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6718
6719 * ld.h (args_type): Add new field endian.
6720 * lexsup.c (parse_args): Handle -EB and -EL by setting
6721 command_line.endian.
6722 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
6723 * ldlang.c (lang_add_output_format): Add arguments big and little.
6724 If command_line.endian is set, use it to select big or little
6725 rather than the default. Changed all callers.
6726 * ldlang.h (lang_add_output_format): Update declaration.
6727 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
6728 LITTLE_OUTPUT_FORMAT.
6729 * emulparams/elf32mipl.sh: Likewise.
6730 * emulparams/mipsbig.sh: Likewise.
6731 * emulparams/mipsbsd.sh: Likewise.
6732 * emulparams/mipsidt.sh: Likewise.
6733 * emulparams/mipsidtl.sh: Likewise.
6734 * emulparams/mipslit.sh: Likewise.
6735 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
6736 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
6737 OUTPUT_FORMAT.
6738 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
6739 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
6740 * scripttempl/mipsbsd.sc: Likewise.
6741
6742 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
6743 depending upon ldgram.c, so that a parallel make does not try to
6744 build both at once.
6745
6746 * configure.in (mips*el-elf*): New target.
6747 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
6748 (eelf32mipl.c): New target.
6749
6750 * config/mipsl-elf32.mt: New file.
6751 * emulparams/elf32mipl.sh: New file.
6752
6753Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6754
6755 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
6756 ld -r -S -x.
6757
6758Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6759
6760 * ldmisc.c (vfinfo): Print BFD file name as well as file name
6761 returned by find_nearest_line, in case the file name is something
6762 unhelpful such as a .h file. Handle %u.
6763
6764Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6765
6766 * ldlang.c (lang_do_assignments): Make sure output statement
6767 has an attached bfd_section before trying to dereference it.
6768
6769Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6770
6771 * ld.h (ld_config_type): Add new field warn_once.
6772 * ldmain.c (undefined_symbol): Handle -warn-once.
6773 * lexsup.c (parse_args): Recognize -warn-once.
6774 * ld.texinfo (Options): Document -warn-once.
6775 * ld.1: Likewise.
6776
6777 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
6778 name. For %C, print the function name on a separate line, to keep
6779 the length of error messages under control.
6780 * ldmain.c (multiple_definition): Use %D for ``first defined
6781 here.''
6782 (undefined_symbol): Use %D for ``more undefined references
6783 follow''.
6784
6785 * ldmisc.c (multiple_warn): Remove; no longer used.
6786 * ldmisc.h (multiple_warn): Don't declare.
6787
6788Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6789
6790 * ldlang.c (print_output_section_statement): Print all lines
6791 to the map file.
6792
6793Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6794
6795 * ldlang.c (load_symbols): Check for archive before object. Use
6796 bfd_check_format_matches, and, if ambiguous, print a list of
6797 matching formats. If file format is not recognized, treat file as
6798 a linker script.
6799 * ldgram.y (yyerror): If assuming an object file is a script,
6800 mention that. Tweak the format of the error messages.
6801 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
6802 guess that this is not actually a script, and just report that the
6803 file format was not recognized.
6804 * ld.texinfo (Options): Admit that -( may be used more than once.
6805 Add note that unrecognized object files are now treated as linker
6806 scripts.
6807
6808 * ldfile.c (ldfile_input_filename): Make const.
6809 (ldfile_assumed_script): New variable.
6810 (try_open): Change arguments types to const.
6811 (ldfile_find_command_file): Likewise.
6812 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
6813 * ldfile.h: Update declarations for ldfile.c changes.
6814 * ldlex.l: Include <ctype.h>.
6815 (file_name_stack): Change to be const char *.
6816 (lineno_stack): New static variable.
6817 (<<EOF>>): Set lineno as well as ldfile_input_filename.
6818 (lex_push_file): Make name argument const. Initialize
6819 lineno_stack entry.
6820 (lex_redirect): Initialize lineno_stack entry.
6821 (lex_warn_invalid): Handle non printable characters nicely.
6822 * ldlex.h (lex_push_file): Declare second argument as const.
6823
6824 * ldgram.y (ifile_p1): Recognize GROUP.
6825 * ldlex.l: Recognize GROUP.
6826 * ld.texinfo (Option Commands): Document GROUP.
6827
6828Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6829
6830 * config/m68klynx.mh: New file.
6831
6832Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
6833
6834 * emultempl/hppaelf.em: Add newlines to the error messages.
6835
6836Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6837
6838 * config/i386lynx.mh: New file.
6839 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
6840 unless CONSTRUCTING.
6841
6842Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6843
6844 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
6845 (GENERATE_SHLIB_SCRIPT): Define as yes.
6846 (DYNAMIC_LINK): Define as false.
6847 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
6848 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
6849 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
6850 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
6851 generic.em.
6852
6853Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6854
6855 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
6856
6857Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6858
6859 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
6860 .got section is now explicitly handled in elf.sc.
6861
6862Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6863
6864 * scripttempl/alpha.sc: Redo script to set . outside of sections
6865 and not bother to explicitly specify section addresses.
6866 Explicitly place .sdata section.
6867
6868Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6869
6870 * scripttempl/m68kcoff.sc: Put .bss in data segment.
6871
6872 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
6873 0, and to only be marked as NOLOAD if relocating.
6874 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
6875 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
6876 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
6877 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
6878 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
6879 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
6880 * scripttempl/sparclynx.sc: Likewise.
6881
6882Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
6883
6884 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
6885 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
6886 New files.
6887
6888Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
6889
6890 * ld.h (args_type): Add field soname.
6891 * lexsup.c (parse_args): Handle -soname argument.
6892 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
6893 pass soname.
6894 * ld.texinfo: Document -soname.
6895
6896Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6897
6898 * ldlang.c (lang_check): Don't try to set the architecture if the
6899 input and output files are incompatible. Just warn.
6900
6901Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6902
6903 * configure.in: Change i[34]86 to i[345]86.
6904
6905Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6906
6907 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
6908
6909Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6910
6911 Make the ELF linker handle orphaned sections reasonably. Also,
6912 define __start_SECNAME and __stop_SECNAME around sections whose
6913 names can be represented in C, for the benefit of symbol sets in
6914 glibc.
6915 * ldemul.h (ldemul_place_orphan): Declare.
6916 (ld_emulation_xfer_type): Add place_orphan field.
6917 * ldemul.c (ldemul_place_orphan): New function.
6918 * ldlang.h (wild_doit): Declare.
6919 * ldlang.c (wild_doit): Make nonstatic.
6920 (lang_place_orphans): Call ldemul_place_orphan.
6921 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
6922 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
6923 static variables.
6924 (gld${EMULATION_NAME}_place_orphan): New static function.
6925 (gld${EMULATION_NAME}_place_section): New static function.
6926 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
6927
6928Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
6929
6930 * scripttempl/aout.sc: Add .linux-dynamic after .data.
6931
6932Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6933
6934 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
6935 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
6936
6937Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6938
6939 * ldexp.h (exp_get_abs_int): Declare.
6940
6941Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
6942
6943 * ldlang.c (lang_do_assignments): Handle complex AT's better.
6944 * ldexp.c (exp_get_abs_int): New function.
6945
6946Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
6947
6948 * configure.in: add i960-nindy-coff support.
6949
6950Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6951
6952 * ldlex.l (yy_create_string_buffer): Handle change to internal
6953 interface in flex 2.4.7.
6954
6955Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
6956
6957 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
6958 New function; add 0x20 to any use of -Ttext.
6959 (gld${EMULATION_NAME}_create_output_section_statements): New
6960 function.
6961 (ld_${EMULATION_NAME}_emulation): Use the new function
6962 gld${EMULATION_NAME}_create_output_section_statements.
6963
6964Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6965
6966 * scripttempl/mips.sc: Redo script to set . outside of sections
6967 and not bother to explicitly specify section addresses.
6968
6969Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6970
6971 * scripttempl/elf.sc: Copy several more relocation sections into
6972 the output. Put .got.plt sections into .got.
6973
6974Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6975
6976 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
6977
6978 Add a new script operator, PROVIDE, to define a symbol only if it
6979 is needed.
6980 * ldgram.y (PROVIDE): New token.
6981 (assignment): Accept PROVIDE.
6982 * ldlex.l (PROVIDE): New token.
6983 * ldexp.h (node_type): Add etree_provide to node_class enum.
6984 (exp_provide): Declare.
6985 * ldexp.c (exp_fold_tree): Handle etree_provide.
6986 (exp_provide): New function.
6987 (exp_print_tree): Handle etree_provide.
6988 * ld.texinfo: Document PROVIDE.
6989
6990 * ldlang.c (lang_common): Pass desired alignment to
6991 lang_one_common as power of two.
6992 (lang_one_common): Get common symbol alignment from linker hash
6993 table entry. Treat desired alignment as a power of two.
6994
6995 * ldlang.c (wild_section): Attach all section with the given name,
6996 not just the first one. If there is no name, attach all sections
6997 even if the SEC_IS_COMMON flag is set.
6998
6999Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7000
7001 * ld.h (args_type): Add field rpath.
7002 * lexsup.c (S_ISDIR): Define if not already defined.
7003 (parse_args): Add support for -rpath. If -R is used to name a
7004 directory, treat it as -rpath for Solaris compatibility.
7005 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
7006 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
7007 * ldmain.c (main): Initialize command_line.rpath to NULL.
7008 * ld.texinfo: Document -rpath option.
7009
7010Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
7011
7012 * emulparams/pc532machaout.sh: New file. Pc532 mach script
7013 parameters.
7014
7015 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
7016
7017 * config/pc532mach.mt: New file. Pc532 mach target support.
7018
7019 * config/pc532mach.mh: New file. Pc532 mach host support.
7020
7021 * config/netbsd532.mt: New file. Netbsd 532 target support.
7022
7023 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
7024
7025 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
7026 dependency.
7027
7028Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7029
7030 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
7031 bfd_abs_section_ptr, not &bfd_abs_section.
7032
7033 * lexsup.c (parse_args): Changed "retain-symbols-file" from
7034 no_argument to required_argument. From djm.
7035
7036Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7037
7038 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
7039 sections to force a VMA of 0; needed for ELF backends which have
7040 not been converted to the new linker style.
7041
7042Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
7043
7044 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
7045 it was for the HPUX dynamic loader's use and it creates problems
7046 with ELF GDB.
7047
7048Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
7049
7050 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
7051 * ldlang.h (lang_do_assignments): Put external decl here.
7052 * emultempl/hppaelf.em: Minor cleanups throughout file.
7053 (hppa_elf_create_output_section_statements): Rewrite.
7054 (hppaelf_finish): Rewrite.
7055
7056Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7057
7058 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
7059
7060 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
7061 accept plain -B.
7062 * ld.texinfo: -Bstatic is not ignored.
7063
7064Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
7065
7066 * ldlex.l: Recognize \r the same as \n.
7067
7068Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7069
7070 Preliminary support for generating shared libraries, from Eric
7071 Youngdale <ericy@cais.cais.com>.
7072 * genscripts.sh: If the emulation parameter file sets
7073 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
7074 CREATE_SHLIB defined.
7075 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
7076 link_info.shared is set, use the .xs script file.
7077 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
7078 .interp section, and don't include TEXT_START_ADDR in the starting
7079 address of the first section.
7080 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
7081 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
7082
7083Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7084
7085 * configure.in: Change --with-targets to --enable-targets.
7086
7087Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7088
7089 * lexsup.c (parse_args): Add support for new options -( -) with
7090 synonyms --start-group --end-group.
7091 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
7092 (lang_group_statement_type): Define new struct.
7093 (lang_statement_union_type): Add group_statement field.
7094 (lang_enter_group, lang_leave_group): Declare.
7095 * ldlang.c (lang_for_each_statement_worker): Handle
7096 lang_group_statement_enum.
7097 (map_input_to_output_sections, print_statement): Likewise.
7098 (lang_size_sections, lang_do_assignments): Likewise.
7099 (open_input_bfds): Completely rewrite. Now does its own looping,
7100 rather than using lang_for_each_statement. Handle groups.
7101 (lang_process): Update call to open_input_bfds.
7102 (print_group): New static function.
7103 (lang_enter_group, lang_leave_group): New static functions.
7104 * ldfile.c (ldfile_open_file): If the file has already been
7105 opened, just return rather than taking an assertion failure.
7106 * ldver.c (help): Mention new options.
7107 * ld.texinfo: Document new options.
7108
7109 * ldlang.c (end_of_data_section_statement_list): Don't define.
7110 (lang_leave_output_section_statement): Don't set obsolete variable
7111 end_of_data_section_statement_list.
7112
7113 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
7114 ALIGN.
7115
7116 * ldlang.c (lang_size_sections): Adjust current region address
7117 even for sections with an explicit address. From
7118 ralphc@pyramid.com (Ralph Campbell).
7119
7120 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
7121 From jrs@world.std.com (Rick Sladkey).
7122
7123 * scripttempl/mipsbsd.sc: Let sections align to their natural
7124 boundaries.
7125
7126Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7127
7128 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
7129 &bfd_abs_section.
7130 (lang_abs_symbol_at_beginning_of): Likewise.
7131 (lang_abs_symbol_at_end_of): Likewise.
7132 (lang_size_sections): Use bfd_is_abs_section to check for the
7133 absolute section. Don't try to set the VMA or output_offset or
7134 size of the absolute section.
7135 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
7136 undefined section.
7137
7138Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
7139
7140 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
7141 when generating relocatable objects.
7142
7143Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
7144
7145 * emultempl/linux.em: New file providing support for linking
7146 against Linux shared libraries.
7147 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
7148 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
7149
7150Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7151
7152 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
7153 * ldmain.c (main): Initialize link_info.shared to false. Give
7154 error if link_info.relocateable and link_info.shared are both set.
7155
7156 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
7157 it as naming an emulation to be added to EMULATION_OFILES.
7158 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
7159
7160 * Makefile.in: Rebuilt dependencies.
7161 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
7162 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
7163 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
7164 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
7165 (ei386linux.c): Remove; now in Makefile.in.
7166 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
7167 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
7168 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
7169 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
7170 (eelf64_sparc.c): Remove; now in Makefile.in.
7171 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
7172 (eelf32_sparc.c): Remove; now in Makefile.in.
7173
7174 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
7175 no owner--it might be bfd_abs_section. From Eric Youngdale
7176 <ericy@cais.cais.com>.
7177
7178 * scripttempl/aout.sc: Let sections align to their natural
7179 boundaries.
7180
7181Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7182
7183 * ldemul.h (ldemul_open_dynamic_archive): Declare.
7184 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
7185 * ldemul.c: Include ldexp.h and ldlang.h.
7186 (ldemul_open_dynamic_archive): New function.
7187 * ldfile.h (ldfile_open_file_search): Declare.
7188 * ldfile.c: Include ldemul.h.
7189 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
7190 argument, not bfd *. Change all callers.
7191 (ldfile_open_file_search): Rename from open_a. Return boolean
7192 argument, not bfd *. Clean up. Change all callers.
7193 (ldfile_open_file): If doing a dynamic link, call
7194 ldemul_open_dynamic_archive rather than assuming the extension of
7195 a dynamic object is ".so".
7196 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
7197 New function.
7198 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
7199 field.
7200 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
7201
7202 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
7203 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
7204 Accept -static as a synonym for -non_shared.
7205
7206 Let the user change the dynamic linker used by ELF code.
7207 * ld.h (args_type): Add new field interpreter.
7208 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
7209 handle it.
7210 * ldmain.c (main): Initialize command_line.interpreter to NULL.
7211 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
7212 the ELF backend to return the .interp section. If
7213 command_line.interpreter is not NULL, set the contents of .interp
7214 to it.
7215 * ld.texinfo: Mention -dynamic-linker.
7216
7217 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
7218 generic.em.
7219
7220 * lexsup.c (parse_args): Sort out the option macros and change the
7221 definitions to make it easier to add a new option.
7222
7223 * scripttempl/aout.sc: Define __etext and __edata to go along with
7224 _etext and _edata.
7225
7226 * ld.h (ld_config_type): Add new field traditional_format.
7227 * lexsup.c (parse_args): Add traditional-format to longopts, and
7228 handle it.
7229 * ldmain.c (main): Initialize config.traditional_format to false.
7230 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
7231 flags of output_bfd according to config.traditional_format.
7232 * ldver.c (help): Mention -traditional-format.
7233 * ld.texinfo: Document -traditional-format.
7234
7235Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7236
7237 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
7238 they are encountered.
7239
7240Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
7241
7242 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
7243 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
7244
7245Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7246
7247 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
7248 _FTEXT, _ETEXT and _FDATA. Dont define _END.
7249
7250 * ldfile.c (open_a): If this is not an archive, try to open it in
7251 the current directory before searching for it.
7252
7253 * lexsup.c (parse_args): Treat -i as a synonym for -r.
7254
7255 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
7256 BLOCK works in a section address as documented.
7257
7258 * ldgram.y (YYDEBUG): Don't define.
7259
7260Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7261
7262 * emultempl/gld960.em: Pass false for new argument to
7263 ldfile_add_library_path.
7264 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
7265
7266 * emultempl/sunos.em: Only look for .so files if doing a dynamic
7267 link.
7268
7269Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
7270
7271 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
7272
7273Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
7274
7275 * Makefile.in (check): Delete ld.new dependency so that a regression
7276 test doesn't trigger a rebuild of the linker.
7277
7278Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7279
7280 * ldlang.c (map_input_to_output_sections): For lang_address, call
7281 init_os if it hasn't already been called.
7282
7283Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7284
7285 Add support for SunOS shared libraries.
7286 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
7287 shared library support code.
7288 * emultempl/sunos.em: New file.
7289 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
7290 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
7291 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
7292 (esun3.c): Likewise.
7293
7294 * ldlang.c: Minor formatting cleanups.
7295 (lang_for_each_input_file): New function.
7296 * ldlang.h (lang_for_each_input_file): Declare.
7297
7298 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
7299 field.
7300 (search_head): Declare.
7301 (ldfile_add_library_path): Add new cmdline argument in prototype.
7302 * ldfile.c (search_head): Make non-static.
7303 (search_dirs_type): Move to ldfile.h.
7304 (ldfile_add_library_path): Accept cmdline argument, and save it.
7305 * lexsup.c (parse_args): Pass true for new cmdline argument of
7306 ldfile_add_library_path.
7307 (set_default_dirlist): Likewise.
7308 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
7309 argument of ldfile_add_library_path.
7310 * ldgram.y (ifile_p1): Likewise.
7311
7312Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7313
7314 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
7315 total_size, superfile and chain.
7316 * ldfile.c (open_a): Don't clear search_dirs_flag.
7317 (ldfile_open_file): Don't try to open superfile. Assert that file
7318 has not already been opened.
7319 * ldlang.c (new_afile): Don't initialize superfile.
7320 * ldmain.c (add_archive_element): Don't initialize subfiles or
7321 chain or superfile. Initialize search_dirs_flag to false.
7322
7323Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7324
7325 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
7326
7327 Changes from binutils-2.4 release:
7328
7329 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
7330 variables, use whitespace, so scripts don't break.
7331
7332 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
7333
7334 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
7335
7336 * cdtest-bar.cc: Renamed from cdtest-func.cc.
7337 * Makefile.in: Noted change.
7338
7339 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
7340 don't know where that's supposed to come from, or why it's
7341 necessary.
7342
7343 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
7344
7345 * configure.bat: update to latest makefile.in
7346 * emulpara/go32.sh: set to coff-go32 not aout
7347 * emultemp/generic.em: strength-reduce the structure of
7348 this shell script, since the only available shell for
7349 DOS can't handle complex syntax.
7350 * emultemp/stringify.sed: for "sed -f" instead of inline.
7351 * makefile.in: depend on stringify.sed as well as genscripts.sh
7352 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
7353 * genscripts.sh: empty variables aren't always considered "set",
7354 so set them to "y" instead.
7355
7356Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7357
7358 * ldlang.c (entry_symbol): Make static.
7359 (lang_add_entry): Add cmdline argument.
7360 * ldlang.h (lang_add_entry): Change prototype.
7361 * ldgram.y (statement_anywhere): Change lang_add_entry call.
7362 * lexsup.c (parse_args): Likewise.
7363
7364Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7365
7366 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
7367 .reginfo an address.
7368 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
7369 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
7370 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
7371
7372Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7373
7374 Add support for ELF shared libraries.
7375 * ld.h (ld_config_type): Add field dynamic_link.
7376 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
7377 on attempts to use -r with -relax, -call_shared or -s.
7378 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
7379 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
7380 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
7381 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
7382 OPTION_NON_SHARED by setting dynamic_link field accordingly.
7383 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
7384 -r and -Ur.
7385 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
7386 opening a file with a .so extension first.
7387 * emultempl/elf32.em: New file.
7388 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
7389 (NONPAGED_TEXT_START_ADDR): Likewise.
7390 (TEMPLATE_NAME): Define as elf32.
7391 (DATA_PLT): Define.
7392 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
7393 * scripttempl/elf.sc: Add placement for new dynamic sections.
7394 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
7395 outside of any section. Don't use ALIGN(8); just let one section
7396 VMA follow another. Put .dynbss in .bss. Don't mention debugging
7397 sections; they'll be handled correctly anyhow.
7398 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
7399
7400Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
7401
7402 * Makefile.in (install): Redirect output of ln to /dev/null.
7403
7404Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
7405
7406 * emultempl/hppaelf.em: Change all references of
7407 .hppa_linker_stubs to .PARISC.stubs.
7408 * scripttempl/hppaelf.sc: Likewise.
7409
7410Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7411
7412 * ldlang.c (print_output_section_statement): Change ``no attached
7413 output section'' message slightly.
7414 (lang_do_assignments): Don't recurse down if there is no real
7415 section.
7416
7417 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
7418 match corresponding change in emulation templates.
7419 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
7420 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
7421
7422Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7423
7424 * ldver.c (ldversion): Updated version number.
7425
7426 * cdtest-foo.cc: Use explicit "#pragma implementation".
7427 * cdtest-bar.cc: Renamed from cdtest-func.cc.
7428 * Makefile.in: References to cdtest-func.o changed to
7429 cdtest-bar.o.
7430
7431Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7432
7433 Don't create unnecessary output sections.
7434 * ldlang.c (out_bfd_get_section_by_name): Remove.
7435 (wild_section): Call bfd_get_section_by_name rather than
7436 our_bfd_get_section_by_name. Don't call wild_doit if there is no
7437 section.
7438 (lang_create_output_section_statements): Remove.
7439 (map_input_to_output_sections): For several cases, call init_os if
7440 it has not already been called.
7441 (lang_size_sections): If output section was not created, skip it.
7442 (lang_process): Don't call lan_create_output_section_statements.
7443 (lang_place_orphans): Skip files with just_syms_flags set to true.
7444 * ld.texinfo: Document change.
7445
7446Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7447
7448 * ldlang.c (wild_doit): Don't bother initializing the vma and
7449 section size. Don't special case SEC_SHARED_LIBRARY.
7450 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
7451 specially.
7452
7453Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
7454
7455 * config/go32.mh : New file for Xgo32X.
7456
7457Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7458
7459 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
7460 before calling einfo, since we are reporting an fopen failure.
7461 From jrs@world.std.com (Rick Sladkey).
7462
7463 * configure.in: Use "e" rather than "em_" as prefix for
7464 emulations.
7465
7466Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
7467
7468 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
7469 filename.
7470 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
7471 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
7472 Ditto.
7473 * Makefile.in: Changed all generated file names.
7474 (ldemul-list.h): Depend on Makefile, not config.status. Changed
7475 sed patterns to handle new filenames.
7476
7477 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
7478 * configure.in: Adjusted.
7479
7480Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7481
7482 * Makefile.in (install-info): Don't use "$<*", it doesn't always
7483 work. Instead, check build dir and $srcdir explicitly, and use
7484 `echo' to get all the filenames.
7485
7486 * configure.in (h8300h-*-hms): Changed ld_target name to
7487 cf-h8300h.
7488 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
7489 unique in 8.3.
7490
7491 * config/i960coff.mt: New file.
7492 * emulparams/gld960coff.sh: New file.
7493 * emultempl/gld960c.em: New file.
7494 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
7495 i960coff configuration.
7496 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
7497
7498 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
7499 code isn't included in FSF releases, and it can still be
7500 explicitly selected.
7501 (distclean): Remove site.bak and tmpdir.
7502 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
7503 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
7504
7505 Patches from Ralph Campbell:
7506 * config/mipsbsd.mh: New file.
7507 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
7508 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
7509 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
7510 instead of `aout'.
7511
7512 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
7513
7514Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7515
7516 * config/m68k.mt (EMUL): Set to m68kaout.
7517 * emulparams/m68kaout.sh: New file.
7518 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
7519 (em_m68kaout.c): New target.
7520
7521 * ldlang.c (lang_size_sections): If dot moves because of an
7522 assignment, don't try to insert a pad into the absolute output
7523 section, just change the address of the default memory region
7524 instead.
7525
7526 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
7527 cdtest-ur.out, and cdtest-ur.tmp.
7528
7529Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7530
7531 * scripttempl/sa29200.sc: Align all sections to four byte
7532 boundaries.
7533
7534Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
7535
7536 * Makefile.in, configure.in: Support for go32 coff.
7537 * config/i386-go32.mt: New file
7538 * emulparams/i386go32.sh: New file
7539 * scripttempl/i386go32.sc: New file
7540
7541Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
7542
7543 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
7544 Lynx-specific script templates.
7545 * configure.in (sparclite*-*-coff): Use coff-sparc.
7546 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
7547 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
7548 (ENTRY): Set to __main.
7549 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
7550 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
7551 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
7552
7553Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7554
7555 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
7556 byte boundary, in case the global constructors do not take up an
7557 even 16 bytes.
7558
7559 * config/i386v4.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 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7564
7565 * ldlang.c (lang_size_sections): When no address is given for a
7566 section, align it according to its requirements.
7567
7568Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7569
7570 * Makefile.in (clean, distclean): Remove configdoc.texi.
7571
7572Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
7573
7574 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
7575
7576Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7577
7578 * ldlang.c (lang_size_sections): When relaxing, adjust the
7579 position of a padding statement, and adjust dot accordingly.
7580
7581Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
7582
7583 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
7584
7585Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7586
7587 * scripttempl/i386coff.sc: If relocating, don't put .init and
7588 .fini sections into .text; keep them separate.
7589 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
7590 exist, get crtbegin based on gcc -print-libgcc-file-name.
7591 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
7592
7593Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
7594
7595 * Makefile.in (check): Set TCL_LIBRARY for runtest.
7596
7597Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7598
7599 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
7600 manufacturer.
7601
7602 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
7603 if building a final executable.
7604
7605Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7606
7607 * ldmain.c (main): Check the return value of bfd_close.
7608
7609Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7610
7611 * scripttempl/alpha.sc: Clean up section alignment to ensure that
7612 sections never overlap when using -r.
7613
7614Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7615
7616 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
7617 changes: get_symtab_upper_bound renamed and returns long,
7618 bfd_canonicalize_symtab returns long, check for error indications.
7619
7620Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7621
7622 * ldlang.c (print_input_section): For section size, use
7623 _cooked_size if it is non-zero, size otherwise.
7624 (size_input_section): Likewise.
7625 (lang_do_assignments): Likewise (case lang_input_section_enum).
7626
7627Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7628
7629 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
7630 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
7631 (lang_add_input_file): Pass true to new_afile for add_to_list.
7632 (lookup_name): Remove force_load argument. Changed all callers.
7633 Pass false to new_afile for add_to_list. Split loading of symbols
7634 out into separate function.
7635 (load_symbols): New function split out of lookup_name. Don't load
7636 the symbols if they are already loaded.
7637 (open_input_bfds): For lang_input_statement_enum call load_symbols
7638 rather than lookup_name.
7639 (lang_process): Pass abs_output_section rather than NULL to
7640 lang_size_sections.
7641 (lang_startup): Set real field of first_file to true.
7642
7643Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7644
7645 * ldlang.c (had_relax): Removed.
7646 (relax_again): New static variable.
7647 (lang_size_sections): Change call to bfd_relax_section to
7648 correspond to BFD changes. Set relax_again appropriately.
7649 (lang_process): Remove #if 0 code. When relaxing, keep calling
7650 lang_do_assignments and lang_size_sections until relax_again
7651 becomes false.
7652
7653 * emultemp/gld960.em: Include libiberty.h
7654 (gld960_before_parse): Pass NULL as final argument to concat.
7655
7656Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7657
7658 * scripttempl/aout.sc: Force _end and __end to be aligned to a
7659 four byte boundary.
7660
7661 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
7662 building a bfd_data_link_order, rather than by setting the section
7663 contents immediately.
7664
7665Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7666
7667 Changes to make -Ur work again.
7668 * ldmain.c (add_to_set): Now takes reloc argument rather than
7669 bitsize. Check config.build_constructors here. If an new hash
7670 table entry is created, mark it as undefined.
7671 (constructor_callback): No longer takes bitsize argument. Pass
7672 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
7673 BFD backend supports it.
7674 (reloc_overflow): Handle a NULL abfd argument.
7675 (reloc_dangerous, unattached_reloc): Likewise.
7676 * ldctor.c: Include ldmain.h.
7677 (struct set_info): Change bitsize field to reloc.
7678 (ldctor_add_set_entry): Now takes reloc argument rather than
7679 bitsize. Don't bother to check config.build_constructors here.
7680 (ldctor_build_sets): Get the size from the reloc howto. If
7681 generating relocateable output, call lang_add_reloc rather than
7682 lang_add_data.
7683 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
7684 instead of bitsize.
7685 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
7686 (lang_reloc_statement_type): New structure.
7687 (lang_statement_union_type): Add reloc_statement field.
7688 (lang_add_reloc): Declare new function.
7689 * ldlang.c (lang_for_each_statement_worker): Handle
7690 lang_reloc_statement_enum.
7691 (map_input_to_output_sections, print_statement): Likewise.
7692 (lang_size_sections, lang_do_assignments): Likewise.
7693 (print_reloc_statement): New function.
7694 (lang_add_reloc): New function.
7695 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
7696
7697 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
7698 (cdtest-ur, cdtest-ur.out): New targets.
7699 (check-cdtest): Now also check that -Ur works correctly.
7700
7701 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
7702
7703Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7704
7705 * ldlang.c (lang_process): Move lang_common call before
7706 map_input_to_output_sections, to ensure that any alignment
7707 constraints set by common symbols are copied over to the output
7708 sections.
7709
7710Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7711
7712 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
7713 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
7714 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
7715 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
7716 needed for ELF.
7717
7718Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7719
7720 * config/i386bsd.mh: New file.
7721
7722Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7723
7724 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
7725 defined.
7726 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
7727 (DATA_START_SYMBOLS): Define _fdata.
7728
7729Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
7730
7731 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
7732
7733Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7734
7735 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
7736 works again. Attach some output symbols to the stub file bfd.
7737
7738 * emultempl/hppaelf.em: Include elf32-hppa.h.
7739 (file_chain): Add decl.
7740 (hppa_look_for_stubs_in_section): Delete decl.
7741 (hppaelf_finish): Reenable code. Do not pass symbols
7742 down to hppa_look_for_stubs_in_section.
7743
7744Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
7745
7746 * ldmain.c (write_map): Don't define. Removed all references.
7747 Just use map_file or map_filename instead.
7748 (add_archive_element): Use minfo to write map information, not
7749 info_msg.
7750 (constructor_callback): Use fprintf to write map information, not
7751 info_msg.
7752 * ldmain.h (write_map): Don't declare.
7753 * ldgram.y (mri_script_command): Removed reference to write_map.
7754 * ldlang.c (lang_one_common): Likewise.
7755 * lexsup.c (parse_args): Likewise.
7756
7757Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
7758
7759 * scripttempl/elf.sc: Force all sections to be aligned.
7760
7761 * ldgram.y (section): Reverse the order of memspec_opt and
7762 fill_opt to avoid an ambiguity when both are used.
7763 * ld.texinfo: Changed accordingly.
7764
7765 * ldgram.y: Move include of ldlex.h back with other includes.
7766 * ldlex.h (input_type): Don't initialize enum constants to
7767 particular values.
7768 * ldlex.l: Use a switch to return the right token based on
7769 input_type, rather than knowing that input_type has a value based
7770 on a token type.
7771
7772 * ldgram.y (dirlist_ptr): Removed; not used.
7773 * lexsup.c: Include ldver.h.
7774 * Makefile.in: Rebuilt dependencies.
7775
7776Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
7777
7778 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
7779 (ldlang_add_file): call it here instead.
7780
7781Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7782
7783 * ldgram.y: Include ldlex.h after %token decls, for byacc.
7784
7785Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7786
7787 * emultempl/hppaelf.em: First attempt to clean this file up.
7788 Add comments in several functions as to their purpose and
7789 how they function (or my current best guess). Clean up horrible
7790 spacing and indention that never should have been accepted in the
7791 first place. Add FIXMEs for issues which need to be resolved.
7792 Disable linker-stub generation until it gets fixed. This allows
7793 the linker to at least work on simple code for testing purposes.
7794
7795 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
7796 it via hppaelf_finish). Prototype moved into ldlang.h.
7797 (lang_process): Move problematic extra call to lang_size_sections
7798 into the PA ELF specific code.
7799 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
7800 lang_size_sections moved here.
7801
7802Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
7803
7804 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
7805 * config/ppc-elf32.mt: New file.
7806 * emulparams/elf32ppc.sh: New file.
7807 * emultempl/ppc.em: New file.
7808 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
7809 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
7810 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
7811
7812Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7813
7814 * lexsup.c (parse_args): Use symbolic numbers for long options.
7815 Fix misunderstanding in -Y and -call_shared et al.
7816
7817 Use getopt instead of lex and yacc to parse the command line.
7818
7819 * ld.texinfo (Options): Document changes to option syntax.
7820 * Makefile.in: Update dependencies.
7821 * ldver.c (help): Tweak dashes in usage message.
7822 * ldgram.y (%union): Remove unused members.
7823 Remove %tokens for command line options; add ones for input types.
7824 (command_line): Rules removed.
7825 (file): Instead of command line, recognize an
7826 input type indicator, then use the nonterminal for that type.
7827 (defsym_expr): New nonterminal from code formerly in command_line.
7828 * ldlex.h: Declare parser input type enum and variable.
7829 Don't declare parse_line.
7830 * ldlex.l: Remove unused variables. Make some used ones static
7831 and comment them.
7832 (COMMAND): Start state and its rules removed.
7833 At start of yylex, return input state token if at start of input.
7834 (lex_redirect): Don't need to set yyout.
7835 (ldlex_command): Function removed.
7836 * ldmain.c (main): Instead of calling parse_line, set up the
7837 redirections and call yyparse directly.
7838 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
7839 "command line".
7840 * lexsup.c: Remove #if 0'd code.
7841 (parse_line): Function removed.
7842 (parse_args): Rewrite to use getopt_long_only.
7843 (set_default_dirlist): New function from code formerly in
7844 ldgram.y:command_line.
7845 (set_section_start): New function.
7846 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
7847 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
7848 compiled-in link scripts in "{" and "}", as the grammar no longer
7849 wants them to be.
7850
7851Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
7852
7853 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
7854 require that it be in $(srcdir).
7855
7856Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
7857
7858 * ldlang.c (lang_size_sections): Only align section to alignment
7859 required by linker script, not to maximum alignment of input
7860 sections.
7861
7862 * ldlang.h (largest_section): Don't declare.
7863 * ldlang.c (largest_section): Don't define.
7864 (size_input_section): Don't set largest_section; not used.
7865
7866Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
7867
7868 * ldlang.c (new_afile): Pass NULL as last argument to concat.
7869
7870Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7871
7872 * ldlang.c, ldmain.c: Include libiberty.h.
7873
7874 * ldmisc.h (concat): Don't declare.
7875 * ldmisc.c (concat): Don't define; just use the one in libiberty.
7876
7877 * ld.h (as_output_section_statement): Removed; not used.
7878
7879Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7880
7881 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
7882 bfd_set_error and new error names.
7883
7884Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7885
7886 * ldwrite.c (build_link_order): If the cooked size of the section
7887 has been set, use it, for determining link_order size.
7888 (ldwrite): In the error message displayed if bfd_final_link fails,
7889 indicate that it was in fact the final link step that failed.
7890
7891 * ldlang.c (lang_size_sections): Clear bfd_error before calling
7892 bfd_relax_section, in case it returns false but doesn't flag an
7893 error. If an error is returned, indicate which one it is in the
7894 error message.
7895
7896 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
7897 it'll get picked up from $(srcdir) if appropriate.
7898
7899Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
7900
7901 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
7902 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
7903
7904Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7905
7906 * ldlex.l (comment): Increment line number when newline is read.
7907
7908Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7909
7910 * ldlang.c (lookup_name): Take new argument, force_load. If true,
7911 reload the file even if it is already loaded.
7912 (wild): Call lookup_name with force_load argument of 0.
7913 (open_input_bfds): Call lookup_name with force_load argument of 1.
7914 (print_symbol): Remove declaration of non-existent function.
7915 (print_one_symbol): Return true rather than falling off end.
7916
7917Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7918
7919 * ldmain.c (main): Use %ld when printing long values.
7920
7921 * scripttempl/elf.sc: Move _edata after the .sdata section.
7922 Permit OTHER_BSS_SYMBOLS to be defined.
7923 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
7924
7925Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7926
7927 * Rename all "hppaosf" files to "hppaelf".
7928 * Change all "osf" references to "elf" in hppaelf files.
7929 * Makefile.in: Likewise.
7930 * configure.in: Likewise.
7931
7932Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7933
7934 * ldmain.c (main): Call xatexit, not atexit.
7935 Call xmalloc_set_program_name.
7936
7937 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
7938 bfd_errno.
7939
7940Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7941
7942 * emultempl/lnk960.em (append), emultempl/hppaosf.em
7943 (hppaosf_finish): Call xmalloc, not ldmalloc.
7944 * ldmain.c (preserve_output): Function removed.
7945 (main): Do it here instead.
7946
7947Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
7948
7949 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
7950 GNU C specific macros.
7951
7952 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
7953 call to LANG_FOR_EACH_INPUT_SECTION.
7954
7955Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7956
7957 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
7958 deleted; will use libiberty versions instead.
7959 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
7960 mri.c Makefile.in: Change callers.
7961
7962 * ldmisc.c (vfinfo): Remove cleanup code.
7963 * ldmain.c (remove_output): Put it here (new function).
7964 (preserve_output): New function.
7965 (main): Register remove_output and preserve_output with atexit.
7966 * ldmain.c ldgram.y: Call xexit instead of exit.
7967 * ldmisc.h: Declare xexit.
7968
7969Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
7970
7971 * Makefile.in: Lots of new H8/500 memory models.
7972
7973Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7974
7975 * ldlex.l: Removed duplicate rules.
7976 (yywrap): Provide default definition, needed with some versions of
7977 flex.
7978
7979Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
7980
7981 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
7982 the archive filename too.
7983
7984 * ldlex.l: Add rule to catch invalid input characters instead of
7985 printing them. Include "ldmain.h" for program_name decl.
7986 (lex_warn_invalid): New function.
7987 * Makefile.in: Add dependency.
7988
7989Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
7990
7991 * Makefile.in (check): Don't bother running any tests of
7992 cross-linker until the test suite no longer assumes native mode.
7993
7994Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7995
7996 * ldlang.c (print_one_symbol, print_input_section): Print
7997 global symbols in symbol table again.
7998
7999Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8000
8001 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
8002 exit successfully instead of complaining if no input files are
8003 given.
8004
8005Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
8006
8007 * Makefile.in: Format variable definitions consistently.
8008 (LD_PROG): Remove unnecessary variables from link command,
8009 change variable LOADLIBES to EXTRALIBS.
8010
8011 * ldmain.c (main): Compute and display total execution time.
8012 * ld.texinfo (-stats): Document the option.
8013
8014Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8015
8016 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
8017 arguments.
8018
8019 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
8020 after opening BFD.
8021
8022 * ldlang.c (relaxing): Removed global variable.
8023 (lang_size_sections): If the canonical symbols have not already
8024 been read in, read them in before relaxing.
8025 * ldlang.h (relaxing): Removed declaration.
8026
8027Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8028
8029 * ldlang.c (new_afile): Initialize loaded field to false.
8030 (lookup_name): If file was already loaded, don't call the
8031 add_symbols entry point again.
8032
8033Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8034
8035 * ld.texinfo: Clarify what -T option does.
8036
8037Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
8038
8039 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
8040 for a.out.
8041
8042Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8043
8044 * ldmain.c (add_archive_element): If trace_files or
8045 trace_file_tries, print file name.
8046 * ldlang.c (lookup_name): Likewise.
8047 (ldlang_add_file): Don't put files on input_bfds list in reverse
8048 order.
8049
8050 * scripttempl/elf.sc: Correct typo.
8051
8052Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8053
8054 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
8055 their arguments optional, for compatibility with the old GNU ld.
8056
8057Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8058
8059 * scripttempl/elf.c: Define __bss_start before the .sbss section.
8060
8061Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8062
8063 * ldmain.c (add_to_set): Add bitsize argument.
8064 (constructor_callback): New function.
8065 (link_callbacks): Add constructor_callback.
8066 * ldctor.c (struct set_info): Add bitsize field.
8067 (ldctor_add_set_entry): Add bitsize argument.
8068 (ldctor_build_sets): Base the size of the elements of the set on
8069 the bitsize, rather than always using LONG.
8070 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
8071
8072 * ld.h (QUAD_SIZE): Define.
8073 * ldgram.y (QUAD): New token.
8074 (length): Handle it.
8075 * ldlex.l: Return QUAD.
8076 * lexsup.c (keywords): Add QUAD.
8077 * ldwrite.c (build_link_order): Handle QUAD.
8078 * ldlang.c (print_data_statement): Handle QUAD.
8079 (lang_size_sections): Likewise.
8080 (lang_do_assignments): Likewise.
8081 * ldexp.c (exp_print_token): Add QUAD to table.
8082 * ld.texinfo: Describe QUAD.
8083
8084 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
8085 since the Alpha doesn't use them.
8086
8087Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8088
8089 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
8090
8091Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
8092
8093 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
8094 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
8095
8096Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8097
8098 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
8099 needed for i386mach. (Should be a no-op on other systems.)
8100
8101 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
8102 (PAGE_SIZE): Don't define; not used.
8103
8104Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8105
8106 * ldgram.y (yyerror): Make argument const char *, and actually
8107 print it out rather than assuming it is a syntax error.
8108 * ldmisc.h: Change declaration of yyerror.
8109 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
8110
8111Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8112
8113 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
8114 exec header offset, since the exec header isn't loaded.
8115 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
8116
8117Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8118
8119 A major rewrite to move the bulk of the linker into BFD so that
8120 more efficient backend code can be written for specific object
8121 files.
8122 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
8123 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
8124 * ldctor.c, ldctor.h: Complete rewrite.
8125 * ldwrite.c, ldwrite.h: Complete rewrite.
8126 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
8127 link_info.strip instead. Changed all uses.
8128 (discard_locals_type, discard_locals): Removed. Use
8129 link_info.discard instead. Changed all uses.
8130 (ld_config_type): Removed relocateable_output field; use
8131 link_info.relocateable instead; changed all uses. Added stats
8132 field.
8133 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
8134 set_loader_symbol): Removed.
8135 * ldexp.h (node_class): Added etree_rel.
8136 (etree_type): Added rel field.
8137 * ldexp.c (exp_print_token): Bracketed table initialization.
8138 (exp_relop): New function.
8139 (fold_name): Use linker hash table rather than ldsym functions.
8140 (exp_fold_tree): Likewise. Also, handle etree_rel case.
8141 (exp_print_tree): Handle etree_rel.
8142 * ldgram.y (strip_symbols, discard_locals): Removed.
8143 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
8144 (REL): New token. Does not appear in grammar, but needed for
8145 expression code.
8146 (file): Don't call lang_final; it's called by main anyhow.
8147 * ldlex.l: Accept -stats and -no-keep-memory options.
8148 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
8149 * ldlang.c: Consistently use fill_type for fill argument.
8150 (lang_init_script_file, script_file): Removed.
8151 (create_object_symbols): Removed. Use
8152 link_info.create_object_symbols_section instead. Changed all
8153 uses.
8154 (lang_add_keepsyms_file): Removed.
8155 (lookup_name): Call bfd_link_add_symbols instead of
8156 ldmain_open_file_read_symbol.
8157 (wild): Don't iterate over script_file.
8158 (open_output): Create link hash table.
8159 (lang_place_undefineds): Rewrote.
8160 (lang_size_sections): Handle relaxing (doesn't work yet).
8161 (lang_relocate_globals): Removed.
8162 (lang_finish): Use link hash table rather than ldsym functions.
8163 (lang_common): Rewrote.
8164 (lang_one_common): New function.
8165 (ldlang_add_file): Add file to link_info.input_bfds list. Set
8166 usrdata.
8167 (create_symbol): Removed.
8168 (lang_process): Don't call lang_init_script_file. Call
8169 ldctor_build_sets rather than find_constructors. Don't call
8170 lang_relocate_globals.
8171 (lang_abs_symbol_at_beginning_of): Rewrote.
8172 (lang_abs_symbol_at_end_of): Rewrote.
8173 * ldmain.c (had_y): Removed.
8174 (lprefix, lprefix_len): Removed; use link_info fields instead.
8175 Changed all uses.
8176 (multiple_def_count, commons_pending, undefined_global_sym_count,
8177 total_symbols_seen, total_files_seen): Removed.
8178 (link_callbacks, link_info): New variables.
8179 (main): Initialize link_info. Don't call init_bfd_error_vector or
8180 ldsym_init. Don't set now unused variables. Handle -stats.
8181 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
8182 (add_ysym): Rewrote.
8183 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
8184 search_library, gnu960_check_format, decode_library_subfile,
8185 linear_library, symdef_library, clear_syms, subfile_wanted_p):
8186 Removed.
8187 (add_keepsyms_file, add_archive_element, multiple_definition,
8188 multiple_common, add_to_set, warning_callback, undefined_symbol,
8189 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
8190 New functions.
8191 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
8192 require symbols for %C; look them up instead.
8193 * emultempl/hppaosf.em: Pass link_info to
8194 hppa_look_for_stubs_in_section.
8195 * Makefile.in: Rebuilt dependencies.
8196 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
8197 relax.c.
8198 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
8199 relax.h.
8200 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
8201 ldlang.h and ldctor.h.
8202
8203 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
8204 declarations of free and malloc from flex output. Change malloc
8205 to ldmalloc in flex output.
8206
8207Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
8208
8209 * ldmain.c (lprefix): Change default from a char to a string
8210 with only one character.
8211 (lprefix_len): Set default to one.
8212
8213 * ldmain.h (lprefix_len): Declare.
8214
8215 * ldsym.c (write_file_locals): Use strncmp rather than a character
8216 comparison for lprefix.
8217
8218 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
8219 correctly.
8220
8221 * emultmpl/hppaosf.em: Include ldexp.h.
8222 (before_parse): Set lprefix and lprefix_len correctly.
8223
8224Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8225
8226 * ldlex.h: Don't declare yywrap if it is a macro.
8227 * ldlex.l: Include sysdep.h.
8228 * ldlang.c (lang_for_each_statement_worker,
8229 lang_for_each_statement): Forgot to use PARAMS.
8230
8231Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8232
8233 * Makefile.in: Added .PHONY targets where appropriate. Added some
8234 comments. Also:
8235 (gcclibdir, version): Removed unused variables.
8236 (DEP): New variable, set to mkdep.
8237 (ALL_CFLAGS): New variable. Used in .c.o target.
8238 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
8239 variables.
8240 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
8241 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
8242 mostly obsolete variables. Adjusted remaining uses.
8243 (DEF_EMUL): Removed variable.
8244 (ldmain.o): Handle undefined EMUL error correctly.
8245 (ldemul-list.h): Depend on config.status rather than Makefile.
8246 Create via temporary file.
8247 (ver960.c, roll, make): Removed obsolete targets.
8248 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
8249 dependencies.
8250 * dep-in.sed: New file, used when rebuilding dependencies.
8251
8252Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
8253
8254 Made many changes to eliminate gcc warnings. Made various
8255 cosmetic changes, declared various things in header files, removed
8256 various extern declarations from .c files. No substantive
8257 changes.
8258
8259 * ldlang.c (lang_process): Ifdef out final call to
8260 lang_size_sections again (reverting change of Nove 2), since it
8261 breaks the Sun4 linker.
8262
8263Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8264
8265 * configure.in (alpha-*-netware*): New target; use alpha.
8266
8267Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
8268
8269 * configure.in: Group targets by CPU. Merge some m68k target
8270 entries with different CPU specs that use the same ld_target
8271 values.
8272
8273 * configure.in: Add sparc*-*-coff.
8274 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
8275 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
8276 (em_coff_sparc.c): Add dependencies and build rules.
8277
8278 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
8279
8280Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8281
8282 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
8283 New tokens.
8284 (command_line_option): Accept and ignore them (for now).
8285 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
8286 where n is a number.
8287
8288Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8289
8290 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
8291 not in bfd_com_section, create the section in the BFD so that it
8292 can be placed in the right output section.
8293
8294Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8295
8296 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
8297 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
8298 (OTHER_READONLY_SECTIONS): Define for .reginfo.
8299 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
8300 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
8301 Move OTHER_READONLY_SECTIONS after all the other readonly
8302 sections. Don't use DATA_ADDR twice.
8303
8304 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
8305 p is in a common section, make sure the BFD has a section of that
8306 name.
8307
8308 * ldlang.c (lang_common): Add newline to error message.
8309
8310Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
8311
8312 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
8313 Lynx-specific script instead of m68kcoff.
8314 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
8315 (ENTRY): Define as __main.
8316 (TEXT_START_ADDR): Define as 0.
8317 (PAGE_SIZE): Define as 0x1000.
8318 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
8319 * scripttempl/m68klynx.sc: New file.
8320
8321Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8322
8323 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
8324 arguments rather than treating them as emulation names.
8325
8326Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
8327
8328 * configure.in: Support x86 unixware and netware plus generic netware.
8329
8330Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8331
8332 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
8333 Correct values (?).
8334
8335Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
8336
8337 * Makefile.in (distclean): Don't delete dvi or info files.
8338 (ld.info): Update dependency list.
8339 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
8340
8341Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8342
8343 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
8344 Set output_filename instead of creating a new node.
8345 (open_output): Don't set output_filename.
8346 (lang_final): Create the new node here.
8347 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
8348
8349Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
8350
8351 From Pete Hoogenboom (hoogen@cs.utah.edu):
8352
8353 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
8354 edata, _edata, end): Add definitions of these symbols.
8355 (__end): Remove definition of this symbol.
8356 (__data_start): Move definition of this symbol.
8357
8358 * emultempl/hppaosf.em: Various fixes and support for linker stub
8359 generation.
8360 (hppaosf_finish, hppaosf_search_for_padding_statements,
8361 hppaosf_create_output_section_statements): New functions in
8362 support of linker stub generation.
8363 (ld_hppaosf_emulation): Redefine to include new
8364 emulation-specific routines.
8365
8366 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
8367 Pass abs_output_section rather than NULL to avoid invalidating
8368 absolute symbols.
8369
8370Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8371
8372 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
8373 (em_i386mach.c): New rule.
8374 * configure.in (i[34]86-*-mach*): New case.
8375 * config/i386-mach.mt: New file.
8376 * emulparams/i386mach.sh: New file.
8377
8378Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8379
8380 * ld.h (flag_is_*): Removed macros.
8381 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
8382 Consistently check the BFD symbol flags directly, rather than
8383 using file_is_* macros.
8384
8385Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
8386
8387 * configure.in (sparc*-*-lynxos*): New target.
8388 * Makefile.in: Add rule for em_sparclynx.c.
8389 (ALL_EMULATIONS): Add Lynx emulations.
8390 * config/sparc-lynx.mt: New file.
8391 * emulparams/sparclynx.sh: New file.
8392 * scripttempl/sparccoff.sc: New file.
8393
8394Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8395
8396 * Makefile.in: Add dependency for $(EMULATION_OFILES).
8397
8398Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8399
8400 * relax.c (write_relax): Check return value of bfd_seclet_link.
8401
8402Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
8403
8404 * ldlang.c (delete_output_file_on_failure): New variable.
8405 (open_output): Set it after bfd open succeeds.
8406 * ldmisc.c (vfinfo): Test it.
8407
8408 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
8409
8410 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
8411 symbols.
8412
8413 * ldemul.c: Support was added to allow emulation-specific
8414 processing to occur. This support was added primarily for linker
8415 stub generation in the elf32-hppa gld.
8416 (ldemul_finish, ldemul_create_output_section_statements): New
8417 functions.
8418 * ldemul.h: Support was added to allow emulation-specific
8419 processing to occur. (As described above.) Added finish and
8420 create_output_section_statements fields to
8421 ld_emulation_xfer_struct structure.
8422 * ldlang.c: Add calls to emulation-specific routines.
8423 (lang_process): Add call to
8424 ldemul_create_output_section_statements function.
8425 (lang_process): Add call to a emulation-specific routine (and
8426 some processing after the call).
8427
8428Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8429
8430 * configure.in: mips*- instead of mips-, mips*el changes
8431
8432Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8433
8434 * configure.in (alpha-*-osf*): New target; use alpha.mt.
8435 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
8436 (em_alpha.c): New target; use alpha.sh and alpha.sc.
8437 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
8438 * config/alpha.mt: New file.
8439 * emulparams/alpha.sh: New file.
8440 * scripttempl/alpha.sc: New file.
8441
8442Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
8443
8444 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
8445 types of different sizes (eg: 64 and 32 bits), so coerce.
8446 * ld.h (ALIGN_N): Add warning about usage.
8447
8448Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8449
8450 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
8451 which we already have a definition, rather than checking in
8452 several different places whether the symbol is weak.
8453
8454Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8455
8456 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
8457 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
8458 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
8459 expanded within them.
8460 * config/mipsb-elf32.mt: New file.
8461 * emulparams/elf32mipb.sh: New file.
8462 * Makefile.in (em_elf32mipb.c): New target.
8463
8464Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
8465
8466 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
8467 lang_input_file_is_search_file_enum so objects brought in using
8468 INPUT() do a path lookup.
8469
8470Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
8471
8472 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
8473 instead of {i386,m68k}-coff.
8474 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
8475 * config/i386-lynx.mt: New file.
8476 * config/m68k-lynx.mt: New file.
8477 * emulparams/i386lynx.sh: New file.
8478 * emulparams/m68klynx.sh: New file.
8479
8480 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
8481 but defaulting to _start.
8482
8483 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
8484 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
8485 LynxOS libc.
8486
8487Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
8488
8489 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
8490 HOSTING_LIBS for testing.
8491
8492Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8493
8494 Finish up support for i386-sysv4 (without shared libraries):
8495 * ld.h (flag_is_weak): Define.
8496 * ldlang.c (print_symbol): Mention whether symbol is weak.
8497 (print_input_section): Print weak symbols as globals.
8498 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
8499 (enter_global_ref): Do not warn if a weak symbol redefines a
8500 global symbol. Do not let a weak symbol redefine a common symbol.
8501 (enter_file_symbols): Treat weak symbols as global symbols.
8502 (subfile_wanted_p): Do not pull in an object file from a archive
8503 just to resolve an undefined weak symbol.
8504 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
8505 error; the error might be that malloc has run out of space.
8506 * ldsym.c (write_file_locals): Treat weak symbols as global.
8507 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
8508 use i386-elf.
8509 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
8510 * config/i386-elf.mt: New file; set EMUL to elf_i386.
8511 * emulparams/elf_i386.sh: New file.
8512 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
8513 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
8514 (ALL_EMULATIONS): Add em_elf_i386.o.
8515 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
8516 (em_elf_i386.c): New target, like other em_*.c targets.
8517 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
8518 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
8519 nonempty, and configured for native, add it to LIB_PATH.
8520
8521Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
8522
8523 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
8524 Added statements to pass stab and stabstr sections through and
8525 mark them as NOLOAD, which makes GDB happier.
8526
8527Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
8528
8529 * configure.in: Accept m68k-lynx-lynxos config.
8530
8531 * Makefile.in: Use $(SHELL) to run genscripts.sh.
8532
8533Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
8534
8535 * config/coff-h8300.mt: Add EMUL=h8300h.
8536
8537 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
8538
8539Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8540
8541 * Makefile.in: Changed CXX back to g++.
8542
8543Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8544
8545 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
8546
8547Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8548
8549 * Makefile.in (TAGS): Use shell wildcards.
8550
8551Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
8552
8553 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
8554
8555Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
8556
8557 * ld.texinfo: re-enable included config file; conditionalize doc
8558 for -oformat to interact properly with SingleFormat doc config
8559 var; rename @up/@down to @raisesections/@lowersections.
8560
8561Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8562
8563 * configure.in: recognize m88110.
8564
8565Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8566
8567 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
8568 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
8569 ELF emulation is "elf32-hppa" not "elf-big".
8570 (hppaosf_before_parse): Remove unneeded processing of environment
8571 variables.
8572 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
8573 .text segment of output file.
8574 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
8575
8576Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8577
8578 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
8579 longer in bfd.h.
8580
8581 * ldlang.c, ld.h: updated copyright.
8582
8583Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8584
8585 * ldlang.c (open_output, lang_check): Check return value of
8586 bfd_set_arch_mach.
8587
8588Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8589
8590 * scripttempl/h8500.sc: Start all sections in a different segment.
8591 * scripttempl/z8ksim.sc: Handle constructors
8592
8593Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
8594
8595 * Makefile.in: revert earlier changes back to execute runtest
8596 with make check. cdtest and bootstrap now function as they
8597 did within the Makefile.
8598
8599Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8600
8601 * Makefile.in: Update dependencies.
8602
8603 * configure.in: Set EMULATION_OFILES in Makefile based on
8604 --with-targets option.
8605
8606Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
8607
8608 * Makefile.in: check targets reimplemented to old way.
8609
8610Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
8611
8612 * config/i386v.mh, config/irix4.mh: Use gcc
8613 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
8614 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
8615 bfd/configure.host change.
8616
8617Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8618
8619 * scripttempl/elf.sc: Handle .line and .debug* sections.
8620
8621 * ldlex.l: Use bfd_scan_vma, not strtoul.
8622
8623Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8624
8625 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
8626 Remove inital caps in some error messages, change "can't" to
8627 "cannot", add missing colons.
8628 * ldmisc.c (vfinfo): Print "%%" as a single %.
8629 For '%' followed by unrecognized character, print them both
8630 verbatim instead of expecting a char * arg.
8631 For '%C', don't put the function name in parens.
8632
8633 * ldexp.c (invalid): Pass "%%", not "% ".
8634
8635Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8636
8637 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
8638 (BSS_VAR): Removed; now always define _fbss.
8639 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
8640 Removed.
8641
8642Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8643
8644 * configure.in: z8k-coff is the same as z8k-sim
8645
8646Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
8647
8648 * testsuite/lib/ld.exp: new file
8649 * testsuite/config/unix-ld.exp: new file
8650 * testsuite/ld.bootstrap/bootstrap.exp: new file
8651 * Makefile.in: add dejagnu support for make check
8652
8653Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8654
8655 * ldlex.l (comment): Add missing newline in message.
8656 * ldindr.c (add_indirect): Ditto.
8657 * ldexp.c (exp_fold_tree): Ditto.
8658
8659Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8660
8661 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
8662 into externs.
8663
8664 * ldmisc.c (multiple_warn): New function.
8665 * ldmisc.h: Declare it.
8666 * ldmain.c (enter_global_ref): Call it.
8667 * ld.h (ld_config_type): Add warn_common.
8668 * ldlex.l, ldgram.y: Set it with -warn-common option.
8669 * ldver.c (help): Document it.
8670
8671Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8672
8673 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
8674 target-specific sections, and for changing data section vma.
8675
8676Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8677
8678 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
8679 terminals, for Solaris.
8680 (dirlist_ptr): New static variable.
8681 (command_line_option): Accept new options.
8682
8683 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
8684 "-YP,...".
8685
8686 * config/sun4sol2.mt: Pass emulation name without ".sh".
8687
8688 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
8689 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
8690
8691Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8692
8693 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
8694 .dtors, .data1, .rodata1 sections, instead of combining them into
8695 other sections. For `-r', set all section start addresses to
8696 zero.
8697
8698 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
8699 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
8700 (MAXPAGESIZE): Renamed from PAGE_SIZE.
8701
8702Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8703
8704 * genscripts.sh: If this is the default emulation, set
8705 COMPILE_IN.
8706 * emultempl/*.em: Use it to determine whether to compile in the
8707 scripts.
8708
8709 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
8710 genscripts.sh. Pass the current emulation name without ".sh" on
8711 the end.
8712 * genscripts.sh: Take an default emulation arg.
8713 Use the current emulation name as EMULATION_NAME.
8714 Make default lib path for cross-compiling ':', not null.
8715 * emulparams/*.sh: Don't set EMULATION_NAME.
8716 * ldemul.c (ldemul_get_script): Take isfile arg.
8717 Pass it to emulation's get_script function.
8718 * ldemul.h: Adjust get_script prototypes.
8719 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
8720 No longer static.
8721 * ldfile.h: Declare it.
8722 * ldgram.y: Accept a script on the command line again,
8723 for parsing compiled-in scripts.
8724 * ldmain.c (main): If ld script is a file, parse it as a -T
8725 option, otherwise parse it directly.
8726 * emultempl/*.em (*get_script): Return the scripts themselves if
8727 this is the default emulation; otherwise return their file names.
8728 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
8729 generic.em.
8730 * emulparams/m88kbcs.sh: Use it.
8731
8732 * ld.h (ld_config_type::unix_relocate): Remove unused element.
8733
8734Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8735
8736 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
8737 there's no change log entry yet, tsk tsk) from the list of
8738 emulations compiled in until Mark gets around to checking in
8739 emulparams/i386linux.sh.
8740 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
8741 changed, this file gets updated.
8742
8743Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
8744
8745 * ldgram.y (OPTION_Lfile): New token.
8746 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
8747 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
8748
8749Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
8750
8751 * configure.in: h8/300h support needs own .mt file.
8752 config/coff-h8300h.mt: New file.
8753
8754Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8755
8756 * ldmain.c: Don't include sys/stat.h; it already got included
8757 somewhere along the way.
8758
8759Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
8760
8761 * Makefile.in: Add h8300h support.
8762 emulparams/h8300h.sh: New file.
8763 scripttempl/h8300h.sc: New file.
8764
8765Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8766
8767 * ldfile.c (ldfile_open_file): In error message, use the name the
8768 user gave (e.g., "-lc"), rather than the base file name.
8769
8770 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
8771
8772 * ldmain.[ch]: Remove initial Q_ from function names.
8773 * ldexp.c, ldindr.c, ldlang.c: Change callers.
8774
8775 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
8776
8777 * ldlang.c (lang_process): Move loading of default script from
8778 here to main. Add a "/" to start of script name to prevent
8779 finding it in "." first.
8780
8781 * ldmain.c (set_scripts_dir): Don't look in "." first.
8782
8783 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
8784 option_longmap.
8785
8786Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
8787
8788 * Makefile.in (em_m88kbcs.c): Correct dependency.
8789 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
8790 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
8791 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
8792
8793Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8794
8795 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
8796 main.c (main): Print the errno string in the error message.
8797
8798Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
8799
8800 * configure.in: Accept h8300h for target cpu.
8801
8802 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
8803 present (demangle is smart enough to know whether to do it or not).
8804
8805Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8806
8807 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
8808 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
8809
8810 * ldlang.c (lang_process): Use sizeof instead of magic constant.
8811
8812 * ldmain.c (get_emulation, check_for_scripts_dir,
8813 set_scripts_dir): New functions.
8814 (main): Call them.
8815
8816Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
8817
8818 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
8819 Create symbol "end" instead of "__end". Comment out some parts
8820 that may not be needed (yet) for elf.
8821
8822 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
8823
8824Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8825
8826 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
8827
8828 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
8829 when no prototype is being supplied.
8830 (ldmalloc, ldrealloc): Size argument is now size_t.
8831
8832 * ldmisc.c (finfo): New function, accepts FILE* argument.
8833 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
8834 without leading zeros.
8835 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
8836 bfd_vma value, instead of fprintf(%x) which won't hold a long long
8837 value.
8838 (concat, buystring): String lengths are size_t.
8839 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
8840
8841 * ldlang.c (new_statement): Size argument is now size_t. Added
8842 forward declaration with prototype.
8843
8844Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8845
8846 * ldgram.y (OPTION_v): Don't turn on verbose output.
8847
8848Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8849
8850 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
8851 bfd.h instead.
8852
8853Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
8854
8855 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
8856 collect2 doesn't look for gld any more anyhow.
8857
8858Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
8859
8860 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
8861 now have a non NULL srefs_chain.
8862
8863 * config/hp300hpux.mt: Use emulation hp3hpux rather than
8864 hp300hpux, since the latter does not exist.
8865
8866Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8867
8868 * genscripts.sh: Put the scripts in the ldscripts directory, not
8869 emulations.
8870 * configure.in (ldscripts): Make, instead of emulations.
8871 * Makefile.in (scriptdir): Take off the "ld" part.
8872 (install, clean, distclean): Use ldscripts, not emulations.
8873 In tests, don't pass -Lemulations.
8874 Don't pass tooldir/lib to genscripts.sh.
8875 * genscripts.sh: Don't take tooldir/lib arg.
8876 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
8877 default script file.
8878
8879Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
8880
8881 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
8882
8883Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
8884
8885 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
8886
8887Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8888
8889 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
8890 run in parallel without colliding on yacc's static file names.
8891 Without the stub rule, make will try to start two yacc's
8892 concurrently which fails because of yacc's static file names.
8893
8894Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
8895
8896 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
8897 symbols.
8898
8899Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8900
8901 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
8902 different from libdir.
8903
8904 * Makefile.in (scriptdir): Base on tooldir, not datadir.
8905
8906Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8907
8908 * ldver.c (help): New function.
8909 * ldver.h: Declare it.
8910 * ldlex.l, ldgram.y: Recognize new options --help and --version.
8911
8912Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
8913
8914 * Makefile.in (INCLUDES): Don't need ../include any more.
8915
8916Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8917
8918 * ldlex.l, ldgram.y: Support new -oformat option.
8919 Remove attempt at supporting script fragments on the command line.
8920 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
8921 * mri.c (mri_format), ldgram.y: Change callers.
8922 * ldlang.h: Change prototype.
8923
8924Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
8925
8926 * Makefile.in: canonicalize install.sh; for use within
8927 this directory (and subdirs)
8928
8929Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8930
8931 * ldgram.y: Tweak grammar to make reporting of invalid options work.
8932
8933 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
8934 and .cc.o rule.
8935
8936Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8937
8938 * ldfile.c (ldfile_open_command): Don't try .ld extension.
8939 It wasn't documented (or likely used) and wastes time.
8940 (try_open): If EXTEN is empty, don't try it.
8941
8942 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
8943 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
8944 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
8945 with normal function declarations.
8946
8947 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
8948 Move *.sc-sh to scripttempl/*.sc.
8949 * {emultempl,emulparams,scripttempl}/README: New files.
8950 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
8951 removed, replaced with generic.em.
8952 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
8953 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
8954
8955 * *.em (*_get_script): Return script name instead of script contents.
8956 * ldlang.c (lang_process): Change caller.
8957
8958 * ldlex.l, ldgram.y: Recognize -m option.
8959 Check for input files after *all* options in grammar.
8960 * ldmain.c (main): Check for -m options. Add default directory
8961 for -m.
8962
8963 * mkscript.c: File removed.
8964 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
8965 to add to the default LIB_PATH.
8966 Look for input files in the new subdirectories.
8967 Create the scripts in emulations subdirectory and don't filter
8968 them through mkscript.
8969 * configure.in: Make the emulations subdirectory.
8970
8971 * Makefile.in: Account for all of the above changes.
8972 Remove unused .SUFFIXES. Get libgcc.a path with gcc
8973 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
8974 Put CFLAGS last in the compilation rules.
8975 Add -I../bfd to INCLUDES so sysdep.h is found.
8976
8977Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
8978
8979 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
8980
8981 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
8982 dependent on RELOCATING, not RELOCATION.
8983 * hp3hpux.sh (SHLIB_PATH): Define it.
8984
8985Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
8986
8987 * ldfile.c (try_open): If opening without the extension fails,
8988 try with the extension even if -v or -V was given.
8989 had_script is imported (from ldgram.y), not exported.
8990
8991Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
8992
8993 * Makefile.in: remove parentdir support, use INSTALL_XFORM
8994
8995Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
8996
8997 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
8998 * ldgram.y (statement_list_opt): New nonterminal, either empty or
8999 statement_list.
9000 (section): Use statement_list_opt, not statement_list.
9001 * m68kcoff.sc-sh: Gather constructors and destructors and define
9002 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
9003 * sa29200.sc-sh: Gather constructors and destructors and define
9004 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
9005
9006Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
9007
9008 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
9009 * configure.in: No longer need to configure to get sysdep.h.
9010
9011Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9012
9013 * Makefile.in: remove install:all and install-info:info
9014 dependencies (these cause some spurious rebuilds at 'make install'
9015 time)
9016
9017Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
9018
9019 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
9020 (mips-idt-ecoff*): Added trailing '*'.
9021 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
9022 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
9023 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
9024
9025 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
9026 incorrect definitions.
9027
9028Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
9029
9030 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
9031 symbols, unless stripping.
9032
9033Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
9034
9035 * Makefile.in: configure looks for ####, so remove lines with many
9036 '#' characters.
9037 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
9038 and HOSTING_LIBS correctly so that ``make check'' will work.
9039
9040Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
9041
9042 * mips.sc-sh: Define _etext, _edata, and _end, in addition
9043 to etext, edata, and end. Needed for IRIX 4.0.5F.
9044 Patch from mwp@iconix.oz.au (Michael Paddon).
9045
9046 * Version 2.2.1 released.
9047
9048Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9049
9050 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
9051 * mipsbsd.sh (EMULATION_NAME): Use new file name.
9052
9053Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9054
9055 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
9056 properly right now.
9057
9058 * Version 2.2 released.
9059
9060Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9061
9062 * ldver.c (ldversion): Bump version number to 2.2.
9063
9064Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
9065
9066 * NEWS: New file.
9067
9068Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
9069
9070 * mips.sc-sh: Don't define BSS_VAR unless relocating.
9071
9072Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
9073
9074 * Makefile.in (mkscript.o, mkscript): Build mkscript via
9075 mkscript.o, rather than directly from mkscript.c.
9076
9077Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9078
9079 * configure.in: Look for ${target_makefile_frag} relative to
9080 ${srcdir}, not relative to build directory.
9081
9082 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
9083 * configure.in: Recognize hppa*-hp-osf.
9084 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
9085 (em_hppaosf.c): Build it.
9086 * config/hppaosf.mh, hppaosf.mt: New files.
9087
9088 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
9089 some system header files. All uses changed.
9090
9091 * configure.in: Recognize i386-aix configurations as i386-coff
9092 targets.
9093
9094 * configure.in: Recognize m68*-*-hpux.
9095 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
9096 the value of STACKZERO.
9097 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
9098 (em_hp3hpux.c): Build it.
9099 * hp3hpux.sh, config/hp300hpux.mt: New files.
9100
9101Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
9102
9103 * mips.sc-sh: Put constructors in the .data section.
9104 * Makefile.in (cdtest): Added dependency on ld.new.
9105
9106Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
9107
9108 * Makefile.in: Change definition of $(tooldir) to match FSF.
9109 * vax.sh, config/vax.mt, configure.in, Makefile.in:
9110 Support VAX Ultrix and BSD.
9111
9112Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9113
9114 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
9115
9116Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
9117
9118 * ldlang.h (struct memory_region): Change `length' and
9119 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
9120 * ldlang.c, mri.c: Corresponding changes, plus lint.
9121
9122Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
9123
9124 * configure.in: For all i386 targets, accept i486 as well.
9125
9126Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
9127
9128 * ldlang.c (wild_doit): Preserve all flags for a
9129 SEC_SHARED_LIBRARY section.
9130 (size_input_section): Consider any SEC_HAS_CONTENTS section when
9131 computing largest_section.
9132
9133Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
9134
9135 * ldlang.c (lang_output_section_statement_lookup): Initialize all
9136 fields of newly created structure.
9137
9138Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
9139
9140 * ldmain.c (g_switch_value): New variable.
9141 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
9142 (command_line_option): Accept -G and set g_switch_value.
9143 * ldlex.l (COMMAND): Accept -G.
9144 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
9145
9146Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9147
9148 Support for linking and loading at different places:
9149
9150 * ldlex.l: Add "AT" keyword.
9151 * ldgram.y: Cleanup, and parse AT.
9152 * ldlang.c (print_output_section_statement): Print output address
9153 of section in map. (lang_size_sections): Fill sections' lma with
9154 load address.
9155 * ldlang.h (lang_output_section_statement_type): Add load_base
9156 information.
9157
9158 * ldindr.c (add_indirect): Keep more information in the alias
9159 symbol chain.
9160 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
9161 attribute from an input section.
9162 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
9163 default. (Q_enter_file_symbos): Indirect symbols now are known by
9164 their section, not a special symbol flag.
9165 * ldsym.c (write_file_locals): Indirect symbols aren't local.
9166 (write_file_globals): Write the mapping for an indirect symbol.
9167 * relax.c (build_it): When forced to write a NEVER_LOAD section,
9168 fill it with zeros.
9169
9170Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
9171
9172 * ld.texinfo: changes for q1
9173
9174Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9175
9176 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
9177
9178Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9179
9180 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
9181
9182Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
9183
9184 * mips.sc-sh: Added variables which may be overridden by a
9185 specific emulation.
9186 * mipsidt.sh: New file; emulation for IDT MIPS board.
9187 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
9188 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
9189 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
9190 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
9191
9192Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
9193
9194 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
9195 ralphc@pyramid.com.
9196 * i386bsd.sh, config/i386bsd.mt: New files.
9197 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
9198
9199Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
9200
9201 * mri.c: Add extern declaration of strdup.
9202 * ldsym.c (KEEP macro): Add spaces around '=' for the
9203 sake of old (e.g. PCC) compilers.
9204
9205Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
9206
9207 * ldver.c: Bump to version 2.1.
9208
9209Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9210
9211 * ldgram.y: allow section types without address expressions.
9212 * ldlang.c (lang_relocate_globals): avoid possible hang with
9213 undefined but unreferenced symbols.
9214 * relax.c (relax_section): don't complain if the script file isn't
9215 relaxable but -relax is set
9216
9217Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9218
9219 * configure.in: go32 is the 3rd part of the triple, not the 2nd
9220
9221Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
9222
9223 * mipsbig.sh: New file. Big endian MIPS emulation.
9224 * config/mips-big.mt: New file. Use mipsbig emulation.
9225 * configure.in (mips-sgi-irix*): Use target mips-big.
9226 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
9227 (em_mipsbig.c): New target. Uses mipsbig.sh.
9228
9229Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
9230
9231 * mips.sc-sh: Put .scommon sections into .sbss section.
9232
9233 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
9234 rather than always putting them in bfd_com_section.
9235 * ldlang.c (lang_common): If a common symbol is not in
9236 bfd_com_section, put in a section of the same name, rather than
9237 always putting it in section COMMON.
9238
9239Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
9240
9241 * ldmain.c (subfile_wanted_p): If we already have a common
9242 definition of a symbol, don't necessarily pull in an object file
9243 that provides a non-common definition.
9244
9245 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
9246 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
9247 linker.
9248 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
9249 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
9250
9251Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
9252
9253 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
9254 the link to it.
9255
9256Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
9257
9258 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
9259 checking for equality to bfd_com_section.
9260
9261Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
9262
9263 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
9264 targets, linker script.
9265 * mipslit.sh: New file. Little endian MIPS emulation.
9266 * config/mips-lit.mt: New file. Use mipslit emulation.
9267 * configure.in (mips-dec-ultrix*): Use target mips-lit.
9268 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
9269 (em_mipslit.c): New target. Uses mipslit.sh.
9270
9271Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
9272
9273 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
9274 $(tooldir)/bin/gld, so that gcc can find it with or without
9275 collect2.
9276
9277Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9278
9279 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
9280 write_norel. All linking is now done via write_relax. Call
9281 ldsym_write before calling write_relax.
9282 * relax.c: Added copyright.
9283 (write_relax): Renamed from write_relaxnorel. Added relocateable
9284 argument. seclet_dump renamed to bfd_seclet_link.
9285 * relax.h: Added copyright.
9286
9287Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9288
9289 * ldmain.c (decode_library_subfile): Patch from
9290 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
9291
9292Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9293
9294 * config/vxworks960.mt renamed to config/i960.mt
9295
9296 * configure.in: sparc-aout emulates a sun4, as does
9297 sparc*-vxworks, i960-nindy uses gld960 emulation
9298
9299Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9300
9301 Fix support for NOLOAD, add INCLUDE
9302 * ldfile.c (ldfile_open_command_file): pass file name to
9303 lex_push_file.
9304 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
9305 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
9306 attribute.
9307
9308Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9309
9310 * Makefile.in, config.h: no more default emulation. Make the lack
9311 of emulation a compile time error
9312
9313Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9314
9315 * configure.in: recognise all sparclite variants, not just 'sparclite'
9316
9317Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
9318
9319 * m68kcoff.sc-sh: define _end as well as end, for consistency with
9320 aout.sc-sh.
9321
9322 * configure.in: accept *-ericsson-ose for any m68k CPU.
9323
9324 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
9325 for each output section.
9326
9327Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
9328
9329 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
9330 macro bfd_asymbol_bfd as appropriate.
9331 * Makefile.in: Un-duplicate ldlex.c dependency.
9332 * condigure.in: Replace my_host case table by sourcing
9333 ../bfd/configure.host. Allow std-host as the default.
9334 * ldmisc.c: Change logic for C++ name demangling: There is
9335 no initial '_' to remove from stab-derived function names.
9336
9337Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9338
9339 * ldlang.c (lang_init_script_file): don't attach the output file
9340 sections to the script file.
9341
9342Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9343 * ldlang.c (wild): run expansion loop over command line bfd too.
9344 (lang_ini_script_file): initialize more parts of the command line
9345 bfd.
9346 * ldlex.l: fix DEFINED start states.
9347
9348Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9349 -y support
9350 * ld.texinfo: new doc.
9351 * ldgram.y, ldlex.l: understand -y<symbol>
9352 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
9353 print info. (add_ysym): new function.
9354 * ldsym.h: (ldsym_type): new define SYM_Y.
9355
9356Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
9357
9358 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
9359 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
9360 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
9361 macros with PARAMS. Recreational cleanup. Update copyrights.
9362
9363Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9364
9365 * Makefile.in: pass down the bfd source directory for includes
9366
9367Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
9368
9369 * ldlang.c (lang_size_sections): don't change size and address for
9370 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
9371 sections.
9372
9373Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9374
9375 * relax.c (build_it): re-enable the processing of data_statements
9376 in scripts, makes counted contructor lists work again.
9377
9378Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
9379
9380 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
9381
9382Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
9383
9384 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
9385 and end.
9386
9387Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
9388
9389 * Support for i386-sysv.
9390 configure.in: check for i386-*-sysv* and i386-*-sco*.
9391 i386coff.sc-sh: rewrote to support SVR3 by default.
9392 ldctor.c (find_constructors): preserve stat_ptr.
9393 ldlang.c (wild_doit): initialize vma and size of new output
9394 section to corresponding input section. This is required for
9395 shared library support.
9396 (lang_size_sections): don't modify vma and size of sections which
9397 are never loaded (for shared libraries).
9398 ldwrite.c (copy_and_relocate): copy the contents of any section
9399 which has contents, not just sections which are loaded (for shared
9400 libraries).
9401
9402Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9403
9404 * ldlang.c (size_input_section): count the sizes of all sections
9405 we allocate.
9406
9407Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9408
9409 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
9410 to demangle symbols better
9411
9412Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
9413
9414 * ldlang.c (lang_finish): don't warn if -e start symbol does not
9415 exist when linking with -r.
9416
9417Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
9418
9419 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
9420 .bss segment.
9421
9422Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9423
9424 * ldmain.c (linear_library): don't even think about processing
9425 an object file if it's already been done
9426
9427Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9428
9429 * configure.in: the hp9000/300 config file is now hp300
9430
9431Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9432
9433 * config/z8ksim.mt: new file
9434
9435Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
9436
9437 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
9438 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
9439
9440 * ld.h (strip_symbols_type): Add value STRIP_SOME.
9441 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
9442 * ldlang.c (lang_add_keepsyms_file): New function.
9443 * ldlex.l: Handle "-retain-symbols-file".
9444 * ldsym.c (keepsyms_file, kept_syms): New vars.
9445 (process_keepsyms): New functihon; reads file, marks symbols for
9446 saving.
9447 (write_file_locals): File symbols should always be kept.
9448 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
9449 and "-s". Process retain-symbols file before setting symtab.
9450 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
9451 (keepsyms_file, kept_syms): Declare them.
9452
9453 * ldmain.c (main): Non-fatal errors should still cause non-zero
9454 exit status even with -r.
9455
9456Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9457
9458 Added initial support for the z8k
9459 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
9460 * configure.in, Makefile.in: modified to reflect above
9461
9462 * ldlang.c (lang_check): when linking conflicting architectures,
9463 make the output file reflect at least one of the bad inputs.
9464
9465Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
9466
9467 * Makefile.in (install): if $(tooldir) exists, install ld in
9468 $(tooldir)/bin.
9469
9470Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9471
9472 * Makefile.in, configure.in: modified to support i386-coff
9473 * i386coff.sh: new file
9474
9475Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
9476
9477 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
9478 added m68k-coff emulation mode, stolen from a29k emulation.
9479 Almost certainly wrong, but perhaps better than sun3.
9480
9481Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
9482
9483 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
9484 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
9485 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
9486 This is one character shorter, and lets people build on
9487 SVR3 system. (ld__h8300xray.[co] was the killer there;
9488 h8300xray.sc-sh is also overlong, but seems harmless.)
9489 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
9490 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
9491 * configure.in: Add host isc.
9492
9493 * ldver.c: Call it version 2.0.
9494
9495Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
9496
9497 * ldver.c: Bump to version 0.98.
9498 * TODO: New file.
9499
9500 * Makefile.in: Added mostlyclean, distclean, realclean rules.
9501
9502Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
9503
9504 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
9505 * ldlex.l: Moved comment() to end, since some compilers
9506 otherwise have problems with input() used before it is defined.
9507
9508Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9509
9510 * configure.in: added Solaris 2 and Irix 4 host support.
9511
9512Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9513
9514 * Makefile.in: remove -S flag from the FLEX definition
9515
9516 * configure.in: rewrote, using new style case statement. use
9517 m68k.mt for m68k-aout systems
9518
9519Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
9520
9521 * Makefile.in: map "ld" through program_transform_name when
9522 installing.
9523
9524Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
9525
9526 * cplus-dem.c: Removed. Use the version in libiberty now.
9527 * ldmisc.c: Use new libiberty version of cplus_demangle().
9528
9529Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
9530
9531 * gld960.em (gld960_choose_target): default to little endian, not
9532 big endian.
9533
9534Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9535
9536 * ldlang.c (lang_process): don't pass null pointers when
9537 abs_output_section is what is required.
9538 * ldwrite.c (ldwrite): use malloc to allocate the largest space
9539 used, and pass that down.
9540 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
9541 than alloca.
9542
9543Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
9544
9545 * configure.in, config/ose68.mt: renamed OSE to ose.
9546
9547Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
9548
9549 * ldsym.c (write_file_locals): Reorder check for common or
9550 undefined symbols so that it works.
9551
9552Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
9553
9554 * configure.in: accept all m68K family members.
9555
9556 * Makefile.in: always create installation directories.
9557
9558Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9559
9560 * ldlex.l: now parses comment correctly, added ~ to acceptable
9561 chars in filenames
9562
9563 * ldexp.c (exp_unop): pass down abs_output_section - now can have
9564 unary -ve constants.
9565
9566 * ldlang.c (lang_finish): warn when an entry symbol supplied on
9567 the command line can't be found.
9568
9569Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9570
9571 * ldlang.h: add new field "loadable" to output_section_statement.
9572 * ldlang.c (lang_output_section_statement_lookup): initilize new
9573 field. (wild_doit): if new field is not set, then stop output
9574 section from being loadable.
9575 (lang_enter_output_section_statement): set the field from the
9576 NOLOAD keyword
9577 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
9578 * h8300hms.sc-sh, h8300hms.em: get -r right.
9579
9580Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
9581
9582 * ldint.texinfo: New internals manual (beginnings thereof).
9583 * PORTING: Removed, merged into ldint.texinfo.
9584
9585Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
9586
9587 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
9588 cdtest.exp: A test program (copied from libg++/test-install)
9589 that tests that constructor and destructors are handled
9590 corrrectly.
9591
9592Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9593
9594 * Makefile.in (install): install from ld.new, renaming during the
9595 copy, or else the next 'make install' needs to re-link ld.
9596
9597Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
9598
9599 * configure.in: generalise hp recognition (from sef).
9600
9601Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9602
9603 * configure.in: recognize bsd and hpux hppa configurations.
9604 error messages echo to stderr, not stdout
9605
9606Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9607
9608 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
9609 ldmisc.c: removed rcsid's.
9610
9611Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9612
9613 * ldlang.c (lang_map): print changes in sizes due to relaxing
9614 (size_input_section): maintain the delta information.
9615 * ldlang.h: add new field to struct to contain delta info.
9616 * relax.c (relax_section): complain if input not relaxable.
9617 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
9618 start of a filename
9619
9620Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9621
9622 * ldmain.c(main): prevent -r and -relax from being on at the same
9623 time.
9624
9625Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9626
9627 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
9628 aliasing problems
9629
9630
9631Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9632
9633 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
9634 * ldexp.c: lint
9635 * ldlang.c(open_output): set the target arch and machine as soon
9636 as we can. (lang_size_sections): use new macros for setting vma
9637 * ldwrite.c: lint
9638
9639Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
9640
9641 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
9642 Also deleted an unreachable path to wrs.
9643
9644Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
9645
9646 * Makefile.in (install): use -d test for $tooldir before
9647 installing ld there so that $tooldir can be inherited from
9648 top-level Makefile.
9649
9650Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
9651
9652 * ldlang.c: Two non-substantial changes for the sake of
9653 the old Portable C Compiler.
9654
9655Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9656
9657 * ldgram.y, ldlex.l: parse ABSOLUTE
9658 * ldexp.c: add support for ABSOLUTE
9659
9660Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
9661
9662 * Makefile.in: Added default definitions for HOSTING_CRT0,
9663 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
9664 * config/*.mh: Miscellaneous clean-up: Removed definitions
9665 of YACC (since it is not longer used in the Makefile).
9666 Remove HOSTING_* definitions that are subsumed by the
9667 ones added to Makefile.in. Removed most definitions of CC.
9668 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
9669 These are no longer needed.
9670
9671Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
9672
9673 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
9674 rules, since these are used when building a distribution.
9675 * Makefile.in (ldlex.c): Don't re-direct output, since that
9676 leaves a bogus output files if it fails.
9677
9678 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
9679 * ldlex.c: Fix some unnecessary flex-specific-isms.
9680
9681Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9682
9683 * ldgram.y: move spurious semicolon
9684 * ldexp.h: fix prototype
9685
9686Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9687
9688 * ld.texinfo: references to linker now say "ld" not "gld".
9689
9690Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9691
9692 changed calling convention for Q_enter_global_ref
9693 * ldexp.c, ldlang.c, ldmain.c: reflect this
9694 * ldver.c: bump version to 1.97.1
9695 * ldindr.c (add_indirect): when an edict declaring an indirect
9696 symbol is found, make sure that any ideas about the symbol being
9697 common are changed if it now known to be defined.
9698 * ldmain.c (linear_library): complain once if archive isn't
9699 ranlibbed.
9700 * ldlang.h, ldlang.c: make room for and initialize the complain
9701 once field.
9702
9703Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9704
9705 * Makefile.in: use flex & bison from ../ if they exist.
9706
9707Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9708
9709 * relax.c (build_it): don't allocate space in the output file for
9710 stuff if -R flag applys to it.
9711 * ldfile.c: merge in VMS filename support
9712 * ldmain.c (main): take out ./ from library path, and close file
9713 before unlinking. Make multiple defs of a symbol create an
9714 unexecable file.
9715 * ldmisc.c: fatal errosrs delete output file
9716
9717Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
9718
9719 * ldver.c: Increase version number to 1.97, for consistency
9720 with ../binutils.
9721
9722Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
9723
9724 * Makefile.in: FLEX -> LEX.
9725
9726 * ld.texinfo: {} -> @{@}.
9727
9728Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9729
9730 * ld.texinfo: describe alternate, MRI-compatible linker scripts
9731 (and associated change in -c option, now used for these scripts)
9732
9733Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9734
9735 * ldver.c: Bumped version to 1.96 - new release, resync with the
9736 bfd too #.
9737 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
9738 rather than with raw malloc, makes it easier to track where memory
9739 is going.
9740 * ldsym.h, ldsym.c: create obstack for all global symbols too.
9741 * ldwrite.c (ldwrite): moved malloc so only used when needed.
9742 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
9743
9744
9745Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
9746
9747 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
9748
9749 * Makefile.in: use bootstrap for check.
9750
9751Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9752
9753 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
9754 PUBLIC.
9755 * Makefile.in: now use flex, not lex
9756 * ldlex.l, ldlang.c, ldctor.c: lint
9757
9758Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9759
9760 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
9761 different sorts of filenames on the command line than in a script.
9762
9763Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9764
9765 * Makefile.in: rework CFLAGS so that they can be passed on the
9766 make command line. Remove MINUS_G. Default CFLAGS to -g.
9767
9768Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9769
9770 * relax.c: added handling for new "padding" seclet type, used to
9771 fill out gaps between section.
9772 * ldgram.y, ldlex.l: now -defsym on the command line is done
9773 properly.
9774
9775Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9776
9777 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
9778
9779Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9780
9781 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
9782 scripts.
9783
9784Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
9785
9786 * Makefile.in (install): Install second copy in $(tooldir)/bin
9787 without $(program_prefix), since that's what gcc expects.
9788
9789Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9790
9791 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
9792 * h8300*: fix bit rot and add support for h8300xray target
9793 * go32.sh: target emulation for go32.
9794
9795Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
9796
9797 * gld960.em, i960.sc-sh. Fix i960 bit rot
9798
9799Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
9800
9801 * Makefile.in: install man page.
9802
9803Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9804
9805 * config/mt-<foo> renamed to <foo>.mt
9806 * config/mh-<foo> renamed to <foo>.mt
9807 * configure.in changed to reflect this
9808 * genscripts.sh now make .xbn files rather than .xN files
9809
9810Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
9811
9812 * ldver.h: fix decl of ldversion.
9813
9814Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
9815
9816 * Makefile.in: added check target.
9817
9818Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9819
9820 * ldmain.c (Q_enter_file_symbols): now aliases work again
9821
9822Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
9823
9824 * Makefile.in: added clean-info target.
9825
9826Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9827
9828 * ldexp.c (exp_print_tree): don't try and follow null pointers
9829 around.
9830 * ldgram.y: remove 11 shift reduce errors
9831
9832Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9833
9834 * Makefile.in: added tooldir and program_prefix.
9835
9836Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
9837
9838 * ldlang.c (size_input_section): don't move absolute sections
9839 around!
9840
9841
9842Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
9843
9844 * cplus-dem.c: yet another copy of this - maybe it should go into
9845 libiberty ?
9846 * ldgram.y: now -V and -v have different actions
9847 * ldver.c: if -V, prints list of emulations compiled in
9848 * ldmisc.c: support for cplus demangling
9849
9850
9851Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
9852
9853 * Makefile.in, configure.in: removed traces of namesubdir,
9854 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
9855 copyrights to '92, changed some from Cygnus to FSF.
9856
9857Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
9858
9859 * Makefile.in: Change mkscript rule into one for ./mkscript
9860 (for the sake of makes that don't realize they're the same).
9861 * PORTING: Add more details.
9862 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
9863
9864Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
9865
9866 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
9867 config/mt-hp300bsd: New port to hp300 running BSD.
9868
9869Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
9870
9871 Major rewrite of how ld is configured. The major idea
9872 is to use shell scripts to generate everything.
9873 * generic.em replaces ldtemplate.
9874 * Other *.em files replace various *.c files.
9875 A *.em file is a shell script that generates the corresponding
9876 ld__*.c file that implements an emulation. This is usually
9877 a straight 'cat' of a here-document, possibly with substitutions.
9878 * Script files (*.sc) are places by *.sc-sh scripts.
9879 Again, these are simple shell scripts that 'cat'
9880 here-documents, usually with some substitutions.
9881 The output a *.sc-sh is a script file.
9882 * Each emulation is defined by a short shell script with
9883 extension *.sh that specifies the emulation-specific
9884 parameters (such as the name of the *.sh-sc and *.em
9885 files to use).
9886 * genscript.sh is the master shell script used to generate
9887 an emulation. It is passed various argument, including
9888 the name a the emulation-speciic *.sh file that it
9889 "sources" to set variables to emulation-specifc parameters.
9890 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
9891 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
9892 * config/mh-foo: Rename LDEMULATION names as appropriate
9893 (usually 'gldfoo' -> plain 'foo').
9894 * ldwrite.c: Fixed a typo in a comment.
9895 * Makefile.in: Major changes. Removed some the sed
9896 magic to converts scripts, since that is now handled
9897 by genscripts.sh and the *.sc-sh scipt generators.
9898 * config.h: Remove a bunch of macros defining emulations
9899 and targets. This becomes one less file to edit when
9900 adding emulations or targets.
9901 * ldemul.h (struct ld_emulation_xfer_struct): Add
9902 emulation_name and target_name fields.
9903 * ldemul.c, ldemul.h: Define some default functions used
9904 by most emulations (and remove from the *.em scripts).
9905 * ldemul.c (ldemul_choose_target): Search the new
9906 ld_emulations array using a loop (instead of a hardwired
9907 nested if statement).
9908 Define the ld_emulation from the automatically-geenrated
9909 ldemul-list.h. This means you no longer have to edit ldemul.c
9910 to add a new emulation.
9911 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
9912 their expansions, since the former no longer exist.
9913 * PORTING: A very rough first draft of a porting guide.
9914
9915 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
9916 to be terminated by a new-line (instead of requiring a semicolon).
9917
9918Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9919
9920 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
9921 tests for NULL pointers all over the place.
9922 * ldlang.c (lang_process): remember to relocate global symbols
9923 *after* relaxing has done it stuff.
9924
9925Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9926
9927 * config/mt-coff-h8300: use EMUL like everything else
9928 * ldlang.c: (print_padding_statement): print the right address.
9929 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
9930
9931
9932Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9933
9934 * ldlex.l: Put pack -noinhibit-exec and -sort-common
9935 * ldlang.c (print_data_statement): print the right address.
9936
9937Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
9938
9939 * Makefile.in: The rule for testing ld by re-linking itself
9940 via an intermediate -r link was moved to the ld1 rule
9941 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
9942 which allows the bootstrap rule to work.
9943 * ldctor.c (find_constructors): Don't create a constructor
9944 list if it is already defined (as would happen if ld is
9945 invoked by collect).
9946
9947Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9948
9949 * config/mh-sparc.h: now uses libgcc.a
9950 * ldmain.c: quit using exit
9951 * *sc: use *(COMMON) rather than [COMMON]
9952 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
9953 to allow preprocessing of .l file.
9954 * Makefile.in: New ldlex.l mangling
9955 * ldexp.c (fold_binary): perform expressions with % and / in
9956 integer.
9957 * ldfile.c (open_a): open archives on VMS in a special way
9958
9959
9960Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9961
9962 * ldgram.y: map -M behave in the same way as -Map (sets file name
9963 to be "-".
9964 * ldsym.c, ldlang.c: remember that size of a section is dependent on
9965 whether or not relaxing has been done.
9966 * ldmain.c: don't open a map file if it doesn't have a name
9967 * relax.c: all the brains have moved into bfd.
9968 * ldwrite.c: ammend comment
9969
9970Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
9971
9972 * Makefile.in: added relax, also made three stage go through a
9973 partial link stage.
9974 * relax.c : added
9975 * config.h: if GNU960 defined, then default emulation mode is
9976 GLD960
9977 * ldexp.h, ldexp.c: map to file hooks
9978 * ldlang.c: map to file hooks
9979 * ldgram.y: added -Map -relax
9980 * ldlex.l: added -relax, -Map
9981 * ldmain.c: open map file
9982 * ldmisc.c: support for map file
9983 * ldwrite.c: new relax magic
9984
9985Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
9986
9987 * Makefile.in, config/tm-*.h: Clean up make output, only
9988 pass DEFAULT_EMULATION to ldmain.c.
9989
9990Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
9991
9992 * ldver.c: Bump to version 1.94.
9993
9994Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9995
9996 * Makefile.in: infodir belongs in datadir.
9997
9998Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
9999
10000 * Makefile.in: Pass -y to bison. (Again;
10001 accidentally deleted by Rich.)
10002 * news.sc, ldgld68k.sc: Define __end as well as _end.
10003
10004Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
10005
10006 * ldindr.h: added to contain prototypes of ldindr.c
10007 * ldfile.c: include ctype.h
10008 * ldmain.c: include the requried prototype headers
10009 * ldwrite.c: get_reloc_upper_bound has been renamed
10010 bfd_get_reloc_upper_bound
10011
10012Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10013
10014 * Makefile.in: punt "fundamental" mode because it breaks my emacs
10015 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
10016 spaces following hyphens, bsd make can't cope. added
10017 standards.text support and made it look like all the other
10018 makefiles.
10019
10020 * configure.in: configure now runs entirely in objdir so make file
10021 existence checks against ${srcdir}. Mark this directory as
10022 target dependent.
10023
10024Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10025
10026 * Makefile.in: idestdir and ddestdir go away. Added copyrights
10027 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
10028 and mandir now keyed off datadir by default.
10029
10030Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
10031
10032 * ldver.c: Bumped version to 1.93.
10033 * Makefile.in: Pass -y to bison.
10034
10035Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
10036
10037 * config.h: h8 is now coff, not ieee
10038 * h8300hds.sc: reflect the same
10039
10040Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
10041
10042 * ldver.c (ldversion()): Update to 1.92.
10043 * ldctor.c: There are two places constructor sets
10044 can be defined. One of them checked for an existing
10045 duplicate, the other didn't. Unfortunately, the latter
10046 was called after the former ...
10047 So, factor out code for inserting a new element into
10048 constructor_name_list (after checking for a duplicate)
10049 into a new function add_constructor_name, and call
10050 it from both aforementioned places (ldlang_add_constructor
10051 and ldlang_check_for_constructors).
10052
10053Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
10054
10055 * Makefile.in: Rename .c files generated from ldtemplate
10056 to have names starting with ld__. This helps 'make clean'.
10057
10058Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
10059
10060 * Makefile.in: Take out the version number for install
10061 * m88kbcs.sc: put in contructor blocks.
10062
10063Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
10064
10065 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
10066 parameter, a format, and an arg pointer, and rename it to
10067 vfinfo(). Write info() in terms of new vfinfo().
10068 New einfo() is the same as info(), except it writes to stderr.
10069 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
10070 ldmisc.c: Replace "error" calls to info() by new einfo().
10071
10072Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
10073
10074 * ldlex.l ldgram.y: made -V option do same as -v
10075 * Makefile.in: Added $(MINUS_G) flag so debugging can be
10076 turned off
10077
10078Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
10079 i386 aout changes from Bob Kukura
10080 * Makefile.in, config.h: added i386aout support
10081 * configure.in: fixed /h-{myhost} typo
10082 * ldgram.y: -MM now gives more boring map.
10083 * ldlang.c: now does D_PAGED flag the right way.
10084 * ldsym.c: -MM flags does the right thing.
10085
10086Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
10087
10088 * configure.in: Fixed typo. Also, a fix for hp300bsd.
10089 * ldlang.c (init_os): Compensate for BFD change,
10090 where bfd_make_section now returns NULL for a duplicate
10091 section request, instead of the old section.
10092
10093Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
10094
10095 * ldver.c: Bump to version 1.91 (consistent with binutils).
10096
10097Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
10098
10099 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
10100 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
10101 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
10102 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
10103 Add or update copyright notices.
10104
10105Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
10106
10107 * README: New file.
10108 * Makefile.in: Changed installation directory name scheme
10109 to be consistent with gcc. Also changed 'install'.
10110
10111Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
10112
10113 * Makefile.in: new targets ld.mm, ld.me
10114
10115Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
10116
10117 * Makefile.in, ldtemplate: Need to use separate scripts
10118 for -n and -N options. Yet more complication.
10119
10120Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
10121
10122 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
10123 work). Add some lines to avoid Sun Make VPATH bugs.
10124
10125Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
10126
10127 * news.sc: Add alignment for data segment.
10128 * ldtemplate: Add (yet another) script to get for -n or -N
10129 options. (These need different alignment than ZMAGIC files.)
10130 * Makefile.in: Add stuff for new foo.xn scripts.
10131 These are generated by replacing "ALIGN(0x...00)" by ".".
10132
10133Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
10134
10135 * Makefile.in: new targets ld.ms, ld-index.ms
10136 ld.texinfo: remove tabs, other cleanups for texi2roff
10137
10138Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
10139
10140 * ldmain.c (main): Make config.magic_demand_paged be true
10141 by default. Don't the WP_TEXT and D_PAGED flags of
10142 output_bfd here; it's too late, so set it when output_bfd
10143 is created (in ldlang.c). Also fix setting of EXEC_P flag
10144 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
10145 * ldlang.c: Remove some duplicate extern declarations.
10146 * ldgram.y: Fixes to -N and -n options.
10147 * Makefile.in: Recognize upper case letters in sed script
10148 to remove assignments from script files.
10149 * ldtemplate: Don't assukme that -N or -n options
10150 imply use of -r script.
10151 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
10152
10153Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
10154
10155 * ldtemplate: include bfd.h before sysdep.h.
10156
10157Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
10158
10159 Restructure configuration scheme for bfd, binutils, ld.
10160
10161 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
10162 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
10163 Change some config names to match other dirs.
10164 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
10165 get defined first.
10166 * config/: Rename some config files to match up h-*.h names.
10167 Remove all the HOST_SYS definitions from the config files.
10168
10169Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
10170
10171 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
10172 * ldtemplate: Remove ldfile_add_library_path calls;
10173 just use the SEARCH_DIR commands in the script files.
10174 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
10175 the SEARCH_DIR commands in the scripts (using ugly sed magic).
10176 This is primarily intended for cross-linking, where you would
10177 place libaries in a different place than native libraries.
10178 Also, emulations made from ldtemplate now use $(srcdir).
10179 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
10180 form; people can use the Makefile's LIB_PATH to override.
10181
10182Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
10183
10184 * Makefile.in: fix target ld.dvi, add target ld.info
10185 ld.texinfo: make info filename ld.info
10186
10187Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
10188
10189 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
10190 Make).
10191 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
10192 few BFD types & enums.
10193
10194\f
10195Local Variables:
10196mode: change-log
10197left-margin: 8
10198fill-column: 74
10199version-control: never
10200End: