diff options
| author | Ulf Hermann <[email protected]> | 2017-08-16 16:37:34 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-08-17 17:55:41 +0200 |
| commit | d86c13d143989a961eba149e3abfab9e3f471744 (patch) | |
| tree | c16c260c24712819cb967415ec79e58e26d3e4bf /backends/arm_symbol.c | |
| parent | 3695a1ba8dcd16459e0f35b74e88dbef48d21861 (diff) | |
| parent | 54ba4ce2973113d8f4315d4fc90e16a9b4476ea6 (diff) | |
Merge tag 'elfutils-0.170'
elfutils 0.170 release
Change-Id: I37d03645902b9f0a9fb708af1551db8843537799
Diffstat (limited to 'backends/arm_symbol.c')
| -rw-r--r-- | backends/arm_symbol.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/backends/arm_symbol.c b/backends/arm_symbol.c index da4a50a7..3edda724 100644 --- a/backends/arm_symbol.c +++ b/backends/arm_symbol.c @@ -1,5 +1,5 @@ /* Arm specific symbolic name handling. - Copyright (C) 2002-2009, 2014, 2015 Red Hat, Inc. + Copyright (C) 2002-2009, 2014, 2015, 2017 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -32,6 +32,7 @@ #include <elf.h> #include <stddef.h> +#include <string.h> #define BACKEND arm_ #include "libebl_CPU.h" @@ -142,3 +143,15 @@ arm_symbol_type_name (int type, } return NULL; } + +/* A data mapping symbol is a symbol with "$d" name or "$d.<any...>" name, + * STT_NOTYPE, STB_LOCAL and st_size of zero. The indicate the stat of a + * sequence of data items. */ +bool +arm_data_marker_symbol (const GElf_Sym *sym, const char *sname) +{ + return (sym != NULL && sname != NULL + && sym->st_size == 0 && GELF_ST_BIND (sym->st_info) == STB_LOCAL + && GELF_ST_TYPE (sym->st_info) == STT_NOTYPE + && (strcmp (sname, "$d") == 0 || strncmp (sname, "$d.", 3) == 0)); +} |
