From: Iain Sandoe Date: Wed, 6 Aug 2025 05:07:43 +0000 (+0100) Subject: Darwin: Section anchors must be linker-visible. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d950ba6e51b56adf72e45c58067291be4e0b6785;p=thirdparty%2Fgcc.git Darwin: Section anchors must be linker-visible. In principle, these begin (or at least delineate) a region that could be split by the static linker. If the symbols are hidden to newer linkers they produce diagnostics about the temporary symbol generated. gcc/ChangeLog: * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): New entry for LANCHOR. Signed-off-by: Iain Sandoe --- diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 9b9a3fe4038..ccfe01ea410 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -1005,6 +1005,8 @@ extern GTY(()) section * darwin_sections[NUM_DARWIN_SECTIONS]; sprintf (LABEL, "*%s%ld", "lASAN", (long)(NUM));\ else if (strcmp ("LTRAMP", PREFIX) == 0) \ sprintf (LABEL, "*%s%ld", "lTRAMP", (long)(NUM));\ + else if (strncmp ("LANCHOR", PREFIX, 7) == 0) \ + sprintf (LABEL, "*%s%ld", "lANCHOR", (long)(NUM));\ else \ sprintf (LABEL, "*%s%ld", PREFIX, (long)(NUM)); \ } while (0)