| ... | @@ -8580,10 +8580,13 @@ fn maybeAddCopyRelocation(elf: *Elf, global_name: String(.strtab)) Error!bool { | ... | @@ -8580,10 +8580,13 @@ fn maybeAddCopyRelocation(elf: *Elf, global_name: String(.strtab)) Error!bool { |
| 8580 | try Section.Index.data.ensureAligned(elf, dso_global.alignment); | 8580 | try Section.Index.data.ensureAligned(elf, dso_global.alignment); |
| 8581 | | 8581 | |
| 8582 | try elf.nodes.ensureUnusedCapacity(gpa, 1); | 8582 | try elf.nodes.ensureUnusedCapacity(gpa, 1); |
| 8583 | const node = try Section.Index.data.get(elf).ni.addFloatingChild(gpa, &elf.mf, .{ | 8583 | const node = elf.addNodeAssumeCapacity( |
| 8584 | .size = dso_global.alignment.forward(dso_global.size), | 8584 | try Section.Index.data.get(elf).ni.addFloatingChild(gpa, &elf.mf, .{ |
| 8585 | .alignment = dso_global.alignment, | 8585 | .size = dso_global.alignment.forward(dso_global.size), |
| 8586 | }); | 8586 | .alignment = dso_global.alignment, |
| | 8587 | }), |
| | 8588 | .{ .copied_global = global_name }, |
| | 8589 | ); |
| 8587 | errdefer comptime unreachable; | 8590 | errdefer comptime unreachable; |
| 8588 | | 8591 | |
| 8589 | const vaddr = elf.computeNodeVAddr(node); | 8592 | const vaddr = elf.computeNodeVAddr(node); |