projects
/
xar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
844dd87
)
Output EXT_DEF
master
author
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 12 Jun 2025 20:33:43 +0000
(21:33 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 12 Jun 2025 20:33:43 +0000
(21:33 +0100)
ranlib.c
patch
|
blob
|
history
diff --git
a/ranlib.c
b/ranlib.c
index 2e1353786887a797861ea30f547faa43c7d743a9..ad6c180517f710bd325b9bccd503ec3e0d022734 100644
(file)
--- a/
ranlib.c
+++ b/
ranlib.c
@@
-424,17
+424,23
@@
static void hunk_get_symbols (void *object, unsigned long bytes, long offset) {
pos += name_size;
if (symbol_type == 1 || symbol_type == 2) {
pos += name_size;
if (symbol_type == 1 || symbol_type == 2) {
- pos += 4;
- } else if (symbol_type == 129 || symbol_type == 130 || symbol_type == 136) {
- strtab = xmalloc (sizeof (*strtab));
- strtab->length = strlen (symname);
+ if (symbol_type == 1) {
- strtab->name = xstrdup (symname);
- strtab->offset = offset;
+ strtab = xmalloc (sizeof (*strtab));
+ strtab->length = strlen (symname);
+
+ strtab->name = xstrdup (symname);
+ strtab->offset = offset;
+
+ add_strtab (&gstrtab, strtab);
- add_strtab (&gstrtab, strtab);
+ }
+ pos += 4;
+
+ } else if (symbol_type == 129 || symbol_type == 130 || symbol_type == 136) {
+
if (symbol_type == 130) {
pos += 4;
}
if (symbol_type == 130) {
pos += 4;
}