Mercurial > hg > aboriginal
changeset 708:a0db930af698
Make sparc linker recognize older binary type.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 08 Apr 2009 11:28:05 -0500 |
parents | b95220513049 |
children | 64cc63ad26ce |
files | sources/patches/uClibc-sparcldso.patch |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/uClibc-sparcldso.patch Wed Apr 08 11:28:05 2009 -0500 @@ -0,0 +1,19 @@ +Sparc v8 and v9 should still support EM_SPARC binaries, not _just_ SPARC32PLUS. + +--- uClibc/ldso/ldso/sparc/dl-sysdep.h 2008-09-15 11:36:11.000000000 -0500 ++++ uClibc.bak/ldso/ldso/sparc/dl-sysdep.h 2009-04-08 01:09:53.000000000 -0500 +@@ -29,13 +29,8 @@ + /* Here we define the magic numbers that this dynamic loader should accept + * Note that SPARCV9 doesn't use EM_SPARCV9 since the userland is still 32-bit. + */ +-#if defined(__sparc_v9__) || defined(__sparc_v8__) + #define MAGIC1 EM_SPARC32PLUS +-#else +-#define MAGIC1 EM_SPARC +-#endif +- +-#undef MAGIC2 ++#define MAGIC2 EM_SPARC + + /* Used for error messages */ + #define ELF_TARGET "sparc"