Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Sep 2020 20:34:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 229708] Don't require the program header for ELF files fit in the first page
Message-ID:  <bug-229708-227-REkVodUo99@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229708-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229708-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229708

--- Comment #7 from Alex S <iwtcex@gmail.com> ---
Created attachment 217754
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217754&action=
=3Dedit
executable

(In reply to Konstantin Belousov from comment #6)

> So will you supply me with the library ?

% uname -a
FreeBSD desktop 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC  amd64
% cat libhello.c=20
#include <stdio.h>

__attribute__((constructor))
void hello() {
  printf("Hello there\n");
}
% cc -fPIC -shared libhello.c -o libhello.so
% .../patchelf --version
patchelf 0.9
% .../patchelf --set-soname hellothere.so libhello.so
% readelf -h libhello.so
...
  Start of program headers:          20480 (bytes into file)
  Start of section headers:          15048 (bytes into file)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229708-227-REkVodUo99>