Force files into specific linker section

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Force files into specific linker section

ソリューションへジャンプ
1,378件の閲覧回数
ignisuti
Contributor IV

I'm trying force standard c files, like float.c, into the protected section of my bootloader as follows:

.GROUP__BOOT__stuff:

            { 

            __LINK_SYM__BOOT__stuff = .;

            Core\Standard_Libraries\float.c (.text)                  

            Core\Standard_Libraries\float.c (.data)

            . = ALIGN(0x8);              

            } > SEG__BOOT__stuff


However, my compiler is complaining about "Linker command file error at line 97 Unexpected Symbol"

Line 97 is the line with (.text).


Any thoughts?

0 件の賞賛
返信
1 解決策
1,222件の閲覧回数
ignisuti
Contributor IV

FYI: I found that I need to list the object (not file) with .obj to make this work.

.GROUP__BOOT__body:

                                { 

                                BOOT__DEBUG.obj (.text)

                                BOOT__DEBUG.obj (.rodata)

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,223件の閲覧回数
ignisuti
Contributor IV

FYI: I found that I need to list the object (not file) with .obj to make this work.

.GROUP__BOOT__body:

                                { 

                                BOOT__DEBUG.obj (.text)

                                BOOT__DEBUG.obj (.rodata)

0 件の賞賛
返信