Re: [PATCH v2 03/12] sandbox: Migrate getopt section to linker list

Andrew Scull
2022-05-16T10:47:43Z

> Looking at this again with a recent fetch of master, LTO is deleting
> the linker list entries for the getopt declarations. Both clang and
> gcc do this. I've not got an idea why at the moment and would love to
> hear any suggestions.

Turns out that this isn't a new problem and include/event.h already
had a work around by adding the 'used' attribute that I copied.

Sorting out the rebase, the tests look better locally, up until they
ask to run as root, which I don't feel comfortable with, so I am
sending it to the CI for more complete coverage.