From bf341f829bd71aeb5e0a9ee2b7b32c7d42e08564 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 11 Aug 2010 14:27:47 -0700 Subject: Change dwarf output on linux to switch from relative to absolute addresses based on library-mode-ness, might help fight ASLR-induced confusion. --- src/boot/me/dwarf.ml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/boot/me/dwarf.ml b/src/boot/me/dwarf.ml index 0ec7af78..1ff6c8ad 100644 --- a/src/boot/me/dwarf.ml +++ b/src/boot/me/dwarf.ml @@ -2176,14 +2176,8 @@ let dwarf_visitor in let addr_ranges (fix:fixup) : frag = - let image_is_relocated = - match cx.ctxt_sess.Session.sess_targ with - Win32_x86_pe -> - cx.ctxt_sess.Session.sess_library_mode - | _ -> true - in let lo = - if image_is_relocated + if cx.ctxt_sess.Session.sess_library_mode then image_base_rel fix else M_POS fix in -- cgit v1.2.3