From 0a5b942d4aadbf5be99ff62976384db83d342f8c Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Tue, 7 Feb 2023 02:34:59 +0900 Subject: [PATCH] Restore FreeBSD to use .rodata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In https://github.com/openzfs/zfs/pull/14228 the FreeBSD SECTION_STATIC was set to ".data" instead of ".rodata". This commit just restores it back to .rodata. Reviewed-by: Attila Fülöp Reviewed-by: Richard Yao Reviewed-by: Brian Behlendorf Signed-off-by: Jorgen Lundman Closes #14460 --- include/os/freebsd/spl/sys/ia32/asm_linkage.h | 2 +- lib/libspl/include/os/freebsd/sys/ia32/asm_linkage.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/os/freebsd/spl/sys/ia32/asm_linkage.h b/include/os/freebsd/spl/sys/ia32/asm_linkage.h index 058d600007..1ebfd83506 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 .data +#define SECTION_STATIC .rodata #ifdef __cplusplus extern "C" { diff --git a/lib/libspl/include/os/freebsd/sys/ia32/asm_linkage.h b/lib/libspl/include/os/freebsd/sys/ia32/asm_linkage.h index 9964f183cc..08c7303799 100644 --- a/lib/libspl/include/os/freebsd/sys/ia32/asm_linkage.h +++ b/lib/libspl/include/os/freebsd/sys/ia32/asm_linkage.h @@ -40,7 +40,7 @@ #define ENDBR #define SECTION_TEXT .text -#define SECTION_STATIC .data +#define SECTION_STATIC .rodata #ifdef __cplusplus extern "C" {