aboutsummaryrefslogtreecommitdiff
path: root/src/tcccoff.c
diff options
context:
space:
mode:
authorgus knight <waddlesplash@gmail.com>2015-07-29 09:54:03 -0400
committergus knight <waddlesplash@gmail.com>2015-07-29 09:59:11 -0400
commit7f5b95ea321086c8dff91b462dc80af03caa657e (patch)
tree5d47932ad305692475eec12ecbd703da240baa08 /src/tcccoff.c
parent271abe711798868717e3a6b046eab2bab8920016 (diff)
downloadtinycc-7f5b95ea321086c8dff91b462dc80af03caa657e.tar.gz
tinycc-7f5b95ea321086c8dff91b462dc80af03caa657e.tar.bz2
Fix formatting breakage from "rogue tabs" commit.
Diffstat (limited to 'src/tcccoff.c')
-rw-r--r--src/tcccoff.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tcccoff.c b/src/tcccoff.c
index 6ef9759..1964bed 100644
--- a/src/tcccoff.c
+++ b/src/tcccoff.c
@@ -21,9 +21,9 @@
#include "tcc.h"
-#define MAXNSCNS 255 /* MAXIMUM NUMBER OF SECTIONS */
+#define MAXNSCNS 255 /* MAXIMUM NUMBER OF SECTIONS */
#define MAX_STR_TABLE 1000000
-AOUTHDR o_filehdr; /* OPTIONAL (A.OUT) FILE HEADER */
+AOUTHDR o_filehdr; /* OPTIONAL (A.OUT) FILE HEADER */
SCNHDR section_header[MAXNSCNS];
@@ -94,21 +94,21 @@ ST_FUNC int tcc_output_coff(TCCState* s1, FILE* f)
nb_syms = symtab_section->data_offset / sizeof(Elf32_Sym);
coff_nb_syms = FindCoffSymbolIndex("XXXXXXXXXX1");
- file_hdr.f_magic = COFF_C67_MAGIC; /* magic number */
- file_hdr.f_timdat = 0; /* time & date stamp */
- file_hdr.f_opthdr = sizeof(AOUTHDR); /* sizeof(optional hdr) */
- file_hdr.f_flags = 0x1143; /* flags (copied from what code composer does) */
- file_hdr.f_TargetID = 0x99; /* for C6x = 0x0099 */
+ file_hdr.f_magic = COFF_C67_MAGIC; /* magic number */
+ file_hdr.f_timdat = 0; /* time & date stamp */
+ file_hdr.f_opthdr = sizeof(AOUTHDR); /* sizeof(optional hdr) */
+ file_hdr.f_flags = 0x1143; /* flags (copied from what code composer does) */
+ file_hdr.f_TargetID = 0x99; /* for C6x = 0x0099 */
- o_filehdr.magic = 0x0108; /* see magic.h */
- o_filehdr.vstamp = 0x0190; /* version stamp */
+ o_filehdr.magic = 0x0108; /* see magic.h */
+ o_filehdr.vstamp = 0x0190; /* version stamp */
o_filehdr.tsize =
- stext->data_offset; /* text size in bytes, padded to FW bdry */
- o_filehdr.dsize = sdata->data_offset; /* initialized data " " */
- o_filehdr.bsize = sbss->data_offset; /* uninitialized data " " */
+ stext->data_offset; /* text size in bytes, padded to FW bdry */
+ o_filehdr.dsize = sdata->data_offset; /* initialized data " " */
+ o_filehdr.bsize = sbss->data_offset; /* uninitialized data " " */
o_filehdr.entrypt = C67_main_entry_point; /* entry pt. */
- o_filehdr.text_start = stext->sh_addr; /* base of text used for this file */
- o_filehdr.data_start = sdata->sh_addr; /* base of data used for this file */
+ o_filehdr.text_start = stext->sh_addr; /* base of text used for this file */
+ o_filehdr.data_start = sdata->sh_addr; /* base of data used for this file */
// create all the section headers