Bug 268761 - elfutils 129 doesn't find zero sized symbols
Summary: elfutils 129 doesn't find zero sized symbols
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: rawhide
Hardware: All
OS: All
medium
low
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 173278
TreeView+ depends on / blocked
 
Reported: 2007-08-30 19:54 UTC by Andrew Cagney
Modified: 2008-08-02 23:40 UTC (History)
1 user (show)

Fixed In Version: 0.131-1.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-13 00:13:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew Cagney 2007-08-30 19:54:49 UTC
It is related to this:
  /* Keep track of the lowest address a relevant sizeless symbol could have.  */
  GElf_Addr min_label = addr;
when there's no sized symbol containing addr preventing this:
  /* If we found no proper sized symbol to use, fall back to the best
     candidate sizeless symbol we found, if any.  */
  if (closest_name == NULL
      && sizeless_name != NULL && sizeless_sym.st_value >= min_label)
from applying.

my assembler looks like either:

# A global symbol that has zero size.
GLOBAL(global_st_size_0)
        LOAD_IMMED_BYTE (REG0, 0)
        STORE (REG0, REG0)  <--------- addr is here
        NO_OP
# A local symbol that has zero size.
LOCAL(local_st_size_0)
        LOAD_IMMED_BYTE (REG0, 0)
        STORE (REG0, REG0)  <--------- addr is here
        NO_OP

a simple example though is _start.

Comment 1 Roland McGrath 2007-08-30 20:07:16 UTC
This report needs: exact raw assembly source, what machine to assemble it on, a
test scenario using eu-addr2line -S with particular addresses, actual output
seen, and expected output.

Comment 2 Roland McGrath 2007-10-16 09:57:55 UTC
This issue should be resolved by elfutils-0.130.  If there is still a problem,
reopen or file a new bug report with complete test case details.

Comment 3 Fedora Update System 2007-10-18 02:30:54 UTC
elfutils-0.130-3.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update elfutils'

Comment 4 Fedora Update System 2007-11-13 00:13:22 UTC
elfutils-0.131-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.