aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-08-29 22:05:30 +0100
committerIain Sandoe <iain@sandoe.co.uk>2021-08-27 17:02:12 +0100
commit66526c6a1c01b6110eaeda94ecc885177c636605 (patch)
treea1685b98cfb4d36008239837d549c476939f6dc1 /gcc/tree-inline.c
parentff6bb9dde10ab665a35bb75527313cd9f7d52f8e (diff)
downloadgcc-66526c6a1c01b6110eaeda94ecc885177c636605.zip
gcc-66526c6a1c01b6110eaeda94ecc885177c636605.tar.gz
gcc-66526c6a1c01b6110eaeda94ecc885177c636605.tar.bz2
Darwin : Mark the mod init/term section starts with a linker-visible sym.
Some newer assemblers emit section start temp symbols for mod init and term sections if there is no suitable symbol present already. The temp symbols are linker visible and therefore appear in the symbol tables. Since the temp symbol number can vary when debug is enabled, that causes compare-debug fails. The solution is to provide a stable linker-visible symbol. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/ChangeLog: * config/darwin.c (finalize_ctors): Add a section-start linker- visible symbol. (finalize_dtors): Likewise. * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions