TaiJuWu commented on PR #2076:
URL: https://github.com/apache/nuttx-apps/pull/2076#issuecomment-1736964885

   > > Is there any place which can select linker obj exclude Makefile and 
CmakeList? After compiling, I can see spinlock.o in nuttx but it doesn't be 
linked. As I know I just need to set Makefile and CmakeList and then tools can 
help me to compiler and link them.
   > 
   > Does spinlock.o expose spin_lock function?
   
   Yes, it doest.
   The symbol table show below
   ```
   /home/ubuntu/nuttxSpace/nuttx/sched/spinlock.o:     file format 
elf64-littleriscv
   
   SYMBOL TABLE:
   0000000000000000 l    df *ABS*       0000000000000000 spinlock.c
   0000000000000000 l    d  .text       0000000000000000 .text
   0000000000000000 l    d  .data       0000000000000000 .data
   0000000000000000 l    d  .bss        0000000000000000 .bss
   0000000000000000 l    d  .text.spin_lock     0000000000000000 .text.spin_lock
   0000000000000000 l    d  .text.spin_lock_wo_note     0000000000000000 
.text.spin_lock_wo_note
   0000000000000000 l    d  .text.spin_trylock  0000000000000000 
.text.spin_trylock
   0000000000000000 l    d  .text.spin_trylock_wo_note  0000000000000000 
.text.spin_trylock_wo_note
   0000000000000000 l    d  .text.spin_unlock   0000000000000000 
.text.spin_unlock
   0000000000000000 l    d  .text.spin_unlock_wo_note   0000000000000000 
.text.spin_unlock_wo_note
   0000000000000000 l    d  .text.spin_setbit   0000000000000000 
.text.spin_setbit
   0000000000000000 l    d  .text.spin_clrbit   0000000000000000 
.text.spin_clrbit
   0000000000000000 l    d  .debug_info 0000000000000000 .debug_info
   0000000000000000 l    d  .debug_abbrev       0000000000000000 .debug_abbrev
   0000000000000000 l    d  .debug_loclists     0000000000000000 .debug_loclists
   0000000000000000 l    d  .debug_aranges      0000000000000000 .debug_aranges
   0000000000000000 l    d  .debug_rnglists     0000000000000000 .debug_rnglists
   0000000000000000 l    d  .debug_line 0000000000000000 .debug_line
   0000000000000000 l    d  .debug_str  0000000000000000 .debug_str
   0000000000000000 l    d  .debug_line_str     0000000000000000 .debug_line_str
   0000000000000000 l    d  .comment    0000000000000000 .comment
   0000000000000000 l    d  .debug_frame        0000000000000000 .debug_frame
   0000000000000000 l    d  .riscv.attributes   0000000000000000 
.riscv.attributes
   0000000000000000 g     F .text.spin_lock     000000000000002e spin_lock
   0000000000000000         *UND*       0000000000000000 up_testset
   0000000000000000 g     F .text.spin_lock_wo_note     0000000000000008 
spin_lock_wo_note
   0000000000000000 g     F .text.spin_trylock  0000000000000024 spin_trylock
   0000000000000000 g     F .text.spin_trylock_wo_note  0000000000000008 
spin_trylock_wo_note
   0000000000000000 g     F .text.spin_unlock   000000000000000e spin_unlock
   0000000000000000 g     F .text.spin_unlock_wo_note   0000000000000008 
spin_unlock_wo_note
   0000000000000000 g     F .text.spin_setbit   000000000000005a spin_setbit
   0000000000000000 g     F .text.spin_clrbit   0000000000000062 spin_clrbit
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to