Re: OCaml + binutils 2.35 on i386

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

 



On Wed, Aug 05, 2020 at 09:54:14AM +0200, Florian Weimer wrote:
> * Richard W. M. Jones:
> 
> > On Tue, Aug 04, 2020 at 01:48:45PM -0600, Jerry James wrote:
> >> When ocamlopt is used with binutils 2.35 to link an executable, we now
> >> get warnings that look like this:
> >> 
> >> /usr/bin/ld: tests/test_topsort.o: warning: relocation in read-only
> >> section `.text'
> >> /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
> >
> > 32 bit is an architectural problem for OCaml.  Specifically because of
> > how the GC block headers are implemented it limits arrays / strings to
> > a maximum of 4M entries / 4M bytes, which was probably fine back in
> > the day but is unreasonably small today. [1]
> 
> I don't see how this is related to text relocations.
> 
> The problem seems to be lack of PIE support in ocamlopt on i386, as
> correctly identified by the warning.

I mean any time spent fixing OCaml on 32 bit is time wasted.
If it happens on x86-64 then that's a problem we need to look at.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux