Bug 26168 - Feature request: support .symtab .strtab and .shstrtab as output section descriptions
Summary: Feature request: support .symtab .strtab and .shstrtab as output section desc...
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.35
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-24 16:02 UTC by Fangrui Song
Modified: 2020-06-24 16:02 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fangrui Song 2020-06-24 16:02:41 UTC
Many other synthesized sections can be renamed or discarded, so it seems natural to extend the ability to .symtab .strtab and .shstrtab

Use case 1: discard .symtab, .strtab (similar to --strip-all) or .shstrtab

SECTIONS {
  /DISCARD/ : { *(.symtab) *(.strtab) }
}

Use case 2: rename

SECTIONS
{
  .symtab2 : { *(.symtab) }
  .strtab2 : { *(.strtab) }
  .shstrtab2 : { *(.shstrtab) }
}