| 661 | } |
| 662 | |
| 663 | Fixup* CodeHolder::new_fixup(LabelEntry& le, uint32_t section_id, size_t offset, intptr_t rel, const OffsetFormat& format) noexcept { |
| 664 | // Cannot be bound if we are creating a link. |
| 665 | ASMJIT_ASSERT(!le.is_bound()); |
| 666 | |
| 667 | Fixup* link = _fixup_data_pool.alloc(_arena); |
| 668 | if (ASMJIT_UNLIKELY(!link)) { |
| 669 | return nullptr; |
| 670 | } |
| 671 | |
| 672 | link->next = le._get_fixups(); |
| 673 | link->section_id = section_id; |
| 674 | link->label_or_reloc_id = Globals::kInvalidId; |
| 675 | link->offset = offset; |
| 676 | link->rel = rel; |
| 677 | link->format = format; |
| 678 | |
| 679 | le._set_fixups(link); |
| 680 | _unresolved_fixup_count++; |
| 681 | |
| 682 | return link; |
| 683 | } |
| 684 | |
| 685 | Error CodeHolder::new_label_id(Out<uint32_t> label_id_out) noexcept { |
| 686 | uint32_t label_id = _label_entries._size; |
no test coverage detected