This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
The following patch cures this. I didn't want to hardcode .dynamic section name always, so the test just puts into the segment all non-empty sections that fall into PT_DYNAMIC's bounds. Not sure if it is possible to create empty PT_DYNAMIC, so just in case it also adds .dynamic section by name if it is empty.
Ok?
+ && (segment->p_type != PT_DYNAMIC \ + || SECTION_SIZE (section, segment) \ + || !strcmp (bfd_get_section_name (ibfd, section), ".dynamic")) \
Cheers Nick
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |