* [gentoo-dev] Checking if a package respects LDFLAGS
@ 2017-09-30 17:03 Keri Harris
2017-09-30 18:05 ` Andreas K. Huettel
0 siblings, 1 reply; 5+ messages in thread
From: Keri Harris @ 2017-09-30 17:03 UTC (permalink / raw
To: gentoo-dev
Hi,
Is there a recommended method for testing if a package respects LDFLAGS?
Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS
[1],[2] and portage uses scanelf to check for .hash sections. However it
appears that ld defaults to using a .gnu.hash section:
$ touch test.c
$ gcc -o libtest.so -shared test.c
$ scanelf -qyRF '#k%p' -k .hash libtest.so
$ scanelf -qyRF '#k%p' -k .gnu.hash libtest.so
libtest.so
Maybe I'm missing something obvious.
Thanks
Keri
[1] https://wiki.gentoo.org/wiki/Project:AMD64_Arch_Testers
[2] https://wiki.gentoo.org/wiki/Project:X86/Arch_Testers_FAQ
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Checking if a package respects LDFLAGS
2017-09-30 17:03 [gentoo-dev] Checking if a package respects LDFLAGS Keri Harris
@ 2017-09-30 18:05 ` Andreas K. Huettel
2017-09-30 21:49 ` Robin H. Johnson
0 siblings, 1 reply; 5+ messages in thread
From: Andreas K. Huettel @ 2017-09-30 18:05 UTC (permalink / raw
To: gentoo-dev
Am Samstag, 30. September 2017, 19:03:59 CEST schrieb Keri Harris:
> Hi,
>
> Is there a recommended method for testing if a package respects LDFLAGS?
>
> Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS
> [1],[2] and portage uses scanelf to check for .hash sections. However it
> appears that ld defaults to using a .gnu.hash section:
That test used to work, but it's broken now. We need a new one.
--
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer (council, perl, libreoffice)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Checking if a package respects LDFLAGS
2017-09-30 18:05 ` Andreas K. Huettel
@ 2017-09-30 21:49 ` Robin H. Johnson
2017-10-01 7:02 ` Michał Górny
0 siblings, 1 reply; 5+ messages in thread
From: Robin H. Johnson @ 2017-09-30 21:49 UTC (permalink / raw
To: gentoo-dev
On Sat, Sep 30, 2017 at 08:05:50PM +0200, Andreas K. Huettel wrote:
> Am Samstag, 30. September 2017, 19:03:59 CEST schrieb Keri Harris:
> > Hi,
> >
> > Is there a recommended method for testing if a package respects LDFLAGS?
> >
> > Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS
> > [1],[2] and portage uses scanelf to check for .hash sections. However it
> > appears that ld defaults to using a .gnu.hash section:
> That test used to work, but it's broken now. We need a new one.
How about something similar to Fedora's binary annotations work, or
injecting a .note.gentoo section into binaries (containing literal
C/CXX/LDFLAGS would be useful).
--
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation Asst. Treasurer
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Checking if a package respects LDFLAGS
2017-09-30 21:49 ` Robin H. Johnson
@ 2017-10-01 7:02 ` Michał Górny
2017-10-12 10:56 ` Sergei Trofimovich
0 siblings, 1 reply; 5+ messages in thread
From: Michał Górny @ 2017-10-01 7:02 UTC (permalink / raw
To: gentoo-dev
W dniu sob, 30.09.2017 o godzinie 21∶49 +0000, użytkownik Robin H.
Johnson napisał:
> On Sat, Sep 30, 2017 at 08:05:50PM +0200, Andreas K. Huettel wrote:
> > Am Samstag, 30. September 2017, 19:03:59 CEST schrieb Keri Harris:
> > > Hi,
> > >
> > > Is there a recommended method for testing if a package respects LDFLAGS?
> > >
> > > Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS
> > > [1],[2] and portage uses scanelf to check for .hash sections. However it
> > > appears that ld defaults to using a .gnu.hash section:
> >
> > That test used to work, but it's broken now. We need a new one.
>
> How about something similar to Fedora's binary annotations work, or
> injecting a .note.gentoo section into binaries (containing literal
> C/CXX/LDFLAGS would be useful).
>
Portage team is always happy to accept any patch for this.
--
Best regards,
Michał Górny
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Checking if a package respects LDFLAGS
2017-10-01 7:02 ` Michał Górny
@ 2017-10-12 10:56 ` Sergei Trofimovich
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Trofimovich @ 2017-10-12 10:56 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
On Sun, 01 Oct 2017 09:02:19 +0200
Michał Górny <mgorny@gentoo.org> wrote:
> W dniu sob, 30.09.2017 o godzinie 21∶49 +0000, użytkownik Robin H.
> Johnson napisał:
> > On Sat, Sep 30, 2017 at 08:05:50PM +0200, Andreas K. Huettel wrote:
> > > Am Samstag, 30. September 2017, 19:03:59 CEST schrieb Keri Harris:
> > > > Hi,
> > > >
> > > > Is there a recommended method for testing if a package respects LDFLAGS?
> > > >
> > > > Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS
> > > > [1],[2] and portage uses scanelf to check for .hash sections. However it
> > > > appears that ld defaults to using a .gnu.hash section:
> > >
> > > That test used to work, but it's broken now. We need a new one.
> >
> > How about something similar to Fedora's binary annotations work, or
> > injecting a .note.gentoo section into binaries (containing literal
> > C/CXX/LDFLAGS would be useful).
> >
>
> Portage team is always happy to accept any patch for this.
Tracking bug: https://bugs.gentoo.org/455232
--
Sergei
[-- Attachment #2: Цифровая подпись OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-12 10:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-30 17:03 [gentoo-dev] Checking if a package respects LDFLAGS Keri Harris
2017-09-30 18:05 ` Andreas K. Huettel
2017-09-30 21:49 ` Robin H. Johnson
2017-10-01 7:02 ` Michał Górny
2017-10-12 10:56 ` Sergei Trofimovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox