From: Robert Pengelly Date: Sat, 14 Dec 2024 01:56:40 +0000 (+0000) Subject: Don't relocate __etext X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=818090a1e1965f8249972fa11124c5bb4a4174d6;p=slink.git Don't relocate __etext --- diff --git a/aout.c b/aout.c index f0fb39e..9308537 100644 --- a/aout.c +++ b/aout.c @@ -69,7 +69,7 @@ static unsigned char *write_relocs_for_section (unsigned char *pos, struct secti symbol = symbol_find (symbol->name); - if (strcmp (symbol->name, "__edata") == 0 || strcmp (symbol->name, "__end") == 0) { + if (strcmp (symbol->name, "__etext") == 0 || strcmp (symbol->name, "__edata") == 0 || strcmp (symbol->name, "__end") == 0) { continue; }