#
6700e2d9 |
| 24-Jan-2025 |
Konstantin Belousov <kib@FreeBSD.org> |
csu: add the "Retain" flag to notes sections flag
It should make the notes immune against --gc-sections.
Reported and tested by: bapt Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
522126fe |
| 12-Oct-2023 |
Andrew Turner <andrew@FreeBSD.org> |
csu: Teach csu about PAC and BTI
Add the Branch Target Identification (BTI) note to libc assembly sources and Pointer Authentication Code (PAC) instructions to _init and _fini.
_init and _fini may
csu: Teach csu about PAC and BTI
Add the Branch Target Identification (BTI) note to libc assembly sources and Pointer Authentication Code (PAC) instructions to _init and _fini.
_init and _fini may be called indirectly so need a BTI landing pad. As they are non-leaf functions use the appropriate PAC instruction that also guards against changing the link register.
As all object files need the note for any binary using these object files we need to insert it in all asm files.
Reviewed by: markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D42227
show more ...
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
74ad8d60 |
| 18-Nov-2022 |
John Baldwin <jhb@FreeBSD.org> |
csu: Add missing GNU-stack annotations to note object files.
ld.bfd marks the stack as executable for the crt objects due to the missing annotations which raises a fatal warning starting with versio
csu: Add missing GNU-stack annotations to note object files.
ld.bfd marks the stack as executable for the crt objects due to the missing annotations which raises a fatal warning starting with version 2.39.
show more ...
|
Revision tags: release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0 |
|
#
c7aa572c |
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
0bfad432 |
| 16-Jul-2020 |
John Baldwin <jhb@FreeBSD.org> |
Include ABI note tag in shared libraries.
Split the ELF feature note into a separate file that is linked into *crt1.o the same as crtbrand.S was before. crtbrand.o is now linked into crti.o on all
Include ABI note tag in shared libraries.
Split the ELF feature note into a separate file that is linked into *crt1.o the same as crtbrand.S was before. crtbrand.o is now linked into crti.o on all platforms in addition to *crt1.o.
Reviewed by: kib Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D25304
show more ...
|
#
99282790 |
| 15-Jun-2020 |
John Baldwin <jhb@FreeBSD.org> |
Remove the sed hack for ABI tag notes.
The ELF notes compiled in C were placed in a section with the wrong type (SHT_PROGBITS instead of SHT_NOTE). Previously, sed was used on the generated assembl
Remove the sed hack for ABI tag notes.
The ELF notes compiled in C were placed in a section with the wrong type (SHT_PROGBITS instead of SHT_NOTE). Previously, sed was used on the generated assembly to rewrite the section type. Instead, write the notes in assembly which permits setting the correct section type directly.
While here, move inline assembly entry points out of C and into assembly for aarch64, arm, and riscv.
Reviewed by: kib Tested on: amd64 (cirrus-ci), riscv64 Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D25211
show more ...
|