>> Which warning? >> > > warning: relocation refers to discarded section I noticed this with before when different .o files have comdats with different content. Can you check if that is the case? If so, which compiler was used to produce both .o files? Cheers, Rafael