* config/obj-elf.c (obj_elf_type): Add code to support a type of
[deliverable/binutils-gdb.git] / binutils / readelf.c
index ce739e684490debd126ce86aec3fb723848b96e4..f56e6c2f26746f2725c2e5aa296e98746fa76ee5 100644 (file)
@@ -6902,7 +6902,14 @@ get_symbol_binding (unsigned int binding)
        snprintf (buff, sizeof (buff), _("<processor specific>: %d"),
                  binding);
       else if (binding >= STB_LOOS && binding <= STB_HIOS)
-       snprintf (buff, sizeof (buff), _("<OS specific>: %d"), binding);
+       {
+         if (binding == STB_GNU_UNIQUE
+             && (elf_header.e_ident[EI_OSABI] == ELFOSABI_LINUX
+                 /* GNU/Linux is still using the default value 0.  */
+                 || elf_header.e_ident[EI_OSABI] == ELFOSABI_NONE))
+           return "UNIQUE";
+         snprintf (buff, sizeof (buff), _("<OS specific>: %d"), binding);
+       }
       else
        snprintf (buff, sizeof (buff), _("<unknown>: %d"), binding);
       return buff;
This page took 0.024792 seconds and 4 git commands to generate.