From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100801 invoked by alias); 21 Nov 2018 12:31:25 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 99512 invoked by uid 48); 21 Nov 2018 12:31:14 -0000 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libelf/23903] Uses linux specifc mremap Date: Wed, 21 Nov 2018 12:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libelf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q4/txt/msg00159.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23903 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #1 from Mark Wielaard --- That is a weird error. It means you could compile fine as if mremap was available, but only during linking it is suddenly discovered that there is = no mremap? mremap is needed for supporting ELF_C_RDWR_MMAP with ELF files that grow. S= ee for example the tests/run-copyadd-sections.sh and tests/run-copymany-sections.sh testcases (and the explanation in the second= why we don't use ELF_C_RDWR_MMAP). mremap is used because it is the only way to extend an mmap without moving it. Even on GNU/Linux mremap might fail, in which case writing out an ELF_C_RDWR_MMAPed ELF file might just not work (it normally works when extending the file a little, but not when multiple pages are needed). --=20 You are receiving this mail because: You are on the CC list for the bug.