Since LAM_U48 implies LAM_U57, also set LAM_U57 when setting LAM_U48.
bfd/
* elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
LAM_U57 when setting LAM_U48.
ld/
* ld-x86-64/property-x86-lam-u48-4.d: Updated.
* ld-x86-64/property-x86-lam-u48-5.d: Likewise.
+2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
+ LAM_U57 when setting LAM_U48.
+
2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
PR ld/26256
htab->params->cet_report = prop_report_none;
if (htab->params->lam_u48)
{
- features |= GNU_PROPERTY_X86_FEATURE_1_LAM_U48;
+ features |= (GNU_PROPERTY_X86_FEATURE_1_LAM_U48
+ | GNU_PROPERTY_X86_FEATURE_1_LAM_U57);
htab->params->lam_u48_report = prop_report_none;
+ htab->params->lam_u57_report = prop_report_none;
}
- if (htab->params->lam_u57)
+ else if (htab->params->lam_u57)
{
features |= GNU_PROPERTY_X86_FEATURE_1_LAM_U57;
htab->params->lam_u57_report = prop_report_none;
+2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-x86-64/property-x86-lam-u48-4.d: Updated.
+ * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
+
2021-01-09 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
GNU 0x00000030 NT_GNU_PROPERTY_TYPE_0
- Properties: x86 feature: LAM_U48
+ Properties: x86 feature: LAM_U48, LAM_U57
x86 feature used: x86
x86 ISA used:
Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
GNU 0x00000030 NT_GNU_PROPERTY_TYPE_0
- Properties: x86 feature: LAM_U48
+ Properties: x86 feature: LAM_U48, LAM_U57
x86 feature used: x86
x86 ISA used: