This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with renamed static constants in .o file


On Tue, 2004-09-28 at 13:56, Andrew Haley wrote:
> What does the asm output of "gcj -S" look like?
> 
> Andrew.

Here's an excerpt.  The only correct item I see is the "ascii" property
a few lines in.

_Utf2:
	.value	36930
	.value	21
	.ascii	"FOR_OFFICIAL_USE_ONLY"
	.zero	1
.globl _ZN7MyClass22FOR_OFFICIAL_U_SE_ONLYE
	.bss
	.align 4
	.type	_ZN7MyClass22FOR_OFFICIAL_U_SE_ONLYE, @object
	.size	_ZN7MyClass22FOR_OFFICIAL_U_SE_ONLYE, 4
_ZN7MyClass22FOR_OFFICIAL_U_SE_ONLYE:
	.zero	4
	.data
	.align 32
	.type	_FL_MyClass, @object
	.size	_FL_MyClass, 32
_FL_MyClass:
	.long	_Utf1
	.long	_ZN4java4lang6String6class$E
	.value	25
	.value	4
	.long	_ZN7MyClass13STATIC_STRINGE
	.long	_Utf2
	.long	_ZN4java4lang6String6class$E
	.value	25
	.value	4
	.long	_ZN7MyClass22FOR_OFFICIAL_U_SE_ONLYE
	.section	.rodata
	.align 2
	.type	_Utf3, @object
	.size	_Utf3, 4

Just for kicks, I made a few other variables to see if I could duplicate
the problem with other names:

Name : Result
=====================
ABCDEFGHIJKLMNOPQRSTU : no problem
AUCDEFGHIJKLMNOPQRSTU : no problem (replaced "B" with "U")
ABC_EFGHIJKL_UOP_RSTU : duplicates the problem! (put in underscores in
the same relative location as in FOR_OFFICIAL_USE_ONLY and put the U in
the same relative position - an extra underscore is added only after the
first U)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]