diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2003-06-06 03:41:38 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2003-06-06 03:41:38 +0000 |
commit | 25119b21dcf803317093d30bf27e77ea4aa1b75a (patch) | |
tree | 12c2c081c0fc94d95b4c9f0d6df12475ffdd6402 /gcc | |
parent | 86fb951d4c4aa345352d87b3c4959cd3c3cdb30a (diff) | |
download | gcc-25119b21dcf803317093d30bf27e77ea4aa1b75a.zip gcc-25119b21dcf803317093d30bf27e77ea4aa1b75a.tar.gz gcc-25119b21dcf803317093d30bf27e77ea4aa1b75a.tar.bz2 |
linux.h (STARTFILE_SPEC): Handle -pie.
* config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
(ENDFILE_SPEC): Redefine to handle -pie.
From-SVN: r67527
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sh/linux.h | 17 |
2 files changed, 17 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc34fec..417e59a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-06 Kaz Kojima <kkojima@gcc.gnu.org> + + * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify. + (ENDFILE_SPEC): Redefine to handle -pie. + 2003-06-05 Phil Edwards <phil@jaj.com> * Makefile.in (qmtest-g++): Use target_alias, not target. diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h index 4fa432b..861cc5a 100644 --- a/gcc/config/sh/linux.h +++ b/gcc/config/sh/linux.h @@ -88,12 +88,19 @@ do { \ #endif #undef STARTFILE_SPEC +#if defined HAVE_LD_PIE #define STARTFILE_SPEC \ - "%{!shared: \ - %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ - %{!p:%{profile:gcrt1.o%s} \ - %{!profile:crt1.o%s}}}} \ - crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" + "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \ + crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" +#else +#define STARTFILE_SPEC \ + "%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}} \ + crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" +#endif + +#undef ENDFILE_SPEC +#define ENDFILE_SPEC \ + "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" /* Output assembler code to STREAM to call the profiler. */ |