History

Removed binary executable output support

This broke writing executables.

Feret@.(none) committed 17 years ago

Commit c15e37e1 parent 2fdb45f1 file · +4 −5Browse files

Unified · Split

tccelf.c+4−5
@@ -1357,7 +1357,7 @@ int elf_output_file(TCCState *s1, const char *filename) · 1356 unmodified lines
13571357 file_type = s1->output_type;
13581358 s1->nb_errors = 0;
13591359
1360− if ((file_type != TCC_OUTPUT_OBJ) && (s1->output_type != TCC_OUTPUT_FORMAT_BINARY)) {
1360+ if (file_type != TCC_OUTPUT_OBJ) {
13611361 tcc_add_runtime(s1);
13621362 }
13631363
@@ -1371,15 +1371,14 @@ int elf_output_file(TCCState *s1, const char *filename) · 7 unmodified lines
13711371 if (file_type != TCC_OUTPUT_OBJ) {
13721372 relocate_common_syms();
13731373
1374− if (s1->output_type != TCC_OUTPUT_FORMAT_BINARY)
1375− tcc_add_linker_symbols(s1);
1374+ tcc_add_linker_symbols(s1);
13761375
1377− if ((!s1->static_link) && (s1->output_type != TCC_OUTPUT_FORMAT_BINARY)) {
1376+ if (!s1->static_link) {
13781377 const char *name;
13791378 int sym_index, index;
13801379 ElfW(Sym) *esym, *sym_end;
13811380
1382− if ((file_type == TCC_OUTPUT_EXE) && (s1->output_type != TCC_OUTPUT_FORMAT_BINARY)) {
1381+ if (file_type == TCC_OUTPUT_EXE) {
13831382 char *ptr;
13841383 /* add interpreter section only if executable */
13851384 interp = new_section(s1, ".interp", SHT_PROGBITS, SHF_ALLOC);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t