diff options
author | Dimitry Andric <[email protected]> | 2023-02-25 01:45:48 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-24 16:45:48 -0800 |
commit | bf1bec394e715de9f7ac4a54b5b1b884d7e41a32 (patch) | |
tree | f2eee5beb6189e3e9b5322722d081f990eb69f52 /include/os | |
parent | d816bc5ec76b050ab5319112320e1676d538161c (diff) |
Use .section .rodata instead of .rodata on FreeBSD
In commit 0a5b942d4 the FreeBSD SECTION_STATIC macro was set to
".rodata". This assembler directive is supported by LLVM (as a
convenience alias for ".section .rodata") by not by GNU as.
This caused the FreeBSD builds that are done with gcc to fail.
Therefore, use ".section .rodata" instead, similar to the other
asm_linkage.h headers.
Reviewed-by: Mateusz Guzik <[email protected]>
Reviewed-by: Attila Fülöp <[email protected]>
Reviewed-by: Jorgen Lundman <[email protected]>
Signed-off-by: Dimitry Andric <[email protected]>
Closes #14526
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/freebsd/spl/sys/ia32/asm_linkage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/os/freebsd/spl/sys/ia32/asm_linkage.h b/include/os/freebsd/spl/sys/ia32/asm_linkage.h index 1ebfd8350..d1f53cf22 100644 --- a/include/os/freebsd/spl/sys/ia32/asm_linkage.h +++ b/include/os/freebsd/spl/sys/ia32/asm_linkage.h @@ -36,7 +36,7 @@ #define ENDBR #define SECTION_TEXT .text -#define SECTION_STATIC .rodata +#define SECTION_STATIC .section .rodata #ifdef __cplusplus extern "C" { |