Skip to content

Commit 0e8d74f

Browse files
committed
link.Elf: allow multiple relocs at one location
RISC-V and LoongArch ELF psABI declares a kind of RELAX relocations which are expected to have a normal relocation at the same address.
1 parent 0f3a8e6 commit 0e8d74f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/link/Elf/relocatable.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ fn writeSyntheticSections(elf_file: *Elf) !void {
365365
const SortRelocs = struct {
366366
pub fn lessThan(ctx: void, lhs: elf.Elf64_Rela, rhs: elf.Elf64_Rela) bool {
367367
_ = ctx;
368-
assert(lhs.r_offset != rhs.r_offset);
369368
return lhs.r_offset < rhs.r_offset;
370369
}
371370
};

0 commit comments

Comments
 (0)