mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-15 05:20:06 +08:00
Fix Thomas commit 776aa0c093
which failedto build on Windows.
This commit is contained in:
parent
070646b790
commit
8494f2c318
6
tccelf.c
6
tccelf.c
@ -866,12 +866,14 @@ static void relocate_rel(TCCState *s1, Section *sr)
|
||||
static int prepare_dynamic_rel(TCCState *s1, Section *sr)
|
||||
{
|
||||
ElfW_Rel *rel;
|
||||
int sym_index, type, count;
|
||||
int type, count;
|
||||
|
||||
count = 0;
|
||||
for_each_elem(sr, 0, rel, ElfW_Rel) {
|
||||
sym_index = ELFW(R_SYM)(rel->r_info);
|
||||
type = ELFW(R_TYPE)(rel->r_info);
|
||||
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
|
||||
int sym_index = ELFW(R_SYM)(rel->r_info);
|
||||
#endif
|
||||
switch(type) {
|
||||
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
|
||||
#if defined(TCC_TARGET_I386)
|
||||
|
Loading…
Reference in New Issue
Block a user