Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255172 - dev-lang/nasm >= 2.04: corrupted exporting of symbols
Summary: dev-lang/nasm >= 2.04: corrupted exporting of symbols
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-16 14:08 UTC by Tomas Jedrzejek
Modified: 2009-08-08 07:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Jedrzejek 2009-01-16 14:08:51 UTC
Corrupted exporting of symbols with ELF backend - object file is generated but global functions are'nt usable for calling out of the assembly source code, linker output: undefined reference to 'some asm function'. e.g. You can't call asm functions from C

Reproducible: Always

Steps to Reproduce:
1. git clone git://repo.or.cz/ZeXOS.git
2. cd ZeXOS
3. ./build.sh

Actual Results:  
Linker dont see all functions called in C defined in assembly source code - You can see lot of undefined references

Expected Results:  
Source code should be linked succefully without any warning and error

Source code works with all versions before 2.04 so 2.03.1 and older are OK. This bug was reported on nasm.us bug tracker and bug was approved by project developer, so we could expect fast fix .. Please return 2.03.1 version or 2.01 to portage and mask 2.04 and newer
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2009-01-16 16:06:43 UTC
Why is this marked fixed?
Comment 2 Tomas Jedrzejek 2009-01-16 18:39:11 UTC
Main developer found this bug as "standardization" process, so for everybody where nasm generate wrong object files is easy solution .. It working wrong, because nasm don't know where is .text section in ELF binaries, so you must specify it in your asm sources (when it is missing) by now everytime with "SECTION .text" .. It is correct way anyway
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-07-20 23:22:34 UTC
As per last comment; can we close this now?
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2009-08-08 07:48:41 UTC
seems like it