[PATCH] [ELF] Use pcrel format for eh_frame_ptr field encoding
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.
More information about the llvm-commits