about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-10-19 15:37:07 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2019-10-19 15:37:07 +0200
commitdda5ea883a2191b16e08ba1a455a5776acbe57d0 (patch)
tree5ccb95133d3135329a89adc606edfd0441861851 /example
parent75c24b9c9677600422ec86fa9f4c78fe3678d2ce (diff)
downloadrust-dda5ea883a2191b16e08ba1a455a5776acbe57d0.tar.gz
rust-dda5ea883a2191b16e08ba1a455a5776acbe57d0.zip
Fix debuginfo for machO
This only fixes it when using object::write as backend, and not when using faerie.

There were two problems:

* object::write doesn't replace .debug_info with __debug_info, unlike faerie
* machO requires section relative relocations, and not symbol relative
  relocations. When using symbol relative relocations, the linker
  interprets the relocations as section relative. Thus writing the wrong
  values to the debug sections.

Fixes #303
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions