brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · ae04faa Raw
34 lines · c
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8/// \file9/// Functions to add an LC_NOTE load command to the corefile's load commands,10/// and supply the payload of that LC_NOTE separately.11//===----------------------------------------------------------------------===//12 13#ifndef YAML2MACHOCOREFILE_LCNOTEWRITER_H14#define YAML2MACHOCOREFILE_LCNOTEWRITER_H15 16#include "CoreSpec.h"17 18#include <stdio.h>19#include <vector>20 21void create_lc_note_binary_load_cmd(const CoreSpec &spec,22                                    std::vector<uint8_t> &cmds,23                                    const Binary &binary,24                                    std::vector<uint8_t> &payload_bytes,25                                    off_t data_offset);26 27void create_lc_note_addressable_bits(const CoreSpec &spec,28                                     std::vector<uint8_t> &cmds,29                                     const AddressableBits &addr_bits,30                                     std::vector<uint8_t> &payload_bytes,31                                     off_t data_offset);32 33#endif34