embench / embench-iot

The main Embench repository
https://www.embench.org/
GNU General Public License v3.0
258 stars 104 forks source link

Update link.ld #181

Closed davidharrishmc closed 1 year ago

davidharrishmc commented 1 year ago

Data segment needs to be aligned to prevent store misalignment faults. Change linker script.

jnk0le commented 1 year ago

4KiB of alignment is a lot. Usually 4 or 8 bytes is enough

davidharrishmc commented 1 year ago

I don't think it matters what the alignment is and a multiple of 4k made the obj dump easy to read, but I've changed it to 8 bytes.

jeremybennett commented 1 year ago

Thanks @davidharrishmc. This looks good to me.