Closed tkchia closed 3 years ago
The follows( ) function uses pa->os_lign when determining whether an output section pa immediately follows another section pb.
follows( )
pa->os_lign
pa
pb
However, emits( ) was not using this alignment information when laying out and padding the output sections. This seems to be a bug.
emits( )
I suspect that mach/arm/cv/cv.c might need a similar fix.
mach/arm/cv/cv.c
Thanks for both of these. I'm sure arch/arm/cv/cv.c is broken --- it was written decades ago and, AFAICT, never used.
The
follows( )
function usespa->os_lign
when determining whether an output sectionpa
immediately follows another sectionpb
.However,
emits( )
was not using this alignment information when laying out and padding the output sections. This seems to be a bug.I suspect that
mach/arm/cv/cv.c
might need a similar fix.