public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* LD_AUDIT shared object using multiple object files
@ 2022-05-01  2:16 Farid Zakaria
  2022-05-01  7:07 ` Florian Weimer
  0 siblings, 1 reply; 3+ messages in thread
From: Farid Zakaria @ 2022-05-01  2:16 UTC (permalink / raw)
  To: Libc-help

Hello!

I am trying to write a small problem to leverage the rtld audit[1] API
however I am running into an issue I am not sure I understand.

When I have restricted my program to a single object file (compilation
unit), everything works _peachy_. I am able to set LD_AUDIT
accordingly and things work as I expect.

I then try to refactor my code into smaller object files (trying to be
a good code citizen), but then the solution stopped working.

I am greeted with some "unresolved symbol" messages for the new
compilation units.

Is there a way around this?

PS: I also built a binary and verified that everything works
correctly, since my main() runs successfully, so my code structure is
sound as far as I can tell.

[1] https://man7.org/linux/man-pages/man7/rtld-audit.7.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LD_AUDIT shared object using multiple object files
  2022-05-01  2:16 LD_AUDIT shared object using multiple object files Farid Zakaria
@ 2022-05-01  7:07 ` Florian Weimer
  2022-05-02 17:13   ` Farid Zakaria
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2022-05-01  7:07 UTC (permalink / raw)
  To: Farid Zakaria via Libc-help; +Cc: Farid Zakaria

* Farid Zakaria via Libc-help:

> I am trying to write a small problem to leverage the rtld audit[1] API
> however I am running into an issue I am not sure I understand.
>
> When I have restricted my program to a single object file (compilation
> unit), everything works _peachy_. I am able to set LD_AUDIT
> accordingly and things work as I expect.
>
> I then try to refactor my code into smaller object files (trying to be
> a good code citizen), but then the solution stopped working.
>
> I am greeted with some "unresolved symbol" messages for the new
> compilation units.
>
> Is there a way around this?

This problem doesn't sound very audit-related.  You'll have to provide
more details for what you are doing.

Thanks,
Florian


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LD_AUDIT shared object using multiple object files
  2022-05-01  7:07 ` Florian Weimer
@ 2022-05-02 17:13   ` Farid Zakaria
  0 siblings, 0 replies; 3+ messages in thread
From: Farid Zakaria @ 2022-05-02 17:13 UTC (permalink / raw)
  To: Florian Weimer; +Cc: Farid Zakaria via Libc-help

I was doing something very silly and solved it.

I had mis-configured something in my build process.
I am sorry for the needless e-mail and thank you Florian for taking
the time to have read it nonetheless.

FZ

On Sun, May 1, 2022 at 12:07 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Farid Zakaria via Libc-help:
>
> > I am trying to write a small problem to leverage the rtld audit[1] API
> > however I am running into an issue I am not sure I understand.
> >
> > When I have restricted my program to a single object file (compilation
> > unit), everything works _peachy_. I am able to set LD_AUDIT
> > accordingly and things work as I expect.
> >
> > I then try to refactor my code into smaller object files (trying to be
> > a good code citizen), but then the solution stopped working.
> >
> > I am greeted with some "unresolved symbol" messages for the new
> > compilation units.
> >
> > Is there a way around this?
>
> This problem doesn't sound very audit-related.  You'll have to provide
> more details for what you are doing.
>
> Thanks,
> Florian
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-02 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-01  2:16 LD_AUDIT shared object using multiple object files Farid Zakaria
2022-05-01  7:07 ` Florian Weimer
2022-05-02 17:13   ` Farid Zakaria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).