[PATCH] elf: Make tst-ro-dynamic-mod.map compatible with older binutils

Andreas K. Huettel dilfridge@gentoo.org
Mon Jan 20 21:18:26 GMT 2025


Am Montag, 20. Januar 2025, 20:05:40 Mitteleuropäische Normalzeit schrieb Florian Weimer:
> Older versions such as binutils 2.35.2 do not recognize
> PT_GNU_PROPERTY.
> 
> Fixes commit d3f2b71ef1d146137a25dd1367d97a14fac341c6
> ("aarch64: Fix tests not compatible with targets supporting GCS").

Trivial enough, so let's still push it. -a

> 
> Tested on x86_64-linux-gnu.  Current binutils still produces the correct
> note when --enable-cet is used, as far as I can see.
> 
> ---
>  elf/tst-ro-dynamic-mod.map | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/elf/tst-ro-dynamic-mod.map b/elf/tst-ro-dynamic-mod.map
> index 2a158480c0..8fdd2b0ec4 100644
> --- a/elf/tst-ro-dynamic-mod.map
> +++ b/elf/tst-ro-dynamic-mod.map
> @@ -11,5 +11,5 @@ PHDRS
>   text PT_LOAD FLAGS(5) FILEHDR PHDRS;
>   dynamic PT_DYNAMIC FLAGS(4);
>   note PT_NOTE FLAGS(4);
> - gnu_property PT_GNU_PROPERTY FLAGS(4);
> + gnu_property /* PT_GNU_PROPERTY */ 0x6474e553 FLAGS(4);
>  }
> 
> base-commit: b3a6bd625ce96bcec0e5d41b9835b1367d97e548
> 
> 


-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 981 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250120/4bc9d9bb/attachment-0001.sig>


More information about the Libc-alpha mailing list