diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-11-05 16:18:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-11-05 16:18:48 +0000 |
commit | 5a0b5225bd4458b0a383791c44ac394c97b037a2 (patch) | |
tree | af07c46d48214f064e04b46e007aab459df405af /devel | |
parent | 146a9f6a98ac5c8b21324677166a61955028d3c2 (diff) | |
download | ports-5a0b5225bd4458b0a383791c44ac394c97b037a2.tar.gz ports-5a0b5225bd4458b0a383791c44ac394c97b037a2.zip |
MFH: r554081
devel/binutils: Apply upstream patch to fix "undefined symbol:
bswap_identity_64" and similar errors, when building devel/binutils in
certain environments.
This has been sitting in a bug for almost a year now without any action,
which is why I am committing it now.
Approved by: ports-secteam (fluffy)
PR: 242053
Notes
Notes:
svn path=/branches/2020Q4/; revision=554138
Diffstat (limited to 'devel')
-rw-r--r-- | devel/binutils/Makefile | 2 | ||||
-rw-r--r-- | devel/binutils/files/patch-libctf_swap.h | 34 |
2 files changed, 35 insertions, 1 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index 1bb5188f2e18..8867f07bffa7 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -3,7 +3,7 @@ PORTNAME= binutils PORTVERSION= 2.33.1 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH?= 1 CATEGORIES?= devel MASTER_SITES= SOURCEWARE/binutils/releases diff --git a/devel/binutils/files/patch-libctf_swap.h b/devel/binutils/files/patch-libctf_swap.h new file mode 100644 index 000000000000..eefb60856c72 --- /dev/null +++ b/devel/binutils/files/patch-libctf_swap.h @@ -0,0 +1,34 @@ +--- libctf/swap.h.orig 2019-09-09 13:19:45 UTC ++++ libctf/swap.h +@@ -28,13 +28,13 @@ + #else + + /* Provide our own versions of the byteswap functions. */ +-inline uint16_t ++static inline uint16_t + bswap_16 (uint16_t v) + { + return ((v >> 8) & 0xff) | ((v & 0xff) << 8); + } + +-inline uint32_t ++static inline uint32_t + bswap_32 (uint32_t v) + { + return ( ((v & 0xff000000) >> 24) +@@ -43,13 +43,13 @@ bswap_32 (uint32_t v) + | ((v & 0x000000ff) << 24)); + } + +-inline uint64_t ++static inline uint64_t + bswap_identity_64 (uint64_t v) + { + return v; + } + +-inline uint64_t ++static inline uint64_t + bswap_64 (uint64_t v) + { + return ( ((v & 0xff00000000000000ULL) >> 56) |