public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Change to Thumb symbol readelf output
@ 2014-07-07 16:25 Will Newton
  2014-07-07 16:46 ` Nicholas Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Will Newton @ 2014-07-07 16:25 UTC (permalink / raw)
  To: binutils; +Cc: nick clifton

Hi Nick,

I noticed this commit:

commit 13761a1136a46a4dec5d01e00743e8b267a23c0d
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu May 2 21:06:15 2013 +0000

        * archures.c: Add some more MSP430 machine numbers.
        * config.bfd (msp430): Define targ_selvecs.
        * configure.in: Add bfd_elf32_msp430_ti_vec.
        * cpu-msp430.c: Add some more MSP430 machine numbers.
        * elf32-msp430.c Add support for MSP430X relocations.
        Add support for TI compiler generated relocations.
        Add support for sym_diff relocations.
        Add support for relaxing out of range short branches into long
        branches.
        Add support for MSP430 attribute section.
        * reloc.c: Add MSP430X relocations.
        * targets.c: Add bfd_elf32_msp430_ti_vec.
        * bfd-in2.h: Regenerate.
        * configure: Regenerate.
        * libbfd.h: Regenerate.

        * readelf.c: Add support for MSP430X architecture.

Changes how readelf outputs some thumb symbols:

@@ -8994,8 +9050,13 @@ get_symbol_type (unsigned int type)
     default:
       if (type >= STT_LOPROC && type <= STT_HIPROC)
        {
-         if (elf_header.e_machine == EM_ARM && type == STT_ARM_TFUNC)
-           return "THUMB_FUNC";
+         if (elf_header.e_machine == EM_ARM)
+           {
+             if (type == STT_ARM_TFUNC)
+               return "THUMB_FUNC";
+             if (type == STT_ARM_16BIT)
+               return "THUMB_LABEL";
+           }

Was this change intended?

I think it causes a test to fail for arm-linux and I am not sure
whether the best course of action.

Thanks,

-- 
Will Newton
Toolchain Working Group, Linaro

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Change to Thumb symbol readelf output
  2014-07-07 16:25 Change to Thumb symbol readelf output Will Newton
@ 2014-07-07 16:46 ` Nicholas Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nicholas Clifton @ 2014-07-07 16:46 UTC (permalink / raw)
  To: Will Newton, binutils

Hi Will,

> I noticed this commit:
>
> commit 13761a1136a46a4dec5d01e00743e8b267a23c0d
> Author: Nick Clifton <nickc@redhat.com>

> Changes how readelf outputs some thumb symbols:
>
> @@ -8994,8 +9050,13 @@ get_symbol_type (unsigned int type)
>       default:
>         if (type >= STT_LOPROC && type <= STT_HIPROC)
>          {
> -         if (elf_header.e_machine == EM_ARM && type == STT_ARM_TFUNC)
> -           return "THUMB_FUNC";
> +         if (elf_header.e_machine == EM_ARM)
> +           {
> +             if (type == STT_ARM_TFUNC)
> +               return "THUMB_FUNC";
> +             if (type == STT_ARM_16BIT)
> +               return "THUMB_LABEL";
> +           }
>
> Was this change intended?

No.  Sorry - that was a snafu.  I have now reverted it.

Cheers
   Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-07 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-07 16:25 Change to Thumb symbol readelf output Will Newton
2014-07-07 16:46 ` Nicholas Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).