From: Fredrik Fornwall Date: Mon, 19 Sep 2016 23:18:23 +0000 (-0400) Subject: binutils: Fix patch in ifndef __ANDROID__ X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/183a88a12b0ff336624a2beaa31e1c6297be14c6?ds=inline binutils: Fix patch in ifndef __ANDROID__ Fixes #468. --- diff --git a/packages/binutils/ld-emultempl-elf32.em.patch b/packages/binutils/ld-emultempl-elf32.em.patch index 5dd80b84..37f54512 100644 --- a/packages/binutils/ld-emultempl-elf32.em.patch +++ b/packages/binutils/ld-emultempl-elf32.em.patch @@ -6,9 +6,9 @@ diff -u -r ../binutils-2.26/ld/emultempl/elf32.em ./ld/emultempl/elf32.em gld${EMULATION_NAME}_after_parse (void) { +#ifndef __ANDROID__ -+ /** The Android linker does not support DF_1_PIE but prints a warning: -+ 'unsupported flags DT_FLAGS_1=0x8000000' -+ due to validation in linker.cpp (see "case DT_FLAGS_1" there. */ */ ++ /* The Android linker does not support DF_1_PIE: ++ 'unsupported flags DT_FLAGS_1=0x8000000' ++ from linker.cpp (see "case DT_FLAGS_1" there. */ if (bfd_link_pie (&link_info)) link_info.flags_1 |= (bfd_vma) DF_1_PIE; +#endif