> From: Roger Pau Monne <[email protected]>
> Sent: Wednesday, March 2, 2022 2:27 PM
> To: [email protected] <[email protected]>
> Cc: Ross Lagerwall <[email protected]>; [email protected] 
> <[email protected]>; [email protected] <[email protected]>; [email protected] 
> <[email protected]>; Andrew Cooper <[email protected]>; Roger Pau Monne 
> <[email protected]>; Roger Pau Monné <[email protected]>
> Subject: [PATCH 2/4] livepatch: improve rune for fetching of Build ID 
>  
> The current one is broken with my version of readelf and returns
> 'NT_GNU_BUILD_ID'.
> 
> Signed-off-by: Roger Pau Monné <[email protected]>
> ---
>  README.md | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/README.md b/README.md
> index b48a3df..948a7de 100644
> --- a/README.md
> +++ b/README.md
> @@ -16,7 +16,7 @@ $ cp -r ~/src/xen ~/src/xenbuild
>  $ cd ~/src/xen/xen
>  $ make nconfig # Make sure to set CONFIG_LIVEPATCH=y
>  $ make
> -$ BUILDID=$(readelf -Wn xen-syms | awk '/Build ID:/ {print $3}')
> +$ BUILDID=$(readelf -Wn xen-syms | sed -n -e 's/^.*Build ID: //p')
>  ```
>  
>  Next, build a live patch, using a patch and the source, build ID, and
> -- 
> 2.34.1

Reviewed-by: Ross Lagerwall <[email protected]>

Reply via email to