lkml.org 
[lkml]   [2002]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] BUG preserve registers
"Eric W. Biederman" wrote:
>
> One possibility is to do something like:
>
> ud2
> .word __LINE__
> .long 1f
> .section __FILE__
> .linkonce discard
> 1: .asciz __FILE__
> .previous
>
> Which will put each filename string in it's own section and let the
> linker merge the duplicates.

That would work. When it didn't I r'ed tfm:

http://www.gnu.org/manual/gas-2.9.1/html_node/as_102.html

"This directive is only supported by a few object file formats;
as of this writing, the only object file format which supports
it is the Portable Executable format used on Windows NT."


-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.090 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site