public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH PROPOSAL] Bcc: Force initial .text directive
@ 2015-04-11 16:02 MFLD
  0 siblings, 0 replies; only message in thread
From: MFLD @ 2015-04-11 16:02 UTC (permalink / raw)
  To: ELKS

Hello,

Here is a patch proposal to force the insertion of a .text directive at 
the beginning of the bcc-cc1 output file.
This is because Bcc makes the assumption that the as86 assembler starts 
with the code segment.
This patch prevents the compilation to fail if migrating to another 
assembler with a different assumption.

MFLD


diff --git a/bcc/codefrag.c b/bcc/codefrag.c
index d796810..80bab18 100644
--- a/bcc/codefrag.c
+++ b/bcc/codefrag.c
@@ -592,7 +592,8 @@

  typedef fastin_t seg_t;        /* range 0..3 */

-PRIVATE seg_t segment;        /* current seg, depends on init to CSEG = 
0 */
+/* Initialize to -1 to force initial segment directive */
+PRIVATE seg_t segment = -1;        /* current segment */

  /* add carry resulting from char addition */


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-11 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-11 16:02 [PATCH PROPOSAL] Bcc: Force initial .text directive MFLD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox