diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2016-11-12 23:16:05 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2016-12-03 17:26:51 +0000 |
| commit | f924d0ca964bc6f45fb905bf587ae4ef44fb92c2 (patch) | |
| tree | 04e4d0fcd2ddef28708b556358b6e7e9f0cfed25 /tcc.h | |
| parent | 64b5ee2dea3a50ef52f9849364b7b1d6e94bf62d (diff) | |
| download | tinycc-f924d0ca964bc6f45fb905bf587ae4ef44fb92c2.tar.gz tinycc-f924d0ca964bc6f45fb905bf587ae4ef44fb92c2.tar.bz2 | |
Improve put_got_entry doc and structure
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1325,6 +1325,9 @@ ST_FUNC void tccelf_new(TCCState *s); ST_FUNC void tccelf_delete(TCCState *s); ST_FUNC void tccelf_stab_new(TCCState *s); +/* return offset of 'ptr' from start of section 'sec' */ +#define OFFSET_FROM_SECTION_START(sec, ptr) ((size_t)ptr - (size_t)sec->data) + ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh_flags); ST_FUNC void section_realloc(Section *sec, unsigned long new_size); ST_FUNC void *section_ptr_add(Section *sec, addr_t size); |
