On 06/02/2015 10:44 PM, H. Peter Anvin wrote:
> Hi guys, another low level question:
> 
> Obviously gcc for i386 requires DS = ES = SS (with FS and GS don't
> care), but does gcc also require CS = DS?

I don't believe so.  In these modern times we don't place switch statement
tables, or other constant data, in the .text section.  Just map the correct
sections to the correct segments and you should be fine.

What advantage are you looking for?


r~

Reply via email to