This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Xtensa: added a library to LIB_SPEC for xtensa-elf targets
- From: Bob Wilson <bwilson at tensilica dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 05 Nov 2002 13:41:59 -0800
- Subject: Xtensa: added a library to LIB_SPEC for xtensa-elf targets
- Organization: Tensilica, Inc.
An upcoming Xtensa processor release from Tensilica requires linking with an
additional library for the xtensa-elf target. The library exists in previous
Xtensa processor releases, so I'm adding it to LIB_SPEC now so that GCC will
work with both the current and future Xtensa releases. Tested with the
xtensa-elf target. Committed on the mainline and 3.2 branch.
2002-11-05 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
Index: elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/elf.h,v
retrieving revision 1.1
diff -c -3 -r1.1 elf.h
*** elf.h 23 Jan 2002 21:03:50 -0000 1.1
--- elf.h 5 Nov 2002 21:30:23 -0000
***************
*** 58,64 ****
#undef ASM_FINAL_SPEC
#undef LIB_SPEC
! #define LIB_SPEC "-lc -lsim -lc -lhandlers-sim"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "crt1-sim%O%s crti%O%s crtbegin%O%s _vectors%O%s"
--- 58,64 ----
#undef ASM_FINAL_SPEC
#undef LIB_SPEC
! #define LIB_SPEC "-lc -lsim -lc -lhandlers-sim -lhal"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "crt1-sim%O%s crti%O%s crtbegin%O%s _vectors%O%s"