https://sourceware.org/bugzilla/show_bug.cgi?id=28709
--- Comment #10 from Fangrui Song <maskray at sourceware dot org> --- The issue is unrelated to .reloc directives. Without `#define GAS_SORT_RELOCS 1`, the pair R_RISCV_SET6/R_RISCV_SUB6 are at the end: 000000000000002f 0000000b00000035 R_RISCV_SET6 000000000000003a .L0 + 0 000000000000002f 0000000a00000034 R_RISCV_SUB6 0000000000000006 .L0 + 0 GNU ld not handling this correctly is a bug of its own. I remember that -r linking can also created relocations not ordered by r_offset - and the issue cannot be papered over by the assembler change. -- You are receiving this mail because: You are on the CC list for the bug.
