Bug 199887
Summary: | clisp.spec must set CFLAGS="" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sam Steingold <sds> |
Component: | clisp | Assignee: | Gérard Milmeister <gemi> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | bruno, extras-qa, rdieter |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-07-28 18:12:23 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sam Steingold
2006-07-24 00:13:17 UTC
It seems that without setting CFLAGS to "", the flags used are -O2 and -g and with CFLAGS set to "", the flags is set to -O2 only. Given that ALL fedora packages are built with debugging enabled, I don't see why we should disable it. emacs comes without debugging symbols: gdb /usr/bin/emacs-21.4-x (no debugging symbols found) The binaries in RPM packages are stripped of course, but a debuginfo package is generated from the the sources and the binaries using the debugging symbols. I see, so first the executable is built with "-g" and then it is stripped.
this is not good for clisp:
this prevents disassembling natively compiled functions:
> (disassemble #'car)
0x00cfe402 in __kernel_vsyscall ()
0x080b8f28 <C_car+0>: push %ebp
0x080b8f29 <C_car+1>: lea 0xfffffffc(%ebx),%eax
0x080b8f2c <C_car+4>: mov %esp,%ebp
0x080b8f2e <C_car+6>: mov %eax,%ebx
0x080b8f30 <C_car+8>: sub $0x8,%esp
0x080b8f33 <C_car+11>: mov (%eax),%eax
0x080b8f35 <C_car+13>: call 0x80b87b4 <car>
0x080b8f3a <C_car+18>: movl $0x1,0x81b0cd8
0x080b8f44 <C_car+28>: mov %eax,0x81b0d00
0x080b8f49 <C_car+33>: leave
0x080b8f4a <C_car+34>: ret
(this is with the CLISP compiled with CFLAGS="").
the CLISP RPM print the disassembly for the whole executable,
not just the CAR function.
Ok, well, I will push an update with CFLAGS="" soon. |