bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/22262] New: readelf -W truncates some relocation types


From: hjl.tools at gmail dot com
Subject: [Bug binutils/22262] New: readelf -W truncates some relocation types
Date: Thu, 05 Oct 2017 10:13:34 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22262

            Bug ID: 22262
           Summary: readelf -W truncates some relocation types
           Product: binutils
           Version: 2.30 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

readelf has

     if (rtype == NULL) 
        printf (_("unrecognized: %-7lx"), (unsigned long) type & 0xffffffff);
      else
        printf (do_wide ? "%-22.22s" : "%-17.17s", rtype);

which truncates relocation type to 22 chars.  But there are many relocations
with more than 22 chars:

23: R_ARM_THM_ALU_PREL_11_0
27: R_ARM_THM_ALU_ABS_G0_NC132)
27: R_ARM_THM_ALU_ABS_G1_NC133)
27: R_ARM_THM_ALU_ABS_G2_NC134)
27: R_ARM_THM_ALU_ABS_G3_NC135)
23: R_BFIN_FUNCDESC_GOT17M4
26: R_BFIN_FUNCDESC_GOTOFF17M4
24: R_BFIN_FUNCDESC_GOTOFFHI
24: R_BFIN_FUNCDESC_GOTOFFLO
23: R_FRV_FUNCDESC_GOTOFF12
23: R_FRV_FUNCDESC_GOTOFFHI
23: R_FRV_FUNCDESC_GOTOFFLO
23: R_386_USED_BY_INTEL_200
25: R_IA64_VMS_CALL_SIGNATURE
23: R_IA64_VMS_EXECLET_FUNC
23: R_IA64_VMS_EXECLET_DATA
23: R_IA64_VMS_ACC_STO16LSH
23: R_IA64_VMS_ACC_STO32LSH
23: R_IA64_VMS_ACC_STO64LSH
25: R_M32R_RELA_GNU_VTINHERIT
23: R_M32R_RELA_GNU_VTENTRY
23: R_M68HC11_GNU_VTINHERIT
25: R_MCORE_PCRELJSR_IMM11BY2
24: R_METAG_GNU_VTINHERIT30)
24: R_METAG_GETSET_GOTOFF34)
24: R_METAG_RELBRANCH_PLT40)
28: R_METAG_TLS_IENONPIC_HI1654)
28: R_METAG_TLS_IENONPIC_LO1655)
24: R_MICROBLAZE_32_PCREL_LO
26: R_MICROBLAZE_32_SYM_OP_SYM
26: R_MICROBLAZE_GNU_VTINHERIT
24: R_MICROBLAZE_GNU_VTENTRY
24: R_MICROBLAZE_TLSDTPMOD32
24: R_MICROBLAZE_TLSDTPREL32
24: R_MICROBLAZE_TLSDTPREL64
26: R_MICROBLAZE_TLSGOTTPREL32
23: R_MICROBLAZE_TLSTPREL32
24: R_MIPS16_TLS_DTPREL_HI16
24: R_MIPS16_TLS_DTPREL_LO16
23: R_MIPS16_TLS_TPREL_HI16
23: R_MIPS16_TLS_TPREL_LO16
27: R_MICROMIPS_TLS_DTPREL_HI16
27: R_MICROMIPS_TLS_DTPREL_LO16
24: R_MICROMIPS_TLS_GOTTPREL
26: R_MICROMIPS_TLS_TPREL_HI16
26: R_MICROMIPS_TLS_TPREL_LO16
23: R_MMIX_BASE_PLUS_OFFSET
23: R_MN10300_GNU_VTINHERIT
23: R_MSP430X_PCR20_EXT_SRC
23: R_MSP430X_PCR20_EXT_DST
24: R_MSP430X_PCR20_EXT_ODST
23: R_MSP430X_ABS20_EXT_SRC
23: R_MSP430X_ABS20_EXT_DST
24: R_MSP430X_ABS20_EXT_ODST
23: R_MSP430X_ABS20_ADR_SRC
23: R_MSP430X_ABS20_ADR_DST
26: R_NDS32_RELA_GNU_VTINHERIT
24: R_NDS32_RELA_GNU_VTENTRY
23: R_NDS32_PLT_GOTREL_HI20
23: R_NDS32_PLT_GOTREL_LO12
23: R_NDS32_SDA12S2_DP_RELA
23: R_NDS32_SDA12S2_SP_RELA
23: R_NDS32_LO12S0_ORI_RELA
23: R_NDS32_DWARF2_OP1_RELA
23: R_NDS32_DWARF2_OP2_RELA
23: R_NDS32_DWARF2_LEB_RELA
23: R_NDS32_PLT_GOTREL_LO20
23: R_NDS32_PLT_GOTREL_LO15
23: R_NDS32_PLT_GOTREL_LO19
25: R_NDS32_WORD_9_PCREL_RELA
24: R_NDS32_17IFC_PCREL_RELA
25: R_NDS32_10IFCU_PCREL_RELA
26: R_NDS32_RELAX_REGION_BEGIN
24: R_NDS32_RELAX_REGION_END
23: R_NIOS2_R2_T1I7_1_PCREL
23: R_PPC64_ADDR14_BRNTAKEN
23: R_PPC64_ADDR16_HIGHESTA
25: R_PPC64_GOT_TPREL16_LO_DS
23: R_PPC64_GOT_DTPREL16_DS
26: R_PPC64_GOT_DTPREL16_LO_DS
23: R_PPC64_GOT_DTPREL16_HI
23: R_PPC64_GOT_DTPREL16_HA
23: R_PPC64_TPREL16_HIGHERA
23: R_PPC64_TPREL16_HIGHEST
24: R_PPC64_TPREL16_HIGHESTA
23: R_PPC64_DTPREL16_HIGHER
24: R_PPC64_DTPREL16_HIGHERA
24: R_PPC64_DTPREL16_HIGHEST
25: R_PPC64_DTPREL16_HIGHESTA
23: R_SH_IMM_MEDLOW16_PCREL
24: R_SPARC_GOTDATA_OP_HIX22
24: R_SPARC_GOTDATA_OP_LOX10
23: R_TILEGX_JUMPOFF_X1_PLT
26: R_TILEGX_IMM16_X0_HW0_LAST
26: R_TILEGX_IMM16_X1_HW0_LAST
26: R_TILEGX_IMM16_X0_HW1_LAST
26: R_TILEGX_IMM16_X1_HW1_LAST
26: R_TILEGX_IMM16_X0_HW2_LAST
26: R_TILEGX_IMM16_X1_HW2_LAST
27: R_TILEGX_IMM16_X0_HW0_PCREL
27: R_TILEGX_IMM16_X1_HW0_PCREL
27: R_TILEGX_IMM16_X0_HW1_PCREL
27: R_TILEGX_IMM16_X1_HW1_PCREL
27: R_TILEGX_IMM16_X0_HW2_PCREL
27: R_TILEGX_IMM16_X1_HW2_PCREL
27: R_TILEGX_IMM16_X0_HW3_PCREL
27: R_TILEGX_IMM16_X1_HW3_PCREL
32: R_TILEGX_IMM16_X0_HW0_LAST_PCREL
32: R_TILEGX_IMM16_X1_HW0_LAST_PCREL
32: R_TILEGX_IMM16_X0_HW1_LAST_PCREL
32: R_TILEGX_IMM16_X1_HW1_LAST_PCREL
32: R_TILEGX_IMM16_X0_HW2_LAST_PCREL
32: R_TILEGX_IMM16_X1_HW2_LAST_PCREL
25: R_TILEGX_IMM16_X0_HW0_GOT
25: R_TILEGX_IMM16_X1_HW0_GOT
31: R_TILEGX_IMM16_X0_HW0_PLT_PCREL
31: R_TILEGX_IMM16_X1_HW0_PLT_PCREL
31: R_TILEGX_IMM16_X0_HW1_PLT_PCREL
31: R_TILEGX_IMM16_X1_HW1_PLT_PCREL
31: R_TILEGX_IMM16_X0_HW2_PLT_PCREL
31: R_TILEGX_IMM16_X1_HW2_PLT_PCREL
30: R_TILEGX_IMM16_X0_HW0_LAST_GOT
30: R_TILEGX_IMM16_X1_HW0_LAST_GOT
30: R_TILEGX_IMM16_X0_HW1_LAST_GOT
30: R_TILEGX_IMM16_X1_HW1_LAST_GOT
31: R_TILEGX_IMM16_X0_HW3_PLT_PCREL
31: R_TILEGX_IMM16_X1_HW3_PLT_PCREL
28: R_TILEGX_IMM16_X0_HW0_TLS_GD
28: R_TILEGX_IMM16_X1_HW0_TLS_GD
28: R_TILEGX_IMM16_X0_HW0_TLS_LE
28: R_TILEGX_IMM16_X1_HW0_TLS_LE
33: R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE
33: R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE
33: R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE
33: R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE
33: R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD
33: R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD
33: R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD
33: R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD
28: R_TILEGX_IMM16_X0_HW0_TLS_IE
28: R_TILEGX_IMM16_X1_HW0_TLS_IE
36: R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL
36: R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL
36: R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL
36: R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL
36: R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL
36: R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL
33: R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE
33: R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE
33: R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE
33: R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE
27: R_TILEGX_IMM8_X0_TLS_GD_ADD
27: R_TILEGX_IMM8_X1_TLS_GD_ADD
27: R_TILEGX_IMM8_Y0_TLS_GD_ADD
27: R_TILEGX_IMM8_Y1_TLS_GD_ADD
24: R_TILEGX_IMM8_X0_TLS_ADD
24: R_TILEGX_IMM8_X1_TLS_ADD
24: R_TILEGX_IMM8_Y0_TLS_ADD
24: R_TILEGX_IMM8_Y1_TLS_ADD
25: R_TILEPRO_JOFFLONG_X1_PLT
24: R_TILEPRO_IMM16_X0_PCREL
24: R_TILEPRO_IMM16_X1_PCREL
27: R_TILEPRO_IMM16_X0_LO_PCREL
27: R_TILEPRO_IMM16_X1_LO_PCREL
27: R_TILEPRO_IMM16_X0_HI_PCREL
27: R_TILEPRO_IMM16_X1_HI_PCREL
27: R_TILEPRO_IMM16_X0_HA_PCREL
27: R_TILEPRO_IMM16_X1_HA_PCREL
25: R_TILEPRO_IMM16_X0_GOT_LO
25: R_TILEPRO_IMM16_X1_GOT_LO
25: R_TILEPRO_IMM16_X0_GOT_HI
25: R_TILEPRO_IMM16_X1_GOT_HI
25: R_TILEPRO_IMM16_X0_GOT_HA
25: R_TILEPRO_IMM16_X1_GOT_HA
28: R_TILEPRO_IMM8_X0_TLS_GD_ADD
28: R_TILEPRO_IMM8_X1_TLS_GD_ADD
28: R_TILEPRO_IMM8_Y0_TLS_GD_ADD
28: R_TILEPRO_IMM8_Y1_TLS_GD_ADD
25: R_TILEPRO_IMM16_X0_TLS_GD
25: R_TILEPRO_IMM16_X1_TLS_GD
28: R_TILEPRO_IMM16_X0_TLS_GD_LO
28: R_TILEPRO_IMM16_X1_TLS_GD_LO
28: R_TILEPRO_IMM16_X0_TLS_GD_HI
28: R_TILEPRO_IMM16_X1_TLS_GD_HI
28: R_TILEPRO_IMM16_X0_TLS_GD_HA
28: R_TILEPRO_IMM16_X1_TLS_GD_HA
25: R_TILEPRO_IMM16_X0_TLS_IE
25: R_TILEPRO_IMM16_X1_TLS_IE
28: R_TILEPRO_IMM16_X0_TLS_IE_LO
28: R_TILEPRO_IMM16_X1_TLS_IE_LO
28: R_TILEPRO_IMM16_X0_TLS_IE_HI
28: R_TILEPRO_IMM16_X1_TLS_IE_HI
28: R_TILEPRO_IMM16_X0_TLS_IE_HA
28: R_TILEPRO_IMM16_X1_TLS_IE_HA
25: R_TILEPRO_IMM16_X0_TLS_LE
25: R_TILEPRO_IMM16_X1_TLS_LE
28: R_TILEPRO_IMM16_X0_TLS_LE_LO
28: R_TILEPRO_IMM16_X1_TLS_LE_LO
28: R_TILEPRO_IMM16_X0_TLS_LE_HI
28: R_TILEPRO_IMM16_X1_TLS_LE_HI
28: R_TILEPRO_IMM16_X0_TLS_LE_HA
28: R_TILEPRO_IMM16_X1_TLS_LE_HA
23: R_TILEPRO_GNU_VTINHERIT
23: R_V850_SDA_16_16_OFFSET
23: R_V850_SDA_15_16_OFFSET
23: R_V850_ZDA_16_16_OFFSET
23: R_V850_ZDA_15_16_OFFSET
23: R_V850_TDA_16_16_OFFSET
29: R_V850_SDA_16_16_SPLIT_OFFSET
29: R_V850_ZDA_16_16_SPLIT_OFFSET
23: R_V850_CALLT_6_7_OFFSET
25: R_V850_CALLT_16_16_OFFSET
24: R_V850_LO16_SPLIT_OFFSET
25: R_V850_CALLT_15_16_OFFSET
24: R_X86_64_GOTPC32_TLSDESC
25: R_XSTORMY16_GNU_VTINHERIT
23: R_XSTORMY16_GNU_VTENTRY

The maximum length is 36 chars.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]