lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Will Metcalf wrote:
> It appears as if I don't have a define for __solaris__ but do for
> __sun__ and __srv4__.

Hmm, strange. Lots of software out there has '#ifdef __solaris__'.

> lj_tab_len                          0x4aa       lj_vm_dyn.o
> [...]
> lj_err_throw                        0x3037      lj_vm_dyn.o
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status

Ouch. I guess Solaris handles internal relocations in PIC
libraries differently than all other ELF systems. I'd need to see
what assembler code the compiler generates for that. Maybe the
problem is related to the change you made to the hidden visibility
of the internal functions? Might be hard to fix, though.

But there's an easier solution: if you don't need the shared
library, then comment out BUILDMODE= static in src/Makefile.
Maybe the static build works at least ...

--Mike