Lines Matching +full:gcc +full:- +full:aarch64 +full:- +full:linux +full:- +full:gnu
5 # it under the terms of the GNU General Public License as published by
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 . $srcdir/test-subr.sh
19 # - testfile-gnu-property-note.c
26 # gcc -fcf-protection -c testfile-gnu-property-note.c
27 # gcc -o testfile-gnu-property-note testfile-gnu-property-note.o
28 # eu-strip --strip-sections testfile-gnu-property-note
30 testfiles testfile-gnu-property-note.o testfile-gnu-property-note
33 testrun_compare ${abs_top_builddir}/src/readelf -n testfile-gnu-property-note.o << EOF
35 Note section [ 6] '.note.gnu.property' of 32 bytes at offset 0x80:
37 GNU 16 GNU_PROPERTY_TYPE_0
42 testrun_compare ${abs_top_builddir}/src/readelf -n testfile-gnu-property-note << EOF
46 GNU 16 GNU_PROPERTY_TYPE_0
51 GNU 16 GNU_ABI_TAG
52 OS: Linux, ABI: 3.2.0
53 GNU 20 GNU_BUILD_ID
57 # NT_VERSION note type clashes with "GNU" owner type NT_GNU_ABI_TAG.
60 testrun_compare ${abs_top_builddir}/src/readelf -n testfile11 << EOF
62 Note section [ 2] '.note.ABI-tag' of 32 bytes at offset 0x128:
64 GNU 16 GNU_ABI_TAG
65 OS: Linux, ABI: 2.2.5
74 # See run-annobingroup.sh
75 testfiles testfile-annobingroup.o
76 testrun_compare ${abs_top_builddir}/src/readelf -n testfile-annobingroup.o << EOF
78 Note section [ 5] '.gnu.build.attributes' of 272 bytes at offset 0x50:
80 GA 16 GNU Build Attribute OPEN
81 Address Range: 0 - 0
83 GA 0 GNU Build Attribute OPEN
84 TOOL: "gcc 8.1.1 20180712"
85 GA 0 GNU Build Attribute OPEN
87 GA 0 GNU Build Attribute OPEN
89 GA 0 GNU Build Attribute OPEN
91 GA 0 GNU Build Attribute OPEN
93 GA 0 GNU Build Attribute OPEN
95 GA 0 GNU Build Attribute OPEN
97 GA 0 GNU Build Attribute OPEN
99 GA 0 GNU Build Attribute OPEN
102 Note section [ 7] '.gnu.build.attributes..text.unlikely' of 216 bytes at offset 0x160:
104 GA 16 GNU Build Attribute FUNC
105 Address Range: 0 - 0
107 GA 0 GNU Build Attribute FUNC
109 GA 0 GNU Build Attribute FUNC
111 GA 0 GNU Build Attribute FUNC
113 GA 0 GNU Build Attribute FUNC
115 GA 0 GNU Build Attribute FUNC
117 GA 0 GNU Build Attribute FUNC
119 GA 0 GNU Build Attribute FUNC
122 Note section [22] '.note.gnu.property' of 48 bytes at offset 0x40c:
124 GNU 32 GNU_PROPERTY_TYPE_0
137 # but GNU Property notes use 4 byte words, with 8 byte padding
145 # .section ".note.gnu.property", "a"
148 # .long 1f - 0f /* name length. */
149 # .long 4f - 2f /* data length. */
152 # .asciz "GNU" /* vendor name. */
157 # .long 4f - 3f /* pr_datasz. */
164 # .long 6f - 5f /* name length. */
165 # .long 8f - 7f /* data length. */
168 # .asciz "GNU" /* vendor name. */
179 # gcc -m64 -c -o testfile_gnu_props_64le.o gnu_props.S
180 # gcc -m32 -c -o testfile_gnu_props_32le.o gnu_props.S
184 testrun_compare ${abs_top_builddir}/src/readelf -n testfile_gnu_props.32le.o << EOF
186 Note section [ 4] '.note.gnu.property' of 52 bytes at offset 0x34:
188 GNU 12 GNU_PROPERTY_TYPE_0
190 GNU 8 GNU_PROPERTY_TYPE_0
194 testrun_compare ${abs_top_builddir}/src/readelf -n testfile_gnu_props.64le.o << EOF
196 Note section [ 4] '.note.gnu.property' of 56 bytes at offset 0x40:
198 GNU 16 GNU_PROPERTY_TYPE_0
200 GNU 8 GNU_PROPERTY_TYPE_0
205 # gcc -m32 -c -o testfile_gnu_props.32be.o gnu_props.S
206 # gcc -m64 -c -o testfile_gnu_props.64be.o gnu_props.S
210 testrun_compare ${abs_top_builddir}/src/readelf -n testfile_gnu_props.32be.o << EOF
212 Note section [ 4] '.note.gnu.property' of 52 bytes at offset 0x34:
214 GNU 12 GNU_PROPERTY_TYPE_0
216 GNU 8 GNU_PROPERTY_TYPE_0
220 testrun_compare ${abs_top_builddir}/src/readelf -n testfile_gnu_props.64be.o << EOF
222 Note section [ 4] '.note.gnu.property' of 56 bytes at offset 0x40:
224 GNU 16 GNU_PROPERTY_TYPE_0
226 GNU 8 GNU_PROPERTY_TYPE_0
230 # - testfile-gnu-property-note.c
237 # gcc -mbranch-protection=standard -c testfile-gnu-property-note.c
238 # gcc -o testfile-gnu-property-note-aarch64 testfile-gnu-property-note.o
239 # eu-strip --remove-section=.gnu.build.attributes \
240 # testfile-gnu-property-note-aarch64
242 testfiles testfile-gnu-property-note-aarch64
243 testrun_compare ${abs_top_builddir}/src/readelf -n testfile-gnu-property-note-aarch64 << EOF
245 Note section [ 2] '.note.gnu.property' of 32 bytes at offset 0x2c8:
247 GNU 16 GNU_PROPERTY_TYPE_0
248 AARCH64 FEATURE_1_AND: 00000003 BTI PAC
250 Note section [ 3] '.note.gnu.build-id' of 36 bytes at offset 0x2e8:
252 GNU 20 GNU_BUILD_ID
255 Note section [ 4] '.note.ABI-tag' of 32 bytes at offset 0x30c:
257 GNU 16 GNU_ABI_TAG
258 OS: Linux, ABI: 3.7.0