]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: don't permit "repeat" expressions with .cfi_{escape,fde_data}
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 10:27:58 +0000 (11:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 10:27:58 +0000 (11:27 +0100)
commit757c681fc2e4a53b1a27c8770b8eb3d5881f731d
tree837ae0fd437725a01d0d87b5ee665638aac24a58
parent898f38f5867aa7e4eea3c349224744e9732763a3
gas: don't permit "repeat" expressions with .cfi_{escape,fde_data}

Repeat counts greater than 1 will emit data directly into the current
(sub-)section. That's wrong with .cfi_*, which defer data emission until
much later: N-1 instances of the specified data would not end up in
.eh_frame (or whatever the section that CFI data was specified to go
into). Simply disallow "repeat" expressions in such cases.
gas/read.c