[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error: can't resolve `.hcu.uncommon_code' {.hcu.uncommon_code section} -
From: |
Kristis Makris |
Subject: |
Error: can't resolve `.hcu.uncommon_code' {.hcu.uncommon_code section} - `.LFB17' {.text section} |
Date: |
Fri, 20 Apr 2007 18:55:33 -0700 |
Hello,
I'm running into trouble with the assembler when compiling code written
in C that contains extended inline assembly. The end result is that the
assembler gives me the error:
/tmp/ccAyM42z.s: Assembler messages:
/tmp/ccAyM42z.s:787: Error: can't resolve
`.hcu.uncommon_code' {.hcu.uncommon_code section} - `.LFB17' {.text
section}
I'm not sure I understand what the error means. But I have been able to
produce two cases where in one the assembler gives this error and one in
which it doesn't.
I have been trying to use the ".section" directive to flag parts of the
code to reside in a separate section. I'm wondering if I am using this
directive in an unexpected way. The only documentation I could find
(which seems quite outdated -- from 1994) was:
http://www.gnu.org/software/binutils/manual/gas-2.9.1/html_mono/as.html#SEC119
I did not see any limitations described there (I'm building ELF files,
not a.out). I'm essentially using the ".section some_name" directive
multiple times even when there's hasn't been a section change (e.g. a
".text" in between two ".section some_name"). The goal of this attempt
is to place uncommonly used code in a separate memory location for
better cache locality.
I'm getting the error with gas 2.15. GNU assembler version 2.15
(i386-linux) using BFD version 2.15
I'm getting this error when I try to compile my main C file with either
gcc 3.3.5, 2.95.4, 4.1.2, or icc 9.1.049. I have a feeling I'm doing
something terribly wrong!
I'm attaching the two testcases I have, one that assembles and one that
doesn't. Is the assembly code that fails written wrong ?? Note that in
the one that assembles, there _are_ cases where the same ".section
some_name" is defined multiple times without another section (e.g.
".text") in between.
Is this a bug in the assembler ?
Thanks for any help.
Kristis
assembles.S
Description: Text document
does_not_assemble.S
Description: Text document
- Error: can't resolve `.hcu.uncommon_code' {.hcu.uncommon_code section} - `.LFB17' {.text section},
Kristis Makris <=