about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/tinycc/ignore-duplicate-symbols.patch
blob: 0aec8b465bf2b07d4bcd798d8f0cb4e530bc3c0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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;