c - arm-none-eabi-gcc: SECTIONS: unclear syntax *<archivename>.a: -


i not find clear answer specific problem, after reading several manual pages , guides. work on linker script tool chain mentioned in title. during development tying link static library (archived, .a) location in ram. not accomplish task handling regular .o file in following example:

sections {   outputa 0x10000 :     {     all.o     foo.o (.input1)     }   outputb :     {     foo.o (.input2)     foo1.o (.input1)     }   outputc :     {     *(.input1)     *(.input2)     } } 

after long journey, found hint in question. lead me current solution:

...     .ramlib : align(4)         {             *liblpcspifilib_m3.a: (*);         } > ramloc40  at>mflasha512 ... 

please note colon syntax. link contents of liblpcspifilib block ram. without ":" won't link anything. after found out how solve issue, not find other information behaviour.

can explain me?

for reason information hard find in official gnu docs, assume kind of extension. here on page 50 telling us:

you can specify files within archives writing pattern matching archive, colon, pattern matching file, no whitespace around colon.

‘archive:file’ matches file within archive ‘archive:’ matches whole archive ‘:file’ matches file not 1 in archive 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -