This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: SuperH PIC Support
- To: gniibe AT chroot dot org
- Subject: Re: SuperH PIC Support
- From: Ian Lance Taylor <ian AT zembu dot com>
- Date: 16 Sep 1999 23:52:15 -0400
- CC: binutils AT sourceware.cygnus dot com
- References: <199909170118.KAA30125@pwd.chroot.org>
Date: Fri, 17 Sep 1999 10:18:59 +0900
From: NIIBE Yutaka <gniibe@chroot.org>
32-bit version is simple and straightforward, while 16-bit version is
somewhat tricky. My personal opinion is 16-bit version is better as
"smaller is better".
But 16-bit version has the 64K limit for GOT size and the number of
entries for relocation table.
So, here is my question. Is the 64K limit resonable?
Similar issues arise on several processors. The conventional answer
is to support both. -fpic generates code that only works if the GOT
size is less than 64K (or whatever, but 64K is common). -fPIC
generates code which always works. See the gcc documentation.
This permits users to decide whether they want the simpler, more
efficient, limited solution, or the complicated, less efficient,
unlimited solution.
Ian