Ian Lance Taylor
a12e621548
* scripttempl/pe.sc: Put .stab and .stabstr sections at end.
1997-10-15 18:53:18 +00:00
Richard Henderson
f38b497493
* configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
...
config.guess now recognizes alphaev5 etc.
1997-10-08 19:39:25 +00:00
Ian Lance Taylor
46d2f9e1d6
* ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
...
are not adding the first input section, and SEC_READONLY is clear
on the output section, then don't copy it from the input section.
If SEC_READONLY is not set on the input section, then clear it on
the output section.
1997-10-02 23:08:14 +00:00
Ian Lance Taylor
353e5cb604
* configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
...
elf32bmip.
(mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
to elf32bsmip.
(mips*-*-linux*): Likewise.
* emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
setting ENTRY to __start.
* emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
setting ENTRY to __start.
* scripttempl/elf.sc: Always set ENTRY to _start if it was not
already set.
1997-10-02 22:45:25 +00:00
Nick Clifton
0fd15e0e09
Created seperate sections for read only data in order to prevent their
...
attributes from being inherited by their original containing sections.
1997-10-01 23:45:44 +00:00
Ian Lance Taylor
900f895c8e
* ld.texinfo (Section Options): Improve documentation of NOLOAD
...
directive.
1997-09-24 17:23:06 +00:00
Ian Lance Taylor
b5db0960f3
* aclocal.m4: Rebuild with new libtool.
...
* configure: Rebuild.
1997-09-24 15:34:43 +00:00
Jeff Law
aac6f3383b
vr5900 -> r5900
...
Accept r5900el too.
1997-09-23 16:33:28 +00:00
Ian Lance Taylor
57cdbf7e00
* ldlang.c (wild_doit): Revert patch of September 3.
...
It doesn't work with linker scripts that use NOLOAD for debugging
sections.
1997-09-22 22:33:48 +00:00
Nick Clifton
2c778bc53a
Fixed v850eq sanitization
1997-09-21 19:36:06 +00:00
Nick Clifton
2e6fa283b4
Added support for the call table data area.
1997-09-17 23:45:41 +00:00
Ken Raeburn
c8c76225c7
merge from d30v-970225-branch
1997-09-15 16:27:23 +00:00
Fred Fish
f403d30440
* ldlang.c (lang_memory_region_lookup): Remove extraneous
...
initialization of p.
1997-09-09 14:54:43 +00:00
Ian Lance Taylor
df2ea1f67a
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
...
expression produced for -bpT and -bpD options, align to a 32 byte
boundary rather than an 8 byte boundary.
* scripttempl/aix.sc: Put .tocbss at start of .bss section.
For AIX 4.2 support (PR 12957).
1997-09-04 16:43:22 +00:00
Ian Lance Taylor
f1dcefc69f
* ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
...
function name conflict with AIX 4.2 unistd.h header file.
1997-09-04 16:41:18 +00:00
Ian Lance Taylor
7e519ffc58
* ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
...
noload_section.
PR 13139.
1997-09-03 19:13:14 +00:00
Ian Lance Taylor
24d2330e75
* Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
...
* Makefile.in: Rebuild.
1997-08-29 04:33:13 +00:00
David Edelsohn
0c0b16f9d4
* configure.tgt (arc-*-elf*): Recognize.
...
* Makefile.am (ALL_EMULATIONS): Add earcelf.o.
* Makefile.in: Regenerate.
* emulparams/arcelf.sh: New file.
Removes arc sanitization.
1997-08-28 17:19:45 +00:00
David Edelsohn
207cec8b17
Remove arc sanitization.
1997-08-28 17:17:43 +00:00
Ian Lance Taylor
9f19768a57
* ldlang.c (wildcardp): Don't let a backslash by itself cause a
...
pattern to be treated as a wildcard pattern.
PR 13113.
1997-08-20 15:24:15 +00:00
Ian Lance Taylor
72068e8ec0
* ldgram.y (atype): Accept parentheses with no type.
...
* ld.texinfo (Section Definition): Clarify use of whitespace.
(Section Placement): Likewise.
PR 13112.
1997-08-20 15:15:22 +00:00
Nick Clifton
ab11a82c2d
Add support for v850e and v850eq targets.
1997-08-18 18:12:54 +00:00
Ian Lance Taylor
0485d3df51
tipo
1997-08-09 04:58:27 +00:00
Ian Lance Taylor
a862ba679b
* config/default.exp: Change ld, as, nm and strip from .new to
...
-new. Load ld-lib.exp rather than ld.exp.
* ld-bootstrap/bootstrap.exp: Use ld-new rather than ld.new.
* lib/ld-lib.exp: Rename from lib/ld.exp, for the benefit of
DejaGnu changes.
1997-08-09 04:57:20 +00:00
Ian Lance Taylor
49c009b56f
* Makefile.am: New file, based on old Makefile.in.
...
* acinclude.m4: New file, from old aclocal.m4.
* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
shared library handling; now handled by libtool. Replace
AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
* configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
* acconfig.h: Mention PACKAGE and VERSION.
* stamp-h.in: New file.
* ldver.c (ld_program_vresion): Set ld_program_version from
VERSION.
* ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
* Makefile.in: Now built with automake.
* aclocal.m4: Now built with aclocal.
* configure, config.in: Rebuild.
1997-08-09 04:54:28 +00:00
Rob Savoye
b9a5c27fa7
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
...
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* Makefile.in: Add $(EXEEXT) to executable.
1997-07-29 01:34:09 +00:00
Ian Lance Taylor
beb76c0ade
Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
...
* emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
(SEGMENT_SIZE): Set to 0x200.
* scripttempl/i386go32.sc: Rewrite.
* configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
1997-07-22 22:52:15 +00:00
Jeff Law
d1ce2fc04f
* configure.tgt: Default the r5900 to little endian.
1997-07-15 16:15:40 +00:00
Ian Lance Taylor
81272efdfd
From Manfred Hollstein <manfred@s-direktnet.de>:
...
* configure.host (i[3456]86-*-linux*libc1*): Renamed from
i[3456]86-*-linux*.
(i[3456]86-*-linux*): New host.
1997-07-07 16:41:04 +00:00
Ian Lance Taylor
34260fe0d0
* scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
...
sections in the output .rsrc section.
1997-06-26 17:54:35 +00:00
Ian Lance Taylor
907672ebb2
* ld-elfvers/vers.exp: Use egrep rather than grep when looking for
...
an alternation. From Greg Margo <gmargo@dl.com>.
1997-06-26 16:08:17 +00:00
Ian Lance Taylor
fe80f6384a
Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
...
* configure.host (m68*-*-linux*libc1*): Renamed from
`m68*-*-linux*'.
(m68*-*-linux*): New configuration for use with GNU libc 2.
1997-06-25 16:49:19 +00:00
Ian Lance Taylor
682b4d3322
Wed Jun 25 12:47:22 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
...
* ld-shared/shared.exp: Add setup_xfail for m68k-linux on tests
with non PIC shared libraries.
1997-06-25 16:47:59 +00:00
Ian Lance Taylor
4602e5f401
Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
...
* scripttempl/elfppc.sc: Correct .rela.sdata entries.
* scripttempl/elfppc.sc: Put the PLT between the small and large
BSS segments.
* emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A
program base of 0x02000000 is recommended...' because otherwise
shared libraries are less efficient. We use 0x01800000 because
otherwise it's impossible to branch to location 0, for instance if
you have an undefined weak symbol.
1997-06-16 23:21:18 +00:00
Ian Lance Taylor
f4ae97e1bd
Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
...
* ldlang.c (lang_place_undefineds): Add \n in einfo call.
(lang_size_sections): Likewise.
* ldlex.l: Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
* emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
Likewise.
(check_sections): Likewise.
(gld${EMULATION_NAME}_after_allocation): Likewise.
* emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
Likewise.
* mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
* mpw-idtmips.c (gldmipsidt_after_open): Likewise.
(check_sections): Likewise.
(gldmipsidt_after_allocation): Likewise.
1997-06-16 16:56:22 +00:00
Ian Lance Taylor
02fbf07071
Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
...
* ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
1997-06-16 16:50:43 +00:00
Ian Lance Taylor
94d8217d65
* scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
...
the import list.
1997-06-07 03:48:00 +00:00
Ian Lance Taylor
0570b3d3a0
* ld-elfvers/vers6.ver: Update for recent elflink.h patch to
...
version handling.
1997-06-06 21:36:11 +00:00
Ian Lance Taylor
b4a4a6dc0f
* ldmain.c (main): Correct check of fclose return value when
...
handling --force-exe-suffix.
1997-05-21 21:44:47 +00:00
Ian Lance Taylor
1a7f2a866e
* scripttempl/elfmips.sc: Remove.
...
* scripttempl/elf.sc: Set ENTRY based on target. Permit
TEXT_DYNAMIC to control .dynamic segment. Permit
SHLIB_TEXT_START_ADDR to set start of shared object. Support
INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
.gnu.linkonce.t* in .text when relocating. Support
OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
* emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
(DATA_ADDR): Don't set.
(INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
(OTHER_TEXT_SECTIONS): Set.
(OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
(MACHINE): Set to empty string.
* emulparams/elf32l4300.sh: Likewise.
* emulparams/elf32ebmip.sh: Likewise.
* emulparams/elf32elmip.sh: Likewise.
* emulparams/elf32bmip.sh: Likewise. Also:
(TEXT_DYNAMIC): Set.
* emulparams/elf32lmips.sh: Likewise.
* Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
elfmips.sc.
(eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
1997-05-13 03:30:20 +00:00
Ian Lance Taylor
3d046499bc
Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
...
* scripttempl/elf.sc: Don't align the data segment on the next 8
byte boundary, instead let the linker use whatever the individual
sections require.
1997-05-12 15:12:12 +00:00
Ian Lance Taylor
f7f90eaaf5
* configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
1997-05-09 21:46:21 +00:00
Ian Lance Taylor
1ba1da8650
From Sean McNeil <sean@mcneil.com>:
...
* emultempl/pe.em (sort_by_file_name): Sort by archive name
first.
(sort_sections): Sort all sections, not just sections in the same
archive.
1997-05-06 17:22:35 +00:00
Ian Lance Taylor
a59a42aef7
Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
...
* configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
targets.
1997-05-05 22:56:03 +00:00
Michael Meissner
f1687b6f99
Rework static constructors and destructors
1997-05-02 22:29:38 +00:00
Michael Meissner
df184f82b2
Fix name of constructors/destructors
1997-05-02 19:57:12 +00:00
Ian Lance Taylor
d7450eb7ee
revert Alpha/OpenBSD patches
1997-04-30 16:18:37 +00:00
Ian Lance Taylor
40f96c6fe5
Fri Apr 18 11:54:43 1997 Niklas Hallqvist <niklas@appli.se>
...
* Makefile.in (ALL_EMULATIONS): Add ealphabsd.o.
(ealphabsd.c): New rule.
* configure.host (alpha-*-bsd): New target.
* configure.tgt (alpha-*-bsd): New target.
* emulparams/alphabsd.sh: New file for *BSD/alpha.
* scripttempl/alphabsd.sc: New file for *BSD/alpha.
1997-04-18 15:57:37 +00:00
Ian Lance Taylor
cfa7c448a1
* ldctor.c (ldctor_build_sets): Make sure the set is aligned
...
appropriately.
1997-04-17 17:07:35 +00:00
Ian Lance Taylor
ba69384dc8
* Makefile.in (INSTALL): Set to @INSTALL@.
...
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install): Depend upon ld.new and installdirs. Use
$(program_transform_name) directly, rather than using
$(INSTALL_XFORM) and $(INSTALL_XFORM1).
(installdirs): New target.
(install-info): Run mkinstalldirs.
1997-04-15 17:21:15 +00:00
Ian Lance Taylor
21d83d1cf9
From Thomas Graichen <graichen@rzpd.de>:
...
* configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
* configure: Rebuild.
1997-04-14 16:10:39 +00:00
Ian Lance Taylor
4507afd077
* emultempl/pe.em: Include "libiberty.h".
...
(sort_sections_1): Use xmalloc rather than alloca.
1997-04-04 20:29:58 +00:00
Ian Lance Taylor
ab83171da5
* ldlex.l: Recognize SQUAD.
...
* ldgram.y (length): Add SQUAD.
* ldlang.c (print_data_statement): Handle SQUAD.
(lang_size_sections, lang_do_assignments): Likewise.
* ldexp.c (exp_print_token): Add SQUAD to table.
* ldwrite.c (build_link_order): Handle SQUAD.
* ld.texinfo (Section Data Expressions): Document SQUAD.
1997-04-04 16:48:27 +00:00
Ian Lance Taylor
6f4b1d3168
* ldver.c (ld_program_version): Set to 2.8.1.
1997-04-03 18:20:40 +00:00
Ian Lance Taylor
c6cfcb7f7d
* mpw-idtmips.c: Rename from mpw-emipsidt.c.
...
* mpw-elfmips.c: Rename from mpw-emipself.c.
* mpw-config.in: Update accordingly.
1997-04-03 05:50:32 +00:00
Ian Lance Taylor
dc69600243
* ldlang.c (lang_process): Call lang_check immediately after
...
opening the input files, rather than at the end of the link.
1997-04-02 16:55:59 +00:00
Ian Lance Taylor
88ddffaf42
Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
...
* configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
1997-03-31 21:39:24 +00:00
Ian Lance Taylor
d8e259a7e8
Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
...
Contributed by David S. Miller <davem@caip.rutgers.edu>:
* configure.tgt (sparc*-*-linuxaout*): New target.
(sparc*-*-linux*): New target.
* emulparams/sparclinux.sh: New file.
* Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
(esparclinux.c): New target.
1997-03-28 20:33:54 +00:00
Ian Lance Taylor
2032ade97b
From Ralf Baechle <ralf@gnu.ai.mit.edu>:
...
* configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
elf32elmip.
1997-03-28 19:34:34 +00:00
Ian Lance Taylor
de386cf61f
fix comment
1997-03-28 19:27:51 +00:00
Ian Lance Taylor
5fd92ccd14
* lexsup.c (parse_args): Update copyright date in version
...
message.
1997-03-27 22:14:57 +00:00
David Edelsohn
718a5c17ea
Remove m32r sanitization.
1997-03-24 21:29:21 +00:00
Ian Lance Taylor
7aef7107a8
x
1997-03-21 17:35:20 +00:00
Ian Lance Taylor
6d4314e031
Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
...
* emulparams/delta68.sh (OUTPUT_FORMAT): Set to "m68k-coff-sysv".
1997-03-21 17:29:13 +00:00
Ian Lance Taylor
d7a48b6da0
* emultempl/aix.em: Include "obstack.h".
1997-03-18 16:16:50 +00:00
Ian Lance Taylor
cadddcea29
* ldlang.c: Include "obstack.h".
1997-03-18 00:26:19 +00:00
Fred Fish
b87ff07d07
* configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
1997-03-16 06:26:35 +00:00
Ian Lance Taylor
c5a0d31a04
Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
...
* ldemul.h (ldemul_list_emulations): Use full prototype.
* ldlang.c (print_one_symbol): Add declaration.
* ldlang.h (dprint_statements): Declare.
* ldmain.c (remove_output): Declare.
* ldmisc.c (vfinfo): Declare.
* ldwrite.c (clone_section): Declare.
(split_sections): Make static. Declare.
* mri.c: Include libiberty.h.
(strdup): Don't declare.
(mri_alias): Use xstrdup rather than strdup.
1997-03-15 23:17:46 +00:00
Ian Lance Taylor
2adb092c95
* scripttempl/elfmips.sc: Change handling of data area when
...
generating a shared library to not skip a large block of memory.
From Per Fogelstrom <pefo@cvs.openbsd.org>.
1997-03-15 02:31:01 +00:00
Ian Lance Taylor
c8a8d3bb27
Wed Mar 12 21:44:19 1997 Eric Youngdale <eric@andante.jic.com>
...
* ld-elfvers/vers.exp, *: New tests for symbol versioning.
* config/default.exp: Set ar and strip.
1997-03-13 02:46:09 +00:00
Ian Lance Taylor
d7339c87a6
* ldmain.c (multiple_definition): Only skip the warning if the
...
output section is absolute when the input section is not
absolute.
* ldlex.l: Accept whitespace in VERS_START state. Warn about
invalid characters in VERS_* states.
1997-03-13 02:34:33 +00:00
Ian Lance Taylor
998f2b67a9
Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
...
* ldgram.y (vers_node): Correct typo of '(' for '{'.
1997-03-10 04:07:24 +00:00
Fred Fish
98ee67d8de
* scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
...
rather than _start.
(__edata): Define this rather than "edata".
(__end): Define this rather than "end".
1997-03-08 16:23:57 +00:00
Bob Manson
fa5864d5f7
Added and updated copyright notices to testsuite expect
...
scripts.
1997-03-06 22:32:25 +00:00
Michael Meissner
81fb245da1
Allow --target=tic80 without the -coff
1997-03-04 22:24:00 +00:00
Ian Lance Taylor
22f9f902d9
* ldmain.c (main): Call bfd_set_default_target.
...
* Makefile.in (ldmain.o): Define TARGET when compiling.
1997-02-28 22:43:35 +00:00
Ian Lance Taylor
9ae9e58254
* emultempl/m88kbcs.em: Remove.
...
* emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
* Makefile.in (em88kbcs.c): Depend upon generic.em rather than
m88kbcs.em.
1997-02-28 04:17:50 +00:00
Ian Lance Taylor
45408cd787
* ldmain.c (main): Don't initialize link_info.lprefix or
...
link_info.lprefix_len.
* emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
1997-02-28 04:17:02 +00:00
Ian Lance Taylor
24293f275b
* mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
...
to lang_enter_output_section_statement. From Mark Rasin
<mark.rasin@telrad.co.il>.
1997-02-27 16:42:56 +00:00
Angela Marie Thomas
94b569d255
oops... always keep d10v stuff
1997-02-27 08:18:39 +00:00
Angela Marie Thomas
6668e8af0e
only keep d10velf.sh for keep-d10v
1997-02-27 08:15:42 +00:00
Stan Shebs
1cc86f47fa
always keep mipslnews.sh
1997-02-26 22:26:36 +00:00
Ian Lance Taylor
d73d49a472
* ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
...
section.
PR 11749.
1997-02-26 16:53:34 +00:00
Stan Shebs
9f39d8731a
* configure.tgt (mips*-*-lnews*): New target.
...
* Makefile.in (emipslnews.c): New target.
* emulparams/mipslnews.sh: New file.
1997-02-26 04:41:48 +00:00
Ian Lance Taylor
dc25aca068
From Eric Youngdale <eric@andante.jic.com>:
...
* ldlex.l (V_TAG, V_IDENTIFIER): New macros.
(VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
information.
(ldlex_version_script, ldlex_version_file): New functions.
* ldlex.h (enum input_enum): Add input_version_script.
(ldlex_version_script): Declare.
(ldlex_version_file): Declare.
* ldgram.y (%union): Add deflist, versyms, and versnode.
(VERS_TAG, VERS_IDENTIFIER): New terminals.
(GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
(file): Accept INPUT_VERSION_SCRIPT.
(ifile_p1): Accept version.
(version_script_file): New nonterminal.
(version, vers_nodes, vers_node): Likewise.
(verdep, vers_tag, ver_defns): Likewise.
* ldlang.c (lang_elf_version_info): New global variable.
(lang_new_vers_regex): New function.
(lang_new_vers_node): New function.
(version_index): New static variable.
(lang_register_vers_node): New function.
(lang_add_vers_depend): New function.
* ldlang.h (lang_elf_version_info): Declare.
(lang_new_vers_regex, lang_new_vers_node): Declare.
(lang_add_vers_depend, lang_register_vers_node): Declare.
* lexsup.c (OPTION_VERSION_SCRIPT): Define.
(ld_options): Add "version-script".
(parse_args): Handle OPTION_VERSION_SCRIPT.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass lang_elf_version_info to size_dynamic_sections.
* scripttempl/elf.sc: Add .gnu.version sections.
1997-02-24 23:23:31 +00:00
Martin Hunt
232e870207
Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* Makefile.in (ed30velf.c): New target.
* configure.tgt (d30v-*-*): New target.
* emulparams/d30velf.sh: New file.
* scripttempl/elfd30v.sc: New file.
1997-02-22 01:42:27 +00:00
Michael Meissner
c6c7035cfb
Since d10v is public now, remove all sanitization statements
1997-02-20 16:05:18 +00:00
Ian Lance Taylor
e3e72ac561
Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
...
* configure.in: Call BFD_NEED_DECLARATION on getenv.
* acconfig.h (NEED_DECLARATION_GETENV): New macro.
* sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
* ldemul.c (ld_emul_default_target): Do not cast getenv return
value.
* ldmain.c (get_emulation): Likewise.
* configure, config.in: Rebuild.
1997-02-14 01:36:24 +00:00
Ian Lance Taylor
e7886d4ba1
* scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
...
.mips16.call.* in .text.
1997-02-11 20:34:57 +00:00
Gavin Romig-Koch
276c2d7dc8
Add r5900
1997-02-11 13:26:34 +00:00
Fred Fish
11effa691a
* emulparams/tic80coff.sh: New (dummy) file for TIc80.
...
* scripttempl/tic80coff.sc: New (dummy) file for TIc80.
* Makefile.in (etic80coff.c): Add target and rule to build it.
* configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
1997-02-10 01:17:14 +00:00
Bob Manson
dfe6379731
Changes to replace references to "prune_system_crud" with
...
"prune_warnings".
1997-02-08 01:03:37 +00:00
Ian Lance Taylor
966be3480a
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
...
".so" in the name, not ".so.".
(gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
1997-01-31 18:20:20 +00:00
Ian Lance Taylor
93d7eb0f03
* Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
...
<alan@spri.levels.unisa.edu.au>.
1997-01-31 18:18:02 +00:00
Ian Lance Taylor
e87b950c8e
* emultempl/sunos.em: Include <ctype.h>.
...
(gld${EMULATION_NAME}_find_so): Skip the directory name when
searching for ".so.".
(gld${EMULATION_NAME}_search_dir): Make sure that the library name
has a version number, and that only version numbers follow .so.
1997-01-30 16:33:36 +00:00
Geoffrey Noer
0fc327a3fb
Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
...
* scripttempl/pe.sc:
* scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
section so Win32 executables are valid.
1997-01-30 02:17:37 +00:00
Bob Manson
787f622077
Major revision to testsuites for cross-testing and DOS testing support.
1997-01-29 09:40:31 +00:00
Ian Lance Taylor
f5f212fb56
* scripttempl/elf.sc: Put linkonce reloc section in other
...
appropriate reloc sections.
* scripttempl/elfmips.sc: Add linkonce support.
* scripttempl/elfppc.sc: Likewise.
1997-01-27 17:39:24 +00:00
Jeff Law
da1ba4b022
* emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
...
stack up to 0x80000.
* emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
Because we're seeing .text for some of the plumhall tests which exceeds
0x40000 bytes on these machines.
1997-01-24 17:46:48 +00:00
David Edelsohn
c57cd823b3
* emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
...
to define `_stack'.
1997-01-21 20:10:49 +00:00
Ian Lance Taylor
3391c0a53c
* ld.h (args_type): Rename auxiliary_filter_shlib to
...
auxiliary_filters, and make it char **.
* lexsup.c (parse_args): Handle -f by setting up an array.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
new name of auxiliary_filters.
1997-01-16 22:52:05 +00:00
Ian Lance Taylor
cc28f8fbe4
* ld.texinfo (Options): Improve documentation of --filter and
...
--auxiliary.
1997-01-16 22:08:23 +00:00
Angela Marie Thomas
6b01dc653b
fix bugs
1997-01-16 10:50:58 +00:00
Ian Lance Taylor
f9c5c2313c
* ld.texinfo (Commands): Clarify that the normal usage is -T.
1997-01-14 20:44:48 +00:00
Ian Lance Taylor
24bc58bc9a
* scripttempl/armcoff.sc: Correct mask used for .data address.
...
PR 11442.
1997-01-09 19:26:56 +00:00
Geoffrey Noer
4ba1b439b3
Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
...
* emultempl/pe.em: make default executable a.exe instead of
a.out
1997-01-08 23:16:53 +00:00
Ian Lance Taylor
6243aa7345
Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
...
* scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
shifting .plt back. Rumour has it that the NetBSD ld.so depends
on .dynamic being after .got, so we leave that.
1997-01-03 22:34:16 +00:00
Ian Lance Taylor
5e7127d7fe
* Makefile.in (clean): Don't remove configdoc.texi.
...
(maintainer-clean): Do remove configdoc.texi.
1997-01-03 19:08:18 +00:00
Ian Lance Taylor
feb20cfb19
* ld.texinfo (Operators): Remove '@' from @smallexmple in comment
...
to avoid confusing texi2roff.
1997-01-03 19:05:34 +00:00
Michael Meissner
731828cb8b
Add .{z,t}common and .tcommon_byte sections
1997-01-03 16:28:18 +00:00
Ian Lance Taylor
093427533c
* configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
...
* scripttempl/elfmips.sc: Use __start as the entry address for
mips*-*-linux*.
1997-01-02 23:15:34 +00:00
Ian Lance Taylor
6ded661565
* Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
1996-12-31 20:43:28 +00:00
Ian Lance Taylor
de220cbdb9
* ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
...
fields.
* lexsup.c (parse_args): Recognize --auxiliary/-f and
--filter/-F.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass filter_shlib and auxiliary_filter_shlib to
size_dynamic_sections.
* ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
1996-12-31 19:50:29 +00:00
Ian Lance Taylor
781decaefd
improve format
1996-12-31 19:12:03 +00:00
Michael Meissner
c43452b052
Add .tbyte and .tbss sections
1996-12-30 18:57:36 +00:00
Stan Shebs
7885e8b3c9
* mpw-make.sed: Use NewFolderRecursive for installation.
1996-12-19 19:46:32 +00:00
Michael Meissner
93f8f531b0
Make __{e,g}p correctly start relative to the beginning of the section; Cleanup
1996-12-13 20:37:35 +00:00
Jeff Law
10e31c750e
* Makefile.in (emn10200.c): Add dependencies.
...
* configure.tgt: Handle mn10200.
* emulparms/mn10200.sh: New file.
mn10200 linker. Somehow I forgot to commit everything yesterday.
1996-12-13 17:27:19 +00:00
Ian Lance Taylor
d0d5edba84
* emultempl/gld960c.em: Include <ctype.h>.
...
(gld960_set_output_arch): Get the machine type from the -A option
if there is one, rather than always using core.
PR 11255.
1996-12-12 22:06:51 +00:00
Jeff Law
9e258df329
* Makefile.in (emn10200.c): Add dependencies.
...
* configure.tgt: Handle mn10200.
* emulparms/mn10200.sh: New file.
mn10200 support.
1996-12-12 19:05:06 +00:00
Ian Lance Taylor
c3f9e754b8
modify last patch
1996-12-05 23:34:59 +00:00
Ian Lance Taylor
12436407d1
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
...
use hold_rel unless SEC_ALLOC is set for the reloc section.
(gld${EMULATION_NAME}_place_section): Only set hold_rel if
SEC_ALLOC is set.
PR 11174.
1996-12-05 18:47:22 +00:00
Jason Merrill
264677bbe1
* scripttempl/{elfd10v.sc,elfmips.sc,elfppc.sc,v850.sc}: Likewise.
1996-11-27 11:29:23 +00:00
Jason Merrill
037f6a23de
* scripttempl/elf.sc: Add the remaining DWARF sections.
1996-11-27 11:23:10 +00:00
Ian Lance Taylor
0e809bba05
* configure: Rebuild with autoconf 2.12.
1996-11-26 21:59:23 +00:00
Jeff Law
9e73a716d3
* emulparms/mn10300.sh: Remove bogus '_' prefix for
...
entry symbol and ctor/dtor stuff.
Getting c-torture tests to link
1996-11-25 16:59:47 +00:00
Ian Lance Taylor
57ed75f2a0
minor sanitization tweaks
1996-11-22 18:02:55 +00:00
Jeff Law
96e34542a1
* Makefile.in (emn10300.c): Add dependencies.
...
* configure.tgt: Handle mn10300.
* emulparms/mn10300.sh: New file.
Skeleton support for the mn10300. Matsushita.
1996-11-15 20:02:07 +00:00
Ian Lance Taylor
9fde46a42f
* ld.texinfo: Add section on reporting bugs.
1996-11-01 19:54:52 +00:00
Ian Lance Taylor
e6b743a20a
* scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
...
symbols are correctly aligned.
1996-11-01 18:01:57 +00:00
Stan Shebs
de61c9e1f3
Fix sanitization of D10V script template
1996-11-01 02:14:43 +00:00
Jeff Law
e740228de7
* scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
...
romzbss too.
1996-10-31 16:45:02 +00:00
Martin Hunt
acaf1d19e6
Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* d10velf.sh: Changes needed for D10V-EVA board.
Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
0x2000000.
1996-10-29 20:44:33 +00:00
Martin Hunt
2f19ce7814
Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* emulparams/d10velf.sh: Changes needed for D10V-EVA board.
Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
0x2000000.
* scripttempl/elfd10v.sc: Fix calculation of .text. Change
.stack to start at 0x2007ffe.
1996-10-29 20:44:15 +00:00
Ian Lance Taylor
aa9b7dedc8
handle v850.sc
1996-10-28 23:48:06 +00:00
David Edelsohn
56f8bcd129
* configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
1996-10-28 23:38:53 +00:00
Jeff Law
4ad9452c46
* scriptempl/v850.sc (zdata): Make sure this stays
...
in lo-memory.
zda testing.
1996-10-23 22:18:55 +00:00
Jeff Law
5549ebeda0
* scripttempl/v850.sc (__ep): Put it at the start
...
of the tda section.
v850.
1996-10-23 03:19:16 +00:00
Jeff Law
06c5b0fc96
* scriptempl/v850.sc: Move all "normal" sections into
...
the external memory region (0x100000 - 0x200000).
So plumhall works again (hopefully).
1996-10-22 17:45:57 +00:00
Michael Meissner
36cf21ce53
Make d10v .text start at 0x10000
1996-10-21 21:26:59 +00:00
David Edelsohn
e20f0dbd8d
* emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
1996-10-19 05:13:46 +00:00
Ian Lance Taylor
30bddd3369
* Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
...
(ALL_64_EMULATIONS): New variable.
* configure.in: Accept --enable-64-bit-bfd option. If it is set
with --enable-targets=all, include ALL_64_EMULATIONS in
EMULATION_OFILES.
* configure: Rebuild.
1996-10-18 19:46:57 +00:00
Jeff Law
b502879f75
* scripttempl/v850.sc (__gp, __ep): Define.
1996-10-18 18:59:45 +00:00
Ian Lance Taylor
a5377d48db
* ld.texinfo: Try to consistently use a single or a double dash
...
for each option.
1996-10-17 22:15:32 +00:00
Jeff Law
c23b6a6bc9
* scripttempl/v850.sc (.zdata): Add this before .text.
...
(.sdata): Also include .rosdata as part of the .sdata.
(.tdata): Include this just before .sdata.
1996-10-17 20:48:42 +00:00
David Edelsohn
a5c1ebecc5
* emulparams/m32relf.sh (EMBEDDED): Define.
1996-10-17 17:19:52 +00:00
Jeff Law
2b8cd389ae
* emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
...
* scripttempl/v850.sc: Wrap script with a "cat << EOF".
Problems with last night's changes.
1996-10-17 16:58:31 +00:00
Jeff Law
d27d34c382
* scripttempl/v850.sc: New linker script for the V850.
...
* Makefile.in: Use it.
1996-10-17 05:10:52 +00:00
Ian Lance Taylor
f6f2b36e9b
* emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
...
OTHER_READWRITE_SECTIONS.
* emulparams/elf32l4300.sh: Likewise.
1996-10-10 21:59:34 +00:00
Ian Lance Taylor
458fc0567b
* ld.h (ld_config_type): Add warn_section_align field.
...
* lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
(ld_options): Add --warn-section-align.
(parse_args): Handle --warn-section-align.
* ldlang.c (lang_size_sections): If warn_section_align, warn if
the start of a section changes due to alignment.
* ld.texinfo, ld.1: Document --warn-section-align.
* ld.texinfo: Change some single dashes to double dashes.
PR 10739.
1996-10-09 19:45:29 +00:00
Ian Lance Taylor
961d589322
* emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
...
subsystem type. Ifdef out os2 type. Recognize a version number.
1996-10-09 18:37:57 +00:00
Ian Lance Taylor
d0d63887aa
* emultempl/pe.em (set_pe_subsystem): When setting the subsystem
...
to windows, set the entry point.
1996-10-09 03:27:41 +00:00
Ian Lance Taylor
40d53fdf16
* Makefile.in (ldlex.c): Don't pass any options to $(LEX).
1996-10-08 16:07:50 +00:00
Ian Lance Taylor
4164f2d5ab
* ld.texinfo (Options): Mention .so extensions for shared
...
libraries.
1996-10-07 21:30:26 +00:00
Jason Merrill
9193c60b55
Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
...
* scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
1996-10-07 05:36:57 +00:00
Ian Lance Taylor
0063d3a106
* scripttempl/m68kcoff.sc: Only set the address of .text if
...
RELOCATING.
1996-10-04 22:49:57 +00:00
David Edelsohn
afb8f218ab
* emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
...
* scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
(OUTPUT_FORMAT): Support bi-endian targets.
1996-10-04 18:01:41 +00:00
Ian Lance Taylor
3fac4887a0
* fnmatch.h, fnmatch.c: Remove (now in libiberty).
...
* Makefile.in: Rebuild dependencies.
(CFILES): Remove fnmatch.c.
(HFILES): Remove fnmatch.h.
(OFILES): Remove fnmatch.o.
1996-10-03 17:53:25 +00:00
Geoffrey Noer
417fe276e3
Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
...
* emultmpl/pe.em: increase size of stack reserve to 0x2000000
(necessary in order to compile parse.c in gcc sources under NT)
1996-10-03 06:55:39 +00:00
Jason Molenda
bdec6bdb4b
* Makefile.in (mostlyclean): Move config.log to distclean.
1996-10-03 06:40:32 +00:00
Ian Lance Taylor
30e23a1c92
* lexsup.c (ld_options): Fix typo in --rpath-link description.
...
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
--rpath if a needed library is not found.
1996-10-02 18:50:32 +00:00
Ian Lance Taylor
b61364cc71
* ld.texinfo (Options): Give more detail on -l option.
...
PR 10418.
1996-10-01 22:53:38 +00:00
Ian Lance Taylor
4fc7ca82bf
* scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
...
elf.sc does, so that glibc works better.
1996-10-01 22:31:27 +00:00
Ian Lance Taylor
6e9efeaf72
Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
...
* configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
1996-10-01 20:19:05 +00:00
Ian Lance Taylor
3b1e54df46
* lib/ld.exp (default_ld_version): Fix for current version
...
printing.
1996-10-01 19:53:02 +00:00
Ian Lance Taylor
9cfdc91a9a
* ldver.c (ld_program_version): New variable.
...
(ldversion): Use it.
* ldver.h (ld_program_version): Declare.
* lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
--version. Change --version handling to match current GNU
standards.
(help): Print bug report address.
1996-10-01 19:53:01 +00:00
David Edelsohn
b02d4da4fe
m32r support
1996-09-30 19:18:04 +00:00
David Edelsohn
79e9dc2010
* Makefile.in (em32relf.c): Add rule for.
...
* configure.tgt (m32r-*-*): Recognize.
* emulparams/m32relf.sh: New file.
1996-09-30 19:16:26 +00:00
Stan Shebs
f7fa777d22
always keep pregenerated emulation file
1996-09-26 21:09:59 +00:00
Stan Shebs
0b2aef4d0e
* mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
...
* mpw-config.in: Add mips-*-* case as mips-elf, and use more
wildcards in matching.
* mpw-emipself.c: New file, pregenerated mips elf emulation.
1996-09-26 21:09:23 +00:00
Ian Lance Taylor
4dfa884891
* configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
1996-09-17 16:19:44 +00:00
Ian Lance Taylor
190de8a7a6
* scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
...
syntax error on __end__ line.
1996-09-16 22:12:46 +00:00
Ian Lance Taylor
df6b92ed1b
* scripttempl/armcoff.sc: For -N or -n, don't align .data. From
...
Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
1996-09-16 21:56:33 +00:00
Jeff Law
9d879ade50
* emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
...
Something Mark noticed.
1996-09-16 04:09:17 +00:00
Mark Alexander
3e92569690
* emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
...
stack at top of simulator memory.
1996-09-15 17:41:13 +00:00
Ian Lance Taylor
deb2a14592
* ldlex.l (SYMBOLCHARN): Add $, _, and ~.
1996-09-13 19:50:50 +00:00
Ian Lance Taylor
8ae650ea07
* ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
1996-09-12 03:34:28 +00:00
Ian Lance Taylor
ee0523d5c3
* ldlang.c (section_already_linked): Accept a lang_input_statement
...
as the PTR argument. If the file is symbols only, discard all
input sections.
(ldlang_add_file): Pass entry to bfd_map_over_sections.
PR 10555.
1996-09-05 19:26:12 +00:00
Ian Lance Taylor
31cadbf45f
* configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
...
<fila@ibi.com>.
1996-09-04 19:54:48 +00:00
Jeff Law
7ab4a84a3a
* emulparms/v850.sh: Entry symbol is "_start", tweak
...
ctor/dtor support.
1996-08-31 04:31:18 +00:00
Ian Lance Taylor
efd48a6a97
* configure.tgt (sh-*-elf*): New target.
...
* emulparams/shelf.sh: New file.
* emulparams/shlelf.sh: New file.
* Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
(eshelf.c, eshlelf.c): New targets.
* scripttempl/elf.sc: If EMBEDDED is defined, then don't add
SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
OTHER_RELOCATING_SECTIONS if RELOCATING.
1996-08-30 22:36:45 +00:00
Ian Lance Taylor
2175d72592
remove extra incorrect check for sanitization
1996-08-26 17:34:46 +00:00
Ian Lance Taylor
4c6856fac4
* ldver.c (ldversion): Print GNU ld in the version message.
1996-08-26 17:02:00 +00:00
Jeff Law
04c17a7559
* Makefile.in (ev850.c): New target.
...
* configure.tgt (v850-*-*): New target.
* emulparams/v850.sh: New file.
No, it doesn't work (gas doesn't even emit relocs yet), but having
a "ld" that at least creates an executable image greatly helps the
gcc testsuite.
1996-08-22 22:32:21 +00:00
Stan Shebs
8293952724
* mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
1996-08-22 18:18:19 +00:00
Ian Lance Taylor
8387e11432
tweak last patch
1996-08-21 20:10:54 +00:00
Ian Lance Taylor
18f0961ed9
* scripttempl/elf.sc: Put .gnu.linkonce* sections in .text.
1996-08-21 18:27:28 +00:00
Ian Lance Taylor
8b5b6ebd1f
* fnmatch.c: Include sysdep.h.
1996-08-19 20:02:42 +00:00
Michael Meissner
9099ec8fb4
Undo 8/16 change; explictly set MACHINE= for d10v
1996-08-19 15:31:29 +00:00
Jackie Smith Cashion
61e3ce7432
Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
...
* scripttempl/armcoff.sc (__bss_start__, __bss_end__,
__data_start__, __data_end__): Added to keep in sync. with the
default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
1996-08-16 13:19:45 +00:00
Ian Lance Taylor
2d69131dab
* lib/ld.exp: Use verbose -log instead of calling both verbose and
...
send_log.
1996-08-08 18:29:59 +00:00
Ian Lance Taylor
9c3f0306ac
* ld-scripts/phdrs.exp: New test.
...
* ld-scripts/phdrs.s, ld-scripts/phdrs.t: New files.
1996-08-07 22:20:39 +00:00
Ian Lance Taylor
2792727822
Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
...
* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, config.in: Rebuild.
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
* ldmain.c (sbrk): Declare if HAVE_SBRK and
NEED_DECLARATION_SBRK.
1996-08-07 18:43:48 +00:00
Ian Lance Taylor
d22ec3b090
* ldlex.l: Recognize OVERLAY.
...
* ldgram.y: Add section_phdr field to %union.
(section): Handle phdr_opt result. Add OVERLAY case.
(opt_exp_without_type): New nonterminal.
(phdr_opt): Return list of phdrs.
(overlay_section): New nonterminal.
* ldlang.c: Include <ctype.h>.
(lang_leave_output_section_statement): Add phdrs parameter.
Change all callers.
(lang_section_in_phdr): Remove.
(overlay_vma, overlay_lmn, overlay_max): New static variables.
(struct overlay_list): Define.
(overlay_list): New static variable.
(lang_enter_overlay, lang_enter_overlay_section): New functions.
(lang_leave_overlay_section, lang_leave_overlay): New functions.
* ldlang.h (lang_leave_output_section_statement): Update
declaration for new parameter.
(lang_section_in_phdr): Don't declare.
(lang_enter_overlay, lang_enter_overlay_section): Declare.
(lang_leave_overlay_section, lang_leave_overlay): Declare.
* ld.texinfo (Overlays): New node under SECTIONS, documenting
overlays.
* ldlex.l: Recognize MAX and MIN.
* ldgram.y (MAX, MIN): New terminals.
(exp): Recognize MAX and MIN.
* ldexp.c (fold_binary): Handle MAX and MIN.
* ld.texinfo (Arithmetic Functions): Document MAX and MIN.
* ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
index entries.
* ldgram.y (SIZEOF, ADDR): Do not specify type.
1996-08-05 20:37:52 +00:00
Ian Lance Taylor
6bb21dd356
* ldcref.c (check_nocrossref): Skip symbols with no output
...
sections.
1996-08-05 20:28:39 +00:00
Ian Lance Taylor
52247dfd7f
* ld-scripts/crossref.exp: On a29k targets, use --defsym to define
...
V_SPILL and V_FILL.
1996-08-05 02:29:34 +00:00
Ian Lance Taylor
5735ac9e57
* ldgram.y (LOADADDR): New terminal.
...
(exp): Handle LOADADDR.
* ldlex.l: Recognize LOADADDR.
* ldexp.c (exp_print_token): Add LOADADDR.
(fold_name): Implement LOADADDR.
* ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
* ld.texinfo (Arithmetic Functions): Document LOADADDR.
1996-08-02 19:01:58 +00:00
Ian Lance Taylor
c1ebd1ce17
rework crossref test
1996-08-01 18:33:47 +00:00
Ian Lance Taylor
bc4c9b927b
* ld-scripts/crossref.exp: New test.
...
* ld-scripts/cross1.c, ld-scripts/cross2.c: New files.
* ld-scripts/crossref.t: New file.
1996-08-01 18:12:22 +00:00
Ian Lance Taylor
582dd77f65
* ld.h (check_nocrossrefs): Declare.
...
* ldlang.h (struct lang_nocrossref): Define.
(struct lang_nocrossrefs): Define.
(nocrossref_list): Declare.
(lang_add_nocrossref): Declare.
* ldlex.l: Recognize NOCROSSREFS keyword.
* ldgram.y (%union): Add nocrossref field.
(NOCROSSREFS): New terminal.
(ifile_p1): Recognize NOCROSSREFS.
(nocrossref_list): New nonterminal.
* ldlang.c (nocrossref_list): Define.
(lang_add_nocrossref): New function.
* ldmain.c (main): If nocrossref_list is not NULL, call
check_nocrossrefs.
(warning_callback): Free symbols if there is no place to store
them.
(notice): Call add_cref if nocrossref_list is not NULL.
* ldcref.c: Include "ldexp.h" and "ldlang.h".
(check_nocrossrefs): New function.
(check_nocrossref): New static function.
(struct check_refs_info): Define.
(check_refs, check_reloc_refs): New static functions.
* Makefile.in: Rebuild dependencies.
* ld.texinfo (Option Commands): Document NOCROSSREFS.
1996-08-01 17:35:49 +00:00