diff options
-rw-r--r-- | elf/ifuncmain6pie.c | 2 | ||||
-rw-r--r-- | elf/ifuncmain7.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/elf/ifuncmain6pie.c b/elf/ifuncmain6pie.c index 7e757e335f..06f179bf9d 100644 --- a/elf/ifuncmain6pie.c +++ b/elf/ifuncmain6pie.c @@ -19,7 +19,7 @@ one (void) void * foo_ifunc (void) __asm__ ("foo"); __asm__(".type foo, %gnu_indirect_function"); -void * +void * foo_ifunc (void) { return one; diff --git a/elf/ifuncmain7.c b/elf/ifuncmain7.c index 8832c7fa1c..099e929ffc 100644 --- a/elf/ifuncmain7.c +++ b/elf/ifuncmain7.c @@ -17,7 +17,7 @@ one (void) static void * foo_ifunc (void) __asm__ ("foo"); __asm__(".type foo, %gnu_indirect_function"); -static void * +static void * __attribute__ ((used)) foo_ifunc (void) { |