aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji _at_ gmail.com>2009-04-17 01:06:21 +0900
committergrischka <grischka>2009-04-18 15:08:02 +0200
commit85d016b507d9546f8f4946343ac527de10360da2 (patch)
tree9d0290cf69314236193e7225abca1358492bdaed
parent39a4b859d4d4f76d2616b2c6e6a697dc261daa1a (diff)
downloadtinycc-85d016b507d9546f8f4946343ac527de10360da2.tar.gz
tinycc-85d016b507d9546f8f4946343ac527de10360da2.tar.bz2
x86-64: Remove code for debug print.
Now, we concat buffers before relocation. So this only happens when users try creating >2GB binary.
-rw-r--r--tccelf.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tccelf.c b/tccelf.c
index 195ac98..87c91c3 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -692,22 +692,6 @@ static void relocate_section(TCCState *s1, Section *s)
diff = val - addr;
}
if (diff <= -2147483647 || diff > 2147483647) {
-#if 0
- /* output memory map to debug easily */
- FILE* fp;
- char buf[4096];
- int size;
- Dl_info di;
- printf("%ld - %ld = %ld\n", val, addr, diff);
- dladdr((void *)addr, &di);
- printf("addr = %lx = %lx+%lx(%s) ptr=%p\n",
- addr, s->sh_addr, rel->r_offset, di.dli_sname,
- ptr);
- fp = fopen("/proc/self/maps", "r");
- size = fread(buf, 1, 4095, fp);
- buf[size] = '\0';
- printf("%s", buf);
-#endif
error("internal error: relocation failed");
}
}