[PATCH] [ELF] Use pcrel format for eh_frame_ptr field encoding

Simon Atanasyan simon at atanasyan.com
Mon Mar 16 07:30:51 PDT 2015


Current code fails if address of `.eh_frame` section is greater than 2^32 and does not fit into 4-byte. The alternative solution is to use `DW_EH_PE_udata4` for 32-bit targets and `DW_EH_PE_udata8` for 64-bit targets. But `DW_EH_PE_pcrel` covers both cases and it looks like gnu linkers use this format too.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8352

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list