Problem with renamed static constants in .o file

Dave Menendez dave@sycamorehq.com
Tue Sep 28 18:21:00 GMT 2004


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)


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /