diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2025-08-06 06:07:43 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2025-08-09 15:12:57 +0100 |
commit | d950ba6e51b56adf72e45c58067291be4e0b6785 (patch) | |
tree | 6bd5a5152bb6426c0abcf3eb7620950a6643245f /gcc | |
parent | 7c02f011502ea65bb03891239a7317a95c6a00dd (diff) | |
download | gcc-d950ba6e51b56adf72e45c58067291be4e0b6785.zip gcc-d950ba6e51b56adf72e45c58067291be4e0b6785.tar.gz gcc-d950ba6e51b56adf72e45c58067291be4e0b6785.tar.bz2 |
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 <iain@sandoe.co.uk>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/darwin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 9b9a3fe..ccfe01e 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) |