mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
bfd: strip symbols not representable in COFF/PE symbol table
The offset-within-section field in the symbol table entry is only 32 bits wide, so rather than emitting bogus entries omit them, and issue a diagnostic identifying the issue. This requires adjusting the PR/22267 test to no longer produce symbols with out of range values on 64-bit BFD. This also depends on adjustments to testsuite/ld-scripts/map-address.* made by an earlier patch. The purpose of the test can very well be achieved nevertheless.
This commit is contained in:
@@ -168,7 +168,7 @@ SECTIONS
|
||||
|
||||
.stack 0x80000 :
|
||||
{
|
||||
_stack = .;
|
||||
PROVIDE(_stack = .);
|
||||
*(.stack)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user