[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/855] New: objcopy creates invalid object
From: |
schwab at suse dot de |
Subject: |
[Bug binutils/855] New: objcopy creates invalid object |
Date: |
16 Apr 2005 19:45:31 -0000 |
The fake section groups created by BFD causes objcopy to create invalid output,
where a section has SHF_GROUP set but no groups are defined. $ cat linkonce.s
.section .gnu.linkonce.t.__syscall_error_3, "ax" $ as linkonce.s $ objdump -h
a.out: file format elf64-ia64-little Sections: Idx Name Size
VMA LMA File off Algn 4 __syscall_error_3
00000000 0000000000000000 0000000000000000 00000000 2**0
EXCLUDE, LINK_ONCE_DISCARD 0 .text 00000000 0000000000000000
0000000000000000 00000040 2**4 CONTENTS, ALLOC, LOAD,
READONLY, CODE 1 .data 00000000 0000000000000000 0000000000000000
00000040 2**0 CONTENTS, ALLOC, LOAD, DATA 2 .bss
00000000 0000000000000000 0000000000000000 00000040 2**0
ALLOC 3 .gnu.linkonce.t.__syscall_error_3 00000000 0000000000000000
0000000000000000 00000040 2**0 CONTENTS, ALLOC, LOAD,
READONLY, CODE, LINK_ONCE_DISCARD $ objcopy a.out b.out $ objdump -h b.out
objdump: b.out: Memory exhausted $ readelf -Sg b.out There are 8 section
headers, starting at offset 0x90: Section Headers: [Nr] Name
Type Address Offset Size EntSize
Flags Link Info Align [ 0] NULL
0000000000000000 00000000 0000000000000000 0000000000000000
0 0 0 [ 1] .text PROGBITS 0000000000000000
00000040 0000000000000000 0000000000000000 AX 0 0 16 [
2] .data PROGBITS 0000000000000000 00000040
0000000000000000 0000000000000000 WA 0 0 1 [ 3] .bss
NOBITS 0000000000000000 00000040 0000000000000000
0000000000000000 WA 0 0 1 [ 4] .gnu.linkonce.t._ PROGBITS
0000000000000000 00000040 0000000000000000 0000000000000000 AXG
0 0 1 [ 5] .shstrtab STRTAB 0000000000000000
00000040 000000000000004e 0000000000000000 0 0 1 [
6] .symtab SYMTAB 0000000000000000 00000290
0000000000000078 0000000000000018 7 5 8 [ 7] .strtab
STRTAB 0000000000000000 00000308 0000000000000001
0000000000000000 0 0 1 Key to Flags: W (write), A (alloc),
X (execute), M (merge), S (strings) I (info), L (link order), G (group), x
(unknown) O (extra OS processing required) o (OS specific), p (processor
specific) There are no section groups in this file.
--
Summary: objcopy creates invalid object
Product: binutils
Version: 2.17 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: schwab at suse dot de
CC: bug-binutils at gnu dot org,hjl at lucon dot org
GCC target triplet: ia64-*-*
http://sources.redhat.com/bugzilla/show_bug.cgi?id=855
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/855] New: objcopy creates invalid object,
schwab at suse dot de <=