diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-09-23 20:44:06 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-09-23 20:49:54 +0200 |
commit | d8698e55cbe95e56c3a4cbd67c320048ea4f087a (patch) | |
tree | f244c37048ebdee1931e446b426ab66c839379a2 /libasm/asm_align.c | |
parent | 1ccdfb683ad6c7e59793136c3a657ddf131cafd1 (diff) | |
download | elfutils-d8698e55cbe95e56c3a4cbd67c320048ea4f087a.tar.gz |
Properly mark all internal function definitions.
Since we banned old style function definitions GCC is able to diagnose
function definitions that don't match the function declaration:
elf32_getehdr.c:78: error: conflicting types for ‘__elf64_getehdr_wrlock’
libelfP.h:498: note: previous declaration of ‘__elf64_getehdr_wrlock’
This happens on i386 because there internal functions are marked with:
# define internal_function __attribute__ ((regparm (3), stdcall))
Make sure all internal function declarations and definitions are marked
with internal_function.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libasm/asm_align.c')
-rw-r--r-- | libasm/asm_align.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libasm/asm_align.c b/libasm/asm_align.c index b7708f59..6631c4d7 100644 --- a/libasm/asm_align.c +++ b/libasm/asm_align.c @@ -132,6 +132,7 @@ asm_align (AsmScn_t *asmscn, GElf_Word value) /* Ensure there are at least LEN bytes available in the output buffer for ASMSCN. */ int +internal_function __libasm_ensure_section_space (AsmScn_t *asmscn, size_t len) { /* The blocks with the section content are kept in a circular |