]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Only check for valid Morello bounds on non-exec syms
authorMatthew Malcomson <matthew.malcomson@arm.com>
Thu, 13 Oct 2022 10:20:16 +0000 (11:20 +0100)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Thu, 13 Oct 2022 10:22:54 +0000 (11:22 +0100)
commiteee3fada8163443b4bb5eeccf84f45a1accd03c4
tree79c612037b584234ee586e611736c2d6d7cf4063
parent36b6002396dc0898b6f7097bca4589fefabaac87
Only check for valid Morello bounds on non-exec syms

Capabilities pointing to symbols in SEC_CODE sections are given the
bounds of the entire PCC.  We ensure that the PCC bounds are padded and
aligned as needed in the linker.

Capabilities pointing to other symbols (e.g. in data sections) are given
the bounds of the symbol that they point to.  It is the responsibility
of the assembly generator (i.e. usually the compiler) to ensure these
bounds are correctly aligned and padded as necessary.

We emit a warning for imprecise bounds in the second case, until this
patch that warning also looked at the first case.  This was a mistake
and is rectified in this commit.
bfd/elfnn-aarch64.c
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/morello-large-function.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/morello-large-function.s [new file with mode: 0644]