[PATCH v5] Support SHF_GNU_RETAIN ELF section flag

Jozef Lawrynowicz jozef.l@mittosystems.com
Thu Nov 19 21:33:15 GMT 2020


On Thu, Nov 19, 2020 at 02:06:31PM +0000, Jozef Lawrynowicz wrote:
> On Thu, Nov 19, 2020 at 03:43:46PM +1030, Alan Modra wrote:
> > Hi Jozef,
> > Some fallout from your patch.
> > 
> > alpha-unknown-freebsd4.7  +FAIL: SHF_GNU_RETAIN sections 22
> > alpha-unknown-freebsd4.7  +FAIL: SHF_GNU_RETAIN set with numeric flag value in .section
> > alpha-unknown-freebsd4.7  +FAIL: Merge SHF_GNU_RETAIN for non-unique sections
> > arm-netbsdelf  +FAIL: Unknown SHF_MASKOS value in section
> > arm-netbsdelf  +FAIL: -t (section details) for unknown SHF_MASKOS value in section
> > arm-nto  +FAIL: Unknown SHF_MASKOS value in section
> > arm-nto  +FAIL: -t (section details) for unknown SHF_MASKOS value in section
> > bfin-linux-uclibc  +FAIL: SHF_GNU_RETAIN 3 (keep sections referenced by retained sections)
> > bfin-linux-uclibc  +FAIL: SHF_GNU_RETAIN 6a (pull section out of lib required by SHF_GNU_RETAIN section)
> > bfin-linux-uclibc  +FAIL: SHF_GNU_RETAIN 6b (pull section out of lib required by SHF_GNU_RETAIN section)
> > frv-linux  +FAIL: SHF_GNU_RETAIN 3 (keep sections referenced by retained sections)
> > frv-linux  +FAIL: SHF_GNU_RETAIN 6a (pull section out of lib required by SHF_GNU_RETAIN section)
> > frv-linux  +FAIL: SHF_GNU_RETAIN 6b (pull section out of lib required by SHF_GNU_RETAIN section)
> > hppa64-hp-hpux11.23  +FAIL: -t (section details) for unknown SHF_MASKOS value in section
> > lm32-linux  +FAIL: SHF_GNU_RETAIN 3 (keep sections referenced by retained sections)
> > lm32-linux  +FAIL: SHF_GNU_RETAIN 6a (pull section out of lib required by SHF_GNU_RETAIN section)
> > lm32-linux  +FAIL: SHF_GNU_RETAIN 6b (pull section out of lib required by SHF_GNU_RETAIN section)
> > mips64el-openbsd  +FAIL: SHF_GNU_RETAIN 5 (don't pull SHF_GNU_RETAIN section out of lib)
> > mips64-linux  +FAIL: SHF_GNU_RETAIN 5 (don't pull SHF_GNU_RETAIN section out of lib)
> > mips64-openbsd  +FAIL: SHF_GNU_RETAIN 5 (don't pull SHF_GNU_RETAIN section out of lib)
> > mipsel-linux-gnu  +FAIL: SHF_GNU_RETAIN 5 (don't pull SHF_GNU_RETAIN section out of lib)
> > mipsisa32el-linux  +FAIL: SHF_GNU_RETAIN 5 (don't pull SHF_GNU_RETAIN section out of lib)
> > mips-linux  +FAIL: SHF_GNU_RETAIN 5 (don't pull SHF_GNU_RETAIN section out of lib)
> > mips-sgi-irix6  +FAIL: SHF_GNU_RETAIN 5 (don't pull SHF_GNU_RETAIN section out of lib)
> > powerpc64-freebsd  +FAIL: SHF_GNU_RETAIN sections 22
> > powerpc64-freebsd  +FAIL: SHF_GNU_RETAIN set with numeric flag value in .section
> > powerpc64-freebsd  +FAIL: Merge SHF_GNU_RETAIN for non-unique sections
> > powerpc-freebsd  +FAIL: SHF_GNU_RETAIN sections 22
> > powerpc-freebsd  +FAIL: SHF_GNU_RETAIN set with numeric flag value in .section
> > powerpc-freebsd  +FAIL: Merge SHF_GNU_RETAIN for non-unique sections
> > sparc-sun-solaris2  +FAIL: Unknown SHF_MASKOS value in section
> > sparc-sun-solaris2  +FAIL: -t (section details) for unknown SHF_MASKOS value in section
> > x86_64-cloudabi  +FAIL: -t (section details) for unknown SHF_MASKOS value in section
> > 
> 
> On Thu, Nov 19, 2020 at 10:37:29AM +0000, Nick Clifton wrote:
> > 
> > And a few more:
> > 
> > m68k-uclinux ...
> >   BIN REGRESSION: Unknown SHF_MASKOS value in section
> >   BIN REGRESSION: -t (section details) for unknown
> > 
> > x86_64-solaris2 ...
> >   BIN REGRESSION: Unknown SHF_MASKOS value in section
> >   BIN REGRESSION: -t (section details) for unknown
> > 
> > sparc64-solaris2 ...
> >   BIN REGRESSION: Unknown SHF_MASKOS value in section
> >   BIN REGRESSION: -t (section details) for unknown
> > 
> > Cheers
> >   Nick
> > 
> 
> Thanks, I'm taking a look.

Ok I think I fixed them all, currently re-testing for all targets, will
commit once those results come in.

Thanks,
Jozef


More information about the Binutils mailing list