++segs;
}
- s = bfd_get_section_by_name (abfd,
- NOTE_GNU_PROPERTY_SECTION_NAME);
- if (s != NULL && s->size != 0)
- {
- /* We need a PT_GNU_PROPERTY segment. */
- ++segs;
- }
-
for (s = abfd->sections; s != NULL; s = s->next)
{
if ((s->flags & SEC_LOAD) != 0
pm = &m->next;
}
- s = bfd_get_section_by_name (abfd,
- NOTE_GNU_PROPERTY_SECTION_NAME);
- if (s != NULL && s->size != 0)
- {
- amt = sizeof (struct elf_segment_map) + sizeof (asection *);
- m = bfd_zalloc (abfd, amt);
- if (m == NULL)
- goto error_return;
- m->next = NULL;
- m->p_type = PT_GNU_PROPERTY;
- m->count = 1;
- m->p_flags_valid = 1;
- m->sections[0] = s;
- m->p_flags = PF_R;
- *pm = m;
- pm = &m->next;
- }
-
/* If there is a .eh_frame_hdr section, throw in a PT_GNU_EH_FRAME
segment. */
eh_frame_hdr = elf_eh_frame_hdr (abfd);
+++ /dev/null
-#name: PT_GNU_PROPERTY alignment
-#source: property-bti-pac4.s
-#as: -mabi=lp64
-#ld: -z force-bti -e main
-#readelf: -l --wide
-#target: *linux*
-#warning: .*property-bti-pac4.*: warning: BTI turned on by -z force-bti.*
-
-#...
- GNU_PROPERTY .* +0x8
-#...
+++ /dev/null
-#name: PT_GNU_PROPERTY alignment ILP32
-#source: property-bti-pac4.s
-#as: -mabi=ilp32
-#ld: -m [aarch64_choose_ilp32_emul] -z force-bti -e main
-#readelf: -l --wide
-#target: *linux*
-#warning: .*property-bti-pac4.*: warning: BTI turned on by -z force-bti.*
-
-#...
- GNU_PROPERTY .* +0x4
-#...
+++ /dev/null
- .arch armv8-a
- .file "t.c"
- .text
- .align 2
- .p2align 3,,7
- .global f
- .type f, %function
-f:
- add w0, w0, 1
- ret
- .size f, .-f
- .section .text.startup,"ax",@progbits
- .align 2
- .p2align 3,,7
- .global main
- .type main, %function
-main:
- mov w0, 6
- ret
- .size main, .-main
- .section .note.GNU-stack,"",@progbits