Index: uspace/app/bdsh/cmds/modules/cat/cat.c
===================================================================
--- uspace/app/bdsh/cmds/modules/cat/cat.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/app/bdsh/cmds/modules/cat/cat.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -164,5 +164,4 @@
 {
 	int fd, bytes = 0, count = 0, reads = 0;
-	off64_t total = 0;
 	char *buff = NULL;
 	int i;
@@ -174,7 +173,4 @@
 		return 1;
 	}
-
-	total = lseek(fd, 0, SEEK_END);
-	lseek(fd, 0, SEEK_SET);
 
 	if (NULL == (buff = (char *) malloc(blen + 1))) {
Index: uspace/app/sbi/src/run_expr.c
===================================================================
--- uspace/app/sbi/src/run_expr.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/app/sbi/src/run_expr.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -2529,4 +2529,6 @@
 	if (rc1 == EOK)
 		rc2 = os_str_get_char(string->value, elem_index, &cval);
+	else
+		rc2 = EOK;
 
 	if (rc1 != EOK || rc2 != EOK) {
Index: uspace/app/tester/fault/fault2.c
===================================================================
--- uspace/app/tester/fault/fault2.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/app/tester/fault/fault2.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -29,4 +29,5 @@
 
 #include "../tester.h"
+#include <stdio.h>
 
 typedef int __attribute__((may_alias)) aliasing_int;
@@ -38,4 +39,5 @@
 	
 	var1 = *((aliasing_int *) (((char *) (&var)) + 1));
+	printf("Read %d\n", var1);
 	
 	return "Survived unaligned read";
Index: uspace/app/trace/trace.c
===================================================================
--- uspace/app/trace/trace.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/app/trace/trace.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -872,5 +872,5 @@
 static display_mask_t parse_display_mask(const char *text)
 {
-	display_mask_t dm;
+	display_mask_t dm = 0;
 	const char *c = text;
 	
Index: uspace/lib/c/arch/abs32le/_link.ld.in
===================================================================
--- uspace/lib/c/arch/abs32le/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/abs32le/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -11,6 +11,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/lib/c/arch/amd64/_link.ld.in
===================================================================
--- uspace/lib/c/arch/amd64/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/amd64/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -16,6 +16,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/lib/c/arch/arm32/_link.ld.in
===================================================================
--- uspace/lib/c/arch/arm32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/arm32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -15,6 +15,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/lib/c/arch/ia32/_link.ld.in
===================================================================
--- uspace/lib/c/arch/ia32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/ia32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -16,6 +16,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/lib/c/arch/ia64/_link.ld.in
===================================================================
--- uspace/lib/c/arch/ia64/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/ia64/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -15,6 +15,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
@@ -23,5 +23,5 @@
 	.got : {
 		_gp = .;
-		*(.got*);
+		*(.got .got.*);
 	} :data
 	
Index: uspace/lib/c/arch/mips32/_link.ld.in
===================================================================
--- uspace/lib/c/arch/mips32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/mips32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -15,6 +15,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/lib/c/arch/ppc32/_link.ld.in
===================================================================
--- uspace/lib/c/arch/ppc32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/ppc32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -15,6 +15,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/lib/c/arch/sparc64/_link.ld.in
===================================================================
--- uspace/lib/c/arch/sparc64/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/arch/sparc64/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -15,6 +15,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/lib/c/generic/vfs/vfs.c
===================================================================
--- uspace/lib/c/generic/vfs/vfs.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/lib/c/generic/vfs/vfs.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -756,8 +756,9 @@
 {
 	struct stat stat;
-	int rc;
-
-	rc = fstat(fildes, &stat);
-
+	
+	int rc = fstat(fildes, &stat);
+	if (rc != 0)
+		return rc;
+	
 	if (!stat.device)
 		return -1;
Index: uspace/srv/hw/bus/cuda_adb/cuda_adb.c
===================================================================
--- uspace/srv/hw/bus/cuda_adb/cuda_adb.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/hw/bus/cuda_adb/cuda_adb.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -367,9 +367,9 @@
 static void cuda_irq_rcv_end(void *buf, size_t *len)
 {
-	uint8_t data, b;
-
+	uint8_t b;
+	
 	b = pio_read_8(&dev->b);
-	data = pio_read_8(&dev->sr);
-
+	pio_read_8(&dev->sr);
+	
 	if ((b & TREQ) == 0) {
 		instance->xstate = cx_receive;
@@ -379,7 +379,7 @@
 		cuda_send_start();
 	}
-
-        memcpy(buf, instance->rcv_buf, instance->bidx);
-        *len = instance->bidx;
+	
+	memcpy(buf, instance->rcv_buf, instance->bidx);
+	*len = instance->bidx;
 	instance->bidx = 0;
 }
Index: uspace/srv/hw/netif/ne2000/dp8390.c
===================================================================
--- uspace/srv/hw/netif/ne2000/dp8390.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/hw/netif/ne2000/dp8390.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -391,4 +391,5 @@
 	
 	if ((size < ETH_MIN_PACK_SIZE) || (size > ETH_MAX_PACK_SIZE_TAGGED)) {
+		fibril_mutex_unlock(&ne2k->sq_mutex);
 		fprintf(stderr, "%s: Frame dropped (invalid size %zu bytes)\n",
 		    NAME, size);
Index: uspace/srv/loader/arch/abs32le/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/abs32le/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/abs32le/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -21,6 +21,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/srv/loader/arch/amd64/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/amd64/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/amd64/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -27,6 +27,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/srv/loader/arch/arm32/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/arm32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/arm32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -25,6 +25,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/srv/loader/arch/ia32/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/ia32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/ia32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -26,6 +26,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/srv/loader/arch/ia64/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/ia64/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/ia64/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -21,6 +21,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
@@ -29,5 +29,5 @@
 	.got : {
 		_gp = .;
-		*(.got*);
+		*(.got .got.*);
 	} :data
 	
Index: uspace/srv/loader/arch/mips32/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/mips32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/mips32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -25,6 +25,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/srv/loader/arch/ppc32/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/ppc32/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/ppc32/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -25,6 +25,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/srv/loader/arch/sparc64/_link.ld.in
===================================================================
--- uspace/srv/loader/arch/sparc64/_link.ld.in	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/arch/sparc64/_link.ld.in	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -20,6 +20,6 @@
 	
 	.text : {
-		*(.text);
-		*(.rodata*);
+		*(.text .text.*);
+		*(.rodata .rodata.*);
 	} :text
 	
Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision e3a3e3adeedece840514d46619ebed5cb3be75fc)
+++ uspace/srv/loader/main.c	(revision beb6b3d6e20326397f9e424ddf9e80a5793ba573)
@@ -407,12 +407,10 @@
 			/* Not reached */
 		default:
-			retval = ENOENT;
+			retval = EINVAL;
 			break;
 		}
-		if (IPC_GET_IMETHOD(call) != IPC_M_PHONE_HUNGUP) {
-			DPRINTF("Responding EINVAL to method %d.\n",
-			    IPC_GET_IMETHOD(call));
-			async_answer_0(callid, EINVAL);
-		}
+		
+		if (IPC_GET_IMETHOD(call) != IPC_M_PHONE_HUNGUP)
+			async_answer_0(callid, retval);
 	}
 }
