mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user