Ignore:
Timestamp:
2023-12-28T13:59:23Z (15 months ago)
Author:
GitHub <noreply@…>
Children:
6b66de6b
Parents:
42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
git-committer:
GitHub <noreply@…> (2023-12-28 13:59:23)
Message:

Merge branch 'master' into topic/packet-capture

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/debug/sections.h

    r42c2e65 rdc5c303  
    11/*
    2  * Copyright (c) 2011 Martin Decky
     2 * Copyright (c) 2023 Jiří Zárevúcky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup kernel_generic
    30  * @{
    31  */
    32 /** @file
    33  */
     29#ifndef DEBUG_SECTIONS_H_
     30#define DEBUG_SECTIONS_H_
    3431
    35 #ifndef KERN_LIB_MEMFNC_H_
    36 #define KERN_LIB_MEMFNC_H_
     32#include <abi/elf.h>
     33#include <stddef.h>
    3734
    38 #include <stddef.h>
    39 #include <cc.h>
     35typedef struct {
     36        const void *debug_aranges;
     37        size_t debug_aranges_size;
    4038
    41 #ifdef CONFIG_LTO
    42 #define DO_NOT_DISCARD ATTRIBUTE_USED
    43 #else
    44 #define DO_NOT_DISCARD
    45 #endif
     39        const void *debug_info;
     40        size_t debug_info_size;
    4641
    47 extern void *memset(void *, int, size_t)
    48     __attribute__((nonnull(1)))
    49     ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") DO_NOT_DISCARD;
    50 extern void *memcpy(void *, const void *, size_t)
    51     __attribute__((nonnull(1, 2)))
    52     ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") DO_NOT_DISCARD;
    53 extern int memcmp(const void *, const void *, size_t len)
    54     __attribute__((nonnull(1, 2)))
    55     ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") DO_NOT_DISCARD;
     42        const void *debug_abbrev;
     43        size_t debug_abbrev_size;
    5644
    57 #define alloca(size) __builtin_alloca((size))
     45        const void *debug_line;
     46        size_t debug_line_size;
    5847
    59 #endif
     48        const char *debug_str;
     49        size_t debug_str_size;
    6050
    61 /** @}
    62  */
     51        const char *debug_line_str;
     52        size_t debug_line_str_size;
     53
     54        const void *debug_rnglists;
     55        size_t debug_rnglists_size;
     56
     57        const void *eh_frame_hdr;
     58        size_t eh_frame_hdr_size;
     59
     60        const void *eh_frame;
     61        size_t eh_frame_size;
     62
     63        const elf_symbol_t *symtab;
     64        size_t symtab_size;
     65
     66        const char *strtab;
     67        size_t strtab_size;
     68} debug_sections_t;
     69
     70extern debug_sections_t kernel_sections;
     71
     72debug_sections_t get_debug_sections(const void *elf, size_t elf_size);
     73
     74#endif /* DEBUG_SECTIONS_H_ */
Note: See TracChangeset for help on using the changeset viewer.