]> xenbits.xensource.com Git - livepatch-build-tools.git/commitdiff
livepatch-gcc: Ignore buildid.o
authorRaphael Ning <raphning@amazon.com>
Thu, 19 Jan 2023 10:13:05 +0000 (10:13 +0000)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 20 Feb 2023 11:25:42 +0000 (11:25 +0000)
Not all .o files generated by the Xen build need to be passed to
create-diff-object for analysis. The latest example is:

 Run create-diff-object on xen/arch/x86/efi/buildid.o
 Open base
 /usr/libexec/livepatch-build-tools/create-diff-object: ERROR: buildid.o: kpatch_create_section_list: 77: elf_getshdrnum

This file is special, as it does not contain any sections. It is
generated by objcopy from a magic string of bytes (see Xen commit
eee5909e9d1e x86/EFI: use less crude a way of generating the build ID),
which probably will never change. Therefore, livepatch-gcc should not
copy it to the output directory.

Signed-off-by: Raphael Ning <raphning@amazon.com>
Reviewed-by: Bjoern Doebel <doebel@amazon.de>
Reviewed-by: Martin Pohlack <mpohlack@amazon.de>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
livepatch-gcc

index b0b9ce4419999eb91317c2e44c1254d5d01d0dee..fcad80551aa048de25537d2266299449c9eb5db5 100755 (executable)
@@ -68,6 +68,7 @@ elif [[ "$TOOLCHAINCMD" =~ $OBJCOPY_RE ]] ; then
         check.o|\
         boot.o|\
         *.init.o|\
+        buildid.o|\
         .*.o)
             ;;
         *.o)