Fix relocs_info declaration in tcc.h
commit59391d5520534ef1fe3cc2e96fa567c870e2f533
authorThomas Preud'homme <robotux@celest.fr>
Mon, 5 Dec 2016 20:40:59 +0000 (5 20:40 +0000)
committerThomas Preud'homme <robotux@celest.fr>
Mon, 5 Dec 2016 20:51:10 +0000 (5 20:51 +0000)
treeb1382b41c1a41310db148c9939f1792b621332d9
parent097cf3aa5ee370bab50d6d15cef9b0af55a1a3a2
Fix relocs_info declaration in tcc.h

C standard specifies that array should be declared with a non null size
or with * for standard array. Declaration of relocs_info in tcc.h was
not respecting this rule. This commit add a R_NUM macro that maps to the
R_<ARCH>_NUM macros and declare relocs_info using it. This commit also
moves all linker-related macros from <arch>-gen.c files to <arch>-link.c
ones.
12 files changed:
arm-gen.c
arm-link.c
arm64-gen.c
arm64-link.c
c67-gen.c
c67-link.c
elf.h
i386-gen.c
i386-link.c
tcc.h
x86_64-gen.c
x86_64-link.c