Browse Source

binutils: Update from 2.33.1 to 2.34

build-on-device
Fredrik Fornwall 5 years ago
parent
commit
e5cd865276
  1. 4
      packages/binutils/build.sh
  2. 17
      packages/binutils/ld-emultempl-elf32.em.patch

4
packages/binutils/build.sh

@ -1,9 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/binutils/
TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the GNU linker, and as, the GNU assembler"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=2.33.1
TERMUX_PKG_VERSION=2.34
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=98aba5f673280451a09df3a8d8eddb3aa0c505ac183f1e2f9d00c67aa04c6f7d
TERMUX_PKG_SHA256=53537d334820be13eeb8acb326d01c7c81418772d626715c7ae927a7d401cab3
TERMUX_PKG_DEPENDS="libc++, zlib"
TERMUX_PKG_BREAKS="binutils-dev"
TERMUX_PKG_REPLACES="binutils-dev"

17
packages/binutils/ld-emultempl-elf32.em.patch

@ -1,17 +0,0 @@
diff -u -r ../binutils-2.26/ld/emultempl/elf32.em ./ld/emultempl/elf32.em
--- ../binutils-2.26/ld/emultempl/elf32.em 2015-11-13 03:27:42.000000000 -0500
+++ ./ld/emultempl/elf32.em 2016-01-28 10:20:11.534910516 -0500
@@ -115,8 +115,13 @@
static void
gld${EMULATION_NAME}_after_parse (void)
{
+#ifndef __ANDROID__
+ /* 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
after_parse_default ();
}
Loading…
Cancel
Save