Ian Lance Taylor
62a72a565d
* ld-scripts/script.exp: Split script verification into a proc.
...
Add simple test of MRI script.
* ld-scripts/scriptm.t: New file.
1995-08-15 21:37:19 +00:00
Ian Lance Taylor
3a47309642
* ldgram.y (YYDEBUG): If not defined, define as 1.
...
(CASE, EXTERN, START): New tokens.
(mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
(casesymlist): New nonterminal.
(extern_name_list): New nonterminal.
* ldlex.l: Accept lower case trailing base specifiers. Don't
ignore the first digit when the base is a suffix. Accept many
EXPRESSION state tokens in MRI state. Support MRI continuation
lines and MRI semicolon comments. Accept all MRI keywords in
lower case. Add CASE, EXTERN, and START MRI keywords.
1995-08-15 21:35:46 +00:00
Ken Raeburn
52a55937a2
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc instead of
...
alloca.
1995-08-08 23:31:28 +00:00
J.T. Conklin
65d22248e9
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
...
$r/../gcc/xgcc unless it is present.
1995-08-08 22:25:36 +00:00
Ken Raeburn
cc298fb97a
treat linuxoldld like linuxaout*
1995-07-28 01:43:15 +00:00
Steve Chamberlain
66a61efd37
Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
...
* scripttempl/i386pe.sc: Cope with constructors.
* scripttempl/z8ksim.sc: Deleted.
* scripttempl/z8000.sc: Resurrected as this, but
can handle z8001 and z8002 formats.
* emulparams/z8ksim.sh: Deleted.
* emulparams/{z8001.sh, z8002.sh}: New files.
* config/z8ksim.mt: Deleted
* config/z8k-coff.mt: New, generates both emulations.
1995-07-27 22:43:44 +00:00
Ian Lance Taylor
0f5e0993ec
* config/default.exp: Define objcopy if it is not defined.
...
* ld-sh/*: New tests for SH relaxing.
1995-07-24 21:03:12 +00:00
Ian Lance Taylor
86c2d1a39e
* ld-empic/empic.exp: If $CC does not exist, call untested rather
...
than unresolved.
1995-07-24 19:36:57 +00:00
Ian Lance Taylor
59a0866d8c
* ldlang.c (lang_process): Call reset_memory_regions for each
...
relaxation pass.
1995-07-24 19:25:32 +00:00
Michael Meissner
dd0f963525
Add R_PPC_SDAREL relocation.
1995-07-22 02:59:48 +00:00
Ken Raeburn
d2c66084be
ldmain.c (constructor_callback): Allocate set_name in stack frame, rather than
...
always calling alloca with a fixed size.
1995-07-20 20:35:03 +00:00
David Edelsohn
45bc71881e
* emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
...
(LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1995-07-19 23:23:31 +00:00
Ian Lance Taylor
242eee7a0b
* ldwrite.c (split_sections): Don't split the first input section
...
into a new output section.
1995-07-17 17:59:27 +00:00
Michael Meissner
c7950dcc68
Use elf config file.
1995-07-15 04:35:17 +00:00
Ian Lance Taylor
63e1380d57
* emultempl/mipsecoff.em (check_sections): Use %P, not %F.
1995-07-14 20:11:43 +00:00
Ian Lance Taylor
738844c1f1
* ld-undefined/undefined.exp: New test, to check reporting of
...
undefined symbols.
* ld-undefined/undefined.c: New file.
1995-07-14 17:11:53 +00:00
Ian Lance Taylor
8a0683c1fa
* ldver.c (help): Update list of options to match currently
...
supported list.
1995-07-14 16:12:26 +00:00
Ian Lance Taylor
047e0fcd8e
* ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
...
it takes a size_t anyhow.
(exp_binop): Likewise.
(exp_trinop): Likewise.
(exp_unop): Likewise.
(exp_nameop): Likewise.
(exp_assop): Likewise.
* ldlang.c (lang_memory_region_lookup): Likewise.
(init_os): Likewise.
(ldlang_add_undef): Likewise.
(insert_pad): Likewise.
* ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
bfd_size_type.
1995-07-13 17:57:53 +00:00
Ian Lance Taylor
395ccfce21
* ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
...
declaration.
(ld_emulation_xfer_type): Add search parameter to
open_dynamic_archive entry point.
* ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
* ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
make non-static. Change all callers to use new name.
(ldfile_open_file_search): Make static. If entry is dynamic, call
ldemul_open_dynamic_archive.
(ldfile_open_file): Don't call ldemul_open_dynamic_archive.
* ldfile.h (ldfile_open_file_search): Don't declare.
(ldfile_try_open_bfd): Declare.
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Accept search parameter. Don't search for a library, just look in
a single place.
* emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
Likewise.
1995-07-12 15:37:12 +00:00
Ian Lance Taylor
917199fe29
* ldmisc.c (vfinfo): Don't print the line number if it isn't
...
meaningful.
1995-07-11 16:30:02 +00:00
Ian Lance Taylor
a89d9f5bf1
* ld.h (ld_config_type): Add field warn_constructors.
...
* ldmain.c (add_to_set): Warn if config.warn_constructors.
(constructor_callback): Likewise.
* lexsup.c (parse_args): Handle -warn-constructors.
* ld.texinfo, ld.1: Document -warn-constructors.
PR 7406.
1995-07-10 22:16:12 +00:00
Ian Lance Taylor
c16b92d224
* emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
...
get confused by directory names if we searched for the file.
PR 7401.
1995-07-10 22:01:03 +00:00
Ian Lance Taylor
7213def760
Based on patches from H.J. Lu <hjl@nynexst.com>:
...
* ldlang.h (lang_input_statement_type): Add new field dynamic.
* ldlang.c (new_afile): Set dynamic from config.dynamic_link.
* ldfile.c: Include bfdlink.h.
(ldfile_open_file): Check dynamic field of entry, not global
dynamic_link field. Don't do a dynamic search when doing a
relocateable link.
* ldmain.c (main): Don't warn about dynamic_link for a
relocateable link.
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
dynamic is false.
(gld${EMULATION_NAME}_create_output_section_statements): Always
loop over input files.
* Makefile.in: Rebuild dependencies.
1995-07-10 21:16:40 +00:00
Ian Lance Taylor
4551e108a0
* ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
...
-shared.
Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
* ldmain.c (main): Set link_info.symbolic to false.
* lexsup.c (parse_args): Handle -Bsymbolic.
1995-07-10 17:41:13 +00:00
Ian Lance Taylor
1730bce9a3
Move testsuite ChangeLog entry into testsuite ChangeLog.
1995-07-10 15:18:38 +00:00
Ian Lance Taylor
3219881fcd
Remove C comment characters from modified FSF address in expect scripts.
1995-07-10 15:16:41 +00:00
Ian Lance Taylor
10de6952c9
* ld-versados/versados.exp: If a test fails, report it correctly:
...
don't try to run the next test, and don't report a pass as well as
a fail.
1995-07-10 15:15:10 +00:00
Ken Raeburn
943fbd5bd5
fsf address update, but not in COPYING files
1995-07-07 22:49:42 +00:00
Fred Fish
eac6290c7e
* ldmain.c (HAVE_SBRK): Define for everything except
...
specific systems that are known to not support sbrk.
(main): Use HAVE_SBRK to decide whether or not to use sbrk.
1995-07-05 07:47:43 +00:00
Ian Lance Taylor
7158d2b1a3
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
...
Handle etree_provide.
PR 7164.
1995-07-04 17:44:38 +00:00
Ian Lance Taylor
7523be3552
* emultempl/elf32.em (global_needed): New static variable.
...
(global_found): Likewise.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_search_needed): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.
(gld${EMULATION_NAME}_check_needed): Likewise.
(ld_${EMULATION_NAME}_emulation): Replace after_open_default with
gld${EMULATION_NAME}_after_open.
PR 7083.
1995-07-04 16:57:34 +00:00
Steve Chamberlain
cb848d619c
* configure.in (i386-*-win32): New target.
...
* ld/testsuite/versados/(t1,t2).ld: End in newlines.
1995-07-03 21:34:53 +00:00
Ian Lance Taylor
22d3533cae
* lexsup.c (parse_args): Let -G either set the small data size or
...
be equivalent to --shared, depending on the next argument. Accept
and ignore -z for Solaris compatibility.
PR 7118.
1995-07-03 18:40:26 +00:00
Ian Lance Taylor
243e769870
* lexsup.c (parse_args): Cast fopen result to PTR before storing
...
it in link_info.base_file. Fix indentation.
1995-07-02 21:53:21 +00:00
Steve Chamberlain
de71eb7786
Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
...
* ldmain.c (main): Always initialize PE info in link_info.
* lexsup.c (OPTION_BASE_FILE): New option.
(parse_args): Handle new option.
* emulparams/armpe.sh: Output pei.
* emultempl/i386pe.em: Add newline to end.
* scripttempl/armpe.sc: Change output and quote the $s.
* scripttempl/i386pe.sc: Change output and quote the $s.
1995-06-29 00:21:00 +00:00
Steve Chamberlain
a900bc406e
Fix pathnames right..
1995-06-25 14:52:42 +00:00
Steve Chamberlain
cd5431634a
Fix filenames with two dots.
1995-06-24 02:48:48 +00:00
Ken Raeburn
a2fb6995e0
msdos and moss code from Bryan Ford
1995-06-23 02:05:04 +00:00
Michael Meissner
d513119138
Add .fixup section
1995-06-22 19:08:18 +00:00
Steve Chamberlain
b368d24697
Sanitize seems to care about trailing spaces.
1995-06-22 16:30:19 +00:00
Steve Chamberlain
1684136b21
add ld-versados.
1995-06-21 20:55:01 +00:00
Stan Shebs
aad9058089
Keep MPW x SH compiled linker script.
1995-06-21 20:00:22 +00:00
Steve Chamberlain
8370f03b67
New tests.
1995-06-21 17:15:11 +00:00
Stan Shebs
0283d893cb
* mpw-esh.c: New file, modified for MPW from esh.c.
...
* scripttempl/sh.sc: Reformatted to simplify MPWification,
use *() to concat stab sections instead of [].
1995-06-21 00:52:21 +00:00
Steve Chamberlain
8a239b6235
* scripttempl/armpe.sc: Add constructor support.
1995-06-15 15:48:35 +00:00
Steve Chamberlain
935cd0dd9d
* ldlang.c (lang_size_sections): Any section with a DATA
...
statement has contents.
1995-06-13 16:12:04 +00:00
Ken Raeburn
74b3ead343
m68k elf linker fixes from Andreas Schwab
1995-06-11 19:30:02 +00:00
Steve Chamberlain
ba0784fe48
* emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
1995-06-08 21:19:31 +00:00
Steve Chamberlain
28d0c3ce19
Add support for ARM-PE.
...
* Makefile.in (ALL_EMULATIONS): Add armpe.o
* configure.in: Recognize armpe.
* config/arm-pe.mt: New file.
* emulparams/armpe.sh: New file.
* scripttempl/armpe.sc: New file.
1995-05-24 18:26:23 +00:00
Ken Raeburn
6a98ecf24e
* lib/ld.exp (default_ld_compile): If cc argument is multiple words, use only
...
the first when trying to verify the availability of the compiler.
1995-05-23 00:20:44 +00:00