mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
0173d3bd90
latest tinycc is able to build gcc 4.6.4
13 lines
494 B
Diff
13 lines
494 B
Diff
--- tccelf.c
|
|
+++ tccelf.c
|
|
@@ -710,8 +710,9 @@ ST_FUNC int set_elf_sym(Section *s, addr_t value, unsigned long size,
|
|
#if 0
|
|
printf("new_bind=%x new_shndx=%x new_vis=%x old_bind=%x old_shndx=%x old_vis=%x\n",
|
|
sym_bind, shndx, new_vis, esym_bind, esym->st_shndx, esym_vis);
|
|
-#endif
|
|
tcc_error_noabort("'%s' defined twice", name);
|
|
+#endif
|
|
+ goto do_patch;
|
|
}
|
|
} else {
|
|
esym->st_other = other;
|