Tested on a cross to powerpc-darwin9 and on aarch64-darwin21,
pushed to trunk,
thanks
Iain

--- 8< ---

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>
---
 gcc/config/darwin.h | 2 ++
 1 file changed, 2 insertions(+)

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)
-- 
2.39.2 (Apple Git-143)

Reply via email to