This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Question on ppc64 and --relax
- From: Douglas B Rupp <rupp at adacore dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Alan Modra <amodra at gmail dot com>
- Date: Mon, 12 Nov 2018 11:56:50 +0100
- Subject: Question on ppc64 and --relax
Greetings,
I understand that ppc64 makes function calls through function
descriptors, but afaict these function descriptors are all output at the
beginning of the .text section so the range of a function call (without
resorting to -mlongcall) isn't substantially better than that found on
ppc32.
ppc32 has --relax which mostly alleviates the need for -mlongcall, which
we try to avoid due to the huge amount of code bloat it causes.
It seems that there might be a use for --relax on ppc64 as well, for the
same reason?
Or possibly I'm missing something here. Please throw me a hint when
convenient.
--Douglas Rupp
AdaCore