From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: ian@zembu.com (Ian Lance Taylor) Cc: bfd@cygnus.com Subject: Mixing REL and RELA Date: Thu, 15 Apr 1999 14:15:00 -0000 Message-id: References: <19990415205901.3326.qmail@daffy.airs.com> X-SW-Source: 1999/msg00093.html > If REL works now, there is probably no reason to switch to RELA. The > only reason I can think of would be if the compiler can gain an > advantage by splitting instructions which require relocations. It is > sometime possible to make that work with REL instructions anyhow. > > It would also be possible for the linker to support REL and RELA > relocations simultaneously, so there would be no need for a big > cutover. We would just change gas to start generating RELA > relocations, and then after a while we could throw away the REL > support. > > But I don't see a reason to do that if the code works now. > Does the linker support mixing REL and RELA on any targets? How CPU depedent is this support? It may be useful to CPUs other than ARM. -- H.J. Lu (hjl@gnu.org)