Re: got space

2018-03-21 Thread Camm Maguire
Greetings! This algorithm appears to work: For each GPDISP reloc, check if it corresponds with a local function symbol start address, and if so, set gp to the max got address used so far. (These are 'toplevel' and guaranteed to be run regardless of branch evaluation.) Then when processing LITER

Re: got space

2018-03-21 Thread Camm Maguire
Greetings, and thanks so much for your reply! As GCL has control over the linker, I think I see a solution for its needs, but it will, as you suggest, entail moving the gp register around within a give .o file. Judicious repetition of the got entries as needed should ensure that any given setting

Re: got space

2018-03-20 Thread Michael Cree
On Mon, Mar 19, 2018 at 12:47:25PM -0400, Camm Maguire wrote: > There are a few very large C source files in acl2 which are overflowing > the 16bit gp relative relocation scheme for ELF_LITERAL relocations, > pertaining to static functions. Each function produces a reloc to .text > with a unique a