X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/a4279e8660fe2dc1c9c910649f32a9dea8092a58..f252068260cd4a0d8abcaf8fa3b0f9328854d707:/packages/binutils/ld-emultempl-elf32.em.patch 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