Skip to content

Commit 1afc433

Browse files
committed
loongarch: ignore RELAX relocations
1 parent 0c9a65a commit 1afc433

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/link/Elf/Atom.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,7 @@ const loongarch = struct {
21752175
.TLS_DESC_PC_LO12,
21762176
.TLS_DESC_LD,
21772177
.TLS_LE_ADD_R,
2178+
.RELAX,
21782179
=> {},
21792180

21802181
else => try atom.reportUnhandledRelocError(rel, elf_file),
@@ -2207,6 +2208,7 @@ const loongarch = struct {
22072208

22082209
switch (r_type) {
22092210
.NONE => unreachable,
2211+
.RELAX => {},
22102212

22112213
.@"32" => try cwriter.writeInt(u32, @as(u32, @truncate(@as(u64, @intCast(S + A)))), .little),
22122214

@@ -2264,6 +2266,7 @@ const loongarch = struct {
22642266

22652267
switch (r_type) {
22662268
.NONE => unreachable,
2269+
.RELAX => {},
22672270

22682271
.@"32" => try cwriter.writeInt(i32, @as(i32, @intCast(S + A)), .little),
22692272
.@"64" => if (atom.debugTombstoneValue(target.*, elf_file)) |value|

0 commit comments

Comments
 (0)