]> git.ipfire.org Git - thirdparty/grub.git/commit
modules: Make .module_license read-only
authorPeter Jones <pjones@redhat.com>
Wed, 9 Oct 2024 08:16:36 +0000 (09:16 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 10 Oct 2024 11:15:17 +0000 (13:15 +0200)
commit246c82cdae4be6121ad3cede2f2c8995aebf752f
tree6e2c31ab95ef1139baa8111c5f91444b572c987b
parent616adeb80ba9c26a9aad8f248dfb52f3e09bf818
modules: Make .module_license read-only

Currently .module_license is set writable, that is, the section has the
SHF_WRITE flag set, in the module's ELF headers. This probably never
actually matters but it can't possibly be correct. The patch sets that
data as "const" which causes that flag not to be set.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Jan Setje-Eilers <jan.setjeeilers@oracle.com>
Signed-off-by: Mate Kukri <mate.kukri@canonical.com>
Reviewed-By: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/dl.h