Hi Everyone,

This one got away too soon. Sorry about that.

I noticed *.s recipes do not use ASFLAGS. ASFLAGS includes -Wa,--noexecstack:

/usr/bin/m4 ./asm.m4 machine.m4 config.m4 aes-decrypt-internal.asm
>aes-decrypt-internal.s
gcc -I. -I/home/jwalton/tmp/ok2delete/include -DNDEBUG -DHAVE_CONFIG_H
-g2 -O2 -march=native -fPIC -pthread -ggdb3 -Wall -W -Wno-sign-compare
  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic -MT
aes-decrypt-internal.o -MD -MP -MF aes-decrypt-internal.o.d -c
aes-decrypt-internal.s

aes-decrypt-internal.s should be built using ASFLAGS, too. The recipe
should look something like:

  %.s:
    $(CC) $(CPPFLAGS) $(CFLAGS) $(ASFLAGS) -c $< -o $@

Otherwise, the object file has an executable stack.

Jeff

On Fri, Jul 17, 2020 at 4:05 PM Jeffrey Walton <[email protected]> wrote:
>
> Hi Everyone,
>
> I noticed *.s recipes do not use ASFLAGS. ASFLAGS includes -Wa,--noexecstack:
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to