0

i use vitis program. i want to make section and use this. but, error occured.

(.text+0x2c): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against symbol `gMyClass' defined in .MySection section in~~

this error is solved when CMyClass() construct is deleted. how can i resolve this error? thank you for your help.

program source is follow.

//A.h
CMyClass
{
public:
    CMyClass()
    {
    }
};

//b.cpp
#include "A.h"
CMyClass    gMyClass    __attribute__((section(".MySection")));

//section define(*.ld)
.MySection : {
    __MySection_start = .;
    *(.MySection)
    __MySection_end = .;
}> ddr_MEM
Jane
  • 1

0 Answers0