• Alexander Lobakin's avatar
    vmlinux.lds.h: catch more UBSAN symbols into .data · fa07eca8
    Alexander Lobakin authored
    LKP triggered lots of LD orphan warnings [0]:
    
    mipsel-linux-ld: warning: orphan section `.data.$Lubsan_data299' from
    `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_data299'
    mipsel-linux-ld: warning: orphan section `.data.$Lubsan_data183' from
    `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_data183'
    mipsel-linux-ld: warning: orphan section `.data.$Lubsan_type3' from
    `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_type3'
    mipsel-linux-ld: warning: orphan section `.data.$Lubsan_type2' from
    `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_type2'
    mipsel-linux-ld: warning: orphan section `.data.$Lubsan_type0' from
    `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_type0'
    
    [...]
    
    Seems like "unnamed data" isn't the only type of symbols that UBSAN
    instrumentation can emit.
    Catch these into .data with the wildcard as well.
    
    [0] https://lore.kernel.org/linux-mm/202102160741.k57GCNSR-lkp@intel.com
    
    Fixes: f41b233d ("vmlinux.lds.h: catch UBSAN's "unnamed data" into data")
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Signed-off-by: default avatarAlexander Lobakin <alobakin@pm.me>
    Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
    fa07eca8
vmlinux.lds.h 32.1 KB