Commit Graph

4 Commits

Author SHA1 Message Date
Luca Boccassi
58ec8a67f5 Fix wrong binary fields on big endian
Sync with https://github.com/systemd/package-notes/pull/31

On big endian machines we need to swap the first three fields, which
are binary and thus need to match endianess.
Just use LONG() instead of BYTE sequences.
2022-03-26 18:22:42 +00:00
Zbigniew Jędrzejewski-Szmek
41c9a3140e Add --insert-after param to the note generation script
I thought this would allow insertion with ld.gold, but it turns out
that the resulting binary has something wrong with sections. So only the
change to the script is committed, because it makes it much easier to
experiment with various linkers.
2022-01-24 13:09:53 +01:00
Zbigniew Jędrzejewski-Szmek
87708e909b Allow unsetting %_package_note_readonly to drop the READONLY attribute
READONLY is supported in ld.bfd from binutils >= 2.38, though the
patch was backported in rawhide. It is also unsupported by ld.gold,
so let's make it easy to skip it, since things will also work without
it, just a tiny bit worse.
2022-01-22 11:20:25 +01:00
Zbigniew Jędrzejewski-Szmek
c0df21c270 Add package-notes-srpm-macros subpackage to configure rpm builds 2022-01-14 18:50:39 +01:00