History

x86-64: Remove code for debug print. Now, we concat buffers before relocation. So this only happens when users try creating >2GB binary.

Shinichiro Hamaji committed 17 years ago

Commit 85d016b1 parent 39a4b851 file · +0 −16Browse files

Unified · Split

tccelf.c+0−16
@@ -692,22 +692,6 @@ static void relocate_section(TCCState *s1, Section *s) · 691 unmodified lines
692692 diff = val - addr;
693693 }
694694 if (diff <= -2147483647 || diff > 2147483647) {
695−#if 0
696− /* output memory map to debug easily */
697− FILE* fp;
698− char buf[4096];
699− int size;
700− Dl_info di;
701− printf("%ld - %ld = %ld\n", val, addr, diff);
702− dladdr((void *)addr, &di);
703− printf("addr = %lx = %lx+%lx(%s) ptr=%p\n",
704− addr, s->sh_addr, rel->r_offset, di.dli_sname,
705− ptr);
706− fp = fopen("/proc/self/maps", "r");
707− size = fread(buf, 1, 4095, fp);
708− buf[size] = '\0';
709− printf("%s", buf);
710−#endif
711695 error("internal error: relocation failed");
712696 }
713697 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t