summaryrefslogtreecommitdiff
path: root/output/outmacho.c
diff options
context:
space:
mode:
Diffstat (limited to 'output/outmacho.c')
-rw-r--r--output/outmacho.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/output/outmacho.c b/output/outmacho.c
index 5e9ad8e..06ae8ee 100644
--- a/output/outmacho.c
+++ b/output/outmacho.c
@@ -23,7 +23,7 @@
#include "saa.h"
#include "raa.h"
#include "outform.h"
-#include "compiler.h"
+#include "outlib.h"
#if defined(OF_MACHO)
@@ -427,21 +427,7 @@ static void macho_output(int32_t secto, const void *data,
if (s == sbss && type != OUT_RESERVE) {
error(ERR_WARNING, "attempt to initialize memory in the"
" BSS section: ignored");
-
- switch (type) {
- case OUT_REL2ADR:
- size = 2;
- break;
-
- case OUT_REL4ADR:
- size = 4;
- break;
-
- default:
- break;
- }
-
- s->size += size;
+ s->size += realsize(type, size);
return;
}