Re: Alignment of .text sections in object files

2022-05-23 Thread LIU Hao
在 2022-05-23 23:21, Richard Campbell 写道: On Mon, May 23, 2022 at 8:03 AM LIU Hao wrote: So my question is, is it really necessary for .text sections in object files to be aligned to 16-byte boundaries? And could you please kindly elaborate it a little? I believe the relevant requirement is

Alignment of .text sections in object files

2022-05-23 Thread LIU Hao
Good evening, cygwin folks. A few days ago, I had noticed that when targeting Windows and optimizing for size, GAS always output object files containing .text sections with an alignment of 16 bytes (which could be increased, but not decreased), unlike when targeting Linux where .text sections h