anjiahao1 commented on PR #9049:
URL: https://github.com/apache/nuttx/pull/9049#issuecomment-1520297511

   @davids5 
   i use stm32f103minum:nsh with current patch
   ```
   There are 19 section headers, starting at offset 0x2d3b0:
   
   Section Headers:
     [Nr] Name              Type            Addr     Off    Size   ES Flg Lk 
Inf Al
     [ 0]                   NULL            00000000 000000 000000 00      0   
0  0
     [ 1] .text             PROGBITS        08000000 010000 00b800 00  AX  0   
0  4
     [ 2] .ARM.exidx        ARM_EXIDX       0800b800 01b800 000008 00  AL  1   
0  4
     [ 3] .data             PROGBITS        20000000 020000 000144 00  WA  0   
0  4
     [ 4] .bss              NOBITS          20000144 020144 000754 00  WA  0   
0  4
     [ 5] .comment          PROGBITS        00000000 020144 00004c 01  MS  0   
0  1
     [ 6] .ARM.attributes   ARM_ATTRIBUTES  00000000 020190 00002b 00      0   
0  1
     [ 7] .debug_abbrev     PROGBITS        00000000 0201bb 0001b1 00      0   
0  1
     [ 8] .debug_info       PROGBITS        00000000 02036c 000777 00      0   
0  1
     [ 9] .debug_line       PROGBITS        00000000 020ae3 0006a4 00      0   
0  1
     [10] .debug_aranges    PROGBITS        00000000 021188 000080 00      0   
0  8
     [11] .debug_line_str   PROGBITS        00000000 021208 0000da 01  MS  0   
0  1
     [12] .debug_str        PROGBITS        00000000 0212e2 000777 01  MS  0   
0  1
     [13] .debug_frame      PROGBITS        00000000 021a5c 0000a4 00      0   
0  4
     [14] .debug_loclists   PROGBITS        00000000 021b00 0009c2 00      0   
0  1
     [15] .debug_rnglists   PROGBITS        00000000 0224c2 0000ac 00      0   
0  1
     [16] .symtab           SYMTAB          00000000 022570 007760 10     17 
1410  4
     [17] .strtab           STRTAB          00000000 029cd0 003613 00      0   
0  1
     [18] .shstrtab         STRTAB          00000000 02d2e3 0000cd 00      0   
0  1
   Key to Flags:
     W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
     L (link order), O (extra OS processing required), G (group), T (TLS),
     C (compressed), x (unknown), o (OS specific), E (exclude),
     D (mbind), y (purecode), p (processor specific)
   ```
   
   without this patch
   
   ```
   $ arm-none-eabi-readelf -S nuttx
   There are 19 section headers, starting at offset 0x2d308:
   
   Section Headers:
     [Nr] Name              Type            Addr     Off    Size   ES Flg Lk 
Inf Al
     [ 0]                   NULL            00000000 000000 000000 00      0   
0  0
     [ 1] .text             PROGBITS        08000000 010000 00b70c 00  AX  0   
0  4
     [ 2] .ARM.exidx        ARM_EXIDX       0800b70c 01b70c 000008 00  AL  1   
0  4
     [ 3] .data             PROGBITS        20000000 020000 000140 00  WA  0   
0  4
     [ 4] .bss              NOBITS          20000140 020140 000754 00  WA  0   
0  4
     [ 5] .comment          PROGBITS        00000000 020140 00004c 01  MS  0   
0  1
     [ 6] .ARM.attributes   ARM_ATTRIBUTES  00000000 02018c 00002b 00      0   
0  1
     [ 7] .debug_abbrev     PROGBITS        00000000 0201b7 0001b1 00      0   
0  1
     [ 8] .debug_info       PROGBITS        00000000 020368 000777 00      0   
0  1
     [ 9] .debug_line       PROGBITS        00000000 020adf 0006a4 00      0   
0  1
     [10] .debug_aranges    PROGBITS        00000000 021188 000080 00      0   
0  8
     [11] .debug_line_str   PROGBITS        00000000 021208 0000da 01  MS  0   
0  1
     [12] .debug_str        PROGBITS        00000000 0212e2 000777 01  MS  0   
0  1
     [13] .debug_frame      PROGBITS        00000000 021a5c 0000a4 00      0   
0  4
     [14] .debug_loclists   PROGBITS        00000000 021b00 0009c2 00      0   
0  1
     [15] .debug_rnglists   PROGBITS        00000000 0224c2 0000ac 00      0   
0  1
     [16] .symtab           SYMTAB          00000000 022570 0076f0 10     17 
1405  4
     [17] .strtab           STRTAB          00000000 029c60 0035d9 00      0   
0  1
     [18] .shstrtab         STRTAB          00000000 02d239 0000cd 00      0   
0  1
   Key to Flags:
     W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
     L (link order), O (extra OS processing required), G (group), T (TLS),
     C (compressed), x (unknown), o (OS specific), E (exclude),
     D (mbind), y (purecode), p (processor specific)
   
   ```


-- 
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