This is the mail archive of the mailing list for the GCC 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]

Re: PATCH: ARM EABI GNU/Linux libgcc

Paul Brook wrote:

This can be made static. I probably made it extern before I invented __gnu_unwind_frame.

I'll change that, then.

This is probably the right thing to do, however it breaks arm-none-eabi. This target doesn't have a dynamic loader, so currently uses the markers in .init_array.

It sounds like it could use the symbols inserted by the static linker instead; see below. If that sounds workable to you, I'll adapt the fix to that it does that on arm-none-eabi.

Does teh dynamic loader DTRT with statically linked arm-linux-gnueabi executables?

Yes. In fact, that was my original test case, before moving on to dynamic linking. GLIBC has startup code that runs stuff in .init_array. The static linker inserts symbols marking the beginning/end of the array.

I'm not sure what would happen if you used a non-GNU linker to do the static link -- but I think that nothing would get run. That's not our problem, though.

Mark Mitchell
CodeSourcery, LLC
(916) 791-8304

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