-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Code Generation Tools
-
CODEGEN-14886
-
-
-
default
-
Mark the affected class/struct/union with the attribute "used"
In programs where class/struct/union objects are assigned a memory location with the "location" attribute, the linker may error with the message:
error: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section, or the section contains padded functions. run placement with alignment fails for section ".TI.bound:<variable>.<k>"... overlaps with ".TI.bound:<variable>.<n>"...
This may occur with -flto enabled, but may also occur during non-LTO compilation if the variable is declared 'static'.
As a workaround, you can:
- Remove and replace the "location" attribute with a "section" attribute
- Modify the linker command file to place the section at the required address from the "location" attribute manually