Re: Building Extension on Linux fails with relocation error

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Building Extension on Linux fails with relocation error
Date: 2023-12-22 16:52:11
Message-ID: 20231222165211.btdrstuwkileiyzh@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2023-12-22 10:31:14 -0500, Tom Lane wrote:
> Binaek Sarkar <binaek(at)turbot(dot)com> writes:
> > The issue arises with a Go module that is compiled into a .a archive file
> > using -buildmode=c-archive, leading to a *file size of approximately 393 MB*.
[...]
> > Interestingly, the *build completes successfully when the .a file is
> > smaller* (around 100 MB).
>
> Pure luck I suspect.

I seem to remember a 256MB limit for position independent code on x86.
The current man-page for GCC doesn't mention such a limit, though, so I
may be mistaken.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-12-22 17:29:56 Re: Building Extension on Linux fails with relocation error
Previous Message Tom Lane 2023-12-22 15:31:14 Re: Building Extension on Linux fails with relocation error