special.h 551 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
  4. */
  5. #ifndef _SPECIAL_H
  6. #define _SPECIAL_H
  7. #include <stdbool.h>
  8. #include "elf.h"
  9. struct special_alt {
  10. struct list_head list;
  11. bool group;
  12. bool skip_orig;
  13. bool skip_alt;
  14. bool jump_or_nop;
  15. struct section *orig_sec;
  16. unsigned long orig_off;
  17. struct section *new_sec;
  18. unsigned long new_off;
  19. unsigned int orig_len, new_len; /* group only */
  20. };
  21. int special_get_alts(struct elf *elf, struct list_head *alts);
  22. #endif /* _SPECIAL_H */