tccasm: Implement .pushsection and .popsection

This commit is contained in:
Michael Matz
2016-06-28 15:11:06 +02:00
parent 6763b02abc
commit c82e52d55b
4 changed files with 40 additions and 3 deletions

4
tcc.h
View File

@ -448,8 +448,8 @@ typedef struct Section {
int nb_hashed_syms; /* used to resize the hash table */
struct Section *link; /* link to another section */
struct Section *reloc; /* corresponding section for relocation, if any */
struct Section *hash; /* hash table for symbols */
struct Section *next;
struct Section *hash; /* hash table for symbols */
struct Section *prev; /* previous section on section stack */
char name[1]; /* section name */
} Section;