This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Explicitly pass --64 to assembler on AMD64 targets
> On Mon, Jun 13, 2005 at 07:17:24PM -0700, Zack Weinberg wrote:
> > Or, if GAS can be told which mode it should be in via directives in
> > its input (.code32/.code64?), then we could add something like
> >
> > fputs (TARGET_64BIT ? "\t.code64\n" : "\t.code32",
> > asm_out_file);
> >
> > to x86_file_start, and kill the spec hackery altogether.
>
> I'm a fan of such directives. I suspect that we'll have to keep
> the spec hackery for a while yet. We don't usually force binutils
> upgrades with compiler upgrades...
Putting .code64 directive in the assembly file and compiling with gas
defualting to 32bit would result in 32bit elf image containing 64bit
assembly encoding (and will die horribly once we hit missing
relocations)
Honza
>
>
> r~