]> git.proxmox.com Git - mirror_zfs.git/commit
Use .section .rodata instead of .rodata on FreeBSD
authorDimitry Andric <dimitry@andric.com>
Sat, 25 Feb 2023 00:45:48 +0000 (01:45 +0100)
committerGitHub <noreply@github.com>
Sat, 25 Feb 2023 00:45:48 +0000 (16:45 -0800)
commitbf1bec394e715de9f7ac4a54b5b1b884d7e41a32
treef2eee5beb6189e3e9b5322722d081f990eb69f52
parentd816bc5ec76b050ab5319112320e1676d538161c
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 <mjguzik@gmail.com>
Reviewed-by: Attila Fülöp <attila@fueloep.org>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Signed-off-by: Dimitry Andric <dimitry@andric.com>
Closes #14526
include/os/freebsd/spl/sys/ia32/asm_linkage.h
lib/libspl/include/os/freebsd/sys/ia32/asm_linkage.h