Re: [PATCH] x86: fix CFI macro invocations to deal with shortcomings in gas

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Beulich
Date: Tuesday, October 19, 2010 - 11:43 pm

>>> On 19.10.10 at 23:03, "Alexander van Heukelum" <heukelum@fastmail.fm> wrote:

It escapes me where it would split the obviously single argument, and
I know I checked all official versions from 2.15 onwards. Could you
try whether that specific gas would be okay with

     pushl_cfi ((60)-(8192)+8+4*4)(%esp)

I had intentionally removed the surrounding parentheses since
those are considered by newer gas when determining arguments,
and thus I could expose eventual problems with older gas even
on newer versions.

Further, could you experiment (or ideally debug) where is splits
the argument. Something like

.macro m arg1 arg2=0
	.long	\arg1, \arg2
.endm

.data
_start:
	m	(60)-(8192)+8+4*4

might be handy - assembling with -alm=<filename> should allow
you to inspect where the argument got split.

Thanks, Jan

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] x86: fix CFI macro invocations to deal with s ..., Alexander van Heukelum, (Tue Oct 19, 2:03 pm)
[tip:x86/debug] x86, asm: Fix CFI macro invocations to dea ..., tip-bot for Jan Beulich, (Tue Oct 19, 5:55 pm)
Re: [PATCH] x86: fix CFI macro invocations to deal with s ..., Jan Beulich, (Tue Oct 19, 11:43 pm)
Re: [PATCH] x86: fix CFI macro invocations to deal with s ..., Alexander van Heukelum, (Wed Oct 20, 11:11 am)
Re: [tip:x86/debug] x86, asm: Fix CFI macro invocations to ..., Alexander van Heukelum, (Thu Oct 21, 2:30 pm)
[tip:x86/debug] x86, asm: Fix ancient-GAS workaround, tip-bot for Alexande ..., (Fri Oct 22, 2:55 am)