https://gcc.gnu.org/g:d950ba6e51b56adf72e45c58067291be4e0b6785

commit r16-3102-gd950ba6e51b56adf72e45c58067291be4e0b6785
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Wed Aug 6 06:07:43 2025 +0100

    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 <i...@sandoe.co.uk>

Diff:
---
 gcc/config/darwin.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 9b9a3fe40388..ccfe01ea410a 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)

Reply via email to