I am running Debian 13 with binutils 2.44 and have come across a problem with event_dump.py

With LTO enabled it fails like this:

$ ./scripts/event_dump.py ./build-sandbox_spl/u-boot
Event type            Id                              Source location
-------------------- ------------------------------ ------------------------------
EVT_FT_FIXUP          bootmeth_vbe_ft_fixup           :?
EVT_FT_FIXUP          bootmeth_vbe_simple_ft_fixup    :?
EVT_LAST_STAGE_INIT   alloc_write_acpi_tables         :?
EVT_LAST_STAGE_INIT   efi_block_device_create         :?
EVT_LAST_STAGE_INIT   install_smbios_table            :?
EVT_MISC_INIT_F sandbox_early_getopt_check build-sandbox_spl/../arch/sandbox/cpu/start.c:61
EVT_TEST              h_adder_simple                  :?

So it cannot find any of the static functions. Adding back the __used attribute does not seem to help.

With LTO disabled it works:

$ ./scripts/event_dump.py ./build-sandbox/u-boot
Event type            Id                              Source location
-------------------- ------------------------------ ------------------------------ EVT_FT_FIXUP bootmeth_vbe_ft_fixup build-sandbox/../boot/vbe_request.c:152 EVT_FT_FIXUP bootmeth_vbe_simple_ft_fixup build-sandbox/../boot/vbe_simple_os.c:53 EVT_LAST_STAGE_INIT alloc_write_acpi_tables build-sandbox/../lib/acpi/acpi_table.c:806 EVT_LAST_STAGE_INIT efi_block_device_create build-sandbox/../lib/efi_driver/efi_block_device.c:236 EVT_LAST_STAGE_INIT install_smbios_table build-sandbox/../lib/efi_loader/efi_smbios.c:59 EVT_MISC_INIT_F sandbox_early_getopt_check build-sandbox/../arch/sandbox/cpu/start.c:61 EVT_TEST h_adder_simple build-sandbox/../test/common/event.c:34

Andrew

Reply via email to