-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a stripped binary is produced with binutils-2.14 #4
Comments
I cannot reproduce the problem. Without /* test.c */
int a;
char *str = "universe";
int foobar() {
return 42;
}
int main() {
return foobar();
}
When I repeat the whole experiment with
|
The file lengths of original binary and the output from strip -S |
That's correct and expected behaviour in case of capital
|
is it expected behavior to discard the debug info without -s on the |
AFAIK it's expected behaviour for
In our case it's STABS format. EDIT: I might have misunderstood your last question. |
Yes yes, I do generate by objects with -g, and linkage keeps discarding the dgb info. |
I checked the behaviour with Linux box:
Both files And repeated the expriment with m68k-amigaos toolchain:
Indeed file So finally, we have a clear problem statement ;-) |
OK :) |
Let's have a look at what gcc compiler driver does when
So apparently there's a difference how @sezero Could you investigate that? EDIT: What is |
Ok, -amiga-debug-hunk sets write_debug_hunk to 1. ld/emultempl/amiga.em, parse_args():
2.9.1, bfd/amigaoslink.c:
Note that this is 1 instead of 0 in 2.14, 2.9.1, bfd/amigaos.c, amiga_write_object_contents():
However, in 2.14, the write_debug_hunk check is NOT |
Seems like that change happened with commit d6af3b0 (2006, 16 Mar.) |
PING ? |
As the title says. And no, I don't use -s on the gcc link command line.
This doesn't happen with binutils-2.9.1.
The text was updated successfully, but these errors were encountered: