Two copies of constant appearing in the compiled Elf
问题 We are basically using sparc architecture and our language is Ada we are using gnat compiler to compile our code. We observed something funny. Some of the constant in our code are having two or more copies. file.adb: With FileConsts; USE FileConsts Procedure SomeProcedure is A : LONG_FLOAT; Begin A := cSomeConstant; End SomeProcedure; FileConsts.ads cSomeConstant : CONSTANT LONG_FLOAT := 100.0; In the Map file we have basically .rodata 0x40010000 (0x8)file.o .rodata 0x40010008 pfileconsts_