From 6a947d9d2610723db3f46bcae4f35d5d5c572f89 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 6 Apr 2014 01:59:35 +0200 Subject: ELF: Remove traces of old RUNTIME_PLTGOT code The last users of it went away, no use in keeping this code. --- tccrun.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'tccrun.c') diff --git a/tccrun.c b/tccrun.c index 2876ab7..52a74b3 100644 --- a/tccrun.c +++ b/tccrun.c @@ -180,14 +180,6 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr) if (s1->nb_errors) return -1; -#ifdef TCC_HAS_RUNTIME_PLTGOT - s1->runtime_plt_and_got_offset = 0; - s1->runtime_plt_and_got = (char *)(mem + offset); - /* double the size of the buffer for got and plt entries - XXX: calculate exact size for them? */ - offset *= 2; -#endif - if (0 == mem) return offset; @@ -215,11 +207,6 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr) set_pages_executable(ptr, length); } -#ifdef TCC_HAS_RUNTIME_PLTGOT - set_pages_executable(s1->runtime_plt_and_got, - s1->runtime_plt_and_got_offset); -#endif - #ifdef _WIN64 win64_add_function_table(s1); #endif -- cgit v1.3.1