[PATCH] Add inhibit_stack_protector to ifuncmain9 [BZ #25680]

David Hughes davidhughes205@gmail.com
Thu Jun 25 02:34:23 GMT 2020

Enabling --enable-stack-protector=all causes the following tests to fail:

    FAIL: elf/ifuncmain9picstatic
    FAIL: elf/ifuncmain9static

Nick Alcock (who committed the stack protector code) marked the IFUNC
resolvers with inhibit_stack_protector when he done the original work and
suggested doing so again @ BZ #25680. This patch adds
inhibit_stack_protector to ifuncmain9.

After patch is applied, --enable-stack-protector=all does not fail the
above tests.


2020-06-24 Dave Hughes <davidhughes205@gmail.com>

        COMMIT: d3dfcedb2fffe54a9a9a75068f74c1f1dfb82fdf
        Add inhibit_stack_protector to ifuncmain9 to fix failing tests BZ

        * elf/ifuncmain9.c: added inhibit_stack_protector to ifunc resolver.

 elf/ifuncmain9.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/ifuncmain9.c b/elf/ifuncmain9.c
index 0d3429341c..1c9ba89839 100644
--- a/elf/ifuncmain9.c
+++ b/elf/ifuncmain9.c
@@ -43,6 +43,7 @@ implementation (void)

 static __typeof__ (implementation) *
 resolver (void)

More information about the Libc-alpha mailing list