On 11/6/2024 3:41 AM, Leif Lindholm via groups.io wrote:
No, I mean I'm building current edk2 HEAD unmodified, with current
in-tree BaseTools.
With GCC 14.2.0 using GCC profile, and clang 16.0.2 using CLANGDWARF profile.
(On Debian "testing".)
Hmm, that is odd indeed.
To fix this for stack cookies, my PR converts ResetVector to be
USER_DEFINED so that BaseTools will not link NULL libs against it.
Worth a shot seeing if making that change (you need to change the
RESETVECTOR rule in the FDF from SEC to USER_DEFINED also) makes
a difference. If this is not being caused by a null library
linkage, then I have no idea what is happening :).
I can confirm the above workaround fixes the build for both toolchain profiles.
Thanks a lot, that means I can get back to verifying my actual changes :)
Glad to hear it! If you want to review my PR where I change the type, it
is here: https://github.com/tianocore/edk2/pull/6381. It is a large PR
to bring in the dynamic stack cookies, too, I can split it into two if
desired (waiting to hear back from Mike Kinney on whether he wants it in
two).
Thanks,
Oliver
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120742): https://edk2.groups.io/g/devel/message/120742
Mute This Topic: https://groups.io/mt/108931674/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-