bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/15947] New: objcopy changes the type of the section header


From: milinevskyy at gmail dot com
Subject: [Bug binutils/15947] New: objcopy changes the type of the section header
Date: Thu, 12 Sep 2013 21:49:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=15947

            Bug ID: 15947
           Summary: objcopy changes the type of the section header
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: critical
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: milinevskyy at gmail dot com

Just running objcopy w/o the flags on ELF file changes type of input section
from PROGBITS to NOTE:

mips-openwrt-linux-objcopy /../vmlinux.in /../vmlinux.out
vmlinux.in:
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        80060000 001000 3073c0 00  AX  0   0
32
  [ 2] __ex_table        PROGBITS        803673c0 3083c0 001538 00   A  0   0 
4
  [ 3] __dbe_table       PROGBITS        803688f8 3098f8 000000 00   A  0   0 
1
  [ 4] .notes            NOTE            803688f8 3ccca4 000038 00   A  0   0 
4
  [ 5] .rodata           PROGBITS        80369000 30a000 060ba0 00   A  0   0
32
  [ 6] __ksymtab         PROGBITS        803c9ba0 36aba0 004df0 00   A  0   0 
4
  [ 7] __ksymtab_gpl     PROGBITS        803ce990 36f990 002a68 00   A  0   0 
4
  [ 8] __ksymtab_strings PROGBITS        803d13f8 3723f8 0109fd 00   A  0   0 
1
  [ 9] __init_rodata     PROGBITS        803e1df8 382df8 00035c 00   A  0   0 
4
  [10] __param           PROGBITS        803e2154 383154 0003e0 00   A  0   0 
4
  [11] __modver          PROGBITS        803e2534 383534 000acc 00   A  0   0 
4
  [12] .data             PROGBITS        803e3000 384000 01de20 00  WA  0   0
32
  [13] .init.text        PROGBITS        80401000 3a2000 0210dc 00  AX  0   0 
4
  [14] .init.data        PROGBITS        804220e0 3c30e0 0093e4 00  WA  0   0 
8
  [15] .mips.machines.in PROGBITS        8042b4c4 3cc4c4 000010 00  WA  0   0 
4
  [16] .exit.text        PROGBITS        8042b4d4 3cc4d4 0007d0 00  AX  0   0 
4
  [17] .bss              NOBITS          80430000 3ccca4 02de08 00  WA  0   0
4096
  [18] .mdebug.abi32     PROGBITS        8045de08 3cccdc 000000 00      0   0 
1
  [19] .comment          PROGBITS        00000000 3cccdc 00003a 01  MS  0   0 
1
  [20] .gnu.attributes   LOOS+ffffff5    00000000 3ccd16 000010 00      0   0 
1
  [21] .debug_aranges    MIPS_DWARF      00000000 3ccd28 01a3a8 00      0   0 
8
  [22] .debug_info       MIPS_DWARF      00000000 3e70d0 6446e6 00      0   0 
1
  [23] .debug_abbrev     MIPS_DWARF      00000000 a2b7b6 09efa9 00      0   0 
1
  [24] .debug_line       MIPS_DWARF      00000000 aca75f 1aa801 00      0   0 
1
  [25] .debug_frame      MIPS_DWARF      00000000 c74f60 04add4 00      0   0 
4
  [26] .debug_str        MIPS_DWARF      00000000 cbfd34 0b16d0 01  MS  0   0 
1
  [27] .debug_loc        MIPS_DWARF      00000000 d71404 4bdf93 00      0   0 
1
  [28] .debug_ranges     MIPS_DWARF      00000000 122f398 0fc3d8 00      0   0 
8
  [29] .shstrtab         STRTAB          00000000 132b770 000151 00      0   0 
1
  [30] .symtab           SYMTAB          00000000 132bdc4 05d510 10     31
16593  4
  [31] .strtab           STRTAB          00000000 13892d4 0795bb 00      0   0 
1

vmlinux.out:
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        80060000 001000 3073c0 00  AX  0   0
32
  [ 2] __ex_table        PROGBITS        803673c0 3083c0 001538 00   A  0   0 
4
  [ 3] __dbe_table       PROGBITS        803688f8 3098f8 000000 00   A  0   0 
1
  [ 4] .notes            NOTE            803688f8 3ccca4 000038 00   A  0   0 
4
  [ 5] .rodata           PROGBITS        80369000 30a000 060ba0 00   A  0   0
32
  [ 6] __ksymtab         PROGBITS        803c9ba0 36aba0 004df0 00   A  0   0 
4
  [ 7] __ksymtab_gpl     PROGBITS        803ce990 36f990 002a68 00   A  0   0 
4
  [ 8] __ksymtab_strings PROGBITS        803d13f8 3723f8 0109fd 00   A  0   0 
1
  [ 9] __init_rodata     PROGBITS        803e1df8 382df8 00035c 00   A  0   0 
4
  [10] __param           PROGBITS        803e2154 383154 0003e0 00   A  0   0 
4
  [11] __modver          PROGBITS        803e2534 383534 000acc 00   A  0   0 
4
  [12] .data             PROGBITS        803e3000 384000 01de20 00  WA  0   0
32
  [13] .init.text        PROGBITS        80401000 3a2000 0210dc 00  AX  0   0 
4
  [14] .init.data        PROGBITS        804220e0 3c30e0 0093e4 00  WA  0   0 
8
  [15] .mips.machines.in PROGBITS        8042b4c4 3cc4c4 000010 00  WA  0   0 
4
  [16] .exit.text        PROGBITS        8042b4d4 3cc4d4 0007d0 00  AX  0   0 
4
  [17] .bss              NOBITS          80430000 3ccca4 02de08 00  WA  0   0
4096
  [18] .mdebug.abi32     NOTE            8045de08 3cccdc 000000 00      0   0 
1
  [19] .comment          PROGBITS        00000000 3cccdc 00003a 01  MS  0   0 
1
  [20] .gnu.attributes   LOOS+ffffff5    00000000 3ccd16 000010 00      0   0 
1
  [21] .debug_aranges    MIPS_DWARF      00000000 3ccd28 01a3a8 00      0   0 
8
  [22] .debug_info       MIPS_DWARF      00000000 3e70d0 6446e6 00      0   0 
1
  [23] .debug_abbrev     MIPS_DWARF      00000000 a2b7b6 09efa9 00      0   0 
1
  [24] .debug_line       MIPS_DWARF      00000000 aca75f 1aa801 00      0   0 
1
  [25] .debug_frame      MIPS_DWARF      00000000 c74f60 04add4 00      0   0 
4
  [26] .debug_str        MIPS_DWARF      00000000 cbfd34 0b16d0 01  MS  0   0 
1
  [27] .debug_loc        MIPS_DWARF      00000000 d71404 4bdf93 00      0   0 
1
  [28] .debug_ranges     MIPS_DWARF      00000000 122f398 0fc3d8 00      0   0 
8
  [29] .shstrtab         STRTAB          00000000 132b770 000151 00      0   0 
1
  [30] .symtab           SYMTAB          00000000 132bdc4 05d510 10     31
16593  4
  [31] .strtab           STRTAB          00000000 13892d4 0795bb 00      0   0 
1


As you can see the type of .mdebug.abi32 section has been changed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]