felf.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright : (C) 2022 Phytium Information Technology, Inc.
  3. * All Rights Reserved.
  4. *
  5. * This program is OPEN SOURCE software: you can redistribute it and/or modify it
  6. * under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd,
  7. * either version 1.0 of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;
  10. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. * See the Phytium Public License for more details.
  12. *
  13. *
  14. * FilePath: felf.h
  15. * Date: 2021-08-31 11:16:49
  16. * LastEditTime: 2022-02-17 18:05:22
  17. * Description:  This file is for showing elf api.
  18. *
  19. * Modify History:
  20. * Ver   Who        Date         Changes
  21. * ----- ------     --------    --------------------------------------
  22. * 1.0 zhugengyu 2022/10/27 rename file name
  23. */
  24. #ifndef FELF_H
  25. #define FELF_H
  26. #include "ftypes.h"
  27. #ifdef __cplusplus
  28. extern "C"
  29. {
  30. #endif
  31. unsigned long ElfLoadElfImagePhdr(unsigned long addr);
  32. unsigned long ElfLoadElfImageShdr(unsigned long addr);
  33. int ElfIsImageValid(unsigned long addr);
  34. unsigned long ElfExecBootElf(unsigned long (*entry)(int, char *const[]),
  35. int argc, char *const argv[]);
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif // !