[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/4799] Common symbols not given type STT_COMMON
From: |
nickc at redhat dot com |
Subject: |
[Bug gas/4799] Common symbols not given type STT_COMMON |
Date: |
3 Oct 2007 11:01:35 -0000 |
------- Additional Comments From nickc at redhat dot com 2007-10-03 11:01
-------
Hi Richard,
I have uploaded a patch which takes a stab at implementing support for the ELF
STT_COMMON type. Would you care to have a look at it ?
The issues that I think need to be considered are:
* What should happen if a symbol is defined by some method other than the
.comm pseudo op and then its type is set to common ? eg:
.data
foo:
.word 4
.type foo,STT_COMMON
At the moment the patch just arbitrarily moves the symbol into the common
section, but is this correct. Maybe an error message should be issued instead ?
* The patched assembler will now emit common symbols with the STT_COMMON type
rather than the STT_OBJECT type. Are there build systems out there that depend
on th eold behaviour ?
* It is possible to have symbols with the STT_COMMON type but which are not in
the common section. How should the binutils handle them ? For now the patch
just treats them like STT_OBJECT symbols, which I think is the correct thing to
do.
Cheers
Nick
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=4799
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.