coreutils
[Top][All Lists]
Advanced

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

Re: "ls -l": Avoid unnecessary getxattr() overhead


From: Bernhard Voelker
Subject: Re: "ls -l": Avoid unnecessary getxattr() overhead
Date: Mon, 27 Feb 2012 21:15:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2

On 02/26/2012 09:41 AM, Jim Meyering wrote:
>> Maybe, but why is LD_PRELOAD honoring the "__attribute__((destructor))",
>> and on some systems not?
>
> Good question.
> There must be some OpenSuSE 12.1 users willing to investigate.
> Filing a bug report should get their attention.

I got an answer on the opensuse mailing list:
(http://lists.opensuse.org/opensuse/2012-02/msg01342.html)

It's a problem when linking with LD directly:

  Cristian Rodríguez wrote:
  > Bernhard Voelker wrote:
  > > This works here, too:
  > >
  > >    gcc -shared -fPIC -O2 k.c -o k.so
  > >
  > > Can you confirm the failure when compiling + linking
  > > is done in 2 separate steps?
  >
  > Well, I expected that to fail so didnt bothered.. You know..
  > distributions have a crapload of broken makefiles that link with LD
  > directly. it fails in subtle ways when you do so, when using GCC, it
  > passes the right options to the linker so we avoid nasty surprises...

I've created the attached patch to make the test pass.

Have a nice day,
Berny

Attachment: ls-getxattr.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]