Ian Lance Taylor
a411bea023
* ldgram.y (%union): Add phdr field.
...
(phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
(phdr_qualifiers): New nonterminal. Add support for FLAGS.
(opt_hdrs, hdr): Remove.
(phdr_val): New nonterminal.
* ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
and phdrs parameters. Add flags parameter.
(lang_record_phdrs): Update for changes to lang_phdr. Pass flags
to bfd_record_phdr.
* ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
phdrs fields. Add flags field.
(LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
(lang_new_phdr): Update declaration.
* ld.texinfo: Document FLAGS.
1996-01-16 20:51:22 +00:00
Ian Lance Taylor
0bc9a7d2fb
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
...
Don't make a shared library because of an undefined reference to
__GLOBAL_OFFSET_TABLE_.
1996-01-15 22:38:22 +00:00
Ian Lance Taylor
6014cea70c
update copyrights
1996-01-15 21:06:31 +00:00
Ian Lance Taylor
fe1379d45a
Add some Irix 5 support, mostly from Kazumoto Kojima
...
<kkojima@info.kanagawa-u.ac.jp>:
* emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
(SHLIB_TEXT_START_ADDR): Define.
(OTHER_GOT_SYMBOLS): Define.
(OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
(EXECUTABLE_SYMBOLS): Don't define.
(DYNAMIC_LINK): Don't define.
* emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
* scripttempl/elfmips.sc: New file.
* configure.host (mips*-dec-bsd*): Change mips to mips*.
(mips*-sgi-irix4*): Likewise.
(mips*-sgi-irix5*): New entry.
* Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
elf.sc.
(eelf32lmip.c): Likewise.
1996-01-15 20:13:04 +00:00
Ian Lance Taylor
21a3c2ff37
* ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
...
when doing the --static test.
* ld-shared/shared.exp: Run tests on mips*-*-irix5*.
1996-01-15 20:06:43 +00:00
Michael Meissner
be03dc3e37
Add .rela.got.neg section; remove .rel.* sections
1996-01-13 14:44:48 +00:00
Ian Lance Taylor
2afa4f215e
* scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
1996-01-12 23:43:24 +00:00
Ian Lance Taylor
23cb3b6504
* ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
...
ANSI_PROTOTYPES is defined. Remove special handling of
WINDOWS_NT. Various indendation fixes.
(vfinfo): Change fmt parameter to const char *.
(info_msg): Write <stdarg.h> version.
(einfo, minfo, finfo): Likewise.
(info_assert): Change file parameter to const char *.
* ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
defined, use a real prototype.
(info_assert): Change first parameter to be const char *.
1996-01-12 20:01:17 +00:00
Michael Meissner
4fe13b2bdd
Add support for .sdata2/.sbss2 and old 2.7.2 compiler; Make text start at 64k; make data follow on next 64k page after text
1996-01-12 18:37:47 +00:00
Ian Lance Taylor
37e46b8b97
* scripttempl/alpha.sc: Put .rconst right after .rdata.
1996-01-09 20:53:26 +00:00
Steve Chamberlain
d42799374f
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
...
sort using right pointer.
1996-01-05 22:09:43 +00:00
Michael Meissner
9dee2948a2
Move creating section begin/end labels to compiler crt{i,n}.o
1996-01-05 17:27:39 +00:00
Ian Lance Taylor
ed1f99e770
* configure.host: Change existing Linux HOSTING_CRT0 to be used
...
for a.out only, and put in appropriate HOSTING_CRT0 and
HOSTING_LIBS values for Linux ELF.
1996-01-04 22:10:00 +00:00
David Edelsohn
5c5e420c9b
* scripttempl/h8300.sc: Use all 64K for ram.
...
* scripttempl/h8300h.sc: Define 256K ram size.
1996-01-04 20:03:03 +00:00
Ian Lance Taylor
54fe92c5a1
* ld-srec/srec.exp: If powerpc*-*-eabi*, use --defsym to define
...
__eabi.
1995-12-26 22:35:31 +00:00
Ian Lance Taylor
af3f877153
* ld-srec/srec.exp: Add setup_xfails for XCOFF targets.
1995-12-19 23:00:26 +00:00
Ian Lance Taylor
67cf67787d
* emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
...
relocateable before calling ldctor_build_sets if the output file
is in an XCOFF format.
1995-12-19 22:36:03 +00:00
Ian Lance Taylor
656db2ed89
* ld-srec/srec.exp: Remove i960 COFF setup_xfail.
1995-12-15 21:39:35 +00:00
Ian Lance Taylor
4fc151e99a
* ldwrite.c (build_link_order): When handling a data statement, if
...
the endianness of the output file is unknown, use the endianness
of the input file.
1995-12-15 21:39:09 +00:00
Stan Shebs
aaa877b7ac
Reflect file rename.
1995-12-12 22:37:05 +00:00
Stan Shebs
d8d4a450ff
* mpw-config.in: Recognize mips-*-* as equivalent to
...
mips-idt-ecoff.
* mpw-eppcmac.c: Shortened from mpw-eppcmacos.c.
* mpw-ld.r: Add version resources.
(cfrg): Use symbolic instead of literal name for executable.
1995-12-12 22:35:48 +00:00
Kim Knuttila
9499591f90
Moved the .reloc section slightly
1995-12-11 23:04:18 +00:00
Ian Lance Taylor
9430b93365
* emultempl/aix.em (unix_ld): New static variable.
...
(gld${EMULATION_NAME}_parse_args): Handle -unix.
(gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
gc as false and export_defineds as true to size_dynamic_sections.
PR 8606.
1995-12-07 01:12:30 +00:00
David Edelsohn
95b3cb6b45
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
...
call to sort_sections.
1995-12-06 22:41:10 +00:00
David Edelsohn
e8bb9a12d7
* ldlang.c (print_statement{,s}): Delete duplicate prototype.
...
(print_statement_list): Renamed from print_statement. All callers
updated.
(print_statement): New function to print just one statement.
(print_{data,reloc,padding}_statement): Don't crash if
output_section == NULL.
(dprint_statement): New function.
1995-12-06 22:38:14 +00:00
Ian Lance Taylor
0421503301
* ldexp.c (exp_fold_tree): Permit assignments to dot in the final
...
phase if the current section is abs_output_section.
PR 8605.
1995-12-06 19:58:05 +00:00
Ian Lance Taylor
6ceb561287
* ld-srec/srec.exp: Don't use [] in setup_xfail expressions.
1995-12-02 06:17:46 +00:00
Ian Lance Taylor
061e65f855
* ldgram.y (PHDRS): New token.
...
(ifile_p1): Accept phdrs.
(section): Accept phdr_opt at the end of the section definition.
(phdr_op): New nonterminal.
(phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
* ldlex.l: Accept PHDRS.
* ldlang.h (struct lang_output_section_phdr_list): Define.
(lang_output_section_statement_type): Add phdrs field.
(struct lang_phdr): Define.
(LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
(lang_new_phdr): Declare.
* ldlang.c (lang_phdr_list): New static variable.
(lang_output_section_statement_lookup): Initialize phdrs field.
(lang_process): Call lang_record_phdrs.
(lang_new_phdr): New function.
(lang_section_in_phdr): New function.
(lang_record_phdrs): New static function.
* ld.texinfo: Document PHDRS.
1995-12-01 21:49:51 +00:00
Ian Lance Taylor
a91a8d08ae
* ld-srec/srec.exp: Add setup_xfails for MIPS ELF targets.
1995-12-01 18:15:18 +00:00
Kim Knuttila
d611a82e67
Expose .edata section
1995-11-30 18:18:38 +00:00
David Edelsohn
781332facb
Add a comment saying .junk sections are discarded by the linker.
1995-11-30 17:15:12 +00:00
Ian Lance Taylor
e7f2e923be
Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
...
* configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
HOSTING_LIBS for testing.
(m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
testing.
1995-11-30 16:30:13 +00:00
Stan Shebs
b18319318b
Fix MPW tool installation
1995-11-30 02:55:03 +00:00
Ian Lance Taylor
5d85ec2d4e
* ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.
1995-11-29 17:59:04 +00:00
Ian Lance Taylor
5aca405826
* lexsup.c (parse_args): Set config.dynamic_link to false for -N
...
and -n.
1995-11-28 17:15:37 +00:00
Ian Lance Taylor
4f351b156d
fix last change
1995-11-27 20:02:12 +00:00
Ian Lance Taylor
12bfa0bcf5
* ld-srec/srec.exp: Add setup_xfail calls for i[345]86-*-aout*.
...
* ld-srec/sr1.c (V_SPILL, V_FILL): Define.
* ld-srec/sr3.cc: Likewise.
1995-11-27 19:39:09 +00:00
Ian Lance Taylor
6a4667f4dc
* configure: Rebuild with autoconf 2.7.
1995-11-27 18:19:15 +00:00
David Edelsohn
d87e370ba8
* scripttempl/pe.sc: Two .junk's is too much junk.
1995-11-25 02:37:58 +00:00
Ian Lance Taylor
caf2a91318
* configure.in: Use BFD_NEED_DECLARATION.
...
* acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
* configure, config.in: Rebuild with autoconf 2.6.
1995-11-21 23:32:33 +00:00
Ian Lance Taylor
13eb3290f3
* ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
...
being unsupported if this is not a relocaeable link and the input
BFD supports it, since ldctor_build_sets can cope with that case.
1995-11-21 21:15:49 +00:00
Ian Lance Taylor
ad2282f68f
* ld-empic/empic.exp: Update for changes in objdump output.
1995-11-21 21:06:55 +00:00
Stan Shebs
9079ed57d8
Keep PowerMac emulation file.
1995-11-18 00:55:22 +00:00
Stan Shebs
5ac7a6e96e
* configure.tgt (powerpc-*-macos*): New target.
...
* emulparams/ppcmacos.sh: New file, PowerMac emulation.
* Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
(eppcmacos.c): New target.
* mpw-eppcmacos.c: Update.
* mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
1995-11-18 00:50:06 +00:00
Ian Lance Taylor
dfc84b08d6
* Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
...
$(host_canonical) and $(target_canonical).
(CXX_FOR_TARGET): Likewise.
1995-11-17 15:38:44 +00:00
David Edelsohn
c4a14eefe2
* scripttempl/pe.sc (.endjunk): Move definition of `end' to here
...
so the malloc heap begins at a sane place.
1995-11-16 19:28:05 +00:00
Ken Raeburn
b218076e59
version 2.6
1995-11-16 10:12:33 +00:00
Ian Lance Taylor
1b09c02b17
* ld-srec/srec.exp: New tests.
...
* ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
* lib/ld.exp (ld_simple_link): Discard warnings about not being
able to find the entry symbol.
1995-11-15 22:44:56 +00:00
Ian Lance Taylor
28f6feaf2e
* ld-sh/sh2.c (__main): Define.
1995-11-15 01:05:26 +00:00
Ian Lance Taylor
204066750f
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
...
environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
were used.
(gld${EMULATION_NAME}_before_allocation): Use the environment
variable LD_RUN_PATH if -rpath was not used.
* ld.texinfo, ld.1: Document LD_RUN_PATH.
PR 8428.
1995-11-14 22:10:14 +00:00