[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/10374] New: Local/global symbol order in symbol table
From: |
Pierre dot Habraken at imag dot fr |
Subject: |
[Bug gas/10374] New: Local/global symbol order in symbol table |
Date: |
7 Jul 2009 19:15:30 -0000 |
mips-elf-as puts local symbol after global symbols in symbol table.
ELF specification (TIS) states that all symbols with STB_LOCAL binding should
precede global symbols.
This rule is not enforced by mips-elf-as (compiled from binutils 2.19) :
============================== bug trace ================================
$ cat atest.s
.global write
.text
write: SW $3, Z
JR $31
.data
Y: .word Z
$ mips-elf-as --version
GNU assembler (GNU Binutils) 2.19.51.20090702
Copyright 2008 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `mips-elf'.
$ mips-elf-as -o atest.o atest.s
$ mips-elf-readelf -s atest.o
Symbol table '.symtab' contains 9 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 SECTION LOCAL DEFAULT 1 .text
2: 00000000 0 SECTION LOCAL DEFAULT 3 .data
3: 00000000 0 SECTION LOCAL DEFAULT 5 .bss
4: 00000000 0 SECTION LOCAL DEFAULT 6 .reginfo
5: 00000000 0 SECTION LOCAL DEFAULT 7 .pdr
6: 00000000 0 OBJECT GLOBAL DEFAULT 1 write
7: 00000000 0 NOTYPE GLOBAL DEFAULT UND Z
8: 00000000 0 NOTYPE LOCAL DEFAULT 3 Y
=========================================================================
--
Summary: Local/global symbol order in symbol table
Product: binutils
Version: 2.19
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: Pierre dot Habraken at imag dot fr
CC: bug-binutils at gnu dot org
GCC host triplet: i386-linux
GCC target triplet: mips-elf
http://sourceware.org/bugzilla/show_bug.cgi?id=10374
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/10374] New: Local/global symbol order in symbol table,
Pierre dot Habraken at imag dot fr <=