netlist.c: etext symbol for __clang__

clang does this differently, this method mirrors the linux man page.

clang18 default warning cleanup (strict)
This commit is contained in:
Darryl L. Miles 2024-10-04 19:02:16 +01:00 committed by Tim Edwards
parent 9ca8697659
commit fc49b40c52
1 changed files with 2 additions and 0 deletions

View File

@ -369,6 +369,8 @@ NLNetName(net)
static char tempId[100];
#if defined(EMSCRIPTEN)
int etext;
#elif defined(linux) && defined(__clang__)
extern char etext;
#elif defined(linux) || defined(CYGWIN)
extern int etext asm("etext");
#elif defined(__APPLE__)