]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/link-vmlinux.sh
platform/x86: intel_pmc_core: Clean up: Remove comma after the termination line
[linux.git] / scripts / link-vmlinux.sh
index 2998ddb323e3c00ba9087a6acf81484387676724..436379940356130eb1cd4b2a20ded511e4a8b4c8 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}
 }