Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yasm for openSUSE:Factory checked in at 2022-11-08 10:53:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yasm (Old) and /work/SRC/openSUSE:Factory/.yasm.new.1597 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yasm" Tue Nov 8 10:53:11 2022 rev:32 rq:1034085 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/yasm/yasm.changes 2019-08-15 12:25:26.554605559 +0200 +++ /work/SRC/openSUSE:Factory/.yasm.new.1597/yasm.changes 2022-11-08 10:53:14.825347633 +0100 @@ -1,0 +2,7 @@ +Sat Nov 5 17:18:41 UTC 2022 - Larry Finger <larry.fin...@gmail.com> + +- Modify yasm to support .note.gnu.property note section + Patch from https://src.fedoraproject.org/rpms/yasm/pull-request/1#_2. + File "yasm-Update-elf-objfmt.c.patch" added. + +------------------------------------------------------------------- New: ---- yasm-Update-elf-objfmt.c.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yasm.spec ++++++ --- /var/tmp/diff_new_pack.ueK11l/_old 2022-11-08 10:53:15.445351323 +0100 +++ /var/tmp/diff_new_pack.ueK11l/_new 2022-11-08 10:53:15.449351347 +0100 @@ -1,7 +1,7 @@ # # spec file for package yasm # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,7 @@ Patch0: %{name}-no-build-date.patch Patch1: %{name}-no-rpm-opt-flags.patch Patch2: yasm-re2c-nogendate.patch +Patch3: yasm-Update-elf-objfmt.c.patch BuildRequires: python3-devel BuildRequires: xmlto @@ -51,6 +52,7 @@ %patch0 -p1 %patch1 %patch2 -p1 +%patch3 -p1 %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects ++++++ yasm-Update-elf-objfmt.c.patch ++++++ From: kalebskeithley <ka...@redhat.com> Date: Thu, 21 May 2020 09:12:36 -0400 Subject: [PATCH] Update elf-objfmt.c tl;dnr: add support for note.gnu.property note sections. ceph has a few optimized crc32 routines hand written in assembly in yasm format. (Nobody appears to have the stomach for rewriting them in another format.) Fedora requires that libraries be CET enabled. IOW all .o comprising a shared library need a note.gnu.properties NOTE section with some magic bits that tell the linker that the .o was compiled with the appropriate options. I can add such a note section, but without this change yasm will not set the correct section flag and I have to resort to some dd magic to set the correct section type before linking all the .o files into the shlib. --- modules/objfmts/elf/elf-objfmt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/objfmts/elf/elf-objfmt.c b/modules/objfmts/elf/elf-objfmt.c index 0c3a1426..c4360c03 100644 --- a/modules/objfmts/elf/elf-objfmt.c +++ b/modules/objfmts/elf/elf-objfmt.c @@ -1077,6 +1077,10 @@ elf_objfmt_section_switch(yasm_object *object, yasm_valparamhead *valparams, align = 0; data.type = SHT_PROGBITS; data.flags = 0; + } else if (strcmp(sectname, ".note.gnu.property") == 0) { + align = 8; + data.type = SHT_NOTE; + data.flags = 0; } else { /* Default to code */ align = 1;