Message ID | 20220721064123.2981805-4-chenglulu@loongson.cn |
---|---|
State | New |
Headers | show |
Series | LoongArch: Modify the method of obtaining symbolic addresses. | expand |
diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h index 89a5bd728fe..222b58b838d 100644 --- a/gcc/config/loongarch/loongarch.h +++ b/gcc/config/loongarch/loongarch.h @@ -1128,7 +1128,7 @@ struct GTY (()) machine_function #endif #define ASM_PREFERRED_EH_DATA_FORMAT(CODE, GLOBAL) \ - (((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_absptr) + (((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4) /* Do emit .note.GNU-stack by default. */ #ifndef NEED_INDICATE_EXEC_STACK