Don't relocate __etext
authorRobert Pengelly <robertapengelly@hotmail.com>
Sat, 14 Dec 2024 01:56:40 +0000 (01:56 +0000)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sat, 14 Dec 2024 01:56:40 +0000 (01:56 +0000)
aout.c

diff --git a/aout.c b/aout.c
index f0fb39ebfca9bc2a8d649f4f126e1f4e3a6fa98b..9308537051eedd9cff344301056b0728200f497d 100644 (file)
--- 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;
                 }