[PATCH 3/4] elf: Avoid linker crash on corrupt .eh_frame section
Jan Beulich
jbeulich@suse.com
Tue Sep 23 14:50:25 GMT 2025
On 23.09.2025 04:23, H.J. Lu wrote:
> Return false on corrupt .eh_frame section. Cap the .eh_frame section
> alignment to the larger of the section size and the pointer size.
Like for patch 2, I'm unconvinced of it being a good idea to build in
heuristics like this. What if someone feels a need to align .eh_frame
to, say, a page boundary?
Also, please format unsigned long-s using %lu or (here) %lx. Especially
when values get large, imo printing them as decimal is unhelpful.
Finally - why would .eh_frame be special in this regard? What about,
say, .sframe?
Jan
More information about the Binutils
mailing list