This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] libelf: Drop internal_function from __libelf_set_data_list_rdlock.
- From: Alexander Cherepanov <ch3root at openwall dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 17 Feb 2015 21:00:28 +0300
- Subject: [PATCH] libelf: Drop internal_function from __libelf_set_data_list_rdlock.
Hi!
Have to use this patch when building 32-bit version of elfutils for the
latest round of fuzzing.
--
Alexander Cherepanov
>From 261a8419ed998d8aa1331b28ae99dd096000936d Mon Sep 17 00:00:00 2001
From: Alexander Cherepanov <ch3root@openwall.com>
Date: Tue, 17 Feb 2015 20:37:52 +0300
Subject: [PATCH] libelf: Drop internal_function from
__libelf_set_data_list_rdlock.
__libelf_set_data_list_rdlock from elf_getdata.c is also used in
elf_newdata.c and even described in libelfP.h. Drop internal_function
attribute accordingly. This prevented 32-bit builds.
Signed-off-by: Alexander Cherepanov <ch3root@openwall.com>
---
libelf/ChangeLog | 5 +++++
libelf/elf_getdata.c | 1 -
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 235b750..119bd58 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-17 Alexander Cherepanov <ch3root@openwall.com>
+
+ * elf_getdata.c (__libelf_set_data_list_rdlock): Drop
+ internal_function.
+
2015-02-07 Jan Kratochvil <jan.kratochvil@redhat.com>
* elf32_updatenull.c (__elfw2(LIBELFBITS,updatenull_wrlock)): Consider
diff --git a/libelf/elf_getdata.c b/libelf/elf_getdata.c
index e8f022f..f33ad6b 100644
--- a/libelf/elf_getdata.c
+++ b/libelf/elf_getdata.c
@@ -338,7 +338,6 @@ __libelf_set_rawdata (Elf_Scn *scn)
}
void
-internal_function
__libelf_set_data_list_rdlock (Elf_Scn *scn, int wrlocked)
{
if (scn->rawdata.d.d_buf != NULL && scn->rawdata.d.d_size > 0)
--
2.1.4