Skip to content

Commit

Permalink
archive: skip <XFGHASHMAP> special member
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Apr 23, 2024
1 parent b88a337 commit 991c9b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Library.zig
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ pub fn parse(self: *Library) !void {
}
}

if (hdr.isHybridmapMember() or hdr.isEcsymbolsMember()) continue; // TODO: what the heck are these anyhow?
// https://reviews.llvm.org/D120645
if (hdr.isHybridmapMember() or hdr.isEcsymbolsMember() or hdr.isXfgmapMember()) continue; // TODO: what the heck are these anyhow?

try self.members.append(self.gpa, .{
.offset = pos - @sizeOf(Header),
Expand Down Expand Up @@ -279,6 +280,10 @@ const Header = extern struct {
fn isEcsymbolsMember(hdr: *const Header) bool {
return std.mem.eql(u8, &hdr.name, ecsymbols_member);
}

fn isXfgmapMember(hdr: *const Header) bool {
return std.mem.eql(u8, &hdr.name, xfgmap_member);
}
};

const Symdef = struct {
Expand Down Expand Up @@ -390,6 +395,7 @@ const linker_member = genMemberName("/");
const longnames_member = genMemberName("//");
const hybridmap_member = genMemberName("/<HYBRIDMAP>/");
const ecsymbols_member = genMemberName("/<ECSYMBOLS>/");
const xfgmap_member = genMemberName("/<XFGHASHMAP>/");

const assert = std.debug.assert;
const coff = std.coff;
Expand Down

0 comments on commit 991c9b7

Please sign in to comment.