diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-06-06 21:37:31 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-06-06 21:37:47 +0100 |
commit | 1933ad5420dada4392022b5571f631f0a5bb21a4 (patch) | |
tree | 0f93046ebc489f084b51e6d6b276bbe6ffb8c852 /dev-libs/elfutils | |
parent | sys-boot/lilo: Fix bugs #753608 and #715580 (diff) | |
download | gentoo-1933ad5420dada4392022b5571f631f0a5bb21a4.tar.gz gentoo-1933ad5420dada4392022b5571f631f0a5bb21a4.tar.bz2 gentoo-1933ad5420dada4392022b5571f631f0a5bb21a4.zip |
dev-libs/elfutils: tweak inline annotation
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/794601
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-libs/elfutils')
-rw-r--r-- | dev-libs/elfutils/elfutils-0.185.ebuild | 1 | ||||
-rw-r--r-- | dev-libs/elfutils/files/elfutils-0.185-static-inline.patch | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/elfutils/elfutils-0.185.ebuild b/dev-libs/elfutils/elfutils-0.185.ebuild index 5860b8abf503..38edee45ed96 100644 --- a/dev-libs/elfutils/elfutils-0.185.ebuild +++ b/dev-libs/elfutils/elfutils-0.185.ebuild @@ -33,6 +33,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch "${FILESDIR}"/${PN}-0.177-disable-large.patch "${FILESDIR}"/${PN}-0.180-PaX-support.patch + "${FILESDIR}"/${PN}-0.185-static-inline.patch ) src_prepare() { diff --git a/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch b/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch new file mode 100644 index 000000000000..ec1aaf47a331 --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/794601 +--- a/src/elflint.c ++++ b/src/elflint.c +@@ -3434,7 +3434,7 @@ buffer_pos (Elf_Data *data, const unsigned char *p) + return p - (const unsigned char *) data->d_buf; + } + +-inline size_t ++static inline size_t + buffer_left (Elf_Data *data, const unsigned char *p) + { + return (const unsigned char *) data->d_buf + data->d_size - p; |