Change dwarf output on linux to switch from relative to absolute addresses based on library-mode-ness, might help fight ASLR-induced confusion.

This commit is contained in:
Graydon Hoare 2010-08-11 14:27:47 -07:00
parent 60e5ad384e
commit bf341f829b

View File

@ -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