forked from Mirrors/tinycc
parent
377e8e5e68
commit
dfb75d9b6c
3
tccasm.c
3
tccasm.c
|
@ -1087,7 +1087,6 @@ ST_FUNC int find_constraint(ASMOperand *operands, int nb_operands,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void subst_asm_operands(ASMOperand *operands, int nb_operands,
|
static void subst_asm_operands(ASMOperand *operands, int nb_operands,
|
||||||
int nb_outputs,
|
|
||||||
CString *out_str, CString *in_str)
|
CString *out_str, CString *in_str)
|
||||||
{
|
{
|
||||||
int c, index, modifier;
|
int c, index, modifier;
|
||||||
|
@ -1256,7 +1255,7 @@ ST_FUNC void asm_instr(void)
|
||||||
printf("asm: \"%s\"\n", (char *)astr.data);
|
printf("asm: \"%s\"\n", (char *)astr.data);
|
||||||
#endif
|
#endif
|
||||||
if (must_subst) {
|
if (must_subst) {
|
||||||
subst_asm_operands(operands, nb_operands, nb_outputs, &astr1, &astr);
|
subst_asm_operands(operands, nb_operands, &astr1, &astr);
|
||||||
cstr_free(&astr);
|
cstr_free(&astr);
|
||||||
} else {
|
} else {
|
||||||
astr1 = astr;
|
astr1 = astr;
|
||||||
|
|
4
tccelf.c
4
tccelf.c
|
@ -870,7 +870,7 @@ static void build_got(TCCState *s1)
|
||||||
relocation, use 'size' and 'info' for the corresponding symbol metadata.
|
relocation, use 'size' and 'info' for the corresponding symbol metadata.
|
||||||
Returns the offset of the GOT or (if any) PLT entry. */
|
Returns the offset of the GOT or (if any) PLT entry. */
|
||||||
static struct sym_attr * put_got_entry(TCCState *s1, int dyn_reloc_type,
|
static struct sym_attr * put_got_entry(TCCState *s1, int dyn_reloc_type,
|
||||||
int reloc_type, unsigned long size,
|
unsigned long size,
|
||||||
int info, int sym_index)
|
int info, int sym_index)
|
||||||
{
|
{
|
||||||
int need_plt_entry;
|
int need_plt_entry;
|
||||||
|
@ -1044,7 +1044,7 @@ ST_FUNC void build_got_entries(TCCState *s1)
|
||||||
if (gotplt_entry == BUILD_GOT_ONLY)
|
if (gotplt_entry == BUILD_GOT_ONLY)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
attr = put_got_entry(s1, reloc_type, type, sym->st_size, sym->st_info,
|
attr = put_got_entry(s1, reloc_type, sym->st_size, sym->st_info,
|
||||||
sym_index);
|
sym_index);
|
||||||
|
|
||||||
if (reloc_type == R_JMP_SLOT)
|
if (reloc_type == R_JMP_SLOT)
|
||||||
|
|
Loading…
Reference in New Issue