davidgiven / ack

The Amsterdam Compiler Kit
http://tack.sf.net
Other
420 stars 59 forks source link

aslod: fix: use section alignments when computing section sizes #226

Closed tkchia closed 3 years ago

tkchia commented 3 years ago

The follows( ) function uses pa->os_lign when determining whether an output section pa immediately follows another section pb.

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.

davidgiven commented 3 years ago

Thanks for both of these. I'm sure arch/arm/cv/cv.c is broken --- it was written decades ago and, AFAICT, never used.