pahole: Describe expected use of 'default' in the man page
[dwarves.git] / changes-v1.20
blob0dddfdaaa523bea3845a71e9d5db21c42e286301
1 BTF encoder:
3   - Improve ELF error reporting using elf_errmsg(elf_errno()).
5   - Improve objcopy error handling.
7   - Fix handling of 'restrict' qualifier, that was being treated as a 'const'.
9   - Support SHN_XINDEX in st_shndx symbol indexes, to handle ELF objects with
10     more than 65534 sections, for instance, which happens with kernels built
11     with 'KCFLAGS="-ffunction-sections -fdata-sections", Other cases may
12     include when using FG-ASLR, LTO.
14   - Cope with functions without a name, as seen sometimes when building kernel
15     images with some versions of clang, when a SEGFAULT was taking place.
17   - Fix BTF variable generation for kernel modules, not skipping variables at
18     offset zero.
20   - Fix address size to match what is in the ELF file being processed, to fix using
21     a 64-bit pahole binary to generate BTF for a 32-bit vmlinux image.
23   - Use kernel module ftrace addresses when finding which functions to encode,
24     which increases the number of functions encoded.
26 libbpf:
28   - Allow use of packaged version, for distros wanting to dynamically link with
29     the system's libbpf package instead of using the libbpf git submodule shipped
30     in pahole's source code.
32 DWARF loader:
34   - Support DW_AT_data_bit_offset
35     
36     This appeared in DWARF4 but is supported only in gcc's -gdwarf-5,
37     support it in a way that makes the output be the same for both cases.
38     
39       $ gcc -gdwarf-5 -c examples/dwarf5/bf.c
40       $ pahole bf.o
41       struct pea {
42             long int                   a:1;                  /*     0: 0  8 */
43             long int                   b:1;                  /*     0: 1  8 */
44             long int                   c:1;                  /*     0: 2  8 */
45     
46             /* XXX 29 bits hole, try to pack */
47             /* Bitfield combined with next fields */
48     
49             int                        after_bitfield;       /*     4     4 */
50     
51             /* size: 8, cachelines: 1, members: 4 */
52             /* sum members: 4 */
53             /* sum bitfield members: 3 bits, bit holes: 1, sum bit holes: 29 bits */
54             /* last cacheline: 8 bytes */
55       };
57   - DW_FORM_implicit_const in attr_numeric() and attr_offset()
59   - Support DW_TAG_GNU_call_site, its the standardized rename of the previously supported
60     DW_TAG_GNU_call_site.
62 build:
64     - Fix compilation on 32-bit architectures.
66 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>