delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2012/01/21/17:25:48

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1+//vluv6K/kpYRVMXwGo/z32XD/GMAe2yv80KeKI
hntxkKeaCSVBgh
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: relocation counter overflow flag for coff.h
Date: Sat, 21 Jan 2012 23:21:49 +0100
User-Agent: KMail/1.9.10
MIME-Version: 1.0
Message-Id: <201201212321.49139.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

To be able to signal that the relocation counter has been overflow I would
suggest to add the following flag to coff.h.  The value of 0x01000000 is the
same than the one used by PE COFF but arbitrary.  It could be any other one.

Regards,
Juan M. Guerrero



diff -aprNU5 djgpp.orig/include/coff.h djgpp/include/coff.h
--- djgpp.orig/include/coff.h	2011-07-30 13:05:46 +0000
+++ djgpp/include/coff.h	2012-01-02 17:43:48 +0000
@@ -134,13 +134,14 @@ struct external_scnhdr {
 #define _LIB ".lib"
 
 /*
  * s_flags "type"
  */
-#define STYP_TEXT	 (0x0020)	/* section contains text only */
-#define STYP_DATA	 (0x0040)	/* section contains data only */
-#define STYP_BSS	 (0x0080)	/* section contains bss only */
+#define STYP_TEXT         (0x0020)      /* section contains text only */
+#define STYP_DATA         (0x0040)      /* section contains data only */
+#define STYP_BSS          (0x0080)      /* section contains bss only */
+#define STYP_NRELOC_OVFL  (0x01000000)  /* section contains extended relocations. */
 
 /********************** LINE NUMBERS **********************/
 
 /* 1 line number entry for every "breakpointable" source line in a section.
  * Line numbers are grouped on a per function basis; first entry in a function

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019