https://github.com/tianocore/edk2/pull/11535/changes/38760819a84de03127e0d93abd238eee2ce7a6e8
BaseTools/Conf: Make ASLCC_FLAGS independent of CC_FLAGS

This causes GenFW:ConvertELF to fail for gcc builds:
2026-03-24T18:03:39.3828778Z INFO - GenFw: ERROR 3000: Invalid
2026-03-24T18:03:39.3829064Z INFO - WriteSections64(): AARCH64 relative 
relocations require identical ELF and PE/COFF section offsets

I am guessing we need -fno-pic -fno-pie.
Though other divergence seems hazardous?

For now I've copied in all the former flags:
 *_GCC_AARCH64_ASLCC_FLAGS = -mlittle-endian -fno-short-enums -fverbose-asm 
-funsigned-char  -ffunction-sections -fdata-sections -Wno-address 
-fno-asynchronous-unwind-tables -fno-unwind-tables -fno-pic -fno-pie 
-ffixed-x18 -mstack-protector-guard=global

Ideally we could say:
 *_GCC_AARCH64_ASLCC_FLAGS = $(GCC_AARCH64_CC_FLAGS)
maybe:
 *_GCC_AARCH64_ASLCC_FLAGS -= -mstack-protector-guard=global

to remove substrings.

or there'd be a "chain" of "aslcc flags" similar to how there used to be, but 
without
whatever was the problem, i.e. -mstack-protector-guard=global ?

Please advise?

Thank you,
 - Jay

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121887): https://edk2.groups.io/g/devel/message/121887
Mute This Topic: https://groups.io/mt/118870221/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to