RE: [patch] --filter option in ld: srcfix

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

 



Hi Florian,

Yes, I can build the executable with the suggested option. However, when I run it, I get SEGFAULT. That's exactly what should happen according to the docs.

See attached sample. I had to rename build.sh and remove #!/bin/bash from the top due to the corporate email restrictions.

My proposal does not change the meaning, but makes it more clear.

Thanks,
Andrei

-----Original Message-----
From: Florian Weimer <fweimer@xxxxxxxxxx>
Sent: Thursday, December 9, 2021 8:36 AM
To: PODOPLELOV Andrei <Andrei.PODOPLELOV@xxxxxxx>
Cc: mtk.manpages@xxxxxxxxx; linux-man@xxxxxxxxxxxxxxx; alx.manpages@xxxxxxxxx
Subject: Re: [patch] --filter option in ld: srcfix

* PODOPLELOV Andrei:

> Hi Florian,
>
> Responding to your idea about filtering...

> I just checked the filtering. It does work as expected, means, I
> cannot build main.c using some new symbol, defined only in filtee.c,
> but not in filter.c. So the runtime won't use the full set of filtee's
> symbols, but just a subset, defined in the filter.

Looks like ld (the link editor) has filtering,

Try linking with -Wl,-z,undefs, I expect you will see that the symbol is available at run time.

Thanks,
Florian

This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer at 3DS.compliance-privacy@xxxxxxx<mailto:3DS.compliance-privacy@xxxxxxx>


For other languages, go to https://www.3ds.com/terms/email-disclaimer

<<attachment: ld_--filter_option.zip>>


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux