irqchip/gic-v4.1: Set vpe_l1_base for all redistributors
[linux-2.6-microblaze.git] / scripts / link-vmlinux.sh
index 2998ddb..4363799 100755 (executable)
@@ -127,8 +127,9 @@ gen_btf()
                cut -d, -f1 | cut -d' ' -f2)
        bin_format=$(LANG=C ${OBJDUMP} -f ${1} | grep 'file format' | \
                awk '{print $4}')
-       ${OBJCOPY} --set-section-flags .BTF=alloc -O binary \
-               --only-section=.BTF ${1} .btf.vmlinux.bin 2>/dev/null
+       ${OBJCOPY} --change-section-address .BTF=0 \
+               --set-section-flags .BTF=alloc -O binary \
+               --only-section=.BTF ${1} .btf.vmlinux.bin
        ${OBJCOPY} -I binary -O ${bin_format} -B ${bin_arch} \
                --rename-section .data=.BTF .btf.vmlinux.bin ${2}
 }