Re: [scc-dev] aarch64 support

From: Brian Mayer <bleemayer_at_gmail.com>
Date: Tue, 12 Mar 2024 18:22:46 -0300

Hi, thanks for accepting my changes.

Compilation now goes well up to:

gcc -I../../../../include -I../../../../include/bits/linux
-I../../../../include/bits/arm64
-I../../../../include/bits/linux/arm64 -ffreestanding -fno-pie
-std=c99 -fno-stack-protector
-static -O1 -o signal.7l -c signal.c
signal.c:4:10: fatal error: arch/sigaction.h: No such file or directory
    4 | #include <arch/sigaction.h>
      | ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [../../../../src/libc/rules.mk:31: signal.7l] Error 1

I think the header is still missing.

> Can you try a small program with glibc and print the value of SA_RESTORER?

I took a look at my system includes and found this:

/usr/include/asm/signal.h:

#ifndef __ASM_SIGNAL_H
#define __ASM_SIGNAL_H

/* Required for AArch32 compatibility. */
#define SA_RESTORER 0x04000000

#define MINSIGSTKSZ 5120
#define SIGSTKSZ 16384

#include <asm-generic/signal.h>

#endif

But I could not use it on a program. After googling I found an explanation here:

https://man7.org/linux/man-pages/man2/sigaction.2.html
https://man7.org/linux/man-pages/man2/sigreturn.2.html

I hope it helps as I have no idea.

Cheers.
--
To unsubscribe send a mail to scc-dev+unsubscribe_at_simple-cc.org
Received on Tue 12 Mar 2024 - 22:22:46 CET

This archive was generated by hypermail 2.3.0 : Tue 12 Mar 2024 - 22:30:41 CET