public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* A possible way to link integer only library with hard float-abi app?
@ 2013-12-11  9:35 Terry Guo
  0 siblings, 0 replies; only message in thread
From: Terry Guo @ 2013-12-11  9:35 UTC (permalink / raw)
  To: gcc

Hi there,

Instructions in the library and hard float-abi app are all supported
by my target. And there is no floating point function call between
those two parts. So the final ELF file by linking them together should
be OK to run on my target. But such link is prevented by linker
because the integer only library is soft float-abi and the app is hard
float-abi. I know the softfp float-abi can work here. But I do need
hard float-abi for my app. I then checked the linker code and found
that if integer only library has attribute (Tag_ABI_FP_number_model ==
0), such check won't be happen, so library and app can be linked.

I am wondering if it is possible to enhance gcc to check whether the
current file uses floating point, if there is no floating point at
all, then set the Tag_ABI_FP_number_model of object file to zero.

Does this make sense? If so, where should I start? Please help.

BR,
Terry

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-11  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-11  9:35 A possible way to link integer only library with hard float-abi app? Terry Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).