nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1--- tccelf.c
2+++ tccelf.c
3@@ -710,8 +710,9 @@ ST_FUNC int set_elf_sym(Section *s, addr_t value, unsigned long size,
4 #if 0
5 printf("new_bind=%x new_shndx=%x new_vis=%x old_bind=%x old_shndx=%x old_vis=%x\n",
6 sym_bind, shndx, new_vis, esym_bind, esym->st_shndx, esym_vis);
7-#endif
8 tcc_error_noabort("'%s' defined twice", name);
9+#endif
10+ goto do_patch;
11 }
12 } else {
13 esym->st_other = other;