From 163c729ef251a87ca61731bf63892607953e3fa1 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 10 Nov 2013 17:29:47 +0100 Subject: add linker scripts --- package/glibc/Makefile | 12 ++++++++++++ package/glibc/files/libc.so.i586 | 5 +++++ package/glibc/files/libc.so.i686 | 5 +++++ package/glibc/files/libc.so.mips | 5 +++++ package/glibc/files/libc.so.mips64 | 5 +++++ package/glibc/files/libc.so.mips64el | 5 +++++ package/glibc/files/libc.so.mipsel | 5 +++++ 7 files changed, 42 insertions(+) create mode 100644 package/glibc/files/libc.so.i586 create mode 100644 package/glibc/files/libc.so.i686 create mode 100644 package/glibc/files/libc.so.mips create mode 100644 package/glibc/files/libc.so.mips64 create mode 100644 package/glibc/files/libc.so.mips64el create mode 100644 package/glibc/files/libc.so.mipsel diff --git a/package/glibc/Makefile b/package/glibc/Makefile index af70e125f..d6d1bf3ce 100644 --- a/package/glibc/Makefile +++ b/package/glibc/Makefile @@ -52,13 +52,25 @@ glibc-dev-install: # install linker script -cp ./files/libc.so.$(CPU_ARCH) $(IDIR_GLIBC_DEV)/usr/lib/libc.so ifeq ($(ADK_TARGET_ABI_O32),y) +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFFORMAT@@#elf32-tradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +else $(SED) "s#@@ELFFORMAT@@#elf32-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so endif +endif ifeq ($(ADK_TARGET_ABI_N32),y) +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFFORMAT@@#elf32-ntradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +else $(SED) "s#@@ELFFORMAT@@#elf32-ntradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so endif +endif ifeq ($(ADK_TARGET_ABI_N64),y) +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFFORMAT@@#elf64-tradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +else $(SED) "s#@@ELFFORMAT@@#elf64-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so +endif endif ${CP} ${STAGING_TARGET_DIR}/usr/lib/crt* ${IDIR_GLIBC_DEV}/usr/lib ${CP} ${STAGING_TARGET_DIR}/usr/lib/libc_nonshared.a ${IDIR_GLIBC_DEV}/usr/lib diff --git a/package/glibc/files/libc.so.i586 b/package/glibc/files/libc.so.i586 new file mode 100644 index 000000000..cd8724cc5 --- /dev/null +++ b/package/glibc/files/libc.so.i586 @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ +OUTPUT_FORMAT(elf32-i386) +GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) ) diff --git a/package/glibc/files/libc.so.i686 b/package/glibc/files/libc.so.i686 new file mode 100644 index 000000000..cd8724cc5 --- /dev/null +++ b/package/glibc/files/libc.so.i686 @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ +OUTPUT_FORMAT(elf32-i386) +GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) ) diff --git a/package/glibc/files/libc.so.mips b/package/glibc/files/libc.so.mips new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mips @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) diff --git a/package/glibc/files/libc.so.mips64 b/package/glibc/files/libc.so.mips64 new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mips64 @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) diff --git a/package/glibc/files/libc.so.mips64el b/package/glibc/files/libc.so.mips64el new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mips64el @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) diff --git a/package/glibc/files/libc.so.mipsel b/package/glibc/files/libc.so.mipsel new file mode 100644 index 000000000..9e73ea39c --- /dev/null +++ b/package/glibc/files/libc.so.mipsel @@ -0,0 +1,5 @@ +/* GNU ld script + Use the shared library, but some functions are only in + the static library, so try that secondarily. */ + OUTPUT_FORMAT(@@ELFTARGET@@) + GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) ) -- cgit v1.2.3