kdrag0n/proton-clang

20200831 build Error - relocation R_AARCH64_ABS32

anht3889 opened this issue · 2 comments

Hi sir,

I'm building my kernel with your great proton-clang. However, I encounter the following error.
My source: https://github.com/anht3889/LGE_G820_Kernel/tree/proton_clang
Build script: ./build.sh
Errors:

WARNING: EXPORT symbol "gsi_write_channel_scratch" [vmlinux] version generation failed, symbol will not be versioned.
aarch64-linux-gnu-ld: drivers/platform/msm/gsi/gsi.o: relocation R_AARCH64_ABS32 against `__crc_gsi_write_channel_scratch' can not be used when making a shared object
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_complete_clk_grant+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_complete_clk_grant+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_map_base+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_map_base+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_unmap_base+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_unmap_base+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_register_device+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_register_device+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_device_scratch+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_device_scratch+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_deregister_device+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_deregister_device+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_alloc_evt_ring+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_alloc_evt_ring+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_evt_ring_scratch+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_evt_ring_scratch+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_dealloc_evt_ring+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_dealloc_evt_ring+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_query_evt_ring_db_addr+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_query_evt_ring_db_addr+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_ring_evt_ring_db+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_ring_evt_ring_db+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_ring_ch_ring_db+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_ring_ch_ring_db+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_reset_evt_ring+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_reset_evt_ring+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_get_evt_ring_cfg+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_get_evt_ring_cfg+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_set_evt_ring_cfg+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_set_evt_ring_cfg+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_alloc_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_alloc_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_channel_scratch3_reg+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_channel_scratch3_reg+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_channel_scratch+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_write_channel_scratch+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_read_channel_scratch+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_read_channel_scratch+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_update_mhi_channel_scratch+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_update_mhi_channel_scratch+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_query_channel_db_addr+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_query_channel_db_addr+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_start_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_start_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_stop_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_stop_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_stop_db_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_stop_db_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_reset_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_reset_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_dealloc_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_dealloc_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_query_channel_info+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_query_channel_info+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_is_channel_empty+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_is_channel_empty+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_queue_xfer+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_queue_xfer+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_start_xfer+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_start_xfer+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_poll_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_poll_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_poll_n_channel+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_poll_n_channel+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_config_channel_mode+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_config_channel_mode+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_get_channel_cfg+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_get_channel_cfg+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_set_channel_cfg+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_set_channel_cfg+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_configure_regs+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_configure_regs+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_enable_fw+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_enable_fw+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_get_inst_ram_offset_and_size+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_get_inst_ram_offset_and_size+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_halt_channel_ee+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_halt_channel_ee+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_alloc_channel_ee+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_alloc_channel_ee+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_chk_intset_value+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_chk_intset_value+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_map_virtual_ch_to_per_ep+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_map_virtual_ch_to_per_ep+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_wdi3_write_evt_ring_db+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_wdi3_write_evt_ring_db+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_wdi3_dump_register+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(___ksymtab+gsi_wdi3_dump_register+0x8): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(.data+0x0): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(.data+0x28): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(.data+0x50): dangerous relocation: unsupported relocation
drivers/platform/msm/gsi/gsi.o:(.initcall3.init+0x0): dangerous relocation: unsupported relocation

Would you please help me on this. Thanks so much!

@xzr467706992 Thank you so much. It's good to go now.