Summary: | size generated from .size _function, .-_function is faulty | ||
---|---|---|---|
Product: | binutils | Reporter: | Tien Hock Loh <thloh> |
Component: | gas | Assignee: | Alan Modra <amodra> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amodra |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | the reproduction case source file sample |
Created attachment 5265 [details] the reproduction case source file sample See the foo.S attached. When the code is compiled and linked (with a dummy main function), objdump -x shows that a faulty _test_nop size is calculated (in the example, 2 instead of 4). Removing the .section fixes the problem. This is causing some issues with GDB debugger in our architecture (Nios II). We've tested this in our architecture and with IA32.