Closed GoogleCodeExporter closed 8 years ago
If we try to compile the example below with the "-ffunction-sections -fdata-sections" gcc flags enabled, we get assembler errors: {{{ #include <string> void test01(void) { char str_lit01[] = "point bolivar, texas"; std::string str03; std::string str05; str05.append(str03.begin(), str03.end()); } int main() { test01(); return 0; } }}} The assembler errors are, as follows: /tmp/ccLho7XE.s:170: Error: can't resolve `.text' {.text section} - `.LK._Z6test01v' {.text._Z6test01v section} /tmp/ccLho7XE.s:172: Error: can't resolve `.text' {.text section} - `.LK._Z6test01v' {.text._Z6test01v section} /tmp/ccLho7XE.s:174: Error: can't resolve `.text' {.text section} - `.LK._Z6test01v' {.text._Z6test01v section} /tmp/ccLho7XE.s:176: Error: can't resolve `.text' {.text section} - `.LK._Z6test01v' {.text._Z6test01v section} If we omit the "-ffunction-sections -fdata-sections" flags the code compiles fine.
Original issue reported on code.google.com by nou...@gmail.com on 15 Jun 2009 at 7:32
nou...@gmail.com
This issue is fixed in the r296 revision of sx-gcc.
Original comment by nou...@gmail.com on 15 Jun 2009 at 1:55
Original issue reported on code.google.com by
nou...@gmail.com
on 15 Jun 2009 at 7:32